@headspace/protos-events 1.16.0 → 1.18.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 +108 -0
- package/lib/index.js +268 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -2185,6 +2185,9 @@ export interface ISubscriptionUpcomingRenewal {
|
|
|
2185
2185
|
|
|
2186
2186
|
/** SubscriptionUpcomingRenewal planAffiliation */
|
|
2187
2187
|
planAffiliation?: (subscription.PlanAffiliation|null);
|
|
2188
|
+
|
|
2189
|
+
/** SubscriptionUpcomingRenewal renewalDate */
|
|
2190
|
+
renewalDate?: (number|null);
|
|
2188
2191
|
}
|
|
2189
2192
|
|
|
2190
2193
|
/** Represents a SubscriptionUpcomingRenewal. */
|
|
@@ -2211,6 +2214,9 @@ export class SubscriptionUpcomingRenewal implements ISubscriptionUpcomingRenewal
|
|
|
2211
2214
|
/** SubscriptionUpcomingRenewal planAffiliation. */
|
|
2212
2215
|
public planAffiliation: subscription.PlanAffiliation;
|
|
2213
2216
|
|
|
2217
|
+
/** SubscriptionUpcomingRenewal renewalDate. */
|
|
2218
|
+
public renewalDate: number;
|
|
2219
|
+
|
|
2214
2220
|
/**
|
|
2215
2221
|
* Creates a new SubscriptionUpcomingRenewal instance using the specified properties.
|
|
2216
2222
|
* @param [properties] Properties to set
|
|
@@ -2792,6 +2798,108 @@ export class UserEmailVerificationRequested implements IUserEmailVerificationReq
|
|
|
2792
2798
|
public toJSON(): { [k: string]: any };
|
|
2793
2799
|
}
|
|
2794
2800
|
|
|
2801
|
+
/** Properties of a UserPasswordResetRequested. */
|
|
2802
|
+
export interface IUserPasswordResetRequested {
|
|
2803
|
+
|
|
2804
|
+
/** UserPasswordResetRequested userId */
|
|
2805
|
+
userId?: (string|null);
|
|
2806
|
+
|
|
2807
|
+
/** UserPasswordResetRequested resetCode */
|
|
2808
|
+
resetCode?: (string|null);
|
|
2809
|
+
|
|
2810
|
+
/** UserPasswordResetRequested timestamp */
|
|
2811
|
+
timestamp?: (number|Long|null);
|
|
2812
|
+
}
|
|
2813
|
+
|
|
2814
|
+
/** Represents a UserPasswordResetRequested. */
|
|
2815
|
+
export class UserPasswordResetRequested implements IUserPasswordResetRequested {
|
|
2816
|
+
|
|
2817
|
+
/**
|
|
2818
|
+
* Constructs a new UserPasswordResetRequested.
|
|
2819
|
+
* @param [properties] Properties to set
|
|
2820
|
+
*/
|
|
2821
|
+
constructor(properties?: IUserPasswordResetRequested);
|
|
2822
|
+
|
|
2823
|
+
/** UserPasswordResetRequested userId. */
|
|
2824
|
+
public userId: string;
|
|
2825
|
+
|
|
2826
|
+
/** UserPasswordResetRequested resetCode. */
|
|
2827
|
+
public resetCode: string;
|
|
2828
|
+
|
|
2829
|
+
/** UserPasswordResetRequested timestamp. */
|
|
2830
|
+
public timestamp: (number|Long);
|
|
2831
|
+
|
|
2832
|
+
/**
|
|
2833
|
+
* Creates a new UserPasswordResetRequested instance using the specified properties.
|
|
2834
|
+
* @param [properties] Properties to set
|
|
2835
|
+
* @returns UserPasswordResetRequested instance
|
|
2836
|
+
*/
|
|
2837
|
+
public static create(properties?: IUserPasswordResetRequested): UserPasswordResetRequested;
|
|
2838
|
+
|
|
2839
|
+
/**
|
|
2840
|
+
* Encodes the specified UserPasswordResetRequested message. Does not implicitly {@link UserPasswordResetRequested.verify|verify} messages.
|
|
2841
|
+
* @param message UserPasswordResetRequested message or plain object to encode
|
|
2842
|
+
* @param [writer] Writer to encode to
|
|
2843
|
+
* @returns Writer
|
|
2844
|
+
*/
|
|
2845
|
+
public static encode(message: IUserPasswordResetRequested, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2846
|
+
|
|
2847
|
+
/**
|
|
2848
|
+
* Encodes the specified UserPasswordResetRequested message, length delimited. Does not implicitly {@link UserPasswordResetRequested.verify|verify} messages.
|
|
2849
|
+
* @param message UserPasswordResetRequested message or plain object to encode
|
|
2850
|
+
* @param [writer] Writer to encode to
|
|
2851
|
+
* @returns Writer
|
|
2852
|
+
*/
|
|
2853
|
+
public static encodeDelimited(message: IUserPasswordResetRequested, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2854
|
+
|
|
2855
|
+
/**
|
|
2856
|
+
* Decodes a UserPasswordResetRequested message from the specified reader or buffer.
|
|
2857
|
+
* @param reader Reader or buffer to decode from
|
|
2858
|
+
* @param [length] Message length if known beforehand
|
|
2859
|
+
* @returns UserPasswordResetRequested
|
|
2860
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2861
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2862
|
+
*/
|
|
2863
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserPasswordResetRequested;
|
|
2864
|
+
|
|
2865
|
+
/**
|
|
2866
|
+
* Decodes a UserPasswordResetRequested message from the specified reader or buffer, length delimited.
|
|
2867
|
+
* @param reader Reader or buffer to decode from
|
|
2868
|
+
* @returns UserPasswordResetRequested
|
|
2869
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2870
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2871
|
+
*/
|
|
2872
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserPasswordResetRequested;
|
|
2873
|
+
|
|
2874
|
+
/**
|
|
2875
|
+
* Verifies a UserPasswordResetRequested message.
|
|
2876
|
+
* @param message Plain object to verify
|
|
2877
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
2878
|
+
*/
|
|
2879
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
2880
|
+
|
|
2881
|
+
/**
|
|
2882
|
+
* Creates a UserPasswordResetRequested message from a plain object. Also converts values to their respective internal types.
|
|
2883
|
+
* @param object Plain object
|
|
2884
|
+
* @returns UserPasswordResetRequested
|
|
2885
|
+
*/
|
|
2886
|
+
public static fromObject(object: { [k: string]: any }): UserPasswordResetRequested;
|
|
2887
|
+
|
|
2888
|
+
/**
|
|
2889
|
+
* Creates a plain object from a UserPasswordResetRequested message. Also converts values to other types if specified.
|
|
2890
|
+
* @param message UserPasswordResetRequested
|
|
2891
|
+
* @param [options] Conversion options
|
|
2892
|
+
* @returns Plain object
|
|
2893
|
+
*/
|
|
2894
|
+
public static toObject(message: UserPasswordResetRequested, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
2895
|
+
|
|
2896
|
+
/**
|
|
2897
|
+
* Converts this UserPasswordResetRequested to JSON.
|
|
2898
|
+
* @returns JSON object
|
|
2899
|
+
*/
|
|
2900
|
+
public toJSON(): { [k: string]: any };
|
|
2901
|
+
}
|
|
2902
|
+
|
|
2795
2903
|
/** Properties of a UserPasswordUpdated. */
|
|
2796
2904
|
export interface IUserPasswordUpdated {
|
|
2797
2905
|
|
package/lib/index.js
CHANGED
|
@@ -5223,6 +5223,7 @@ $root.SubscriptionUpcomingRenewal = (function() {
|
|
|
5223
5223
|
* @property {number|null} [daysBefore] SubscriptionUpcomingRenewal daysBefore
|
|
5224
5224
|
* @property {subscription.SubscriptionMembership|null} [membership] SubscriptionUpcomingRenewal membership
|
|
5225
5225
|
* @property {subscription.PlanAffiliation|null} [planAffiliation] SubscriptionUpcomingRenewal planAffiliation
|
|
5226
|
+
* @property {number|null} [renewalDate] SubscriptionUpcomingRenewal renewalDate
|
|
5226
5227
|
*/
|
|
5227
5228
|
|
|
5228
5229
|
/**
|
|
@@ -5280,6 +5281,14 @@ $root.SubscriptionUpcomingRenewal = (function() {
|
|
|
5280
5281
|
*/
|
|
5281
5282
|
SubscriptionUpcomingRenewal.prototype.planAffiliation = 0;
|
|
5282
5283
|
|
|
5284
|
+
/**
|
|
5285
|
+
* SubscriptionUpcomingRenewal renewalDate.
|
|
5286
|
+
* @member {number} renewalDate
|
|
5287
|
+
* @memberof SubscriptionUpcomingRenewal
|
|
5288
|
+
* @instance
|
|
5289
|
+
*/
|
|
5290
|
+
SubscriptionUpcomingRenewal.prototype.renewalDate = 0;
|
|
5291
|
+
|
|
5283
5292
|
/**
|
|
5284
5293
|
* Creates a new SubscriptionUpcomingRenewal instance using the specified properties.
|
|
5285
5294
|
* @function create
|
|
@@ -5314,6 +5323,8 @@ $root.SubscriptionUpcomingRenewal = (function() {
|
|
|
5314
5323
|
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.membership);
|
|
5315
5324
|
if (message.planAffiliation != null && message.hasOwnProperty("planAffiliation"))
|
|
5316
5325
|
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.planAffiliation);
|
|
5326
|
+
if (message.renewalDate != null && message.hasOwnProperty("renewalDate"))
|
|
5327
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint32(message.renewalDate);
|
|
5317
5328
|
return writer;
|
|
5318
5329
|
};
|
|
5319
5330
|
|
|
@@ -5363,6 +5374,9 @@ $root.SubscriptionUpcomingRenewal = (function() {
|
|
|
5363
5374
|
case 5:
|
|
5364
5375
|
message.planAffiliation = reader.int32();
|
|
5365
5376
|
break;
|
|
5377
|
+
case 6:
|
|
5378
|
+
message.renewalDate = reader.uint32();
|
|
5379
|
+
break;
|
|
5366
5380
|
default:
|
|
5367
5381
|
reader.skipType(tag & 7);
|
|
5368
5382
|
break;
|
|
@@ -5424,6 +5438,9 @@ $root.SubscriptionUpcomingRenewal = (function() {
|
|
|
5424
5438
|
case 2:
|
|
5425
5439
|
break;
|
|
5426
5440
|
}
|
|
5441
|
+
if (message.renewalDate != null && message.hasOwnProperty("renewalDate"))
|
|
5442
|
+
if (!$util.isInteger(message.renewalDate))
|
|
5443
|
+
return "renewalDate: integer expected";
|
|
5427
5444
|
return null;
|
|
5428
5445
|
};
|
|
5429
5446
|
|
|
@@ -5469,6 +5486,8 @@ $root.SubscriptionUpcomingRenewal = (function() {
|
|
|
5469
5486
|
message.planAffiliation = 2;
|
|
5470
5487
|
break;
|
|
5471
5488
|
}
|
|
5489
|
+
if (object.renewalDate != null)
|
|
5490
|
+
message.renewalDate = object.renewalDate >>> 0;
|
|
5472
5491
|
return message;
|
|
5473
5492
|
};
|
|
5474
5493
|
|
|
@@ -5491,6 +5510,7 @@ $root.SubscriptionUpcomingRenewal = (function() {
|
|
|
5491
5510
|
object.daysBefore = 0;
|
|
5492
5511
|
object.membership = options.enums === String ? "PRIMARY" : 0;
|
|
5493
5512
|
object.planAffiliation = options.enums === String ? "STUDENT" : 0;
|
|
5513
|
+
object.renewalDate = 0;
|
|
5494
5514
|
}
|
|
5495
5515
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
5496
5516
|
object.id = message.id;
|
|
@@ -5502,6 +5522,8 @@ $root.SubscriptionUpcomingRenewal = (function() {
|
|
|
5502
5522
|
object.membership = options.enums === String ? $root.subscription.SubscriptionMembership[message.membership] : message.membership;
|
|
5503
5523
|
if (message.planAffiliation != null && message.hasOwnProperty("planAffiliation"))
|
|
5504
5524
|
object.planAffiliation = options.enums === String ? $root.subscription.PlanAffiliation[message.planAffiliation] : message.planAffiliation;
|
|
5525
|
+
if (message.renewalDate != null && message.hasOwnProperty("renewalDate"))
|
|
5526
|
+
object.renewalDate = message.renewalDate;
|
|
5505
5527
|
return object;
|
|
5506
5528
|
};
|
|
5507
5529
|
|
|
@@ -6762,6 +6784,252 @@ $root.UserEmailVerificationRequested = (function() {
|
|
|
6762
6784
|
return UserEmailVerificationRequested;
|
|
6763
6785
|
})();
|
|
6764
6786
|
|
|
6787
|
+
$root.UserPasswordResetRequested = (function() {
|
|
6788
|
+
|
|
6789
|
+
/**
|
|
6790
|
+
* Properties of a UserPasswordResetRequested.
|
|
6791
|
+
* @exports IUserPasswordResetRequested
|
|
6792
|
+
* @interface IUserPasswordResetRequested
|
|
6793
|
+
* @property {string|null} [userId] UserPasswordResetRequested userId
|
|
6794
|
+
* @property {string|null} [resetCode] UserPasswordResetRequested resetCode
|
|
6795
|
+
* @property {number|Long|null} [timestamp] UserPasswordResetRequested timestamp
|
|
6796
|
+
*/
|
|
6797
|
+
|
|
6798
|
+
/**
|
|
6799
|
+
* Constructs a new UserPasswordResetRequested.
|
|
6800
|
+
* @exports UserPasswordResetRequested
|
|
6801
|
+
* @classdesc Represents a UserPasswordResetRequested.
|
|
6802
|
+
* @implements IUserPasswordResetRequested
|
|
6803
|
+
* @constructor
|
|
6804
|
+
* @param {IUserPasswordResetRequested=} [properties] Properties to set
|
|
6805
|
+
*/
|
|
6806
|
+
function UserPasswordResetRequested(properties) {
|
|
6807
|
+
if (properties)
|
|
6808
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
6809
|
+
if (properties[keys[i]] != null)
|
|
6810
|
+
this[keys[i]] = properties[keys[i]];
|
|
6811
|
+
}
|
|
6812
|
+
|
|
6813
|
+
/**
|
|
6814
|
+
* UserPasswordResetRequested userId.
|
|
6815
|
+
* @member {string} userId
|
|
6816
|
+
* @memberof UserPasswordResetRequested
|
|
6817
|
+
* @instance
|
|
6818
|
+
*/
|
|
6819
|
+
UserPasswordResetRequested.prototype.userId = "";
|
|
6820
|
+
|
|
6821
|
+
/**
|
|
6822
|
+
* UserPasswordResetRequested resetCode.
|
|
6823
|
+
* @member {string} resetCode
|
|
6824
|
+
* @memberof UserPasswordResetRequested
|
|
6825
|
+
* @instance
|
|
6826
|
+
*/
|
|
6827
|
+
UserPasswordResetRequested.prototype.resetCode = "";
|
|
6828
|
+
|
|
6829
|
+
/**
|
|
6830
|
+
* UserPasswordResetRequested timestamp.
|
|
6831
|
+
* @member {number|Long} timestamp
|
|
6832
|
+
* @memberof UserPasswordResetRequested
|
|
6833
|
+
* @instance
|
|
6834
|
+
*/
|
|
6835
|
+
UserPasswordResetRequested.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
6836
|
+
|
|
6837
|
+
/**
|
|
6838
|
+
* Creates a new UserPasswordResetRequested instance using the specified properties.
|
|
6839
|
+
* @function create
|
|
6840
|
+
* @memberof UserPasswordResetRequested
|
|
6841
|
+
* @static
|
|
6842
|
+
* @param {IUserPasswordResetRequested=} [properties] Properties to set
|
|
6843
|
+
* @returns {UserPasswordResetRequested} UserPasswordResetRequested instance
|
|
6844
|
+
*/
|
|
6845
|
+
UserPasswordResetRequested.create = function create(properties) {
|
|
6846
|
+
return new UserPasswordResetRequested(properties);
|
|
6847
|
+
};
|
|
6848
|
+
|
|
6849
|
+
/**
|
|
6850
|
+
* Encodes the specified UserPasswordResetRequested message. Does not implicitly {@link UserPasswordResetRequested.verify|verify} messages.
|
|
6851
|
+
* @function encode
|
|
6852
|
+
* @memberof UserPasswordResetRequested
|
|
6853
|
+
* @static
|
|
6854
|
+
* @param {IUserPasswordResetRequested} message UserPasswordResetRequested message or plain object to encode
|
|
6855
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
6856
|
+
* @returns {$protobuf.Writer} Writer
|
|
6857
|
+
*/
|
|
6858
|
+
UserPasswordResetRequested.encode = function encode(message, writer) {
|
|
6859
|
+
if (!writer)
|
|
6860
|
+
writer = $Writer.create();
|
|
6861
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
6862
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
|
|
6863
|
+
if (message.resetCode != null && message.hasOwnProperty("resetCode"))
|
|
6864
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.resetCode);
|
|
6865
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
6866
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
|
|
6867
|
+
return writer;
|
|
6868
|
+
};
|
|
6869
|
+
|
|
6870
|
+
/**
|
|
6871
|
+
* Encodes the specified UserPasswordResetRequested message, length delimited. Does not implicitly {@link UserPasswordResetRequested.verify|verify} messages.
|
|
6872
|
+
* @function encodeDelimited
|
|
6873
|
+
* @memberof UserPasswordResetRequested
|
|
6874
|
+
* @static
|
|
6875
|
+
* @param {IUserPasswordResetRequested} message UserPasswordResetRequested message or plain object to encode
|
|
6876
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
6877
|
+
* @returns {$protobuf.Writer} Writer
|
|
6878
|
+
*/
|
|
6879
|
+
UserPasswordResetRequested.encodeDelimited = function encodeDelimited(message, writer) {
|
|
6880
|
+
return this.encode(message, writer).ldelim();
|
|
6881
|
+
};
|
|
6882
|
+
|
|
6883
|
+
/**
|
|
6884
|
+
* Decodes a UserPasswordResetRequested message from the specified reader or buffer.
|
|
6885
|
+
* @function decode
|
|
6886
|
+
* @memberof UserPasswordResetRequested
|
|
6887
|
+
* @static
|
|
6888
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
6889
|
+
* @param {number} [length] Message length if known beforehand
|
|
6890
|
+
* @returns {UserPasswordResetRequested} UserPasswordResetRequested
|
|
6891
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6892
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6893
|
+
*/
|
|
6894
|
+
UserPasswordResetRequested.decode = function decode(reader, length) {
|
|
6895
|
+
if (!(reader instanceof $Reader))
|
|
6896
|
+
reader = $Reader.create(reader);
|
|
6897
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserPasswordResetRequested();
|
|
6898
|
+
while (reader.pos < end) {
|
|
6899
|
+
var tag = reader.uint32();
|
|
6900
|
+
switch (tag >>> 3) {
|
|
6901
|
+
case 1:
|
|
6902
|
+
message.userId = reader.string();
|
|
6903
|
+
break;
|
|
6904
|
+
case 2:
|
|
6905
|
+
message.resetCode = reader.string();
|
|
6906
|
+
break;
|
|
6907
|
+
case 3:
|
|
6908
|
+
message.timestamp = reader.uint64();
|
|
6909
|
+
break;
|
|
6910
|
+
default:
|
|
6911
|
+
reader.skipType(tag & 7);
|
|
6912
|
+
break;
|
|
6913
|
+
}
|
|
6914
|
+
}
|
|
6915
|
+
return message;
|
|
6916
|
+
};
|
|
6917
|
+
|
|
6918
|
+
/**
|
|
6919
|
+
* Decodes a UserPasswordResetRequested message from the specified reader or buffer, length delimited.
|
|
6920
|
+
* @function decodeDelimited
|
|
6921
|
+
* @memberof UserPasswordResetRequested
|
|
6922
|
+
* @static
|
|
6923
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
6924
|
+
* @returns {UserPasswordResetRequested} UserPasswordResetRequested
|
|
6925
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6926
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6927
|
+
*/
|
|
6928
|
+
UserPasswordResetRequested.decodeDelimited = function decodeDelimited(reader) {
|
|
6929
|
+
if (!(reader instanceof $Reader))
|
|
6930
|
+
reader = new $Reader(reader);
|
|
6931
|
+
return this.decode(reader, reader.uint32());
|
|
6932
|
+
};
|
|
6933
|
+
|
|
6934
|
+
/**
|
|
6935
|
+
* Verifies a UserPasswordResetRequested message.
|
|
6936
|
+
* @function verify
|
|
6937
|
+
* @memberof UserPasswordResetRequested
|
|
6938
|
+
* @static
|
|
6939
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
6940
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
6941
|
+
*/
|
|
6942
|
+
UserPasswordResetRequested.verify = function verify(message) {
|
|
6943
|
+
if (typeof message !== "object" || message === null)
|
|
6944
|
+
return "object expected";
|
|
6945
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
6946
|
+
if (!$util.isString(message.userId))
|
|
6947
|
+
return "userId: string expected";
|
|
6948
|
+
if (message.resetCode != null && message.hasOwnProperty("resetCode"))
|
|
6949
|
+
if (!$util.isString(message.resetCode))
|
|
6950
|
+
return "resetCode: string expected";
|
|
6951
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
6952
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
6953
|
+
return "timestamp: integer|Long expected";
|
|
6954
|
+
return null;
|
|
6955
|
+
};
|
|
6956
|
+
|
|
6957
|
+
/**
|
|
6958
|
+
* Creates a UserPasswordResetRequested message from a plain object. Also converts values to their respective internal types.
|
|
6959
|
+
* @function fromObject
|
|
6960
|
+
* @memberof UserPasswordResetRequested
|
|
6961
|
+
* @static
|
|
6962
|
+
* @param {Object.<string,*>} object Plain object
|
|
6963
|
+
* @returns {UserPasswordResetRequested} UserPasswordResetRequested
|
|
6964
|
+
*/
|
|
6965
|
+
UserPasswordResetRequested.fromObject = function fromObject(object) {
|
|
6966
|
+
if (object instanceof $root.UserPasswordResetRequested)
|
|
6967
|
+
return object;
|
|
6968
|
+
var message = new $root.UserPasswordResetRequested();
|
|
6969
|
+
if (object.userId != null)
|
|
6970
|
+
message.userId = String(object.userId);
|
|
6971
|
+
if (object.resetCode != null)
|
|
6972
|
+
message.resetCode = String(object.resetCode);
|
|
6973
|
+
if (object.timestamp != null)
|
|
6974
|
+
if ($util.Long)
|
|
6975
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
6976
|
+
else if (typeof object.timestamp === "string")
|
|
6977
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
6978
|
+
else if (typeof object.timestamp === "number")
|
|
6979
|
+
message.timestamp = object.timestamp;
|
|
6980
|
+
else if (typeof object.timestamp === "object")
|
|
6981
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
6982
|
+
return message;
|
|
6983
|
+
};
|
|
6984
|
+
|
|
6985
|
+
/**
|
|
6986
|
+
* Creates a plain object from a UserPasswordResetRequested message. Also converts values to other types if specified.
|
|
6987
|
+
* @function toObject
|
|
6988
|
+
* @memberof UserPasswordResetRequested
|
|
6989
|
+
* @static
|
|
6990
|
+
* @param {UserPasswordResetRequested} message UserPasswordResetRequested
|
|
6991
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
6992
|
+
* @returns {Object.<string,*>} Plain object
|
|
6993
|
+
*/
|
|
6994
|
+
UserPasswordResetRequested.toObject = function toObject(message, options) {
|
|
6995
|
+
if (!options)
|
|
6996
|
+
options = {};
|
|
6997
|
+
var object = {};
|
|
6998
|
+
if (options.defaults) {
|
|
6999
|
+
object.userId = "";
|
|
7000
|
+
object.resetCode = "";
|
|
7001
|
+
if ($util.Long) {
|
|
7002
|
+
var long = new $util.Long(0, 0, true);
|
|
7003
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
7004
|
+
} else
|
|
7005
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
7006
|
+
}
|
|
7007
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
7008
|
+
object.userId = message.userId;
|
|
7009
|
+
if (message.resetCode != null && message.hasOwnProperty("resetCode"))
|
|
7010
|
+
object.resetCode = message.resetCode;
|
|
7011
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
7012
|
+
if (typeof message.timestamp === "number")
|
|
7013
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
7014
|
+
else
|
|
7015
|
+
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;
|
|
7016
|
+
return object;
|
|
7017
|
+
};
|
|
7018
|
+
|
|
7019
|
+
/**
|
|
7020
|
+
* Converts this UserPasswordResetRequested to JSON.
|
|
7021
|
+
* @function toJSON
|
|
7022
|
+
* @memberof UserPasswordResetRequested
|
|
7023
|
+
* @instance
|
|
7024
|
+
* @returns {Object.<string,*>} JSON object
|
|
7025
|
+
*/
|
|
7026
|
+
UserPasswordResetRequested.prototype.toJSON = function toJSON() {
|
|
7027
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
7028
|
+
};
|
|
7029
|
+
|
|
7030
|
+
return UserPasswordResetRequested;
|
|
7031
|
+
})();
|
|
7032
|
+
|
|
6765
7033
|
$root.UserPasswordUpdated = (function() {
|
|
6766
7034
|
|
|
6767
7035
|
/**
|
package/package.json
CHANGED