@headspace/protos-events 1.18.0 → 1.20.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 +8 -2
- package/lib/index.js +46 -10
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -2187,7 +2187,7 @@ export interface ISubscriptionUpcomingRenewal {
|
|
|
2187
2187
|
planAffiliation?: (subscription.PlanAffiliation|null);
|
|
2188
2188
|
|
|
2189
2189
|
/** SubscriptionUpcomingRenewal renewalDate */
|
|
2190
|
-
renewalDate?: (number|null);
|
|
2190
|
+
renewalDate?: (number|Long|null);
|
|
2191
2191
|
}
|
|
2192
2192
|
|
|
2193
2193
|
/** Represents a SubscriptionUpcomingRenewal. */
|
|
@@ -2215,7 +2215,7 @@ export class SubscriptionUpcomingRenewal implements ISubscriptionUpcomingRenewal
|
|
|
2215
2215
|
public planAffiliation: subscription.PlanAffiliation;
|
|
2216
2216
|
|
|
2217
2217
|
/** SubscriptionUpcomingRenewal renewalDate. */
|
|
2218
|
-
public renewalDate: number;
|
|
2218
|
+
public renewalDate: (number|Long);
|
|
2219
2219
|
|
|
2220
2220
|
/**
|
|
2221
2221
|
* Creates a new SubscriptionUpcomingRenewal instance using the specified properties.
|
|
@@ -2809,6 +2809,9 @@ export interface IUserPasswordResetRequested {
|
|
|
2809
2809
|
|
|
2810
2810
|
/** UserPasswordResetRequested timestamp */
|
|
2811
2811
|
timestamp?: (number|Long|null);
|
|
2812
|
+
|
|
2813
|
+
/** UserPasswordResetRequested email */
|
|
2814
|
+
email?: (string|null);
|
|
2812
2815
|
}
|
|
2813
2816
|
|
|
2814
2817
|
/** Represents a UserPasswordResetRequested. */
|
|
@@ -2829,6 +2832,9 @@ export class UserPasswordResetRequested implements IUserPasswordResetRequested {
|
|
|
2829
2832
|
/** UserPasswordResetRequested timestamp. */
|
|
2830
2833
|
public timestamp: (number|Long);
|
|
2831
2834
|
|
|
2835
|
+
/** UserPasswordResetRequested email. */
|
|
2836
|
+
public email: string;
|
|
2837
|
+
|
|
2832
2838
|
/**
|
|
2833
2839
|
* Creates a new UserPasswordResetRequested instance using the specified properties.
|
|
2834
2840
|
* @param [properties] Properties to set
|
package/lib/index.js
CHANGED
|
@@ -5223,7 +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
|
+
* @property {number|Long|null} [renewalDate] SubscriptionUpcomingRenewal renewalDate
|
|
5227
5227
|
*/
|
|
5228
5228
|
|
|
5229
5229
|
/**
|
|
@@ -5283,11 +5283,11 @@ $root.SubscriptionUpcomingRenewal = (function() {
|
|
|
5283
5283
|
|
|
5284
5284
|
/**
|
|
5285
5285
|
* SubscriptionUpcomingRenewal renewalDate.
|
|
5286
|
-
* @member {number} renewalDate
|
|
5286
|
+
* @member {number|Long} renewalDate
|
|
5287
5287
|
* @memberof SubscriptionUpcomingRenewal
|
|
5288
5288
|
* @instance
|
|
5289
5289
|
*/
|
|
5290
|
-
SubscriptionUpcomingRenewal.prototype.renewalDate = 0;
|
|
5290
|
+
SubscriptionUpcomingRenewal.prototype.renewalDate = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
5291
5291
|
|
|
5292
5292
|
/**
|
|
5293
5293
|
* Creates a new SubscriptionUpcomingRenewal instance using the specified properties.
|
|
@@ -5324,7 +5324,7 @@ $root.SubscriptionUpcomingRenewal = (function() {
|
|
|
5324
5324
|
if (message.planAffiliation != null && message.hasOwnProperty("planAffiliation"))
|
|
5325
5325
|
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.planAffiliation);
|
|
5326
5326
|
if (message.renewalDate != null && message.hasOwnProperty("renewalDate"))
|
|
5327
|
-
writer.uint32(/* id 6, wireType 0 =*/48).
|
|
5327
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.renewalDate);
|
|
5328
5328
|
return writer;
|
|
5329
5329
|
};
|
|
5330
5330
|
|
|
@@ -5375,7 +5375,7 @@ $root.SubscriptionUpcomingRenewal = (function() {
|
|
|
5375
5375
|
message.planAffiliation = reader.int32();
|
|
5376
5376
|
break;
|
|
5377
5377
|
case 6:
|
|
5378
|
-
message.renewalDate = reader.
|
|
5378
|
+
message.renewalDate = reader.uint64();
|
|
5379
5379
|
break;
|
|
5380
5380
|
default:
|
|
5381
5381
|
reader.skipType(tag & 7);
|
|
@@ -5439,8 +5439,8 @@ $root.SubscriptionUpcomingRenewal = (function() {
|
|
|
5439
5439
|
break;
|
|
5440
5440
|
}
|
|
5441
5441
|
if (message.renewalDate != null && message.hasOwnProperty("renewalDate"))
|
|
5442
|
-
if (!$util.isInteger(message.renewalDate))
|
|
5443
|
-
return "renewalDate: integer expected";
|
|
5442
|
+
if (!$util.isInteger(message.renewalDate) && !(message.renewalDate && $util.isInteger(message.renewalDate.low) && $util.isInteger(message.renewalDate.high)))
|
|
5443
|
+
return "renewalDate: integer|Long expected";
|
|
5444
5444
|
return null;
|
|
5445
5445
|
};
|
|
5446
5446
|
|
|
@@ -5487,7 +5487,14 @@ $root.SubscriptionUpcomingRenewal = (function() {
|
|
|
5487
5487
|
break;
|
|
5488
5488
|
}
|
|
5489
5489
|
if (object.renewalDate != null)
|
|
5490
|
-
|
|
5490
|
+
if ($util.Long)
|
|
5491
|
+
(message.renewalDate = $util.Long.fromValue(object.renewalDate)).unsigned = true;
|
|
5492
|
+
else if (typeof object.renewalDate === "string")
|
|
5493
|
+
message.renewalDate = parseInt(object.renewalDate, 10);
|
|
5494
|
+
else if (typeof object.renewalDate === "number")
|
|
5495
|
+
message.renewalDate = object.renewalDate;
|
|
5496
|
+
else if (typeof object.renewalDate === "object")
|
|
5497
|
+
message.renewalDate = new $util.LongBits(object.renewalDate.low >>> 0, object.renewalDate.high >>> 0).toNumber(true);
|
|
5491
5498
|
return message;
|
|
5492
5499
|
};
|
|
5493
5500
|
|
|
@@ -5510,7 +5517,11 @@ $root.SubscriptionUpcomingRenewal = (function() {
|
|
|
5510
5517
|
object.daysBefore = 0;
|
|
5511
5518
|
object.membership = options.enums === String ? "PRIMARY" : 0;
|
|
5512
5519
|
object.planAffiliation = options.enums === String ? "STUDENT" : 0;
|
|
5513
|
-
|
|
5520
|
+
if ($util.Long) {
|
|
5521
|
+
var long = new $util.Long(0, 0, true);
|
|
5522
|
+
object.renewalDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
5523
|
+
} else
|
|
5524
|
+
object.renewalDate = options.longs === String ? "0" : 0;
|
|
5514
5525
|
}
|
|
5515
5526
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
5516
5527
|
object.id = message.id;
|
|
@@ -5523,7 +5534,10 @@ $root.SubscriptionUpcomingRenewal = (function() {
|
|
|
5523
5534
|
if (message.planAffiliation != null && message.hasOwnProperty("planAffiliation"))
|
|
5524
5535
|
object.planAffiliation = options.enums === String ? $root.subscription.PlanAffiliation[message.planAffiliation] : message.planAffiliation;
|
|
5525
5536
|
if (message.renewalDate != null && message.hasOwnProperty("renewalDate"))
|
|
5526
|
-
|
|
5537
|
+
if (typeof message.renewalDate === "number")
|
|
5538
|
+
object.renewalDate = options.longs === String ? String(message.renewalDate) : message.renewalDate;
|
|
5539
|
+
else
|
|
5540
|
+
object.renewalDate = options.longs === String ? $util.Long.prototype.toString.call(message.renewalDate) : options.longs === Number ? new $util.LongBits(message.renewalDate.low >>> 0, message.renewalDate.high >>> 0).toNumber(true) : message.renewalDate;
|
|
5527
5541
|
return object;
|
|
5528
5542
|
};
|
|
5529
5543
|
|
|
@@ -6793,6 +6807,7 @@ $root.UserPasswordResetRequested = (function() {
|
|
|
6793
6807
|
* @property {string|null} [userId] UserPasswordResetRequested userId
|
|
6794
6808
|
* @property {string|null} [resetCode] UserPasswordResetRequested resetCode
|
|
6795
6809
|
* @property {number|Long|null} [timestamp] UserPasswordResetRequested timestamp
|
|
6810
|
+
* @property {string|null} [email] UserPasswordResetRequested email
|
|
6796
6811
|
*/
|
|
6797
6812
|
|
|
6798
6813
|
/**
|
|
@@ -6834,6 +6849,14 @@ $root.UserPasswordResetRequested = (function() {
|
|
|
6834
6849
|
*/
|
|
6835
6850
|
UserPasswordResetRequested.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
6836
6851
|
|
|
6852
|
+
/**
|
|
6853
|
+
* UserPasswordResetRequested email.
|
|
6854
|
+
* @member {string} email
|
|
6855
|
+
* @memberof UserPasswordResetRequested
|
|
6856
|
+
* @instance
|
|
6857
|
+
*/
|
|
6858
|
+
UserPasswordResetRequested.prototype.email = "";
|
|
6859
|
+
|
|
6837
6860
|
/**
|
|
6838
6861
|
* Creates a new UserPasswordResetRequested instance using the specified properties.
|
|
6839
6862
|
* @function create
|
|
@@ -6864,6 +6887,8 @@ $root.UserPasswordResetRequested = (function() {
|
|
|
6864
6887
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.resetCode);
|
|
6865
6888
|
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
6866
6889
|
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
|
|
6890
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
6891
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.email);
|
|
6867
6892
|
return writer;
|
|
6868
6893
|
};
|
|
6869
6894
|
|
|
@@ -6907,6 +6932,9 @@ $root.UserPasswordResetRequested = (function() {
|
|
|
6907
6932
|
case 3:
|
|
6908
6933
|
message.timestamp = reader.uint64();
|
|
6909
6934
|
break;
|
|
6935
|
+
case 4:
|
|
6936
|
+
message.email = reader.string();
|
|
6937
|
+
break;
|
|
6910
6938
|
default:
|
|
6911
6939
|
reader.skipType(tag & 7);
|
|
6912
6940
|
break;
|
|
@@ -6951,6 +6979,9 @@ $root.UserPasswordResetRequested = (function() {
|
|
|
6951
6979
|
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
6952
6980
|
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
6953
6981
|
return "timestamp: integer|Long expected";
|
|
6982
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
6983
|
+
if (!$util.isString(message.email))
|
|
6984
|
+
return "email: string expected";
|
|
6954
6985
|
return null;
|
|
6955
6986
|
};
|
|
6956
6987
|
|
|
@@ -6979,6 +7010,8 @@ $root.UserPasswordResetRequested = (function() {
|
|
|
6979
7010
|
message.timestamp = object.timestamp;
|
|
6980
7011
|
else if (typeof object.timestamp === "object")
|
|
6981
7012
|
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
7013
|
+
if (object.email != null)
|
|
7014
|
+
message.email = String(object.email);
|
|
6982
7015
|
return message;
|
|
6983
7016
|
};
|
|
6984
7017
|
|
|
@@ -7003,6 +7036,7 @@ $root.UserPasswordResetRequested = (function() {
|
|
|
7003
7036
|
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
7004
7037
|
} else
|
|
7005
7038
|
object.timestamp = options.longs === String ? "0" : 0;
|
|
7039
|
+
object.email = "";
|
|
7006
7040
|
}
|
|
7007
7041
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
7008
7042
|
object.userId = message.userId;
|
|
@@ -7013,6 +7047,8 @@ $root.UserPasswordResetRequested = (function() {
|
|
|
7013
7047
|
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
7014
7048
|
else
|
|
7015
7049
|
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;
|
|
7050
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
7051
|
+
object.email = message.email;
|
|
7016
7052
|
return object;
|
|
7017
7053
|
};
|
|
7018
7054
|
|
package/package.json
CHANGED