@headspace/protos-events 1.97.0 → 1.99.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
@@ -3794,7 +3794,10 @@ export enum ContentType {
3794
3794
  CONTENT_TYPE_PODCAST = 10,
3795
3795
  CONTENT_TYPE_EDHS = 11,
3796
3796
  CONTENT_TYPE_GROUP_MEDITATION = 12,
3797
- CONTENT_TYPE_INTERVIEW = 13
3797
+ CONTENT_TYPE_INTERVIEW = 13,
3798
+ CONTENT_TYPE_TECHNIQUE = 14,
3799
+ CONTENT_TYPE_COURSE_ACTIVITY = 15,
3800
+ CONTENT_TYPE_INTEGRATED_AUDIO = 16
3798
3801
  }
3799
3802
 
3800
3803
  /** Mode enum. */
@@ -8372,6 +8375,9 @@ export interface ISubscriptionCancelled {
8372
8375
 
8373
8376
  /** SubscriptionCancelled labels */
8374
8377
  labels?: (subscription.SubscriptionLabels[]|null);
8378
+
8379
+ /** SubscriptionCancelled renewalCount */
8380
+ renewalCount?: (number|Long|null);
8375
8381
  }
8376
8382
 
8377
8383
  /** Represents a SubscriptionCancelled. */
@@ -8425,6 +8431,9 @@ export class SubscriptionCancelled implements ISubscriptionCancelled {
8425
8431
  /** SubscriptionCancelled labels. */
8426
8432
  public labels: subscription.SubscriptionLabels[];
8427
8433
 
8434
+ /** SubscriptionCancelled renewalCount. */
8435
+ public renewalCount: (number|Long);
8436
+
8428
8437
  /**
8429
8438
  * Creates a new SubscriptionCancelled instance using the specified properties.
8430
8439
  * @param [properties] Properties to set
package/lib/index.js CHANGED
@@ -9068,6 +9068,9 @@ $root.ContentPlayed = (function() {
9068
9068
  case 11:
9069
9069
  case 12:
9070
9070
  case 13:
9071
+ case 14:
9072
+ case 15:
9073
+ case 16:
9071
9074
  break;
9072
9075
  }
9073
9076
  if (message.mode != null && message.hasOwnProperty("mode"))
@@ -9172,6 +9175,18 @@ $root.ContentPlayed = (function() {
9172
9175
  case 13:
9173
9176
  message.contentType = 13;
9174
9177
  break;
9178
+ case "CONTENT_TYPE_TECHNIQUE":
9179
+ case 14:
9180
+ message.contentType = 14;
9181
+ break;
9182
+ case "CONTENT_TYPE_COURSE_ACTIVITY":
9183
+ case 15:
9184
+ message.contentType = 15;
9185
+ break;
9186
+ case "CONTENT_TYPE_INTEGRATED_AUDIO":
9187
+ case 16:
9188
+ message.contentType = 16;
9189
+ break;
9175
9190
  }
9176
9191
  switch (object.mode) {
9177
9192
  case "MODE_UNRECOGNIZED":
@@ -9513,6 +9528,9 @@ $root.ContentPlayedBatch = (function() {
9513
9528
  * @property {number} CONTENT_TYPE_EDHS=11 CONTENT_TYPE_EDHS value
9514
9529
  * @property {number} CONTENT_TYPE_GROUP_MEDITATION=12 CONTENT_TYPE_GROUP_MEDITATION value
9515
9530
  * @property {number} CONTENT_TYPE_INTERVIEW=13 CONTENT_TYPE_INTERVIEW value
9531
+ * @property {number} CONTENT_TYPE_TECHNIQUE=14 CONTENT_TYPE_TECHNIQUE value
9532
+ * @property {number} CONTENT_TYPE_COURSE_ACTIVITY=15 CONTENT_TYPE_COURSE_ACTIVITY value
9533
+ * @property {number} CONTENT_TYPE_INTEGRATED_AUDIO=16 CONTENT_TYPE_INTEGRATED_AUDIO value
9516
9534
  */
9517
9535
  $root.ContentType = (function() {
9518
9536
  var valuesById = {}, values = Object.create(valuesById);
@@ -9530,6 +9548,9 @@ $root.ContentType = (function() {
9530
9548
  values[valuesById[11] = "CONTENT_TYPE_EDHS"] = 11;
9531
9549
  values[valuesById[12] = "CONTENT_TYPE_GROUP_MEDITATION"] = 12;
9532
9550
  values[valuesById[13] = "CONTENT_TYPE_INTERVIEW"] = 13;
9551
+ values[valuesById[14] = "CONTENT_TYPE_TECHNIQUE"] = 14;
9552
+ values[valuesById[15] = "CONTENT_TYPE_COURSE_ACTIVITY"] = 15;
9553
+ values[valuesById[16] = "CONTENT_TYPE_INTEGRATED_AUDIO"] = 16;
9533
9554
  return values;
9534
9555
  })();
9535
9556
 
@@ -21019,6 +21040,7 @@ $root.SubscriptionCancelled = (function() {
21019
21040
  * @property {subscription.CancellationType|null} [cancellationType] SubscriptionCancelled cancellationType
21020
21041
  * @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionCancelled subscriptionState
21021
21042
  * @property {Array.<subscription.SubscriptionLabels>|null} [labels] SubscriptionCancelled labels
21043
+ * @property {number|Long|null} [renewalCount] SubscriptionCancelled renewalCount
21022
21044
  */
21023
21045
 
21024
21046
  /**
@@ -21149,6 +21171,14 @@ $root.SubscriptionCancelled = (function() {
21149
21171
  */
21150
21172
  SubscriptionCancelled.prototype.labels = $util.emptyArray;
21151
21173
 
21174
+ /**
21175
+ * SubscriptionCancelled renewalCount.
21176
+ * @member {number|Long} renewalCount
21177
+ * @memberof SubscriptionCancelled
21178
+ * @instance
21179
+ */
21180
+ SubscriptionCancelled.prototype.renewalCount = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
21181
+
21152
21182
  /**
21153
21183
  * Creates a new SubscriptionCancelled instance using the specified properties.
21154
21184
  * @function create
@@ -21205,6 +21235,8 @@ $root.SubscriptionCancelled = (function() {
21205
21235
  writer.int32(message.labels[i]);
21206
21236
  writer.ldelim();
21207
21237
  }
21238
+ if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
21239
+ writer.uint32(/* id 15, wireType 0 =*/120).uint64(message.renewalCount);
21208
21240
  return writer;
21209
21241
  };
21210
21242
 
@@ -21288,6 +21320,9 @@ $root.SubscriptionCancelled = (function() {
21288
21320
  } else
21289
21321
  message.labels.push(reader.int32());
21290
21322
  break;
21323
+ case 15:
21324
+ message.renewalCount = reader.uint64();
21325
+ break;
21291
21326
  default:
21292
21327
  reader.skipType(tag & 7);
21293
21328
  break;
@@ -21408,6 +21443,9 @@ $root.SubscriptionCancelled = (function() {
21408
21443
  break;
21409
21444
  }
21410
21445
  }
21446
+ if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
21447
+ if (!$util.isInteger(message.renewalCount) && !(message.renewalCount && $util.isInteger(message.renewalCount.low) && $util.isInteger(message.renewalCount.high)))
21448
+ return "renewalCount: integer|Long expected";
21411
21449
  return null;
21412
21450
  };
21413
21451
 
@@ -21572,6 +21610,15 @@ $root.SubscriptionCancelled = (function() {
21572
21610
  break;
21573
21611
  }
21574
21612
  }
21613
+ if (object.renewalCount != null)
21614
+ if ($util.Long)
21615
+ (message.renewalCount = $util.Long.fromValue(object.renewalCount)).unsigned = true;
21616
+ else if (typeof object.renewalCount === "string")
21617
+ message.renewalCount = parseInt(object.renewalCount, 10);
21618
+ else if (typeof object.renewalCount === "number")
21619
+ message.renewalCount = object.renewalCount;
21620
+ else if (typeof object.renewalCount === "object")
21621
+ message.renewalCount = new $util.LongBits(object.renewalCount.low >>> 0, object.renewalCount.high >>> 0).toNumber(true);
21575
21622
  return message;
21576
21623
  };
21577
21624
 
@@ -21620,6 +21667,11 @@ $root.SubscriptionCancelled = (function() {
21620
21667
  object.plan = null;
21621
21668
  object.cancellationType = options.enums === String ? "CT_UNKNOWN" : 0;
21622
21669
  object.subscriptionState = options.enums === String ? "SUBSTATE_UNKNOWN" : 0;
21670
+ if ($util.Long) {
21671
+ var long = new $util.Long(0, 0, true);
21672
+ object.renewalCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
21673
+ } else
21674
+ object.renewalCount = options.longs === String ? "0" : 0;
21623
21675
  }
21624
21676
  if (message.id != null && message.hasOwnProperty("id"))
21625
21677
  object.id = message.id;
@@ -21664,6 +21716,11 @@ $root.SubscriptionCancelled = (function() {
21664
21716
  for (var j = 0; j < message.labels.length; ++j)
21665
21717
  object.labels[j] = options.enums === String ? $root.subscription.SubscriptionLabels[message.labels[j]] : message.labels[j];
21666
21718
  }
21719
+ if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
21720
+ if (typeof message.renewalCount === "number")
21721
+ object.renewalCount = options.longs === String ? String(message.renewalCount) : message.renewalCount;
21722
+ else
21723
+ object.renewalCount = options.longs === String ? $util.Long.prototype.toString.call(message.renewalCount) : options.longs === Number ? new $util.LongBits(message.renewalCount.low >>> 0, message.renewalCount.high >>> 0).toNumber(true) : message.renewalCount;
21667
21724
  return object;
21668
21725
  };
21669
21726
 
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.97.0"
19
+ "version": "1.99.0"
20
20
  }