@headspace/protos-events 1.772.0 → 1.773.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
@@ -35005,6 +35005,114 @@ export class OrganizationMFAUpdated implements IOrganizationMFAUpdated {
35005
35005
  public toJSON(): { [k: string]: any };
35006
35006
  }
35007
35007
 
35008
+ /** Properties of an OrgCoachingConfigUpdated. */
35009
+ export interface IOrgCoachingConfigUpdated {
35010
+
35011
+ /** OrgCoachingConfigUpdated b2bOrgId */
35012
+ b2bOrgId?: (number|null);
35013
+
35014
+ /** OrgCoachingConfigUpdated isTextCoachingDisabled */
35015
+ isTextCoachingDisabled?: (boolean|null);
35016
+
35017
+ /** OrgCoachingConfigUpdated adminId */
35018
+ adminId?: (number|null);
35019
+
35020
+ /** OrgCoachingConfigUpdated timestamp */
35021
+ timestamp?: (number|Long|null);
35022
+ }
35023
+
35024
+ /** Represents an OrgCoachingConfigUpdated. */
35025
+ export class OrgCoachingConfigUpdated implements IOrgCoachingConfigUpdated {
35026
+
35027
+ /**
35028
+ * Constructs a new OrgCoachingConfigUpdated.
35029
+ * @param [properties] Properties to set
35030
+ */
35031
+ constructor(properties?: IOrgCoachingConfigUpdated);
35032
+
35033
+ /** OrgCoachingConfigUpdated b2bOrgId. */
35034
+ public b2bOrgId: number;
35035
+
35036
+ /** OrgCoachingConfigUpdated isTextCoachingDisabled. */
35037
+ public isTextCoachingDisabled: boolean;
35038
+
35039
+ /** OrgCoachingConfigUpdated adminId. */
35040
+ public adminId: number;
35041
+
35042
+ /** OrgCoachingConfigUpdated timestamp. */
35043
+ public timestamp: (number|Long);
35044
+
35045
+ /**
35046
+ * Creates a new OrgCoachingConfigUpdated instance using the specified properties.
35047
+ * @param [properties] Properties to set
35048
+ * @returns OrgCoachingConfigUpdated instance
35049
+ */
35050
+ public static create(properties?: IOrgCoachingConfigUpdated): OrgCoachingConfigUpdated;
35051
+
35052
+ /**
35053
+ * Encodes the specified OrgCoachingConfigUpdated message. Does not implicitly {@link OrgCoachingConfigUpdated.verify|verify} messages.
35054
+ * @param message OrgCoachingConfigUpdated message or plain object to encode
35055
+ * @param [writer] Writer to encode to
35056
+ * @returns Writer
35057
+ */
35058
+ public static encode(message: IOrgCoachingConfigUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
35059
+
35060
+ /**
35061
+ * Encodes the specified OrgCoachingConfigUpdated message, length delimited. Does not implicitly {@link OrgCoachingConfigUpdated.verify|verify} messages.
35062
+ * @param message OrgCoachingConfigUpdated message or plain object to encode
35063
+ * @param [writer] Writer to encode to
35064
+ * @returns Writer
35065
+ */
35066
+ public static encodeDelimited(message: IOrgCoachingConfigUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
35067
+
35068
+ /**
35069
+ * Decodes an OrgCoachingConfigUpdated message from the specified reader or buffer.
35070
+ * @param reader Reader or buffer to decode from
35071
+ * @param [length] Message length if known beforehand
35072
+ * @returns OrgCoachingConfigUpdated
35073
+ * @throws {Error} If the payload is not a reader or valid buffer
35074
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
35075
+ */
35076
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): OrgCoachingConfigUpdated;
35077
+
35078
+ /**
35079
+ * Decodes an OrgCoachingConfigUpdated message from the specified reader or buffer, length delimited.
35080
+ * @param reader Reader or buffer to decode from
35081
+ * @returns OrgCoachingConfigUpdated
35082
+ * @throws {Error} If the payload is not a reader or valid buffer
35083
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
35084
+ */
35085
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): OrgCoachingConfigUpdated;
35086
+
35087
+ /**
35088
+ * Verifies an OrgCoachingConfigUpdated message.
35089
+ * @param message Plain object to verify
35090
+ * @returns `null` if valid, otherwise the reason why it is not
35091
+ */
35092
+ public static verify(message: { [k: string]: any }): (string|null);
35093
+
35094
+ /**
35095
+ * Creates an OrgCoachingConfigUpdated message from a plain object. Also converts values to their respective internal types.
35096
+ * @param object Plain object
35097
+ * @returns OrgCoachingConfigUpdated
35098
+ */
35099
+ public static fromObject(object: { [k: string]: any }): OrgCoachingConfigUpdated;
35100
+
35101
+ /**
35102
+ * Creates a plain object from an OrgCoachingConfigUpdated message. Also converts values to other types if specified.
35103
+ * @param message OrgCoachingConfigUpdated
35104
+ * @param [options] Conversion options
35105
+ * @returns Plain object
35106
+ */
35107
+ public static toObject(message: OrgCoachingConfigUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
35108
+
35109
+ /**
35110
+ * Converts this OrgCoachingConfigUpdated to JSON.
35111
+ * @returns JSON object
35112
+ */
35113
+ public toJSON(): { [k: string]: any };
35114
+ }
35115
+
35008
35116
  /** Properties of an OrgMarketingConfigUpdated. */
35009
35117
  export interface IOrgMarketingConfigUpdated {
35010
35118
 
package/lib/index.js CHANGED
@@ -98431,6 +98431,274 @@ $root.OrganizationMFAUpdated = (function() {
98431
98431
  return OrganizationMFAUpdated;
98432
98432
  })();
98433
98433
 
98434
+ $root.OrgCoachingConfigUpdated = (function() {
98435
+
98436
+ /**
98437
+ * Properties of an OrgCoachingConfigUpdated.
98438
+ * @name IOrgCoachingConfigUpdated
98439
+ * @interface IOrgCoachingConfigUpdated
98440
+ * @property {number|null} [b2bOrgId] OrgCoachingConfigUpdated b2bOrgId
98441
+ * @property {boolean|null} [isTextCoachingDisabled] OrgCoachingConfigUpdated isTextCoachingDisabled
98442
+ * @property {number|null} [adminId] OrgCoachingConfigUpdated adminId
98443
+ * @property {number|Long|null} [timestamp] OrgCoachingConfigUpdated timestamp
98444
+ */
98445
+
98446
+ /**
98447
+ * Constructs a new OrgCoachingConfigUpdated.
98448
+ * @name OrgCoachingConfigUpdated
98449
+ * @classdesc Represents an OrgCoachingConfigUpdated.
98450
+ * @implements IOrgCoachingConfigUpdated
98451
+ * @constructor
98452
+ * @param {IOrgCoachingConfigUpdated=} [properties] Properties to set
98453
+ */
98454
+ function OrgCoachingConfigUpdated(properties) {
98455
+ if (properties)
98456
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
98457
+ if (properties[keys[i]] != null)
98458
+ this[keys[i]] = properties[keys[i]];
98459
+ }
98460
+
98461
+ /**
98462
+ * OrgCoachingConfigUpdated b2bOrgId.
98463
+ * @member {number} b2bOrgId
98464
+ * @memberof OrgCoachingConfigUpdated
98465
+ * @instance
98466
+ */
98467
+ OrgCoachingConfigUpdated.prototype.b2bOrgId = 0;
98468
+
98469
+ /**
98470
+ * OrgCoachingConfigUpdated isTextCoachingDisabled.
98471
+ * @member {boolean} isTextCoachingDisabled
98472
+ * @memberof OrgCoachingConfigUpdated
98473
+ * @instance
98474
+ */
98475
+ OrgCoachingConfigUpdated.prototype.isTextCoachingDisabled = false;
98476
+
98477
+ /**
98478
+ * OrgCoachingConfigUpdated adminId.
98479
+ * @member {number} adminId
98480
+ * @memberof OrgCoachingConfigUpdated
98481
+ * @instance
98482
+ */
98483
+ OrgCoachingConfigUpdated.prototype.adminId = 0;
98484
+
98485
+ /**
98486
+ * OrgCoachingConfigUpdated timestamp.
98487
+ * @member {number|Long} timestamp
98488
+ * @memberof OrgCoachingConfigUpdated
98489
+ * @instance
98490
+ */
98491
+ OrgCoachingConfigUpdated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
98492
+
98493
+ /**
98494
+ * Creates a new OrgCoachingConfigUpdated instance using the specified properties.
98495
+ * @function create
98496
+ * @memberof OrgCoachingConfigUpdated
98497
+ * @static
98498
+ * @param {IOrgCoachingConfigUpdated=} [properties] Properties to set
98499
+ * @returns {OrgCoachingConfigUpdated} OrgCoachingConfigUpdated instance
98500
+ */
98501
+ OrgCoachingConfigUpdated.create = function create(properties) {
98502
+ return new OrgCoachingConfigUpdated(properties);
98503
+ };
98504
+
98505
+ /**
98506
+ * Encodes the specified OrgCoachingConfigUpdated message. Does not implicitly {@link OrgCoachingConfigUpdated.verify|verify} messages.
98507
+ * @function encode
98508
+ * @memberof OrgCoachingConfigUpdated
98509
+ * @static
98510
+ * @param {IOrgCoachingConfigUpdated} message OrgCoachingConfigUpdated message or plain object to encode
98511
+ * @param {$protobuf.Writer} [writer] Writer to encode to
98512
+ * @returns {$protobuf.Writer} Writer
98513
+ */
98514
+ OrgCoachingConfigUpdated.encode = function encode(message, writer) {
98515
+ if (!writer)
98516
+ writer = $Writer.create();
98517
+ if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
98518
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.b2bOrgId);
98519
+ if (message.isTextCoachingDisabled != null && message.hasOwnProperty("isTextCoachingDisabled"))
98520
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isTextCoachingDisabled);
98521
+ if (message.adminId != null && message.hasOwnProperty("adminId"))
98522
+ writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.adminId);
98523
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
98524
+ writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.timestamp);
98525
+ return writer;
98526
+ };
98527
+
98528
+ /**
98529
+ * Encodes the specified OrgCoachingConfigUpdated message, length delimited. Does not implicitly {@link OrgCoachingConfigUpdated.verify|verify} messages.
98530
+ * @function encodeDelimited
98531
+ * @memberof OrgCoachingConfigUpdated
98532
+ * @static
98533
+ * @param {IOrgCoachingConfigUpdated} message OrgCoachingConfigUpdated message or plain object to encode
98534
+ * @param {$protobuf.Writer} [writer] Writer to encode to
98535
+ * @returns {$protobuf.Writer} Writer
98536
+ */
98537
+ OrgCoachingConfigUpdated.encodeDelimited = function encodeDelimited(message, writer) {
98538
+ return this.encode(message, writer).ldelim();
98539
+ };
98540
+
98541
+ /**
98542
+ * Decodes an OrgCoachingConfigUpdated message from the specified reader or buffer.
98543
+ * @function decode
98544
+ * @memberof OrgCoachingConfigUpdated
98545
+ * @static
98546
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
98547
+ * @param {number} [length] Message length if known beforehand
98548
+ * @returns {OrgCoachingConfigUpdated} OrgCoachingConfigUpdated
98549
+ * @throws {Error} If the payload is not a reader or valid buffer
98550
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
98551
+ */
98552
+ OrgCoachingConfigUpdated.decode = function decode(reader, length) {
98553
+ if (!(reader instanceof $Reader))
98554
+ reader = $Reader.create(reader);
98555
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.OrgCoachingConfigUpdated();
98556
+ while (reader.pos < end) {
98557
+ var tag = reader.uint32();
98558
+ switch (tag >>> 3) {
98559
+ case 1:
98560
+ message.b2bOrgId = reader.uint32();
98561
+ break;
98562
+ case 2:
98563
+ message.isTextCoachingDisabled = reader.bool();
98564
+ break;
98565
+ case 3:
98566
+ message.adminId = reader.uint32();
98567
+ break;
98568
+ case 4:
98569
+ message.timestamp = reader.uint64();
98570
+ break;
98571
+ default:
98572
+ reader.skipType(tag & 7);
98573
+ break;
98574
+ }
98575
+ }
98576
+ return message;
98577
+ };
98578
+
98579
+ /**
98580
+ * Decodes an OrgCoachingConfigUpdated message from the specified reader or buffer, length delimited.
98581
+ * @function decodeDelimited
98582
+ * @memberof OrgCoachingConfigUpdated
98583
+ * @static
98584
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
98585
+ * @returns {OrgCoachingConfigUpdated} OrgCoachingConfigUpdated
98586
+ * @throws {Error} If the payload is not a reader or valid buffer
98587
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
98588
+ */
98589
+ OrgCoachingConfigUpdated.decodeDelimited = function decodeDelimited(reader) {
98590
+ if (!(reader instanceof $Reader))
98591
+ reader = new $Reader(reader);
98592
+ return this.decode(reader, reader.uint32());
98593
+ };
98594
+
98595
+ /**
98596
+ * Verifies an OrgCoachingConfigUpdated message.
98597
+ * @function verify
98598
+ * @memberof OrgCoachingConfigUpdated
98599
+ * @static
98600
+ * @param {Object.<string,*>} message Plain object to verify
98601
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
98602
+ */
98603
+ OrgCoachingConfigUpdated.verify = function verify(message) {
98604
+ if (typeof message !== "object" || message === null)
98605
+ return "object expected";
98606
+ if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
98607
+ if (!$util.isInteger(message.b2bOrgId))
98608
+ return "b2bOrgId: integer expected";
98609
+ if (message.isTextCoachingDisabled != null && message.hasOwnProperty("isTextCoachingDisabled"))
98610
+ if (typeof message.isTextCoachingDisabled !== "boolean")
98611
+ return "isTextCoachingDisabled: boolean expected";
98612
+ if (message.adminId != null && message.hasOwnProperty("adminId"))
98613
+ if (!$util.isInteger(message.adminId))
98614
+ return "adminId: integer expected";
98615
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
98616
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
98617
+ return "timestamp: integer|Long expected";
98618
+ return null;
98619
+ };
98620
+
98621
+ /**
98622
+ * Creates an OrgCoachingConfigUpdated message from a plain object. Also converts values to their respective internal types.
98623
+ * @function fromObject
98624
+ * @memberof OrgCoachingConfigUpdated
98625
+ * @static
98626
+ * @param {Object.<string,*>} object Plain object
98627
+ * @returns {OrgCoachingConfigUpdated} OrgCoachingConfigUpdated
98628
+ */
98629
+ OrgCoachingConfigUpdated.fromObject = function fromObject(object) {
98630
+ if (object instanceof $root.OrgCoachingConfigUpdated)
98631
+ return object;
98632
+ var message = new $root.OrgCoachingConfigUpdated();
98633
+ if (object.b2bOrgId != null)
98634
+ message.b2bOrgId = object.b2bOrgId >>> 0;
98635
+ if (object.isTextCoachingDisabled != null)
98636
+ message.isTextCoachingDisabled = Boolean(object.isTextCoachingDisabled);
98637
+ if (object.adminId != null)
98638
+ message.adminId = object.adminId >>> 0;
98639
+ if (object.timestamp != null)
98640
+ if ($util.Long)
98641
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
98642
+ else if (typeof object.timestamp === "string")
98643
+ message.timestamp = parseInt(object.timestamp, 10);
98644
+ else if (typeof object.timestamp === "number")
98645
+ message.timestamp = object.timestamp;
98646
+ else if (typeof object.timestamp === "object")
98647
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
98648
+ return message;
98649
+ };
98650
+
98651
+ /**
98652
+ * Creates a plain object from an OrgCoachingConfigUpdated message. Also converts values to other types if specified.
98653
+ * @function toObject
98654
+ * @memberof OrgCoachingConfigUpdated
98655
+ * @static
98656
+ * @param {OrgCoachingConfigUpdated} message OrgCoachingConfigUpdated
98657
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
98658
+ * @returns {Object.<string,*>} Plain object
98659
+ */
98660
+ OrgCoachingConfigUpdated.toObject = function toObject(message, options) {
98661
+ if (!options)
98662
+ options = {};
98663
+ var object = {};
98664
+ if (options.defaults) {
98665
+ object.b2bOrgId = 0;
98666
+ object.isTextCoachingDisabled = false;
98667
+ object.adminId = 0;
98668
+ if ($util.Long) {
98669
+ var long = new $util.Long(0, 0, true);
98670
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
98671
+ } else
98672
+ object.timestamp = options.longs === String ? "0" : 0;
98673
+ }
98674
+ if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
98675
+ object.b2bOrgId = message.b2bOrgId;
98676
+ if (message.isTextCoachingDisabled != null && message.hasOwnProperty("isTextCoachingDisabled"))
98677
+ object.isTextCoachingDisabled = message.isTextCoachingDisabled;
98678
+ if (message.adminId != null && message.hasOwnProperty("adminId"))
98679
+ object.adminId = message.adminId;
98680
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
98681
+ if (typeof message.timestamp === "number")
98682
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
98683
+ else
98684
+ 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;
98685
+ return object;
98686
+ };
98687
+
98688
+ /**
98689
+ * Converts this OrgCoachingConfigUpdated to JSON.
98690
+ * @function toJSON
98691
+ * @memberof OrgCoachingConfigUpdated
98692
+ * @instance
98693
+ * @returns {Object.<string,*>} JSON object
98694
+ */
98695
+ OrgCoachingConfigUpdated.prototype.toJSON = function toJSON() {
98696
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
98697
+ };
98698
+
98699
+ return OrgCoachingConfigUpdated;
98700
+ })();
98701
+
98434
98702
  $root.OrgMarketingConfigUpdated = (function() {
98435
98703
 
98436
98704
  /**
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.772.0"
19
+ "version": "1.773.0"
20
20
  }