@headspace/protos-events 1.457.0 → 1.459.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.
Files changed (3) hide show
  1. package/lib/index.d.ts +1951 -1819
  2. package/lib/index.js +395 -0
  3. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -82289,6 +82289,7 @@ $root.EligibilityLinked = (function() {
82289
82289
  * @property {boolean|null} [isUmd] EligibilityLinked isUmd
82290
82290
  * @property {number|Long|null} [timestamp] EligibilityLinked timestamp
82291
82291
  * @property {Array.<string>|null} [connectionNames] EligibilityLinked connectionNames
82292
+ * @property {number|Long|null} [headspaceUserEnrollmentTimestamp] EligibilityLinked headspaceUserEnrollmentTimestamp
82292
82293
  */
82293
82294
 
82294
82295
  /**
@@ -82379,6 +82380,14 @@ $root.EligibilityLinked = (function() {
82379
82380
  */
82380
82381
  EligibilityLinked.prototype.connectionNames = $util.emptyArray;
82381
82382
 
82383
+ /**
82384
+ * EligibilityLinked headspaceUserEnrollmentTimestamp.
82385
+ * @member {number|Long} headspaceUserEnrollmentTimestamp
82386
+ * @memberof EligibilityLinked
82387
+ * @instance
82388
+ */
82389
+ EligibilityLinked.prototype.headspaceUserEnrollmentTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
82390
+
82382
82391
  /**
82383
82392
  * Creates a new EligibilityLinked instance using the specified properties.
82384
82393
  * @function create
@@ -82422,6 +82431,8 @@ $root.EligibilityLinked = (function() {
82422
82431
  if (message.connectionNames != null && message.connectionNames.length)
82423
82432
  for (var i = 0; i < message.connectionNames.length; ++i)
82424
82433
  writer.uint32(/* id 9, wireType 2 =*/74).string(message.connectionNames[i]);
82434
+ if (message.headspaceUserEnrollmentTimestamp != null && message.hasOwnProperty("headspaceUserEnrollmentTimestamp"))
82435
+ writer.uint32(/* id 10, wireType 0 =*/80).uint64(message.headspaceUserEnrollmentTimestamp);
82425
82436
  return writer;
82426
82437
  };
82427
82438
 
@@ -82485,6 +82496,9 @@ $root.EligibilityLinked = (function() {
82485
82496
  message.connectionNames = [];
82486
82497
  message.connectionNames.push(reader.string());
82487
82498
  break;
82499
+ case 10:
82500
+ message.headspaceUserEnrollmentTimestamp = reader.uint64();
82501
+ break;
82488
82502
  default:
82489
82503
  reader.skipType(tag & 7);
82490
82504
  break;
@@ -82556,6 +82570,9 @@ $root.EligibilityLinked = (function() {
82556
82570
  if (!$util.isString(message.connectionNames[i]))
82557
82571
  return "connectionNames: string[] expected";
82558
82572
  }
82573
+ if (message.headspaceUserEnrollmentTimestamp != null && message.hasOwnProperty("headspaceUserEnrollmentTimestamp"))
82574
+ if (!$util.isInteger(message.headspaceUserEnrollmentTimestamp) && !(message.headspaceUserEnrollmentTimestamp && $util.isInteger(message.headspaceUserEnrollmentTimestamp.low) && $util.isInteger(message.headspaceUserEnrollmentTimestamp.high)))
82575
+ return "headspaceUserEnrollmentTimestamp: integer|Long expected";
82559
82576
  return null;
82560
82577
  };
82561
82578
 
@@ -82609,6 +82626,15 @@ $root.EligibilityLinked = (function() {
82609
82626
  for (var i = 0; i < object.connectionNames.length; ++i)
82610
82627
  message.connectionNames[i] = String(object.connectionNames[i]);
82611
82628
  }
82629
+ if (object.headspaceUserEnrollmentTimestamp != null)
82630
+ if ($util.Long)
82631
+ (message.headspaceUserEnrollmentTimestamp = $util.Long.fromValue(object.headspaceUserEnrollmentTimestamp)).unsigned = true;
82632
+ else if (typeof object.headspaceUserEnrollmentTimestamp === "string")
82633
+ message.headspaceUserEnrollmentTimestamp = parseInt(object.headspaceUserEnrollmentTimestamp, 10);
82634
+ else if (typeof object.headspaceUserEnrollmentTimestamp === "number")
82635
+ message.headspaceUserEnrollmentTimestamp = object.headspaceUserEnrollmentTimestamp;
82636
+ else if (typeof object.headspaceUserEnrollmentTimestamp === "object")
82637
+ message.headspaceUserEnrollmentTimestamp = new $util.LongBits(object.headspaceUserEnrollmentTimestamp.low >>> 0, object.headspaceUserEnrollmentTimestamp.high >>> 0).toNumber(true);
82612
82638
  return message;
82613
82639
  };
82614
82640
 
@@ -82640,6 +82666,11 @@ $root.EligibilityLinked = (function() {
82640
82666
  object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
82641
82667
  } else
82642
82668
  object.timestamp = options.longs === String ? "0" : 0;
82669
+ if ($util.Long) {
82670
+ var long = new $util.Long(0, 0, true);
82671
+ object.headspaceUserEnrollmentTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
82672
+ } else
82673
+ object.headspaceUserEnrollmentTimestamp = options.longs === String ? "0" : 0;
82643
82674
  }
82644
82675
  if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
82645
82676
  object.headspaceHealthOrgId = message.headspaceHealthOrgId;
@@ -82665,6 +82696,11 @@ $root.EligibilityLinked = (function() {
82665
82696
  for (var j = 0; j < message.connectionNames.length; ++j)
82666
82697
  object.connectionNames[j] = message.connectionNames[j];
82667
82698
  }
82699
+ if (message.headspaceUserEnrollmentTimestamp != null && message.hasOwnProperty("headspaceUserEnrollmentTimestamp"))
82700
+ if (typeof message.headspaceUserEnrollmentTimestamp === "number")
82701
+ object.headspaceUserEnrollmentTimestamp = options.longs === String ? String(message.headspaceUserEnrollmentTimestamp) : message.headspaceUserEnrollmentTimestamp;
82702
+ else
82703
+ object.headspaceUserEnrollmentTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.headspaceUserEnrollmentTimestamp) : options.longs === Number ? new $util.LongBits(message.headspaceUserEnrollmentTimestamp.low >>> 0, message.headspaceUserEnrollmentTimestamp.high >>> 0).toNumber(true) : message.headspaceUserEnrollmentTimestamp;
82668
82704
  return object;
82669
82705
  };
82670
82706
 
@@ -87095,6 +87131,7 @@ $root.OrganizationSubscriptionCreated = (function() {
87095
87131
  * @property {number|null} [dashboardUserId] OrganizationSubscriptionCreated dashboardUserId
87096
87132
  * @property {b2b.IOrganization|null} [organization] OrganizationSubscriptionCreated organization
87097
87133
  * @property {b2b.IB2BSubscriptionManagement|null} [subscription] OrganizationSubscriptionCreated subscription
87134
+ * @property {b2b.IB2BSubscriptionManagement|null} [activeSubscription] OrganizationSubscriptionCreated activeSubscription
87098
87135
  */
87099
87136
 
87100
87137
  /**
@@ -87144,6 +87181,14 @@ $root.OrganizationSubscriptionCreated = (function() {
87144
87181
  */
87145
87182
  OrganizationSubscriptionCreated.prototype.subscription = null;
87146
87183
 
87184
+ /**
87185
+ * OrganizationSubscriptionCreated activeSubscription.
87186
+ * @member {b2b.IB2BSubscriptionManagement|null|undefined} activeSubscription
87187
+ * @memberof OrganizationSubscriptionCreated
87188
+ * @instance
87189
+ */
87190
+ OrganizationSubscriptionCreated.prototype.activeSubscription = null;
87191
+
87147
87192
  /**
87148
87193
  * Creates a new OrganizationSubscriptionCreated instance using the specified properties.
87149
87194
  * @function create
@@ -87176,6 +87221,8 @@ $root.OrganizationSubscriptionCreated = (function() {
87176
87221
  $root.b2b.Organization.encode(message.organization, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
87177
87222
  if (message.subscription != null && message.hasOwnProperty("subscription"))
87178
87223
  $root.b2b.B2BSubscriptionManagement.encode(message.subscription, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
87224
+ if (message.activeSubscription != null && message.hasOwnProperty("activeSubscription"))
87225
+ $root.b2b.B2BSubscriptionManagement.encode(message.activeSubscription, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
87179
87226
  return writer;
87180
87227
  };
87181
87228
 
@@ -87222,6 +87269,9 @@ $root.OrganizationSubscriptionCreated = (function() {
87222
87269
  case 4:
87223
87270
  message.subscription = $root.b2b.B2BSubscriptionManagement.decode(reader, reader.uint32());
87224
87271
  break;
87272
+ case 5:
87273
+ message.activeSubscription = $root.b2b.B2BSubscriptionManagement.decode(reader, reader.uint32());
87274
+ break;
87225
87275
  default:
87226
87276
  reader.skipType(tag & 7);
87227
87277
  break;
@@ -87273,6 +87323,11 @@ $root.OrganizationSubscriptionCreated = (function() {
87273
87323
  if (error)
87274
87324
  return "subscription." + error;
87275
87325
  }
87326
+ if (message.activeSubscription != null && message.hasOwnProperty("activeSubscription")) {
87327
+ var error = $root.b2b.B2BSubscriptionManagement.verify(message.activeSubscription);
87328
+ if (error)
87329
+ return "activeSubscription." + error;
87330
+ }
87276
87331
  return null;
87277
87332
  };
87278
87333
 
@@ -87309,6 +87364,11 @@ $root.OrganizationSubscriptionCreated = (function() {
87309
87364
  throw TypeError(".OrganizationSubscriptionCreated.subscription: object expected");
87310
87365
  message.subscription = $root.b2b.B2BSubscriptionManagement.fromObject(object.subscription);
87311
87366
  }
87367
+ if (object.activeSubscription != null) {
87368
+ if (typeof object.activeSubscription !== "object")
87369
+ throw TypeError(".OrganizationSubscriptionCreated.activeSubscription: object expected");
87370
+ message.activeSubscription = $root.b2b.B2BSubscriptionManagement.fromObject(object.activeSubscription);
87371
+ }
87312
87372
  return message;
87313
87373
  };
87314
87374
 
@@ -87334,6 +87394,7 @@ $root.OrganizationSubscriptionCreated = (function() {
87334
87394
  object.dashboardUserId = 0;
87335
87395
  object.organization = null;
87336
87396
  object.subscription = null;
87397
+ object.activeSubscription = null;
87337
87398
  }
87338
87399
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
87339
87400
  if (typeof message.timestamp === "number")
@@ -87346,6 +87407,8 @@ $root.OrganizationSubscriptionCreated = (function() {
87346
87407
  object.organization = $root.b2b.Organization.toObject(message.organization, options);
87347
87408
  if (message.subscription != null && message.hasOwnProperty("subscription"))
87348
87409
  object.subscription = $root.b2b.B2BSubscriptionManagement.toObject(message.subscription, options);
87410
+ if (message.activeSubscription != null && message.hasOwnProperty("activeSubscription"))
87411
+ object.activeSubscription = $root.b2b.B2BSubscriptionManagement.toObject(message.activeSubscription, options);
87349
87412
  return object;
87350
87413
  };
87351
87414
 
@@ -87651,6 +87714,7 @@ $root.OrganizationSubscriptionAmended = (function() {
87651
87714
  * @property {number|null} [dashboardUserId] OrganizationSubscriptionAmended dashboardUserId
87652
87715
  * @property {b2b.IOrganization|null} [organization] OrganizationSubscriptionAmended organization
87653
87716
  * @property {b2b.IB2BSubscriptionManagement|null} [subscription] OrganizationSubscriptionAmended subscription
87717
+ * @property {b2b.IB2BSubscriptionManagement|null} [activeSubscription] OrganizationSubscriptionAmended activeSubscription
87654
87718
  */
87655
87719
 
87656
87720
  /**
@@ -87700,6 +87764,14 @@ $root.OrganizationSubscriptionAmended = (function() {
87700
87764
  */
87701
87765
  OrganizationSubscriptionAmended.prototype.subscription = null;
87702
87766
 
87767
+ /**
87768
+ * OrganizationSubscriptionAmended activeSubscription.
87769
+ * @member {b2b.IB2BSubscriptionManagement|null|undefined} activeSubscription
87770
+ * @memberof OrganizationSubscriptionAmended
87771
+ * @instance
87772
+ */
87773
+ OrganizationSubscriptionAmended.prototype.activeSubscription = null;
87774
+
87703
87775
  /**
87704
87776
  * Creates a new OrganizationSubscriptionAmended instance using the specified properties.
87705
87777
  * @function create
@@ -87732,6 +87804,8 @@ $root.OrganizationSubscriptionAmended = (function() {
87732
87804
  $root.b2b.Organization.encode(message.organization, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
87733
87805
  if (message.subscription != null && message.hasOwnProperty("subscription"))
87734
87806
  $root.b2b.B2BSubscriptionManagement.encode(message.subscription, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
87807
+ if (message.activeSubscription != null && message.hasOwnProperty("activeSubscription"))
87808
+ $root.b2b.B2BSubscriptionManagement.encode(message.activeSubscription, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
87735
87809
  return writer;
87736
87810
  };
87737
87811
 
@@ -87778,6 +87852,9 @@ $root.OrganizationSubscriptionAmended = (function() {
87778
87852
  case 4:
87779
87853
  message.subscription = $root.b2b.B2BSubscriptionManagement.decode(reader, reader.uint32());
87780
87854
  break;
87855
+ case 5:
87856
+ message.activeSubscription = $root.b2b.B2BSubscriptionManagement.decode(reader, reader.uint32());
87857
+ break;
87781
87858
  default:
87782
87859
  reader.skipType(tag & 7);
87783
87860
  break;
@@ -87829,6 +87906,11 @@ $root.OrganizationSubscriptionAmended = (function() {
87829
87906
  if (error)
87830
87907
  return "subscription." + error;
87831
87908
  }
87909
+ if (message.activeSubscription != null && message.hasOwnProperty("activeSubscription")) {
87910
+ var error = $root.b2b.B2BSubscriptionManagement.verify(message.activeSubscription);
87911
+ if (error)
87912
+ return "activeSubscription." + error;
87913
+ }
87832
87914
  return null;
87833
87915
  };
87834
87916
 
@@ -87865,6 +87947,11 @@ $root.OrganizationSubscriptionAmended = (function() {
87865
87947
  throw TypeError(".OrganizationSubscriptionAmended.subscription: object expected");
87866
87948
  message.subscription = $root.b2b.B2BSubscriptionManagement.fromObject(object.subscription);
87867
87949
  }
87950
+ if (object.activeSubscription != null) {
87951
+ if (typeof object.activeSubscription !== "object")
87952
+ throw TypeError(".OrganizationSubscriptionAmended.activeSubscription: object expected");
87953
+ message.activeSubscription = $root.b2b.B2BSubscriptionManagement.fromObject(object.activeSubscription);
87954
+ }
87868
87955
  return message;
87869
87956
  };
87870
87957
 
@@ -87890,6 +87977,7 @@ $root.OrganizationSubscriptionAmended = (function() {
87890
87977
  object.dashboardUserId = 0;
87891
87978
  object.organization = null;
87892
87979
  object.subscription = null;
87980
+ object.activeSubscription = null;
87893
87981
  }
87894
87982
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
87895
87983
  if (typeof message.timestamp === "number")
@@ -87902,6 +87990,8 @@ $root.OrganizationSubscriptionAmended = (function() {
87902
87990
  object.organization = $root.b2b.Organization.toObject(message.organization, options);
87903
87991
  if (message.subscription != null && message.hasOwnProperty("subscription"))
87904
87992
  object.subscription = $root.b2b.B2BSubscriptionManagement.toObject(message.subscription, options);
87993
+ if (message.activeSubscription != null && message.hasOwnProperty("activeSubscription"))
87994
+ object.activeSubscription = $root.b2b.B2BSubscriptionManagement.toObject(message.activeSubscription, options);
87905
87995
  return object;
87906
87996
  };
87907
87997
 
@@ -88197,6 +88287,311 @@ $root.OrganizationSubscriptionActivated = (function() {
88197
88287
  return OrganizationSubscriptionActivated;
88198
88288
  })();
88199
88289
 
88290
+ $root.OrganizationSubscriptionDeleted = (function() {
88291
+
88292
+ /**
88293
+ * Properties of an OrganizationSubscriptionDeleted.
88294
+ * @exports IOrganizationSubscriptionDeleted
88295
+ * @interface IOrganizationSubscriptionDeleted
88296
+ * @property {number|Long|null} [timestamp] OrganizationSubscriptionDeleted timestamp
88297
+ * @property {number|null} [dashboardUserId] OrganizationSubscriptionDeleted dashboardUserId
88298
+ * @property {b2b.IOrganization|null} [organization] OrganizationSubscriptionDeleted organization
88299
+ * @property {b2b.IB2BSubscriptionManagement|null} [subscription] OrganizationSubscriptionDeleted subscription
88300
+ * @property {b2b.IB2BSubscriptionManagement|null} [activeSubscription] OrganizationSubscriptionDeleted activeSubscription
88301
+ */
88302
+
88303
+ /**
88304
+ * Constructs a new OrganizationSubscriptionDeleted.
88305
+ * @exports OrganizationSubscriptionDeleted
88306
+ * @classdesc Represents an OrganizationSubscriptionDeleted.
88307
+ * @implements IOrganizationSubscriptionDeleted
88308
+ * @constructor
88309
+ * @param {IOrganizationSubscriptionDeleted=} [properties] Properties to set
88310
+ */
88311
+ function OrganizationSubscriptionDeleted(properties) {
88312
+ if (properties)
88313
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
88314
+ if (properties[keys[i]] != null)
88315
+ this[keys[i]] = properties[keys[i]];
88316
+ }
88317
+
88318
+ /**
88319
+ * OrganizationSubscriptionDeleted timestamp.
88320
+ * @member {number|Long} timestamp
88321
+ * @memberof OrganizationSubscriptionDeleted
88322
+ * @instance
88323
+ */
88324
+ OrganizationSubscriptionDeleted.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
88325
+
88326
+ /**
88327
+ * OrganizationSubscriptionDeleted dashboardUserId.
88328
+ * @member {number} dashboardUserId
88329
+ * @memberof OrganizationSubscriptionDeleted
88330
+ * @instance
88331
+ */
88332
+ OrganizationSubscriptionDeleted.prototype.dashboardUserId = 0;
88333
+
88334
+ /**
88335
+ * OrganizationSubscriptionDeleted organization.
88336
+ * @member {b2b.IOrganization|null|undefined} organization
88337
+ * @memberof OrganizationSubscriptionDeleted
88338
+ * @instance
88339
+ */
88340
+ OrganizationSubscriptionDeleted.prototype.organization = null;
88341
+
88342
+ /**
88343
+ * OrganizationSubscriptionDeleted subscription.
88344
+ * @member {b2b.IB2BSubscriptionManagement|null|undefined} subscription
88345
+ * @memberof OrganizationSubscriptionDeleted
88346
+ * @instance
88347
+ */
88348
+ OrganizationSubscriptionDeleted.prototype.subscription = null;
88349
+
88350
+ /**
88351
+ * OrganizationSubscriptionDeleted activeSubscription.
88352
+ * @member {b2b.IB2BSubscriptionManagement|null|undefined} activeSubscription
88353
+ * @memberof OrganizationSubscriptionDeleted
88354
+ * @instance
88355
+ */
88356
+ OrganizationSubscriptionDeleted.prototype.activeSubscription = null;
88357
+
88358
+ /**
88359
+ * Creates a new OrganizationSubscriptionDeleted instance using the specified properties.
88360
+ * @function create
88361
+ * @memberof OrganizationSubscriptionDeleted
88362
+ * @static
88363
+ * @param {IOrganizationSubscriptionDeleted=} [properties] Properties to set
88364
+ * @returns {OrganizationSubscriptionDeleted} OrganizationSubscriptionDeleted instance
88365
+ */
88366
+ OrganizationSubscriptionDeleted.create = function create(properties) {
88367
+ return new OrganizationSubscriptionDeleted(properties);
88368
+ };
88369
+
88370
+ /**
88371
+ * Encodes the specified OrganizationSubscriptionDeleted message. Does not implicitly {@link OrganizationSubscriptionDeleted.verify|verify} messages.
88372
+ * @function encode
88373
+ * @memberof OrganizationSubscriptionDeleted
88374
+ * @static
88375
+ * @param {IOrganizationSubscriptionDeleted} message OrganizationSubscriptionDeleted message or plain object to encode
88376
+ * @param {$protobuf.Writer} [writer] Writer to encode to
88377
+ * @returns {$protobuf.Writer} Writer
88378
+ */
88379
+ OrganizationSubscriptionDeleted.encode = function encode(message, writer) {
88380
+ if (!writer)
88381
+ writer = $Writer.create();
88382
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
88383
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
88384
+ if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
88385
+ writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.dashboardUserId);
88386
+ if (message.organization != null && message.hasOwnProperty("organization"))
88387
+ $root.b2b.Organization.encode(message.organization, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
88388
+ if (message.subscription != null && message.hasOwnProperty("subscription"))
88389
+ $root.b2b.B2BSubscriptionManagement.encode(message.subscription, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
88390
+ if (message.activeSubscription != null && message.hasOwnProperty("activeSubscription"))
88391
+ $root.b2b.B2BSubscriptionManagement.encode(message.activeSubscription, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
88392
+ return writer;
88393
+ };
88394
+
88395
+ /**
88396
+ * Encodes the specified OrganizationSubscriptionDeleted message, length delimited. Does not implicitly {@link OrganizationSubscriptionDeleted.verify|verify} messages.
88397
+ * @function encodeDelimited
88398
+ * @memberof OrganizationSubscriptionDeleted
88399
+ * @static
88400
+ * @param {IOrganizationSubscriptionDeleted} message OrganizationSubscriptionDeleted message or plain object to encode
88401
+ * @param {$protobuf.Writer} [writer] Writer to encode to
88402
+ * @returns {$protobuf.Writer} Writer
88403
+ */
88404
+ OrganizationSubscriptionDeleted.encodeDelimited = function encodeDelimited(message, writer) {
88405
+ return this.encode(message, writer).ldelim();
88406
+ };
88407
+
88408
+ /**
88409
+ * Decodes an OrganizationSubscriptionDeleted message from the specified reader or buffer.
88410
+ * @function decode
88411
+ * @memberof OrganizationSubscriptionDeleted
88412
+ * @static
88413
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
88414
+ * @param {number} [length] Message length if known beforehand
88415
+ * @returns {OrganizationSubscriptionDeleted} OrganizationSubscriptionDeleted
88416
+ * @throws {Error} If the payload is not a reader or valid buffer
88417
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
88418
+ */
88419
+ OrganizationSubscriptionDeleted.decode = function decode(reader, length) {
88420
+ if (!(reader instanceof $Reader))
88421
+ reader = $Reader.create(reader);
88422
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.OrganizationSubscriptionDeleted();
88423
+ while (reader.pos < end) {
88424
+ var tag = reader.uint32();
88425
+ switch (tag >>> 3) {
88426
+ case 1:
88427
+ message.timestamp = reader.uint64();
88428
+ break;
88429
+ case 2:
88430
+ message.dashboardUserId = reader.uint32();
88431
+ break;
88432
+ case 3:
88433
+ message.organization = $root.b2b.Organization.decode(reader, reader.uint32());
88434
+ break;
88435
+ case 4:
88436
+ message.subscription = $root.b2b.B2BSubscriptionManagement.decode(reader, reader.uint32());
88437
+ break;
88438
+ case 5:
88439
+ message.activeSubscription = $root.b2b.B2BSubscriptionManagement.decode(reader, reader.uint32());
88440
+ break;
88441
+ default:
88442
+ reader.skipType(tag & 7);
88443
+ break;
88444
+ }
88445
+ }
88446
+ return message;
88447
+ };
88448
+
88449
+ /**
88450
+ * Decodes an OrganizationSubscriptionDeleted message from the specified reader or buffer, length delimited.
88451
+ * @function decodeDelimited
88452
+ * @memberof OrganizationSubscriptionDeleted
88453
+ * @static
88454
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
88455
+ * @returns {OrganizationSubscriptionDeleted} OrganizationSubscriptionDeleted
88456
+ * @throws {Error} If the payload is not a reader or valid buffer
88457
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
88458
+ */
88459
+ OrganizationSubscriptionDeleted.decodeDelimited = function decodeDelimited(reader) {
88460
+ if (!(reader instanceof $Reader))
88461
+ reader = new $Reader(reader);
88462
+ return this.decode(reader, reader.uint32());
88463
+ };
88464
+
88465
+ /**
88466
+ * Verifies an OrganizationSubscriptionDeleted message.
88467
+ * @function verify
88468
+ * @memberof OrganizationSubscriptionDeleted
88469
+ * @static
88470
+ * @param {Object.<string,*>} message Plain object to verify
88471
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
88472
+ */
88473
+ OrganizationSubscriptionDeleted.verify = function verify(message) {
88474
+ if (typeof message !== "object" || message === null)
88475
+ return "object expected";
88476
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
88477
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
88478
+ return "timestamp: integer|Long expected";
88479
+ if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
88480
+ if (!$util.isInteger(message.dashboardUserId))
88481
+ return "dashboardUserId: integer expected";
88482
+ if (message.organization != null && message.hasOwnProperty("organization")) {
88483
+ var error = $root.b2b.Organization.verify(message.organization);
88484
+ if (error)
88485
+ return "organization." + error;
88486
+ }
88487
+ if (message.subscription != null && message.hasOwnProperty("subscription")) {
88488
+ var error = $root.b2b.B2BSubscriptionManagement.verify(message.subscription);
88489
+ if (error)
88490
+ return "subscription." + error;
88491
+ }
88492
+ if (message.activeSubscription != null && message.hasOwnProperty("activeSubscription")) {
88493
+ var error = $root.b2b.B2BSubscriptionManagement.verify(message.activeSubscription);
88494
+ if (error)
88495
+ return "activeSubscription." + error;
88496
+ }
88497
+ return null;
88498
+ };
88499
+
88500
+ /**
88501
+ * Creates an OrganizationSubscriptionDeleted message from a plain object. Also converts values to their respective internal types.
88502
+ * @function fromObject
88503
+ * @memberof OrganizationSubscriptionDeleted
88504
+ * @static
88505
+ * @param {Object.<string,*>} object Plain object
88506
+ * @returns {OrganizationSubscriptionDeleted} OrganizationSubscriptionDeleted
88507
+ */
88508
+ OrganizationSubscriptionDeleted.fromObject = function fromObject(object) {
88509
+ if (object instanceof $root.OrganizationSubscriptionDeleted)
88510
+ return object;
88511
+ var message = new $root.OrganizationSubscriptionDeleted();
88512
+ if (object.timestamp != null)
88513
+ if ($util.Long)
88514
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
88515
+ else if (typeof object.timestamp === "string")
88516
+ message.timestamp = parseInt(object.timestamp, 10);
88517
+ else if (typeof object.timestamp === "number")
88518
+ message.timestamp = object.timestamp;
88519
+ else if (typeof object.timestamp === "object")
88520
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
88521
+ if (object.dashboardUserId != null)
88522
+ message.dashboardUserId = object.dashboardUserId >>> 0;
88523
+ if (object.organization != null) {
88524
+ if (typeof object.organization !== "object")
88525
+ throw TypeError(".OrganizationSubscriptionDeleted.organization: object expected");
88526
+ message.organization = $root.b2b.Organization.fromObject(object.organization);
88527
+ }
88528
+ if (object.subscription != null) {
88529
+ if (typeof object.subscription !== "object")
88530
+ throw TypeError(".OrganizationSubscriptionDeleted.subscription: object expected");
88531
+ message.subscription = $root.b2b.B2BSubscriptionManagement.fromObject(object.subscription);
88532
+ }
88533
+ if (object.activeSubscription != null) {
88534
+ if (typeof object.activeSubscription !== "object")
88535
+ throw TypeError(".OrganizationSubscriptionDeleted.activeSubscription: object expected");
88536
+ message.activeSubscription = $root.b2b.B2BSubscriptionManagement.fromObject(object.activeSubscription);
88537
+ }
88538
+ return message;
88539
+ };
88540
+
88541
+ /**
88542
+ * Creates a plain object from an OrganizationSubscriptionDeleted message. Also converts values to other types if specified.
88543
+ * @function toObject
88544
+ * @memberof OrganizationSubscriptionDeleted
88545
+ * @static
88546
+ * @param {OrganizationSubscriptionDeleted} message OrganizationSubscriptionDeleted
88547
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
88548
+ * @returns {Object.<string,*>} Plain object
88549
+ */
88550
+ OrganizationSubscriptionDeleted.toObject = function toObject(message, options) {
88551
+ if (!options)
88552
+ options = {};
88553
+ var object = {};
88554
+ if (options.defaults) {
88555
+ if ($util.Long) {
88556
+ var long = new $util.Long(0, 0, true);
88557
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
88558
+ } else
88559
+ object.timestamp = options.longs === String ? "0" : 0;
88560
+ object.dashboardUserId = 0;
88561
+ object.organization = null;
88562
+ object.subscription = null;
88563
+ object.activeSubscription = null;
88564
+ }
88565
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
88566
+ if (typeof message.timestamp === "number")
88567
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
88568
+ else
88569
+ object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
88570
+ if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
88571
+ object.dashboardUserId = message.dashboardUserId;
88572
+ if (message.organization != null && message.hasOwnProperty("organization"))
88573
+ object.organization = $root.b2b.Organization.toObject(message.organization, options);
88574
+ if (message.subscription != null && message.hasOwnProperty("subscription"))
88575
+ object.subscription = $root.b2b.B2BSubscriptionManagement.toObject(message.subscription, options);
88576
+ if (message.activeSubscription != null && message.hasOwnProperty("activeSubscription"))
88577
+ object.activeSubscription = $root.b2b.B2BSubscriptionManagement.toObject(message.activeSubscription, options);
88578
+ return object;
88579
+ };
88580
+
88581
+ /**
88582
+ * Converts this OrganizationSubscriptionDeleted to JSON.
88583
+ * @function toJSON
88584
+ * @memberof OrganizationSubscriptionDeleted
88585
+ * @instance
88586
+ * @returns {Object.<string,*>} JSON object
88587
+ */
88588
+ OrganizationSubscriptionDeleted.prototype.toJSON = function toJSON() {
88589
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
88590
+ };
88591
+
88592
+ return OrganizationSubscriptionDeleted;
88593
+ })();
88594
+
88200
88595
  $root.FamilyMemberAdded = (function() {
88201
88596
 
88202
88597
  /**
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.457.0"
19
+ "version": "1.459.0"
20
20
  }