@headspace/protos-events 1.17.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 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|Long|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|Long);
2219
+
2214
2220
  /**
2215
2221
  * Creates a new SubscriptionUpcomingRenewal instance using the specified properties.
2216
2222
  * @param [properties] Properties to set
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|Long|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|Long} renewalDate
5287
+ * @memberof SubscriptionUpcomingRenewal
5288
+ * @instance
5289
+ */
5290
+ SubscriptionUpcomingRenewal.prototype.renewalDate = $util.Long ? $util.Long.fromBits(0,0,true) : 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).uint64(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.uint64();
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) && !(message.renewalDate && $util.isInteger(message.renewalDate.low) && $util.isInteger(message.renewalDate.high)))
5443
+ return "renewalDate: integer|Long expected";
5427
5444
  return null;
5428
5445
  };
5429
5446
 
@@ -5469,6 +5486,15 @@ $root.SubscriptionUpcomingRenewal = (function() {
5469
5486
  message.planAffiliation = 2;
5470
5487
  break;
5471
5488
  }
5489
+ if (object.renewalDate != null)
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);
5472
5498
  return message;
5473
5499
  };
5474
5500
 
@@ -5491,6 +5517,11 @@ $root.SubscriptionUpcomingRenewal = (function() {
5491
5517
  object.daysBefore = 0;
5492
5518
  object.membership = options.enums === String ? "PRIMARY" : 0;
5493
5519
  object.planAffiliation = options.enums === String ? "STUDENT" : 0;
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;
5494
5525
  }
5495
5526
  if (message.id != null && message.hasOwnProperty("id"))
5496
5527
  object.id = message.id;
@@ -5502,6 +5533,11 @@ $root.SubscriptionUpcomingRenewal = (function() {
5502
5533
  object.membership = options.enums === String ? $root.subscription.SubscriptionMembership[message.membership] : message.membership;
5503
5534
  if (message.planAffiliation != null && message.hasOwnProperty("planAffiliation"))
5504
5535
  object.planAffiliation = options.enums === String ? $root.subscription.PlanAffiliation[message.planAffiliation] : message.planAffiliation;
5536
+ if (message.renewalDate != null && message.hasOwnProperty("renewalDate"))
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;
5505
5541
  return object;
5506
5542
  };
5507
5543
 
package/package.json CHANGED
@@ -16,5 +16,5 @@
16
16
  "main": "lib/index.js",
17
17
  "name": "@headspace/protos-events",
18
18
  "typings": "lib/index.d.ts",
19
- "version": "1.17.0"
19
+ "version": "1.19.0"
20
20
  }