@headspace/protos-events 1.91.0 → 1.93.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
@@ -1205,7 +1205,8 @@ export namespace subscription {
1205
1205
  SUBMEMTYPE_UNKNOWN = 0,
1206
1206
  SUBMEMTYPE_NONE = 1,
1207
1207
  SUBMEMTYPE_B2B = 2,
1208
- SUBMEMTYPE_B2C = 3
1208
+ SUBMEMTYPE_B2C = 3,
1209
+ SUBMEMTYPE_HEALTH_PARTNERSHIP = 4
1209
1210
  }
1210
1211
  }
1211
1212
 
@@ -9022,6 +9023,9 @@ export interface ISubscriptionGraced {
9022
9023
 
9023
9024
  /** SubscriptionGraced labels */
9024
9025
  labels?: (subscription.SubscriptionLabels[]|null);
9026
+
9027
+ /** SubscriptionGraced renewalCount */
9028
+ renewalCount?: (number|Long|null);
9025
9029
  }
9026
9030
 
9027
9031
  /** Represents a SubscriptionGraced. */
@@ -9069,6 +9073,9 @@ export class SubscriptionGraced implements ISubscriptionGraced {
9069
9073
  /** SubscriptionGraced labels. */
9070
9074
  public labels: subscription.SubscriptionLabels[];
9071
9075
 
9076
+ /** SubscriptionGraced renewalCount. */
9077
+ public renewalCount: (number|Long);
9078
+
9072
9079
  /**
9073
9080
  * Creates a new SubscriptionGraced instance using the specified properties.
9074
9081
  * @param [properties] Properties to set
@@ -9175,6 +9182,9 @@ export interface ISubscriptionStarted {
9175
9182
 
9176
9183
  /** SubscriptionStarted labels */
9177
9184
  labels?: (subscription.SubscriptionLabels[]|null);
9185
+
9186
+ /** SubscriptionStarted renewalCount */
9187
+ renewalCount?: (number|Long|null);
9178
9188
  }
9179
9189
 
9180
9190
  /** Represents a SubscriptionStarted. */
@@ -9219,6 +9229,9 @@ export class SubscriptionStarted implements ISubscriptionStarted {
9219
9229
  /** SubscriptionStarted labels. */
9220
9230
  public labels: subscription.SubscriptionLabels[];
9221
9231
 
9232
+ /** SubscriptionStarted renewalCount. */
9233
+ public renewalCount: (number|Long);
9234
+
9222
9235
  /**
9223
9236
  * Creates a new SubscriptionStarted instance using the specified properties.
9224
9237
  * @param [properties] Properties to set
@@ -9328,6 +9341,9 @@ export interface ISubscriptionEnded {
9328
9341
 
9329
9342
  /** SubscriptionEnded labels */
9330
9343
  labels?: (subscription.SubscriptionLabels[]|null);
9344
+
9345
+ /** SubscriptionEnded renewalCount */
9346
+ renewalCount?: (number|Long|null);
9331
9347
  }
9332
9348
 
9333
9349
  /** Represents a SubscriptionEnded. */
@@ -9375,6 +9391,9 @@ export class SubscriptionEnded implements ISubscriptionEnded {
9375
9391
  /** SubscriptionEnded labels. */
9376
9392
  public labels: subscription.SubscriptionLabels[];
9377
9393
 
9394
+ /** SubscriptionEnded renewalCount. */
9395
+ public renewalCount: (number|Long);
9396
+
9378
9397
  /**
9379
9398
  * Creates a new SubscriptionEnded instance using the specified properties.
9380
9399
  * @param [properties] Properties to set
@@ -9481,6 +9500,9 @@ export interface ISubscriptionRecovered {
9481
9500
 
9482
9501
  /** SubscriptionRecovered labels */
9483
9502
  labels?: (subscription.SubscriptionLabels[]|null);
9503
+
9504
+ /** SubscriptionRecovered renewalCount */
9505
+ renewalCount?: (number|Long|null);
9484
9506
  }
9485
9507
 
9486
9508
  /** Represents a SubscriptionRecovered. */
@@ -9525,6 +9547,9 @@ export class SubscriptionRecovered implements ISubscriptionRecovered {
9525
9547
  /** SubscriptionRecovered labels. */
9526
9548
  public labels: subscription.SubscriptionLabels[];
9527
9549
 
9550
+ /** SubscriptionRecovered renewalCount. */
9551
+ public renewalCount: (number|Long);
9552
+
9528
9553
  /**
9529
9554
  * Creates a new SubscriptionRecovered instance using the specified properties.
9530
9555
  * @param [properties] Properties to set
package/lib/index.js CHANGED
@@ -2728,6 +2728,7 @@ $root.subscription = (function() {
2728
2728
  * @property {number} SUBMEMTYPE_NONE=1 SUBMEMTYPE_NONE value
2729
2729
  * @property {number} SUBMEMTYPE_B2B=2 SUBMEMTYPE_B2B value
2730
2730
  * @property {number} SUBMEMTYPE_B2C=3 SUBMEMTYPE_B2C value
2731
+ * @property {number} SUBMEMTYPE_HEALTH_PARTNERSHIP=4 SUBMEMTYPE_HEALTH_PARTNERSHIP value
2731
2732
  */
2732
2733
  subscription.SubscriptionMemberType = (function() {
2733
2734
  var valuesById = {}, values = Object.create(valuesById);
@@ -2735,6 +2736,7 @@ $root.subscription = (function() {
2735
2736
  values[valuesById[1] = "SUBMEMTYPE_NONE"] = 1;
2736
2737
  values[valuesById[2] = "SUBMEMTYPE_B2B"] = 2;
2737
2738
  values[valuesById[3] = "SUBMEMTYPE_B2C"] = 3;
2739
+ values[valuesById[4] = "SUBMEMTYPE_HEALTH_PARTNERSHIP"] = 4;
2738
2740
  return values;
2739
2741
  })();
2740
2742
 
@@ -23199,6 +23201,7 @@ $root.SubscriptionGraced = (function() {
23199
23201
  * @property {subscription.IPlan|null} [plan] SubscriptionGraced plan
23200
23202
  * @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionGraced subscriptionState
23201
23203
  * @property {Array.<subscription.SubscriptionLabels>|null} [labels] SubscriptionGraced labels
23204
+ * @property {number|Long|null} [renewalCount] SubscriptionGraced renewalCount
23202
23205
  */
23203
23206
 
23204
23207
  /**
@@ -23313,6 +23316,14 @@ $root.SubscriptionGraced = (function() {
23313
23316
  */
23314
23317
  SubscriptionGraced.prototype.labels = $util.emptyArray;
23315
23318
 
23319
+ /**
23320
+ * SubscriptionGraced renewalCount.
23321
+ * @member {number|Long} renewalCount
23322
+ * @memberof SubscriptionGraced
23323
+ * @instance
23324
+ */
23325
+ SubscriptionGraced.prototype.renewalCount = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
23326
+
23316
23327
  /**
23317
23328
  * Creates a new SubscriptionGraced instance using the specified properties.
23318
23329
  * @function create
@@ -23365,6 +23376,8 @@ $root.SubscriptionGraced = (function() {
23365
23376
  writer.int32(message.labels[i]);
23366
23377
  writer.ldelim();
23367
23378
  }
23379
+ if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
23380
+ writer.uint32(/* id 13, wireType 0 =*/104).uint64(message.renewalCount);
23368
23381
  return writer;
23369
23382
  };
23370
23383
 
@@ -23442,6 +23455,9 @@ $root.SubscriptionGraced = (function() {
23442
23455
  } else
23443
23456
  message.labels.push(reader.int32());
23444
23457
  break;
23458
+ case 13:
23459
+ message.renewalCount = reader.uint64();
23460
+ break;
23445
23461
  default:
23446
23462
  reader.skipType(tag & 7);
23447
23463
  break;
@@ -23548,6 +23564,9 @@ $root.SubscriptionGraced = (function() {
23548
23564
  break;
23549
23565
  }
23550
23566
  }
23567
+ if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
23568
+ if (!$util.isInteger(message.renewalCount) && !(message.renewalCount && $util.isInteger(message.renewalCount.low) && $util.isInteger(message.renewalCount.high)))
23569
+ return "renewalCount: integer|Long expected";
23551
23570
  return null;
23552
23571
  };
23553
23572
 
@@ -23693,6 +23712,15 @@ $root.SubscriptionGraced = (function() {
23693
23712
  break;
23694
23713
  }
23695
23714
  }
23715
+ if (object.renewalCount != null)
23716
+ if ($util.Long)
23717
+ (message.renewalCount = $util.Long.fromValue(object.renewalCount)).unsigned = true;
23718
+ else if (typeof object.renewalCount === "string")
23719
+ message.renewalCount = parseInt(object.renewalCount, 10);
23720
+ else if (typeof object.renewalCount === "number")
23721
+ message.renewalCount = object.renewalCount;
23722
+ else if (typeof object.renewalCount === "object")
23723
+ message.renewalCount = new $util.LongBits(object.renewalCount.low >>> 0, object.renewalCount.high >>> 0).toNumber(true);
23696
23724
  return message;
23697
23725
  };
23698
23726
 
@@ -23739,6 +23767,11 @@ $root.SubscriptionGraced = (function() {
23739
23767
  object.autoRenewalStatus = options.enums === String ? "UNKNOWN_STATUS" : 0;
23740
23768
  object.plan = null;
23741
23769
  object.subscriptionState = options.enums === String ? "SUBSTATE_UNKNOWN" : 0;
23770
+ if ($util.Long) {
23771
+ var long = new $util.Long(0, 0, true);
23772
+ object.renewalCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
23773
+ } else
23774
+ object.renewalCount = options.longs === String ? "0" : 0;
23742
23775
  }
23743
23776
  if (message.id != null && message.hasOwnProperty("id"))
23744
23777
  object.id = message.id;
@@ -23779,6 +23812,11 @@ $root.SubscriptionGraced = (function() {
23779
23812
  for (var j = 0; j < message.labels.length; ++j)
23780
23813
  object.labels[j] = options.enums === String ? $root.subscription.SubscriptionLabels[message.labels[j]] : message.labels[j];
23781
23814
  }
23815
+ if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
23816
+ if (typeof message.renewalCount === "number")
23817
+ object.renewalCount = options.longs === String ? String(message.renewalCount) : message.renewalCount;
23818
+ else
23819
+ 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;
23782
23820
  return object;
23783
23821
  };
23784
23822
 
@@ -23813,6 +23851,7 @@ $root.SubscriptionStarted = (function() {
23813
23851
  * @property {subscription.IPlan|null} [plan] SubscriptionStarted plan
23814
23852
  * @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionStarted subscriptionState
23815
23853
  * @property {Array.<subscription.SubscriptionLabels>|null} [labels] SubscriptionStarted labels
23854
+ * @property {number|Long|null} [renewalCount] SubscriptionStarted renewalCount
23816
23855
  */
23817
23856
 
23818
23857
  /**
@@ -23919,6 +23958,14 @@ $root.SubscriptionStarted = (function() {
23919
23958
  */
23920
23959
  SubscriptionStarted.prototype.labels = $util.emptyArray;
23921
23960
 
23961
+ /**
23962
+ * SubscriptionStarted renewalCount.
23963
+ * @member {number|Long} renewalCount
23964
+ * @memberof SubscriptionStarted
23965
+ * @instance
23966
+ */
23967
+ SubscriptionStarted.prototype.renewalCount = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
23968
+
23922
23969
  /**
23923
23970
  * Creates a new SubscriptionStarted instance using the specified properties.
23924
23971
  * @function create
@@ -23969,6 +24016,8 @@ $root.SubscriptionStarted = (function() {
23969
24016
  writer.int32(message.labels[i]);
23970
24017
  writer.ldelim();
23971
24018
  }
24019
+ if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
24020
+ writer.uint32(/* id 13, wireType 0 =*/104).uint64(message.renewalCount);
23972
24021
  return writer;
23973
24022
  };
23974
24023
 
@@ -24043,6 +24092,9 @@ $root.SubscriptionStarted = (function() {
24043
24092
  } else
24044
24093
  message.labels.push(reader.int32());
24045
24094
  break;
24095
+ case 13:
24096
+ message.renewalCount = reader.uint64();
24097
+ break;
24046
24098
  default:
24047
24099
  reader.skipType(tag & 7);
24048
24100
  break;
@@ -24146,6 +24198,9 @@ $root.SubscriptionStarted = (function() {
24146
24198
  break;
24147
24199
  }
24148
24200
  }
24201
+ if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
24202
+ if (!$util.isInteger(message.renewalCount) && !(message.renewalCount && $util.isInteger(message.renewalCount.low) && $util.isInteger(message.renewalCount.high)))
24203
+ return "renewalCount: integer|Long expected";
24149
24204
  return null;
24150
24205
  };
24151
24206
 
@@ -24289,6 +24344,15 @@ $root.SubscriptionStarted = (function() {
24289
24344
  break;
24290
24345
  }
24291
24346
  }
24347
+ if (object.renewalCount != null)
24348
+ if ($util.Long)
24349
+ (message.renewalCount = $util.Long.fromValue(object.renewalCount)).unsigned = true;
24350
+ else if (typeof object.renewalCount === "string")
24351
+ message.renewalCount = parseInt(object.renewalCount, 10);
24352
+ else if (typeof object.renewalCount === "number")
24353
+ message.renewalCount = object.renewalCount;
24354
+ else if (typeof object.renewalCount === "object")
24355
+ message.renewalCount = new $util.LongBits(object.renewalCount.low >>> 0, object.renewalCount.high >>> 0).toNumber(true);
24292
24356
  return message;
24293
24357
  };
24294
24358
 
@@ -24334,6 +24398,11 @@ $root.SubscriptionStarted = (function() {
24334
24398
  object.autoRenewalStatus = options.enums === String ? "UNKNOWN_STATUS" : 0;
24335
24399
  object.plan = null;
24336
24400
  object.subscriptionState = options.enums === String ? "SUBSTATE_UNKNOWN" : 0;
24401
+ if ($util.Long) {
24402
+ var long = new $util.Long(0, 0, true);
24403
+ object.renewalCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
24404
+ } else
24405
+ object.renewalCount = options.longs === String ? "0" : 0;
24337
24406
  }
24338
24407
  if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
24339
24408
  if (typeof message.updatedOn === "number")
@@ -24372,6 +24441,11 @@ $root.SubscriptionStarted = (function() {
24372
24441
  for (var j = 0; j < message.labels.length; ++j)
24373
24442
  object.labels[j] = options.enums === String ? $root.subscription.SubscriptionLabels[message.labels[j]] : message.labels[j];
24374
24443
  }
24444
+ if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
24445
+ if (typeof message.renewalCount === "number")
24446
+ object.renewalCount = options.longs === String ? String(message.renewalCount) : message.renewalCount;
24447
+ else
24448
+ 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;
24375
24449
  return object;
24376
24450
  };
24377
24451
 
@@ -24407,6 +24481,7 @@ $root.SubscriptionEnded = (function() {
24407
24481
  * @property {subscription.CancellationType|null} [cancellationType] SubscriptionEnded cancellationType
24408
24482
  * @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionEnded subscriptionState
24409
24483
  * @property {Array.<subscription.SubscriptionLabels>|null} [labels] SubscriptionEnded labels
24484
+ * @property {number|Long|null} [renewalCount] SubscriptionEnded renewalCount
24410
24485
  */
24411
24486
 
24412
24487
  /**
@@ -24521,6 +24596,14 @@ $root.SubscriptionEnded = (function() {
24521
24596
  */
24522
24597
  SubscriptionEnded.prototype.labels = $util.emptyArray;
24523
24598
 
24599
+ /**
24600
+ * SubscriptionEnded renewalCount.
24601
+ * @member {number|Long} renewalCount
24602
+ * @memberof SubscriptionEnded
24603
+ * @instance
24604
+ */
24605
+ SubscriptionEnded.prototype.renewalCount = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
24606
+
24524
24607
  /**
24525
24608
  * Creates a new SubscriptionEnded instance using the specified properties.
24526
24609
  * @function create
@@ -24573,6 +24656,8 @@ $root.SubscriptionEnded = (function() {
24573
24656
  writer.int32(message.labels[i]);
24574
24657
  writer.ldelim();
24575
24658
  }
24659
+ if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
24660
+ writer.uint32(/* id 14, wireType 0 =*/112).uint64(message.renewalCount);
24576
24661
  return writer;
24577
24662
  };
24578
24663
 
@@ -24650,6 +24735,9 @@ $root.SubscriptionEnded = (function() {
24650
24735
  } else
24651
24736
  message.labels.push(reader.int32());
24652
24737
  break;
24738
+ case 14:
24739
+ message.renewalCount = reader.uint64();
24740
+ break;
24653
24741
  default:
24654
24742
  reader.skipType(tag & 7);
24655
24743
  break;
@@ -24762,6 +24850,9 @@ $root.SubscriptionEnded = (function() {
24762
24850
  break;
24763
24851
  }
24764
24852
  }
24853
+ if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
24854
+ if (!$util.isInteger(message.renewalCount) && !(message.renewalCount && $util.isInteger(message.renewalCount.low) && $util.isInteger(message.renewalCount.high)))
24855
+ return "renewalCount: integer|Long expected";
24765
24856
  return null;
24766
24857
  };
24767
24858
 
@@ -24919,6 +25010,15 @@ $root.SubscriptionEnded = (function() {
24919
25010
  break;
24920
25011
  }
24921
25012
  }
25013
+ if (object.renewalCount != null)
25014
+ if ($util.Long)
25015
+ (message.renewalCount = $util.Long.fromValue(object.renewalCount)).unsigned = true;
25016
+ else if (typeof object.renewalCount === "string")
25017
+ message.renewalCount = parseInt(object.renewalCount, 10);
25018
+ else if (typeof object.renewalCount === "number")
25019
+ message.renewalCount = object.renewalCount;
25020
+ else if (typeof object.renewalCount === "object")
25021
+ message.renewalCount = new $util.LongBits(object.renewalCount.low >>> 0, object.renewalCount.high >>> 0).toNumber(true);
24922
25022
  return message;
24923
25023
  };
24924
25024
 
@@ -24965,6 +25065,11 @@ $root.SubscriptionEnded = (function() {
24965
25065
  object.plan = null;
24966
25066
  object.cancellationType = options.enums === String ? "CT_UNKNOWN" : 0;
24967
25067
  object.subscriptionState = options.enums === String ? "SUBSTATE_UNKNOWN" : 0;
25068
+ if ($util.Long) {
25069
+ var long = new $util.Long(0, 0, true);
25070
+ object.renewalCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
25071
+ } else
25072
+ object.renewalCount = options.longs === String ? "0" : 0;
24968
25073
  }
24969
25074
  if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
24970
25075
  if (typeof message.updatedOn === "number")
@@ -25005,6 +25110,11 @@ $root.SubscriptionEnded = (function() {
25005
25110
  for (var j = 0; j < message.labels.length; ++j)
25006
25111
  object.labels[j] = options.enums === String ? $root.subscription.SubscriptionLabels[message.labels[j]] : message.labels[j];
25007
25112
  }
25113
+ if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
25114
+ if (typeof message.renewalCount === "number")
25115
+ object.renewalCount = options.longs === String ? String(message.renewalCount) : message.renewalCount;
25116
+ else
25117
+ 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;
25008
25118
  return object;
25009
25119
  };
25010
25120
 
@@ -25039,6 +25149,7 @@ $root.SubscriptionRecovered = (function() {
25039
25149
  * @property {subscription.IPlan|null} [plan] SubscriptionRecovered plan
25040
25150
  * @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionRecovered subscriptionState
25041
25151
  * @property {Array.<subscription.SubscriptionLabels>|null} [labels] SubscriptionRecovered labels
25152
+ * @property {number|Long|null} [renewalCount] SubscriptionRecovered renewalCount
25042
25153
  */
25043
25154
 
25044
25155
  /**
@@ -25145,6 +25256,14 @@ $root.SubscriptionRecovered = (function() {
25145
25256
  */
25146
25257
  SubscriptionRecovered.prototype.labels = $util.emptyArray;
25147
25258
 
25259
+ /**
25260
+ * SubscriptionRecovered renewalCount.
25261
+ * @member {number|Long} renewalCount
25262
+ * @memberof SubscriptionRecovered
25263
+ * @instance
25264
+ */
25265
+ SubscriptionRecovered.prototype.renewalCount = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
25266
+
25148
25267
  /**
25149
25268
  * Creates a new SubscriptionRecovered instance using the specified properties.
25150
25269
  * @function create
@@ -25195,6 +25314,8 @@ $root.SubscriptionRecovered = (function() {
25195
25314
  writer.int32(message.labels[i]);
25196
25315
  writer.ldelim();
25197
25316
  }
25317
+ if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
25318
+ writer.uint32(/* id 13, wireType 0 =*/104).uint64(message.renewalCount);
25198
25319
  return writer;
25199
25320
  };
25200
25321
 
@@ -25269,6 +25390,9 @@ $root.SubscriptionRecovered = (function() {
25269
25390
  } else
25270
25391
  message.labels.push(reader.int32());
25271
25392
  break;
25393
+ case 13:
25394
+ message.renewalCount = reader.uint64();
25395
+ break;
25272
25396
  default:
25273
25397
  reader.skipType(tag & 7);
25274
25398
  break;
@@ -25372,6 +25496,9 @@ $root.SubscriptionRecovered = (function() {
25372
25496
  break;
25373
25497
  }
25374
25498
  }
25499
+ if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
25500
+ if (!$util.isInteger(message.renewalCount) && !(message.renewalCount && $util.isInteger(message.renewalCount.low) && $util.isInteger(message.renewalCount.high)))
25501
+ return "renewalCount: integer|Long expected";
25375
25502
  return null;
25376
25503
  };
25377
25504
 
@@ -25515,6 +25642,15 @@ $root.SubscriptionRecovered = (function() {
25515
25642
  break;
25516
25643
  }
25517
25644
  }
25645
+ if (object.renewalCount != null)
25646
+ if ($util.Long)
25647
+ (message.renewalCount = $util.Long.fromValue(object.renewalCount)).unsigned = true;
25648
+ else if (typeof object.renewalCount === "string")
25649
+ message.renewalCount = parseInt(object.renewalCount, 10);
25650
+ else if (typeof object.renewalCount === "number")
25651
+ message.renewalCount = object.renewalCount;
25652
+ else if (typeof object.renewalCount === "object")
25653
+ message.renewalCount = new $util.LongBits(object.renewalCount.low >>> 0, object.renewalCount.high >>> 0).toNumber(true);
25518
25654
  return message;
25519
25655
  };
25520
25656
 
@@ -25560,6 +25696,11 @@ $root.SubscriptionRecovered = (function() {
25560
25696
  object.autoRenewalStatus = options.enums === String ? "UNKNOWN_STATUS" : 0;
25561
25697
  object.plan = null;
25562
25698
  object.subscriptionState = options.enums === String ? "SUBSTATE_UNKNOWN" : 0;
25699
+ if ($util.Long) {
25700
+ var long = new $util.Long(0, 0, true);
25701
+ object.renewalCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
25702
+ } else
25703
+ object.renewalCount = options.longs === String ? "0" : 0;
25563
25704
  }
25564
25705
  if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
25565
25706
  if (typeof message.updatedOn === "number")
@@ -25598,6 +25739,11 @@ $root.SubscriptionRecovered = (function() {
25598
25739
  for (var j = 0; j < message.labels.length; ++j)
25599
25740
  object.labels[j] = options.enums === String ? $root.subscription.SubscriptionLabels[message.labels[j]] : message.labels[j];
25600
25741
  }
25742
+ if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
25743
+ if (typeof message.renewalCount === "number")
25744
+ object.renewalCount = options.longs === String ? String(message.renewalCount) : message.renewalCount;
25745
+ else
25746
+ 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;
25601
25747
  return object;
25602
25748
  };
25603
25749
 
@@ -25826,6 +25972,7 @@ $root.SubscriptionMemberSubscribed = (function() {
25826
25972
  case 1:
25827
25973
  case 2:
25828
25974
  case 3:
25975
+ case 4:
25829
25976
  break;
25830
25977
  }
25831
25978
  if (message.subscriptionMembership != null && message.hasOwnProperty("subscriptionMembership"))
@@ -25901,6 +26048,10 @@ $root.SubscriptionMemberSubscribed = (function() {
25901
26048
  case 3:
25902
26049
  message.memberType = 3;
25903
26050
  break;
26051
+ case "SUBMEMTYPE_HEALTH_PARTNERSHIP":
26052
+ case 4:
26053
+ message.memberType = 4;
26054
+ break;
25904
26055
  }
25905
26056
  switch (object.subscriptionMembership) {
25906
26057
  case "PRIMARY":
@@ -26180,6 +26331,7 @@ $root.SubscriptionMemberRenewed = (function() {
26180
26331
  case 1:
26181
26332
  case 2:
26182
26333
  case 3:
26334
+ case 4:
26183
26335
  break;
26184
26336
  }
26185
26337
  if (message.subscriptionMembership != null && message.hasOwnProperty("subscriptionMembership"))
@@ -26255,6 +26407,10 @@ $root.SubscriptionMemberRenewed = (function() {
26255
26407
  case 3:
26256
26408
  message.memberType = 3;
26257
26409
  break;
26410
+ case "SUBMEMTYPE_HEALTH_PARTNERSHIP":
26411
+ case 4:
26412
+ message.memberType = 4;
26413
+ break;
26258
26414
  }
26259
26415
  switch (object.subscriptionMembership) {
26260
26416
  case "PRIMARY":
@@ -26534,6 +26690,7 @@ $root.SubscriptionMemberChurned = (function() {
26534
26690
  case 1:
26535
26691
  case 2:
26536
26692
  case 3:
26693
+ case 4:
26537
26694
  break;
26538
26695
  }
26539
26696
  if (message.subscriptionMembership != null && message.hasOwnProperty("subscriptionMembership"))
@@ -26609,6 +26766,10 @@ $root.SubscriptionMemberChurned = (function() {
26609
26766
  case 3:
26610
26767
  message.memberType = 3;
26611
26768
  break;
26769
+ case "SUBMEMTYPE_HEALTH_PARTNERSHIP":
26770
+ case 4:
26771
+ message.memberType = 4;
26772
+ break;
26612
26773
  }
26613
26774
  switch (object.subscriptionMembership) {
26614
26775
  case "PRIMARY":
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.91.0"
19
+ "version": "1.93.0"
20
20
  }