@headspace/protos-events 1.456.0 → 1.458.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 +2031 -1815
  2. package/lib/index.js +556 -0
  3. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -86605,6 +86605,257 @@ $root.OrganizationUpdated = (function() {
86605
86605
  return OrganizationUpdated;
86606
86606
  })();
86607
86607
 
86608
+ $root.OrganizationDeleted = (function() {
86609
+
86610
+ /**
86611
+ * Properties of an OrganizationDeleted.
86612
+ * @exports IOrganizationDeleted
86613
+ * @interface IOrganizationDeleted
86614
+ * @property {number|null} [dashboardUserId] OrganizationDeleted dashboardUserId
86615
+ * @property {number|Long|null} [timestamp] OrganizationDeleted timestamp
86616
+ * @property {b2b.IOrganization|null} [organization] OrganizationDeleted organization
86617
+ */
86618
+
86619
+ /**
86620
+ * Constructs a new OrganizationDeleted.
86621
+ * @exports OrganizationDeleted
86622
+ * @classdesc Represents an OrganizationDeleted.
86623
+ * @implements IOrganizationDeleted
86624
+ * @constructor
86625
+ * @param {IOrganizationDeleted=} [properties] Properties to set
86626
+ */
86627
+ function OrganizationDeleted(properties) {
86628
+ if (properties)
86629
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
86630
+ if (properties[keys[i]] != null)
86631
+ this[keys[i]] = properties[keys[i]];
86632
+ }
86633
+
86634
+ /**
86635
+ * OrganizationDeleted dashboardUserId.
86636
+ * @member {number} dashboardUserId
86637
+ * @memberof OrganizationDeleted
86638
+ * @instance
86639
+ */
86640
+ OrganizationDeleted.prototype.dashboardUserId = 0;
86641
+
86642
+ /**
86643
+ * OrganizationDeleted timestamp.
86644
+ * @member {number|Long} timestamp
86645
+ * @memberof OrganizationDeleted
86646
+ * @instance
86647
+ */
86648
+ OrganizationDeleted.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
86649
+
86650
+ /**
86651
+ * OrganizationDeleted organization.
86652
+ * @member {b2b.IOrganization|null|undefined} organization
86653
+ * @memberof OrganizationDeleted
86654
+ * @instance
86655
+ */
86656
+ OrganizationDeleted.prototype.organization = null;
86657
+
86658
+ /**
86659
+ * Creates a new OrganizationDeleted instance using the specified properties.
86660
+ * @function create
86661
+ * @memberof OrganizationDeleted
86662
+ * @static
86663
+ * @param {IOrganizationDeleted=} [properties] Properties to set
86664
+ * @returns {OrganizationDeleted} OrganizationDeleted instance
86665
+ */
86666
+ OrganizationDeleted.create = function create(properties) {
86667
+ return new OrganizationDeleted(properties);
86668
+ };
86669
+
86670
+ /**
86671
+ * Encodes the specified OrganizationDeleted message. Does not implicitly {@link OrganizationDeleted.verify|verify} messages.
86672
+ * @function encode
86673
+ * @memberof OrganizationDeleted
86674
+ * @static
86675
+ * @param {IOrganizationDeleted} message OrganizationDeleted message or plain object to encode
86676
+ * @param {$protobuf.Writer} [writer] Writer to encode to
86677
+ * @returns {$protobuf.Writer} Writer
86678
+ */
86679
+ OrganizationDeleted.encode = function encode(message, writer) {
86680
+ if (!writer)
86681
+ writer = $Writer.create();
86682
+ if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
86683
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.dashboardUserId);
86684
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
86685
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp);
86686
+ if (message.organization != null && message.hasOwnProperty("organization"))
86687
+ $root.b2b.Organization.encode(message.organization, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
86688
+ return writer;
86689
+ };
86690
+
86691
+ /**
86692
+ * Encodes the specified OrganizationDeleted message, length delimited. Does not implicitly {@link OrganizationDeleted.verify|verify} messages.
86693
+ * @function encodeDelimited
86694
+ * @memberof OrganizationDeleted
86695
+ * @static
86696
+ * @param {IOrganizationDeleted} message OrganizationDeleted message or plain object to encode
86697
+ * @param {$protobuf.Writer} [writer] Writer to encode to
86698
+ * @returns {$protobuf.Writer} Writer
86699
+ */
86700
+ OrganizationDeleted.encodeDelimited = function encodeDelimited(message, writer) {
86701
+ return this.encode(message, writer).ldelim();
86702
+ };
86703
+
86704
+ /**
86705
+ * Decodes an OrganizationDeleted message from the specified reader or buffer.
86706
+ * @function decode
86707
+ * @memberof OrganizationDeleted
86708
+ * @static
86709
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
86710
+ * @param {number} [length] Message length if known beforehand
86711
+ * @returns {OrganizationDeleted} OrganizationDeleted
86712
+ * @throws {Error} If the payload is not a reader or valid buffer
86713
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
86714
+ */
86715
+ OrganizationDeleted.decode = function decode(reader, length) {
86716
+ if (!(reader instanceof $Reader))
86717
+ reader = $Reader.create(reader);
86718
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.OrganizationDeleted();
86719
+ while (reader.pos < end) {
86720
+ var tag = reader.uint32();
86721
+ switch (tag >>> 3) {
86722
+ case 1:
86723
+ message.dashboardUserId = reader.uint32();
86724
+ break;
86725
+ case 2:
86726
+ message.timestamp = reader.uint64();
86727
+ break;
86728
+ case 3:
86729
+ message.organization = $root.b2b.Organization.decode(reader, reader.uint32());
86730
+ break;
86731
+ default:
86732
+ reader.skipType(tag & 7);
86733
+ break;
86734
+ }
86735
+ }
86736
+ return message;
86737
+ };
86738
+
86739
+ /**
86740
+ * Decodes an OrganizationDeleted message from the specified reader or buffer, length delimited.
86741
+ * @function decodeDelimited
86742
+ * @memberof OrganizationDeleted
86743
+ * @static
86744
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
86745
+ * @returns {OrganizationDeleted} OrganizationDeleted
86746
+ * @throws {Error} If the payload is not a reader or valid buffer
86747
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
86748
+ */
86749
+ OrganizationDeleted.decodeDelimited = function decodeDelimited(reader) {
86750
+ if (!(reader instanceof $Reader))
86751
+ reader = new $Reader(reader);
86752
+ return this.decode(reader, reader.uint32());
86753
+ };
86754
+
86755
+ /**
86756
+ * Verifies an OrganizationDeleted message.
86757
+ * @function verify
86758
+ * @memberof OrganizationDeleted
86759
+ * @static
86760
+ * @param {Object.<string,*>} message Plain object to verify
86761
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
86762
+ */
86763
+ OrganizationDeleted.verify = function verify(message) {
86764
+ if (typeof message !== "object" || message === null)
86765
+ return "object expected";
86766
+ if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
86767
+ if (!$util.isInteger(message.dashboardUserId))
86768
+ return "dashboardUserId: integer expected";
86769
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
86770
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
86771
+ return "timestamp: integer|Long expected";
86772
+ if (message.organization != null && message.hasOwnProperty("organization")) {
86773
+ var error = $root.b2b.Organization.verify(message.organization);
86774
+ if (error)
86775
+ return "organization." + error;
86776
+ }
86777
+ return null;
86778
+ };
86779
+
86780
+ /**
86781
+ * Creates an OrganizationDeleted message from a plain object. Also converts values to their respective internal types.
86782
+ * @function fromObject
86783
+ * @memberof OrganizationDeleted
86784
+ * @static
86785
+ * @param {Object.<string,*>} object Plain object
86786
+ * @returns {OrganizationDeleted} OrganizationDeleted
86787
+ */
86788
+ OrganizationDeleted.fromObject = function fromObject(object) {
86789
+ if (object instanceof $root.OrganizationDeleted)
86790
+ return object;
86791
+ var message = new $root.OrganizationDeleted();
86792
+ if (object.dashboardUserId != null)
86793
+ message.dashboardUserId = object.dashboardUserId >>> 0;
86794
+ if (object.timestamp != null)
86795
+ if ($util.Long)
86796
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
86797
+ else if (typeof object.timestamp === "string")
86798
+ message.timestamp = parseInt(object.timestamp, 10);
86799
+ else if (typeof object.timestamp === "number")
86800
+ message.timestamp = object.timestamp;
86801
+ else if (typeof object.timestamp === "object")
86802
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
86803
+ if (object.organization != null) {
86804
+ if (typeof object.organization !== "object")
86805
+ throw TypeError(".OrganizationDeleted.organization: object expected");
86806
+ message.organization = $root.b2b.Organization.fromObject(object.organization);
86807
+ }
86808
+ return message;
86809
+ };
86810
+
86811
+ /**
86812
+ * Creates a plain object from an OrganizationDeleted message. Also converts values to other types if specified.
86813
+ * @function toObject
86814
+ * @memberof OrganizationDeleted
86815
+ * @static
86816
+ * @param {OrganizationDeleted} message OrganizationDeleted
86817
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
86818
+ * @returns {Object.<string,*>} Plain object
86819
+ */
86820
+ OrganizationDeleted.toObject = function toObject(message, options) {
86821
+ if (!options)
86822
+ options = {};
86823
+ var object = {};
86824
+ if (options.defaults) {
86825
+ object.dashboardUserId = 0;
86826
+ if ($util.Long) {
86827
+ var long = new $util.Long(0, 0, true);
86828
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
86829
+ } else
86830
+ object.timestamp = options.longs === String ? "0" : 0;
86831
+ object.organization = null;
86832
+ }
86833
+ if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
86834
+ object.dashboardUserId = message.dashboardUserId;
86835
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
86836
+ if (typeof message.timestamp === "number")
86837
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
86838
+ else
86839
+ 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;
86840
+ if (message.organization != null && message.hasOwnProperty("organization"))
86841
+ object.organization = $root.b2b.Organization.toObject(message.organization, options);
86842
+ return object;
86843
+ };
86844
+
86845
+ /**
86846
+ * Converts this OrganizationDeleted to JSON.
86847
+ * @function toJSON
86848
+ * @memberof OrganizationDeleted
86849
+ * @instance
86850
+ * @returns {Object.<string,*>} JSON object
86851
+ */
86852
+ OrganizationDeleted.prototype.toJSON = function toJSON() {
86853
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
86854
+ };
86855
+
86856
+ return OrganizationDeleted;
86857
+ })();
86858
+
86608
86859
  $root.OrganizationMFAUpdated = (function() {
86609
86860
 
86610
86861
  /**
@@ -87946,6 +88197,311 @@ $root.OrganizationSubscriptionActivated = (function() {
87946
88197
  return OrganizationSubscriptionActivated;
87947
88198
  })();
87948
88199
 
88200
+ $root.OrganizationSubscriptionDeleted = (function() {
88201
+
88202
+ /**
88203
+ * Properties of an OrganizationSubscriptionDeleted.
88204
+ * @exports IOrganizationSubscriptionDeleted
88205
+ * @interface IOrganizationSubscriptionDeleted
88206
+ * @property {number|Long|null} [timestamp] OrganizationSubscriptionDeleted timestamp
88207
+ * @property {number|null} [dashboardUserId] OrganizationSubscriptionDeleted dashboardUserId
88208
+ * @property {b2b.IOrganization|null} [organization] OrganizationSubscriptionDeleted organization
88209
+ * @property {b2b.IB2BSubscriptionManagement|null} [subscription] OrganizationSubscriptionDeleted subscription
88210
+ * @property {b2b.IB2BSubscriptionManagement|null} [activeSubscription] OrganizationSubscriptionDeleted activeSubscription
88211
+ */
88212
+
88213
+ /**
88214
+ * Constructs a new OrganizationSubscriptionDeleted.
88215
+ * @exports OrganizationSubscriptionDeleted
88216
+ * @classdesc Represents an OrganizationSubscriptionDeleted.
88217
+ * @implements IOrganizationSubscriptionDeleted
88218
+ * @constructor
88219
+ * @param {IOrganizationSubscriptionDeleted=} [properties] Properties to set
88220
+ */
88221
+ function OrganizationSubscriptionDeleted(properties) {
88222
+ if (properties)
88223
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
88224
+ if (properties[keys[i]] != null)
88225
+ this[keys[i]] = properties[keys[i]];
88226
+ }
88227
+
88228
+ /**
88229
+ * OrganizationSubscriptionDeleted timestamp.
88230
+ * @member {number|Long} timestamp
88231
+ * @memberof OrganizationSubscriptionDeleted
88232
+ * @instance
88233
+ */
88234
+ OrganizationSubscriptionDeleted.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
88235
+
88236
+ /**
88237
+ * OrganizationSubscriptionDeleted dashboardUserId.
88238
+ * @member {number} dashboardUserId
88239
+ * @memberof OrganizationSubscriptionDeleted
88240
+ * @instance
88241
+ */
88242
+ OrganizationSubscriptionDeleted.prototype.dashboardUserId = 0;
88243
+
88244
+ /**
88245
+ * OrganizationSubscriptionDeleted organization.
88246
+ * @member {b2b.IOrganization|null|undefined} organization
88247
+ * @memberof OrganizationSubscriptionDeleted
88248
+ * @instance
88249
+ */
88250
+ OrganizationSubscriptionDeleted.prototype.organization = null;
88251
+
88252
+ /**
88253
+ * OrganizationSubscriptionDeleted subscription.
88254
+ * @member {b2b.IB2BSubscriptionManagement|null|undefined} subscription
88255
+ * @memberof OrganizationSubscriptionDeleted
88256
+ * @instance
88257
+ */
88258
+ OrganizationSubscriptionDeleted.prototype.subscription = null;
88259
+
88260
+ /**
88261
+ * OrganizationSubscriptionDeleted activeSubscription.
88262
+ * @member {b2b.IB2BSubscriptionManagement|null|undefined} activeSubscription
88263
+ * @memberof OrganizationSubscriptionDeleted
88264
+ * @instance
88265
+ */
88266
+ OrganizationSubscriptionDeleted.prototype.activeSubscription = null;
88267
+
88268
+ /**
88269
+ * Creates a new OrganizationSubscriptionDeleted instance using the specified properties.
88270
+ * @function create
88271
+ * @memberof OrganizationSubscriptionDeleted
88272
+ * @static
88273
+ * @param {IOrganizationSubscriptionDeleted=} [properties] Properties to set
88274
+ * @returns {OrganizationSubscriptionDeleted} OrganizationSubscriptionDeleted instance
88275
+ */
88276
+ OrganizationSubscriptionDeleted.create = function create(properties) {
88277
+ return new OrganizationSubscriptionDeleted(properties);
88278
+ };
88279
+
88280
+ /**
88281
+ * Encodes the specified OrganizationSubscriptionDeleted message. Does not implicitly {@link OrganizationSubscriptionDeleted.verify|verify} messages.
88282
+ * @function encode
88283
+ * @memberof OrganizationSubscriptionDeleted
88284
+ * @static
88285
+ * @param {IOrganizationSubscriptionDeleted} message OrganizationSubscriptionDeleted message or plain object to encode
88286
+ * @param {$protobuf.Writer} [writer] Writer to encode to
88287
+ * @returns {$protobuf.Writer} Writer
88288
+ */
88289
+ OrganizationSubscriptionDeleted.encode = function encode(message, writer) {
88290
+ if (!writer)
88291
+ writer = $Writer.create();
88292
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
88293
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
88294
+ if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
88295
+ writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.dashboardUserId);
88296
+ if (message.organization != null && message.hasOwnProperty("organization"))
88297
+ $root.b2b.Organization.encode(message.organization, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
88298
+ if (message.subscription != null && message.hasOwnProperty("subscription"))
88299
+ $root.b2b.B2BSubscriptionManagement.encode(message.subscription, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
88300
+ if (message.activeSubscription != null && message.hasOwnProperty("activeSubscription"))
88301
+ $root.b2b.B2BSubscriptionManagement.encode(message.activeSubscription, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
88302
+ return writer;
88303
+ };
88304
+
88305
+ /**
88306
+ * Encodes the specified OrganizationSubscriptionDeleted message, length delimited. Does not implicitly {@link OrganizationSubscriptionDeleted.verify|verify} messages.
88307
+ * @function encodeDelimited
88308
+ * @memberof OrganizationSubscriptionDeleted
88309
+ * @static
88310
+ * @param {IOrganizationSubscriptionDeleted} message OrganizationSubscriptionDeleted message or plain object to encode
88311
+ * @param {$protobuf.Writer} [writer] Writer to encode to
88312
+ * @returns {$protobuf.Writer} Writer
88313
+ */
88314
+ OrganizationSubscriptionDeleted.encodeDelimited = function encodeDelimited(message, writer) {
88315
+ return this.encode(message, writer).ldelim();
88316
+ };
88317
+
88318
+ /**
88319
+ * Decodes an OrganizationSubscriptionDeleted message from the specified reader or buffer.
88320
+ * @function decode
88321
+ * @memberof OrganizationSubscriptionDeleted
88322
+ * @static
88323
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
88324
+ * @param {number} [length] Message length if known beforehand
88325
+ * @returns {OrganizationSubscriptionDeleted} OrganizationSubscriptionDeleted
88326
+ * @throws {Error} If the payload is not a reader or valid buffer
88327
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
88328
+ */
88329
+ OrganizationSubscriptionDeleted.decode = function decode(reader, length) {
88330
+ if (!(reader instanceof $Reader))
88331
+ reader = $Reader.create(reader);
88332
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.OrganizationSubscriptionDeleted();
88333
+ while (reader.pos < end) {
88334
+ var tag = reader.uint32();
88335
+ switch (tag >>> 3) {
88336
+ case 1:
88337
+ message.timestamp = reader.uint64();
88338
+ break;
88339
+ case 2:
88340
+ message.dashboardUserId = reader.uint32();
88341
+ break;
88342
+ case 3:
88343
+ message.organization = $root.b2b.Organization.decode(reader, reader.uint32());
88344
+ break;
88345
+ case 4:
88346
+ message.subscription = $root.b2b.B2BSubscriptionManagement.decode(reader, reader.uint32());
88347
+ break;
88348
+ case 5:
88349
+ message.activeSubscription = $root.b2b.B2BSubscriptionManagement.decode(reader, reader.uint32());
88350
+ break;
88351
+ default:
88352
+ reader.skipType(tag & 7);
88353
+ break;
88354
+ }
88355
+ }
88356
+ return message;
88357
+ };
88358
+
88359
+ /**
88360
+ * Decodes an OrganizationSubscriptionDeleted message from the specified reader or buffer, length delimited.
88361
+ * @function decodeDelimited
88362
+ * @memberof OrganizationSubscriptionDeleted
88363
+ * @static
88364
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
88365
+ * @returns {OrganizationSubscriptionDeleted} OrganizationSubscriptionDeleted
88366
+ * @throws {Error} If the payload is not a reader or valid buffer
88367
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
88368
+ */
88369
+ OrganizationSubscriptionDeleted.decodeDelimited = function decodeDelimited(reader) {
88370
+ if (!(reader instanceof $Reader))
88371
+ reader = new $Reader(reader);
88372
+ return this.decode(reader, reader.uint32());
88373
+ };
88374
+
88375
+ /**
88376
+ * Verifies an OrganizationSubscriptionDeleted message.
88377
+ * @function verify
88378
+ * @memberof OrganizationSubscriptionDeleted
88379
+ * @static
88380
+ * @param {Object.<string,*>} message Plain object to verify
88381
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
88382
+ */
88383
+ OrganizationSubscriptionDeleted.verify = function verify(message) {
88384
+ if (typeof message !== "object" || message === null)
88385
+ return "object expected";
88386
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
88387
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
88388
+ return "timestamp: integer|Long expected";
88389
+ if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
88390
+ if (!$util.isInteger(message.dashboardUserId))
88391
+ return "dashboardUserId: integer expected";
88392
+ if (message.organization != null && message.hasOwnProperty("organization")) {
88393
+ var error = $root.b2b.Organization.verify(message.organization);
88394
+ if (error)
88395
+ return "organization." + error;
88396
+ }
88397
+ if (message.subscription != null && message.hasOwnProperty("subscription")) {
88398
+ var error = $root.b2b.B2BSubscriptionManagement.verify(message.subscription);
88399
+ if (error)
88400
+ return "subscription." + error;
88401
+ }
88402
+ if (message.activeSubscription != null && message.hasOwnProperty("activeSubscription")) {
88403
+ var error = $root.b2b.B2BSubscriptionManagement.verify(message.activeSubscription);
88404
+ if (error)
88405
+ return "activeSubscription." + error;
88406
+ }
88407
+ return null;
88408
+ };
88409
+
88410
+ /**
88411
+ * Creates an OrganizationSubscriptionDeleted message from a plain object. Also converts values to their respective internal types.
88412
+ * @function fromObject
88413
+ * @memberof OrganizationSubscriptionDeleted
88414
+ * @static
88415
+ * @param {Object.<string,*>} object Plain object
88416
+ * @returns {OrganizationSubscriptionDeleted} OrganizationSubscriptionDeleted
88417
+ */
88418
+ OrganizationSubscriptionDeleted.fromObject = function fromObject(object) {
88419
+ if (object instanceof $root.OrganizationSubscriptionDeleted)
88420
+ return object;
88421
+ var message = new $root.OrganizationSubscriptionDeleted();
88422
+ if (object.timestamp != null)
88423
+ if ($util.Long)
88424
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
88425
+ else if (typeof object.timestamp === "string")
88426
+ message.timestamp = parseInt(object.timestamp, 10);
88427
+ else if (typeof object.timestamp === "number")
88428
+ message.timestamp = object.timestamp;
88429
+ else if (typeof object.timestamp === "object")
88430
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
88431
+ if (object.dashboardUserId != null)
88432
+ message.dashboardUserId = object.dashboardUserId >>> 0;
88433
+ if (object.organization != null) {
88434
+ if (typeof object.organization !== "object")
88435
+ throw TypeError(".OrganizationSubscriptionDeleted.organization: object expected");
88436
+ message.organization = $root.b2b.Organization.fromObject(object.organization);
88437
+ }
88438
+ if (object.subscription != null) {
88439
+ if (typeof object.subscription !== "object")
88440
+ throw TypeError(".OrganizationSubscriptionDeleted.subscription: object expected");
88441
+ message.subscription = $root.b2b.B2BSubscriptionManagement.fromObject(object.subscription);
88442
+ }
88443
+ if (object.activeSubscription != null) {
88444
+ if (typeof object.activeSubscription !== "object")
88445
+ throw TypeError(".OrganizationSubscriptionDeleted.activeSubscription: object expected");
88446
+ message.activeSubscription = $root.b2b.B2BSubscriptionManagement.fromObject(object.activeSubscription);
88447
+ }
88448
+ return message;
88449
+ };
88450
+
88451
+ /**
88452
+ * Creates a plain object from an OrganizationSubscriptionDeleted message. Also converts values to other types if specified.
88453
+ * @function toObject
88454
+ * @memberof OrganizationSubscriptionDeleted
88455
+ * @static
88456
+ * @param {OrganizationSubscriptionDeleted} message OrganizationSubscriptionDeleted
88457
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
88458
+ * @returns {Object.<string,*>} Plain object
88459
+ */
88460
+ OrganizationSubscriptionDeleted.toObject = function toObject(message, options) {
88461
+ if (!options)
88462
+ options = {};
88463
+ var object = {};
88464
+ if (options.defaults) {
88465
+ if ($util.Long) {
88466
+ var long = new $util.Long(0, 0, true);
88467
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
88468
+ } else
88469
+ object.timestamp = options.longs === String ? "0" : 0;
88470
+ object.dashboardUserId = 0;
88471
+ object.organization = null;
88472
+ object.subscription = null;
88473
+ object.activeSubscription = null;
88474
+ }
88475
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
88476
+ if (typeof message.timestamp === "number")
88477
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
88478
+ else
88479
+ 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;
88480
+ if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
88481
+ object.dashboardUserId = message.dashboardUserId;
88482
+ if (message.organization != null && message.hasOwnProperty("organization"))
88483
+ object.organization = $root.b2b.Organization.toObject(message.organization, options);
88484
+ if (message.subscription != null && message.hasOwnProperty("subscription"))
88485
+ object.subscription = $root.b2b.B2BSubscriptionManagement.toObject(message.subscription, options);
88486
+ if (message.activeSubscription != null && message.hasOwnProperty("activeSubscription"))
88487
+ object.activeSubscription = $root.b2b.B2BSubscriptionManagement.toObject(message.activeSubscription, options);
88488
+ return object;
88489
+ };
88490
+
88491
+ /**
88492
+ * Converts this OrganizationSubscriptionDeleted to JSON.
88493
+ * @function toJSON
88494
+ * @memberof OrganizationSubscriptionDeleted
88495
+ * @instance
88496
+ * @returns {Object.<string,*>} JSON object
88497
+ */
88498
+ OrganizationSubscriptionDeleted.prototype.toJSON = function toJSON() {
88499
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
88500
+ };
88501
+
88502
+ return OrganizationSubscriptionDeleted;
88503
+ })();
88504
+
87949
88505
  $root.FamilyMemberAdded = (function() {
87950
88506
 
87951
88507
  /**
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.456.0"
19
+ "version": "1.458.0"
20
20
  }