@headspace/protos-events 1.470.1-rc.0 → 1.470.1-rc.2

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
@@ -34657,6 +34657,9 @@ export interface IEnterpriseUserEnrollmentCreated {
34657
34657
  /** EnterpriseUserEnrollmentCreated endsAt */
34658
34658
  endsAt?: (number|Long|null);
34659
34659
 
34660
+ /** EnterpriseUserEnrollmentCreated previousEndsAt */
34661
+ previousEndsAt?: (number|Long|null);
34662
+
34660
34663
  /** EnterpriseUserEnrollmentCreated timestamp */
34661
34664
  timestamp?: (number|Long|null);
34662
34665
 
@@ -34748,6 +34751,9 @@ export class EnterpriseUserEnrollmentCreated implements IEnterpriseUserEnrollmen
34748
34751
  /** EnterpriseUserEnrollmentCreated endsAt. */
34749
34752
  public endsAt: (number|Long);
34750
34753
 
34754
+ /** EnterpriseUserEnrollmentCreated previousEndsAt. */
34755
+ public previousEndsAt: (number|Long);
34756
+
34751
34757
  /** EnterpriseUserEnrollmentCreated timestamp. */
34752
34758
  public timestamp: (number|Long);
34753
34759
 
@@ -42744,6 +42750,9 @@ export interface ISubscriptionCreated {
42744
42750
  /** SubscriptionCreated endsAt */
42745
42751
  endsAt?: (number|Long|null);
42746
42752
 
42753
+ /** SubscriptionCreated previousEndsAt */
42754
+ previousEndsAt?: (number|Long|null);
42755
+
42747
42756
  /** SubscriptionCreated voucherCode */
42748
42757
  voucherCode?: (string|null);
42749
42758
 
@@ -42805,6 +42814,9 @@ export class SubscriptionCreated implements ISubscriptionCreated {
42805
42814
  /** SubscriptionCreated endsAt. */
42806
42815
  public endsAt: (number|Long);
42807
42816
 
42817
+ /** SubscriptionCreated previousEndsAt. */
42818
+ public previousEndsAt: (number|Long);
42819
+
42808
42820
  /** SubscriptionCreated voucherCode. */
42809
42821
  public voucherCode: string;
42810
42822
 
@@ -44397,6 +44409,9 @@ export interface ISubscriptionAmended {
44397
44409
  /** SubscriptionAmended endsAt */
44398
44410
  endsAt?: (number|Long|null);
44399
44411
 
44412
+ /** SubscriptionAmended previousEndsAt */
44413
+ previousEndsAt?: (number|Long|null);
44414
+
44400
44415
  /** SubscriptionAmended voucherCode */
44401
44416
  voucherCode?: (string|null);
44402
44417
 
@@ -44458,6 +44473,9 @@ export class SubscriptionAmended implements ISubscriptionAmended {
44458
44473
  /** SubscriptionAmended endsAt. */
44459
44474
  public endsAt: (number|Long);
44460
44475
 
44476
+ /** SubscriptionAmended previousEndsAt. */
44477
+ public previousEndsAt: (number|Long);
44478
+
44461
44479
  /** SubscriptionAmended voucherCode. */
44462
44480
  public voucherCode: string;
44463
44481
 
package/lib/index.js CHANGED
@@ -96297,6 +96297,7 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
96297
96297
  * @property {b2b.OrgType|null} [orgType] EnterpriseUserEnrollmentCreated orgType
96298
96298
  * @property {number|Long|null} [startsAt] EnterpriseUserEnrollmentCreated startsAt
96299
96299
  * @property {number|Long|null} [endsAt] EnterpriseUserEnrollmentCreated endsAt
96300
+ * @property {number|Long|null} [previousEndsAt] EnterpriseUserEnrollmentCreated previousEndsAt
96300
96301
  * @property {number|Long|null} [timestamp] EnterpriseUserEnrollmentCreated timestamp
96301
96302
  * @property {boolean|null} [isPartialPay] EnterpriseUserEnrollmentCreated isPartialPay
96302
96303
  * @property {b2b.OrgMemberPlan|null} [plan] EnterpriseUserEnrollmentCreated plan
@@ -96383,6 +96384,14 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
96383
96384
  */
96384
96385
  EnterpriseUserEnrollmentCreated.prototype.endsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
96385
96386
 
96387
+ /**
96388
+ * EnterpriseUserEnrollmentCreated previousEndsAt.
96389
+ * @member {number|Long} previousEndsAt
96390
+ * @memberof EnterpriseUserEnrollmentCreated
96391
+ * @instance
96392
+ */
96393
+ EnterpriseUserEnrollmentCreated.prototype.previousEndsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
96394
+
96386
96395
  /**
96387
96396
  * EnterpriseUserEnrollmentCreated timestamp.
96388
96397
  * @member {number|Long} timestamp
@@ -96629,6 +96638,8 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
96629
96638
  writer.uint32(/* id 30, wireType 2 =*/242).string(message.ssoType);
96630
96639
  if (message.enrollmentFlow != null && message.hasOwnProperty("enrollmentFlow"))
96631
96640
  writer.uint32(/* id 31, wireType 0 =*/248).int32(message.enrollmentFlow);
96641
+ if (message.previousEndsAt != null && message.hasOwnProperty("previousEndsAt"))
96642
+ writer.uint32(/* id 32, wireType 0 =*/256).uint64(message.previousEndsAt);
96632
96643
  return writer;
96633
96644
  };
96634
96645
 
@@ -96681,6 +96692,9 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
96681
96692
  case 6:
96682
96693
  message.endsAt = reader.uint64();
96683
96694
  break;
96695
+ case 32:
96696
+ message.previousEndsAt = reader.uint64();
96697
+ break;
96684
96698
  case 7:
96685
96699
  message.timestamp = reader.uint64();
96686
96700
  break;
@@ -96807,6 +96821,9 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
96807
96821
  if (message.endsAt != null && message.hasOwnProperty("endsAt"))
96808
96822
  if (!$util.isInteger(message.endsAt) && !(message.endsAt && $util.isInteger(message.endsAt.low) && $util.isInteger(message.endsAt.high)))
96809
96823
  return "endsAt: integer|Long expected";
96824
+ if (message.previousEndsAt != null && message.hasOwnProperty("previousEndsAt"))
96825
+ if (!$util.isInteger(message.previousEndsAt) && !(message.previousEndsAt && $util.isInteger(message.previousEndsAt.low) && $util.isInteger(message.previousEndsAt.high)))
96826
+ return "previousEndsAt: integer|Long expected";
96810
96827
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
96811
96828
  if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
96812
96829
  return "timestamp: integer|Long expected";
@@ -96958,6 +96975,15 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
96958
96975
  message.endsAt = object.endsAt;
96959
96976
  else if (typeof object.endsAt === "object")
96960
96977
  message.endsAt = new $util.LongBits(object.endsAt.low >>> 0, object.endsAt.high >>> 0).toNumber(true);
96978
+ if (object.previousEndsAt != null)
96979
+ if ($util.Long)
96980
+ (message.previousEndsAt = $util.Long.fromValue(object.previousEndsAt)).unsigned = true;
96981
+ else if (typeof object.previousEndsAt === "string")
96982
+ message.previousEndsAt = parseInt(object.previousEndsAt, 10);
96983
+ else if (typeof object.previousEndsAt === "number")
96984
+ message.previousEndsAt = object.previousEndsAt;
96985
+ else if (typeof object.previousEndsAt === "object")
96986
+ message.previousEndsAt = new $util.LongBits(object.previousEndsAt.low >>> 0, object.previousEndsAt.high >>> 0).toNumber(true);
96961
96987
  if (object.timestamp != null)
96962
96988
  if ($util.Long)
96963
96989
  (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
@@ -97125,6 +97151,11 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
97125
97151
  object.gingerBundlingEnabled = false;
97126
97152
  object.ssoType = "";
97127
97153
  object.enrollmentFlow = options.enums === String ? "ENROLLMENT_FLOW_UNKNOWN" : 0;
97154
+ if ($util.Long) {
97155
+ var long = new $util.Long(0, 0, true);
97156
+ object.previousEndsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
97157
+ } else
97158
+ object.previousEndsAt = options.longs === String ? "0" : 0;
97128
97159
  }
97129
97160
  if (message.userId != null && message.hasOwnProperty("userId"))
97130
97161
  object.userId = message.userId;
@@ -97195,6 +97226,11 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
97195
97226
  object.ssoType = message.ssoType;
97196
97227
  if (message.enrollmentFlow != null && message.hasOwnProperty("enrollmentFlow"))
97197
97228
  object.enrollmentFlow = options.enums === String ? $root.EnrollmentFlow[message.enrollmentFlow] : message.enrollmentFlow;
97229
+ if (message.previousEndsAt != null && message.hasOwnProperty("previousEndsAt"))
97230
+ if (typeof message.previousEndsAt === "number")
97231
+ object.previousEndsAt = options.longs === String ? String(message.previousEndsAt) : message.previousEndsAt;
97232
+ else
97233
+ object.previousEndsAt = options.longs === String ? $util.Long.prototype.toString.call(message.previousEndsAt) : options.longs === Number ? new $util.LongBits(message.previousEndsAt.low >>> 0, message.previousEndsAt.high >>> 0).toNumber(true) : message.previousEndsAt;
97198
97234
  return object;
97199
97235
  };
97200
97236
 
@@ -119749,6 +119785,7 @@ $root.SubscriptionCreated = (function() {
119749
119785
  * @property {number|Long|null} [createdAt] SubscriptionCreated createdAt
119750
119786
  * @property {number|Long|null} [startsAt] SubscriptionCreated startsAt
119751
119787
  * @property {number|Long|null} [endsAt] SubscriptionCreated endsAt
119788
+ * @property {number|Long|null} [previousEndsAt] SubscriptionCreated previousEndsAt
119752
119789
  * @property {string|null} [voucherCode] SubscriptionCreated voucherCode
119753
119790
  * @property {subscription.SubscriptionPlatform|null} [platform] SubscriptionCreated platform
119754
119791
  * @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionCreated autoRenewalStatus
@@ -119827,6 +119864,14 @@ $root.SubscriptionCreated = (function() {
119827
119864
  */
119828
119865
  SubscriptionCreated.prototype.endsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
119829
119866
 
119867
+ /**
119868
+ * SubscriptionCreated previousEndsAt.
119869
+ * @member {number|Long} previousEndsAt
119870
+ * @memberof SubscriptionCreated
119871
+ * @instance
119872
+ */
119873
+ SubscriptionCreated.prototype.previousEndsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
119874
+
119830
119875
  /**
119831
119876
  * SubscriptionCreated voucherCode.
119832
119877
  * @member {string} voucherCode
@@ -119978,6 +120023,8 @@ $root.SubscriptionCreated = (function() {
119978
120023
  $root.subscription.SubscriptionProductSku.encode(message.productSku, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
119979
120024
  if (message.orgId != null && message.hasOwnProperty("orgId"))
119980
120025
  writer.uint32(/* id 17, wireType 0 =*/136).int32(message.orgId);
120026
+ if (message.previousEndsAt != null && message.hasOwnProperty("previousEndsAt"))
120027
+ writer.uint32(/* id 18, wireType 0 =*/144).uint64(message.previousEndsAt);
119981
120028
  return writer;
119982
120029
  };
119983
120030
 
@@ -120030,6 +120077,9 @@ $root.SubscriptionCreated = (function() {
120030
120077
  case 6:
120031
120078
  message.endsAt = reader.uint64();
120032
120079
  break;
120080
+ case 18:
120081
+ message.previousEndsAt = reader.uint64();
120082
+ break;
120033
120083
  case 7:
120034
120084
  message.voucherCode = reader.string();
120035
120085
  break;
@@ -120125,6 +120175,9 @@ $root.SubscriptionCreated = (function() {
120125
120175
  if (message.endsAt != null && message.hasOwnProperty("endsAt"))
120126
120176
  if (!$util.isInteger(message.endsAt) && !(message.endsAt && $util.isInteger(message.endsAt.low) && $util.isInteger(message.endsAt.high)))
120127
120177
  return "endsAt: integer|Long expected";
120178
+ if (message.previousEndsAt != null && message.hasOwnProperty("previousEndsAt"))
120179
+ if (!$util.isInteger(message.previousEndsAt) && !(message.previousEndsAt && $util.isInteger(message.previousEndsAt.low) && $util.isInteger(message.previousEndsAt.high)))
120180
+ return "previousEndsAt: integer|Long expected";
120128
120181
  if (message.voucherCode != null && message.hasOwnProperty("voucherCode"))
120129
120182
  if (!$util.isString(message.voucherCode))
120130
120183
  return "voucherCode: string expected";
@@ -120262,6 +120315,15 @@ $root.SubscriptionCreated = (function() {
120262
120315
  message.endsAt = object.endsAt;
120263
120316
  else if (typeof object.endsAt === "object")
120264
120317
  message.endsAt = new $util.LongBits(object.endsAt.low >>> 0, object.endsAt.high >>> 0).toNumber(true);
120318
+ if (object.previousEndsAt != null)
120319
+ if ($util.Long)
120320
+ (message.previousEndsAt = $util.Long.fromValue(object.previousEndsAt)).unsigned = true;
120321
+ else if (typeof object.previousEndsAt === "string")
120322
+ message.previousEndsAt = parseInt(object.previousEndsAt, 10);
120323
+ else if (typeof object.previousEndsAt === "number")
120324
+ message.previousEndsAt = object.previousEndsAt;
120325
+ else if (typeof object.previousEndsAt === "object")
120326
+ message.previousEndsAt = new $util.LongBits(object.previousEndsAt.low >>> 0, object.previousEndsAt.high >>> 0).toNumber(true);
120265
120327
  if (object.voucherCode != null)
120266
120328
  message.voucherCode = String(object.voucherCode);
120267
120329
  switch (object.platform) {
@@ -120437,6 +120499,11 @@ $root.SubscriptionCreated = (function() {
120437
120499
  object.membership = options.enums === String ? "PRIMARY" : 0;
120438
120500
  object.productSku = null;
120439
120501
  object.orgId = 0;
120502
+ if ($util.Long) {
120503
+ var long = new $util.Long(0, 0, true);
120504
+ object.previousEndsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
120505
+ } else
120506
+ object.previousEndsAt = options.longs === String ? "0" : 0;
120440
120507
  }
120441
120508
  if (message.id != null && message.hasOwnProperty("id"))
120442
120509
  object.id = message.id;
@@ -120490,6 +120557,11 @@ $root.SubscriptionCreated = (function() {
120490
120557
  object.productSku = $root.subscription.SubscriptionProductSku.toObject(message.productSku, options);
120491
120558
  if (message.orgId != null && message.hasOwnProperty("orgId"))
120492
120559
  object.orgId = message.orgId;
120560
+ if (message.previousEndsAt != null && message.hasOwnProperty("previousEndsAt"))
120561
+ if (typeof message.previousEndsAt === "number")
120562
+ object.previousEndsAt = options.longs === String ? String(message.previousEndsAt) : message.previousEndsAt;
120563
+ else
120564
+ object.previousEndsAt = options.longs === String ? $util.Long.prototype.toString.call(message.previousEndsAt) : options.longs === Number ? new $util.LongBits(message.previousEndsAt.low >>> 0, message.previousEndsAt.high >>> 0).toNumber(true) : message.previousEndsAt;
120493
120565
  return object;
120494
120566
  };
120495
120567
 
@@ -126241,6 +126313,7 @@ $root.SubscriptionAmended = (function() {
126241
126313
  * @property {number|Long|null} [createdAt] SubscriptionAmended createdAt
126242
126314
  * @property {number|Long|null} [startsAt] SubscriptionAmended startsAt
126243
126315
  * @property {number|Long|null} [endsAt] SubscriptionAmended endsAt
126316
+ * @property {number|Long|null} [previousEndsAt] SubscriptionAmended previousEndsAt
126244
126317
  * @property {string|null} [voucherCode] SubscriptionAmended voucherCode
126245
126318
  * @property {subscription.SubscriptionPlatform|null} [platform] SubscriptionAmended platform
126246
126319
  * @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionAmended autoRenewalStatus
@@ -126312,6 +126385,14 @@ $root.SubscriptionAmended = (function() {
126312
126385
  */
126313
126386
  SubscriptionAmended.prototype.endsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
126314
126387
 
126388
+ /**
126389
+ * SubscriptionAmended previousEndsAt.
126390
+ * @member {number|Long} previousEndsAt
126391
+ * @memberof SubscriptionAmended
126392
+ * @instance
126393
+ */
126394
+ SubscriptionAmended.prototype.previousEndsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
126395
+
126315
126396
  /**
126316
126397
  * SubscriptionAmended voucherCode.
126317
126398
  * @member {string} voucherCode
@@ -126471,6 +126552,8 @@ $root.SubscriptionAmended = (function() {
126471
126552
  $root.subscription.SubscriptionProductSku.encode(message.productSku, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
126472
126553
  if (message.orgId != null && message.hasOwnProperty("orgId"))
126473
126554
  writer.uint32(/* id 18, wireType 0 =*/144).int32(message.orgId);
126555
+ if (message.previousEndsAt != null && message.hasOwnProperty("previousEndsAt"))
126556
+ writer.uint32(/* id 19, wireType 0 =*/152).uint64(message.previousEndsAt);
126474
126557
  return writer;
126475
126558
  };
126476
126559
 
@@ -126520,6 +126603,9 @@ $root.SubscriptionAmended = (function() {
126520
126603
  case 6:
126521
126604
  message.endsAt = reader.uint64();
126522
126605
  break;
126606
+ case 19:
126607
+ message.previousEndsAt = reader.uint64();
126608
+ break;
126523
126609
  case 7:
126524
126610
  message.voucherCode = reader.string();
126525
126611
  break;
@@ -126615,6 +126701,9 @@ $root.SubscriptionAmended = (function() {
126615
126701
  if (message.endsAt != null && message.hasOwnProperty("endsAt"))
126616
126702
  if (!$util.isInteger(message.endsAt) && !(message.endsAt && $util.isInteger(message.endsAt.low) && $util.isInteger(message.endsAt.high)))
126617
126703
  return "endsAt: integer|Long expected";
126704
+ if (message.previousEndsAt != null && message.hasOwnProperty("previousEndsAt"))
126705
+ if (!$util.isInteger(message.previousEndsAt) && !(message.previousEndsAt && $util.isInteger(message.previousEndsAt.low) && $util.isInteger(message.previousEndsAt.high)))
126706
+ return "previousEndsAt: integer|Long expected";
126618
126707
  if (message.voucherCode != null && message.hasOwnProperty("voucherCode"))
126619
126708
  if (!$util.isString(message.voucherCode))
126620
126709
  return "voucherCode: string expected";
@@ -126753,6 +126842,15 @@ $root.SubscriptionAmended = (function() {
126753
126842
  message.endsAt = object.endsAt;
126754
126843
  else if (typeof object.endsAt === "object")
126755
126844
  message.endsAt = new $util.LongBits(object.endsAt.low >>> 0, object.endsAt.high >>> 0).toNumber(true);
126845
+ if (object.previousEndsAt != null)
126846
+ if ($util.Long)
126847
+ (message.previousEndsAt = $util.Long.fromValue(object.previousEndsAt)).unsigned = true;
126848
+ else if (typeof object.previousEndsAt === "string")
126849
+ message.previousEndsAt = parseInt(object.previousEndsAt, 10);
126850
+ else if (typeof object.previousEndsAt === "number")
126851
+ message.previousEndsAt = object.previousEndsAt;
126852
+ else if (typeof object.previousEndsAt === "object")
126853
+ message.previousEndsAt = new $util.LongBits(object.previousEndsAt.low >>> 0, object.previousEndsAt.high >>> 0).toNumber(true);
126756
126854
  if (object.voucherCode != null)
126757
126855
  message.voucherCode = String(object.voucherCode);
126758
126856
  switch (object.platform) {
@@ -126941,6 +127039,11 @@ $root.SubscriptionAmended = (function() {
126941
127039
  object.membership = options.enums === String ? "PRIMARY" : 0;
126942
127040
  object.productSku = null;
126943
127041
  object.orgId = 0;
127042
+ if ($util.Long) {
127043
+ var long = new $util.Long(0, 0, true);
127044
+ object.previousEndsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
127045
+ } else
127046
+ object.previousEndsAt = options.longs === String ? "0" : 0;
126944
127047
  }
126945
127048
  if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
126946
127049
  if (typeof message.updatedOn === "number")
@@ -126997,6 +127100,11 @@ $root.SubscriptionAmended = (function() {
126997
127100
  object.productSku = $root.subscription.SubscriptionProductSku.toObject(message.productSku, options);
126998
127101
  if (message.orgId != null && message.hasOwnProperty("orgId"))
126999
127102
  object.orgId = message.orgId;
127103
+ if (message.previousEndsAt != null && message.hasOwnProperty("previousEndsAt"))
127104
+ if (typeof message.previousEndsAt === "number")
127105
+ object.previousEndsAt = options.longs === String ? String(message.previousEndsAt) : message.previousEndsAt;
127106
+ else
127107
+ object.previousEndsAt = options.longs === String ? $util.Long.prototype.toString.call(message.previousEndsAt) : options.longs === Number ? new $util.LongBits(message.previousEndsAt.low >>> 0, message.previousEndsAt.high >>> 0).toNumber(true) : message.previousEndsAt;
127000
127108
  return object;
127001
127109
  };
127002
127110
 
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.470.1-rc.0"
19
+ "version": "1.470.1-rc.2"
20
20
  }