@headspace/protos-events 1.456.0 → 1.457.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
@@ -31190,6 +31190,108 @@ export class OrganizationUpdated implements IOrganizationUpdated {
31190
31190
  public toJSON(): { [k: string]: any };
31191
31191
  }
31192
31192
 
31193
+ /** Properties of an OrganizationDeleted. */
31194
+ export interface IOrganizationDeleted {
31195
+
31196
+ /** OrganizationDeleted dashboardUserId */
31197
+ dashboardUserId?: (number|null);
31198
+
31199
+ /** OrganizationDeleted timestamp */
31200
+ timestamp?: (number|Long|null);
31201
+
31202
+ /** OrganizationDeleted organization */
31203
+ organization?: (b2b.IOrganization|null);
31204
+ }
31205
+
31206
+ /** Represents an OrganizationDeleted. */
31207
+ export class OrganizationDeleted implements IOrganizationDeleted {
31208
+
31209
+ /**
31210
+ * Constructs a new OrganizationDeleted.
31211
+ * @param [properties] Properties to set
31212
+ */
31213
+ constructor(properties?: IOrganizationDeleted);
31214
+
31215
+ /** OrganizationDeleted dashboardUserId. */
31216
+ public dashboardUserId: number;
31217
+
31218
+ /** OrganizationDeleted timestamp. */
31219
+ public timestamp: (number|Long);
31220
+
31221
+ /** OrganizationDeleted organization. */
31222
+ public organization?: (b2b.IOrganization|null);
31223
+
31224
+ /**
31225
+ * Creates a new OrganizationDeleted instance using the specified properties.
31226
+ * @param [properties] Properties to set
31227
+ * @returns OrganizationDeleted instance
31228
+ */
31229
+ public static create(properties?: IOrganizationDeleted): OrganizationDeleted;
31230
+
31231
+ /**
31232
+ * Encodes the specified OrganizationDeleted message. Does not implicitly {@link OrganizationDeleted.verify|verify} messages.
31233
+ * @param message OrganizationDeleted message or plain object to encode
31234
+ * @param [writer] Writer to encode to
31235
+ * @returns Writer
31236
+ */
31237
+ public static encode(message: IOrganizationDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
31238
+
31239
+ /**
31240
+ * Encodes the specified OrganizationDeleted message, length delimited. Does not implicitly {@link OrganizationDeleted.verify|verify} messages.
31241
+ * @param message OrganizationDeleted message or plain object to encode
31242
+ * @param [writer] Writer to encode to
31243
+ * @returns Writer
31244
+ */
31245
+ public static encodeDelimited(message: IOrganizationDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
31246
+
31247
+ /**
31248
+ * Decodes an OrganizationDeleted message from the specified reader or buffer.
31249
+ * @param reader Reader or buffer to decode from
31250
+ * @param [length] Message length if known beforehand
31251
+ * @returns OrganizationDeleted
31252
+ * @throws {Error} If the payload is not a reader or valid buffer
31253
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
31254
+ */
31255
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): OrganizationDeleted;
31256
+
31257
+ /**
31258
+ * Decodes an OrganizationDeleted message from the specified reader or buffer, length delimited.
31259
+ * @param reader Reader or buffer to decode from
31260
+ * @returns OrganizationDeleted
31261
+ * @throws {Error} If the payload is not a reader or valid buffer
31262
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
31263
+ */
31264
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): OrganizationDeleted;
31265
+
31266
+ /**
31267
+ * Verifies an OrganizationDeleted message.
31268
+ * @param message Plain object to verify
31269
+ * @returns `null` if valid, otherwise the reason why it is not
31270
+ */
31271
+ public static verify(message: { [k: string]: any }): (string|null);
31272
+
31273
+ /**
31274
+ * Creates an OrganizationDeleted message from a plain object. Also converts values to their respective internal types.
31275
+ * @param object Plain object
31276
+ * @returns OrganizationDeleted
31277
+ */
31278
+ public static fromObject(object: { [k: string]: any }): OrganizationDeleted;
31279
+
31280
+ /**
31281
+ * Creates a plain object from an OrganizationDeleted message. Also converts values to other types if specified.
31282
+ * @param message OrganizationDeleted
31283
+ * @param [options] Conversion options
31284
+ * @returns Plain object
31285
+ */
31286
+ public static toObject(message: OrganizationDeleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
31287
+
31288
+ /**
31289
+ * Converts this OrganizationDeleted to JSON.
31290
+ * @returns JSON object
31291
+ */
31292
+ public toJSON(): { [k: string]: any };
31293
+ }
31294
+
31193
31295
  /** Properties of an OrganizationMFAUpdated. */
31194
31296
  export interface IOrganizationMFAUpdated {
31195
31297
 
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
  /**
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.457.0"
20
20
  }