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

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
@@ -42744,6 +42744,9 @@ export interface ISubscriptionCreated {
42744
42744
  /** SubscriptionCreated endsAt */
42745
42745
  endsAt?: (number|Long|null);
42746
42746
 
42747
+ /** SubscriptionCreated previousEndsAt */
42748
+ previousEndsAt?: (number|Long|null);
42749
+
42747
42750
  /** SubscriptionCreated voucherCode */
42748
42751
  voucherCode?: (string|null);
42749
42752
 
@@ -42805,6 +42808,9 @@ export class SubscriptionCreated implements ISubscriptionCreated {
42805
42808
  /** SubscriptionCreated endsAt. */
42806
42809
  public endsAt: (number|Long);
42807
42810
 
42811
+ /** SubscriptionCreated previousEndsAt. */
42812
+ public previousEndsAt: (number|Long);
42813
+
42808
42814
  /** SubscriptionCreated voucherCode. */
42809
42815
  public voucherCode: string;
42810
42816
 
@@ -44397,6 +44403,9 @@ export interface ISubscriptionAmended {
44397
44403
  /** SubscriptionAmended endsAt */
44398
44404
  endsAt?: (number|Long|null);
44399
44405
 
44406
+ /** SubscriptionAmended previousEndsAt */
44407
+ previousEndsAt?: (number|Long|null);
44408
+
44400
44409
  /** SubscriptionAmended voucherCode */
44401
44410
  voucherCode?: (string|null);
44402
44411
 
@@ -44458,6 +44467,9 @@ export class SubscriptionAmended implements ISubscriptionAmended {
44458
44467
  /** SubscriptionAmended endsAt. */
44459
44468
  public endsAt: (number|Long);
44460
44469
 
44470
+ /** SubscriptionAmended previousEndsAt. */
44471
+ public previousEndsAt: (number|Long);
44472
+
44461
44473
  /** SubscriptionAmended voucherCode. */
44462
44474
  public voucherCode: string;
44463
44475
 
package/lib/index.js CHANGED
@@ -119749,6 +119749,7 @@ $root.SubscriptionCreated = (function() {
119749
119749
  * @property {number|Long|null} [createdAt] SubscriptionCreated createdAt
119750
119750
  * @property {number|Long|null} [startsAt] SubscriptionCreated startsAt
119751
119751
  * @property {number|Long|null} [endsAt] SubscriptionCreated endsAt
119752
+ * @property {number|Long|null} [previousEndsAt] SubscriptionCreated previousEndsAt
119752
119753
  * @property {string|null} [voucherCode] SubscriptionCreated voucherCode
119753
119754
  * @property {subscription.SubscriptionPlatform|null} [platform] SubscriptionCreated platform
119754
119755
  * @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionCreated autoRenewalStatus
@@ -119827,6 +119828,14 @@ $root.SubscriptionCreated = (function() {
119827
119828
  */
119828
119829
  SubscriptionCreated.prototype.endsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
119829
119830
 
119831
+ /**
119832
+ * SubscriptionCreated previousEndsAt.
119833
+ * @member {number|Long} previousEndsAt
119834
+ * @memberof SubscriptionCreated
119835
+ * @instance
119836
+ */
119837
+ SubscriptionCreated.prototype.previousEndsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
119838
+
119830
119839
  /**
119831
119840
  * SubscriptionCreated voucherCode.
119832
119841
  * @member {string} voucherCode
@@ -119978,6 +119987,8 @@ $root.SubscriptionCreated = (function() {
119978
119987
  $root.subscription.SubscriptionProductSku.encode(message.productSku, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
119979
119988
  if (message.orgId != null && message.hasOwnProperty("orgId"))
119980
119989
  writer.uint32(/* id 17, wireType 0 =*/136).int32(message.orgId);
119990
+ if (message.previousEndsAt != null && message.hasOwnProperty("previousEndsAt"))
119991
+ writer.uint32(/* id 18, wireType 0 =*/144).uint64(message.previousEndsAt);
119981
119992
  return writer;
119982
119993
  };
119983
119994
 
@@ -120030,6 +120041,9 @@ $root.SubscriptionCreated = (function() {
120030
120041
  case 6:
120031
120042
  message.endsAt = reader.uint64();
120032
120043
  break;
120044
+ case 18:
120045
+ message.previousEndsAt = reader.uint64();
120046
+ break;
120033
120047
  case 7:
120034
120048
  message.voucherCode = reader.string();
120035
120049
  break;
@@ -120125,6 +120139,9 @@ $root.SubscriptionCreated = (function() {
120125
120139
  if (message.endsAt != null && message.hasOwnProperty("endsAt"))
120126
120140
  if (!$util.isInteger(message.endsAt) && !(message.endsAt && $util.isInteger(message.endsAt.low) && $util.isInteger(message.endsAt.high)))
120127
120141
  return "endsAt: integer|Long expected";
120142
+ if (message.previousEndsAt != null && message.hasOwnProperty("previousEndsAt"))
120143
+ if (!$util.isInteger(message.previousEndsAt) && !(message.previousEndsAt && $util.isInteger(message.previousEndsAt.low) && $util.isInteger(message.previousEndsAt.high)))
120144
+ return "previousEndsAt: integer|Long expected";
120128
120145
  if (message.voucherCode != null && message.hasOwnProperty("voucherCode"))
120129
120146
  if (!$util.isString(message.voucherCode))
120130
120147
  return "voucherCode: string expected";
@@ -120262,6 +120279,15 @@ $root.SubscriptionCreated = (function() {
120262
120279
  message.endsAt = object.endsAt;
120263
120280
  else if (typeof object.endsAt === "object")
120264
120281
  message.endsAt = new $util.LongBits(object.endsAt.low >>> 0, object.endsAt.high >>> 0).toNumber(true);
120282
+ if (object.previousEndsAt != null)
120283
+ if ($util.Long)
120284
+ (message.previousEndsAt = $util.Long.fromValue(object.previousEndsAt)).unsigned = true;
120285
+ else if (typeof object.previousEndsAt === "string")
120286
+ message.previousEndsAt = parseInt(object.previousEndsAt, 10);
120287
+ else if (typeof object.previousEndsAt === "number")
120288
+ message.previousEndsAt = object.previousEndsAt;
120289
+ else if (typeof object.previousEndsAt === "object")
120290
+ message.previousEndsAt = new $util.LongBits(object.previousEndsAt.low >>> 0, object.previousEndsAt.high >>> 0).toNumber(true);
120265
120291
  if (object.voucherCode != null)
120266
120292
  message.voucherCode = String(object.voucherCode);
120267
120293
  switch (object.platform) {
@@ -120437,6 +120463,11 @@ $root.SubscriptionCreated = (function() {
120437
120463
  object.membership = options.enums === String ? "PRIMARY" : 0;
120438
120464
  object.productSku = null;
120439
120465
  object.orgId = 0;
120466
+ if ($util.Long) {
120467
+ var long = new $util.Long(0, 0, true);
120468
+ object.previousEndsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
120469
+ } else
120470
+ object.previousEndsAt = options.longs === String ? "0" : 0;
120440
120471
  }
120441
120472
  if (message.id != null && message.hasOwnProperty("id"))
120442
120473
  object.id = message.id;
@@ -120490,6 +120521,11 @@ $root.SubscriptionCreated = (function() {
120490
120521
  object.productSku = $root.subscription.SubscriptionProductSku.toObject(message.productSku, options);
120491
120522
  if (message.orgId != null && message.hasOwnProperty("orgId"))
120492
120523
  object.orgId = message.orgId;
120524
+ if (message.previousEndsAt != null && message.hasOwnProperty("previousEndsAt"))
120525
+ if (typeof message.previousEndsAt === "number")
120526
+ object.previousEndsAt = options.longs === String ? String(message.previousEndsAt) : message.previousEndsAt;
120527
+ else
120528
+ 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
120529
  return object;
120494
120530
  };
120495
120531
 
@@ -126241,6 +126277,7 @@ $root.SubscriptionAmended = (function() {
126241
126277
  * @property {number|Long|null} [createdAt] SubscriptionAmended createdAt
126242
126278
  * @property {number|Long|null} [startsAt] SubscriptionAmended startsAt
126243
126279
  * @property {number|Long|null} [endsAt] SubscriptionAmended endsAt
126280
+ * @property {number|Long|null} [previousEndsAt] SubscriptionAmended previousEndsAt
126244
126281
  * @property {string|null} [voucherCode] SubscriptionAmended voucherCode
126245
126282
  * @property {subscription.SubscriptionPlatform|null} [platform] SubscriptionAmended platform
126246
126283
  * @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionAmended autoRenewalStatus
@@ -126312,6 +126349,14 @@ $root.SubscriptionAmended = (function() {
126312
126349
  */
126313
126350
  SubscriptionAmended.prototype.endsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
126314
126351
 
126352
+ /**
126353
+ * SubscriptionAmended previousEndsAt.
126354
+ * @member {number|Long} previousEndsAt
126355
+ * @memberof SubscriptionAmended
126356
+ * @instance
126357
+ */
126358
+ SubscriptionAmended.prototype.previousEndsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
126359
+
126315
126360
  /**
126316
126361
  * SubscriptionAmended voucherCode.
126317
126362
  * @member {string} voucherCode
@@ -126471,6 +126516,8 @@ $root.SubscriptionAmended = (function() {
126471
126516
  $root.subscription.SubscriptionProductSku.encode(message.productSku, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
126472
126517
  if (message.orgId != null && message.hasOwnProperty("orgId"))
126473
126518
  writer.uint32(/* id 18, wireType 0 =*/144).int32(message.orgId);
126519
+ if (message.previousEndsAt != null && message.hasOwnProperty("previousEndsAt"))
126520
+ writer.uint32(/* id 19, wireType 0 =*/152).uint64(message.previousEndsAt);
126474
126521
  return writer;
126475
126522
  };
126476
126523
 
@@ -126520,6 +126567,9 @@ $root.SubscriptionAmended = (function() {
126520
126567
  case 6:
126521
126568
  message.endsAt = reader.uint64();
126522
126569
  break;
126570
+ case 19:
126571
+ message.previousEndsAt = reader.uint64();
126572
+ break;
126523
126573
  case 7:
126524
126574
  message.voucherCode = reader.string();
126525
126575
  break;
@@ -126615,6 +126665,9 @@ $root.SubscriptionAmended = (function() {
126615
126665
  if (message.endsAt != null && message.hasOwnProperty("endsAt"))
126616
126666
  if (!$util.isInteger(message.endsAt) && !(message.endsAt && $util.isInteger(message.endsAt.low) && $util.isInteger(message.endsAt.high)))
126617
126667
  return "endsAt: integer|Long expected";
126668
+ if (message.previousEndsAt != null && message.hasOwnProperty("previousEndsAt"))
126669
+ if (!$util.isInteger(message.previousEndsAt) && !(message.previousEndsAt && $util.isInteger(message.previousEndsAt.low) && $util.isInteger(message.previousEndsAt.high)))
126670
+ return "previousEndsAt: integer|Long expected";
126618
126671
  if (message.voucherCode != null && message.hasOwnProperty("voucherCode"))
126619
126672
  if (!$util.isString(message.voucherCode))
126620
126673
  return "voucherCode: string expected";
@@ -126753,6 +126806,15 @@ $root.SubscriptionAmended = (function() {
126753
126806
  message.endsAt = object.endsAt;
126754
126807
  else if (typeof object.endsAt === "object")
126755
126808
  message.endsAt = new $util.LongBits(object.endsAt.low >>> 0, object.endsAt.high >>> 0).toNumber(true);
126809
+ if (object.previousEndsAt != null)
126810
+ if ($util.Long)
126811
+ (message.previousEndsAt = $util.Long.fromValue(object.previousEndsAt)).unsigned = true;
126812
+ else if (typeof object.previousEndsAt === "string")
126813
+ message.previousEndsAt = parseInt(object.previousEndsAt, 10);
126814
+ else if (typeof object.previousEndsAt === "number")
126815
+ message.previousEndsAt = object.previousEndsAt;
126816
+ else if (typeof object.previousEndsAt === "object")
126817
+ message.previousEndsAt = new $util.LongBits(object.previousEndsAt.low >>> 0, object.previousEndsAt.high >>> 0).toNumber(true);
126756
126818
  if (object.voucherCode != null)
126757
126819
  message.voucherCode = String(object.voucherCode);
126758
126820
  switch (object.platform) {
@@ -126941,6 +127003,11 @@ $root.SubscriptionAmended = (function() {
126941
127003
  object.membership = options.enums === String ? "PRIMARY" : 0;
126942
127004
  object.productSku = null;
126943
127005
  object.orgId = 0;
127006
+ if ($util.Long) {
127007
+ var long = new $util.Long(0, 0, true);
127008
+ object.previousEndsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
127009
+ } else
127010
+ object.previousEndsAt = options.longs === String ? "0" : 0;
126944
127011
  }
126945
127012
  if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
126946
127013
  if (typeof message.updatedOn === "number")
@@ -126997,6 +127064,11 @@ $root.SubscriptionAmended = (function() {
126997
127064
  object.productSku = $root.subscription.SubscriptionProductSku.toObject(message.productSku, options);
126998
127065
  if (message.orgId != null && message.hasOwnProperty("orgId"))
126999
127066
  object.orgId = message.orgId;
127067
+ if (message.previousEndsAt != null && message.hasOwnProperty("previousEndsAt"))
127068
+ if (typeof message.previousEndsAt === "number")
127069
+ object.previousEndsAt = options.longs === String ? String(message.previousEndsAt) : message.previousEndsAt;
127070
+ else
127071
+ 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
127072
  return object;
127001
127073
  };
127002
127074
 
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.1"
20
20
  }