@headspace/protos-events 1.18.0 → 1.19.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 +2 -2
- package/lib/index.js +24 -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.
|
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
|
|
package/package.json
CHANGED