@headspace/protos-events 1.577.0 → 1.579.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
@@ -26776,6 +26776,9 @@ export interface IContentCourseCompleted {
26776
26776
 
26777
26777
  /** ContentCourseCompleted userId */
26778
26778
  userId?: (string|null);
26779
+
26780
+ /** ContentCourseCompleted completedAt */
26781
+ completedAt?: (number|Long|null);
26779
26782
  }
26780
26783
 
26781
26784
  /** Represents a ContentCourseCompleted. */
@@ -26790,6 +26793,9 @@ export class ContentCourseCompleted implements IContentCourseCompleted {
26790
26793
  /** ContentCourseCompleted userId. */
26791
26794
  public userId: string;
26792
26795
 
26796
+ /** ContentCourseCompleted completedAt. */
26797
+ public completedAt: (number|Long);
26798
+
26793
26799
  /**
26794
26800
  * Creates a new ContentCourseCompleted instance using the specified properties.
26795
26801
  * @param [properties] Properties to set
@@ -34956,6 +34962,108 @@ export class OrganizationSubscriptionDeleted implements IOrganizationSubscriptio
34956
34962
  public toJSON(): { [k: string]: any };
34957
34963
  }
34958
34964
 
34965
+ /** Properties of a BrazeProxyChatMessageSent. */
34966
+ export interface IBrazeProxyChatMessageSent {
34967
+
34968
+ /** BrazeProxyChatMessageSent hsUserId */
34969
+ hsUserId?: (string|null);
34970
+
34971
+ /** BrazeProxyChatMessageSent messageId */
34972
+ messageId?: (string|null);
34973
+
34974
+ /** BrazeProxyChatMessageSent timestamp */
34975
+ timestamp?: (number|Long|null);
34976
+ }
34977
+
34978
+ /** Represents a BrazeProxyChatMessageSent. */
34979
+ export class BrazeProxyChatMessageSent implements IBrazeProxyChatMessageSent {
34980
+
34981
+ /**
34982
+ * Constructs a new BrazeProxyChatMessageSent.
34983
+ * @param [properties] Properties to set
34984
+ */
34985
+ constructor(properties?: IBrazeProxyChatMessageSent);
34986
+
34987
+ /** BrazeProxyChatMessageSent hsUserId. */
34988
+ public hsUserId: string;
34989
+
34990
+ /** BrazeProxyChatMessageSent messageId. */
34991
+ public messageId: string;
34992
+
34993
+ /** BrazeProxyChatMessageSent timestamp. */
34994
+ public timestamp: (number|Long);
34995
+
34996
+ /**
34997
+ * Creates a new BrazeProxyChatMessageSent instance using the specified properties.
34998
+ * @param [properties] Properties to set
34999
+ * @returns BrazeProxyChatMessageSent instance
35000
+ */
35001
+ public static create(properties?: IBrazeProxyChatMessageSent): BrazeProxyChatMessageSent;
35002
+
35003
+ /**
35004
+ * Encodes the specified BrazeProxyChatMessageSent message. Does not implicitly {@link BrazeProxyChatMessageSent.verify|verify} messages.
35005
+ * @param message BrazeProxyChatMessageSent message or plain object to encode
35006
+ * @param [writer] Writer to encode to
35007
+ * @returns Writer
35008
+ */
35009
+ public static encode(message: IBrazeProxyChatMessageSent, writer?: $protobuf.Writer): $protobuf.Writer;
35010
+
35011
+ /**
35012
+ * Encodes the specified BrazeProxyChatMessageSent message, length delimited. Does not implicitly {@link BrazeProxyChatMessageSent.verify|verify} messages.
35013
+ * @param message BrazeProxyChatMessageSent message or plain object to encode
35014
+ * @param [writer] Writer to encode to
35015
+ * @returns Writer
35016
+ */
35017
+ public static encodeDelimited(message: IBrazeProxyChatMessageSent, writer?: $protobuf.Writer): $protobuf.Writer;
35018
+
35019
+ /**
35020
+ * Decodes a BrazeProxyChatMessageSent message from the specified reader or buffer.
35021
+ * @param reader Reader or buffer to decode from
35022
+ * @param [length] Message length if known beforehand
35023
+ * @returns BrazeProxyChatMessageSent
35024
+ * @throws {Error} If the payload is not a reader or valid buffer
35025
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
35026
+ */
35027
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BrazeProxyChatMessageSent;
35028
+
35029
+ /**
35030
+ * Decodes a BrazeProxyChatMessageSent message from the specified reader or buffer, length delimited.
35031
+ * @param reader Reader or buffer to decode from
35032
+ * @returns BrazeProxyChatMessageSent
35033
+ * @throws {Error} If the payload is not a reader or valid buffer
35034
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
35035
+ */
35036
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BrazeProxyChatMessageSent;
35037
+
35038
+ /**
35039
+ * Verifies a BrazeProxyChatMessageSent message.
35040
+ * @param message Plain object to verify
35041
+ * @returns `null` if valid, otherwise the reason why it is not
35042
+ */
35043
+ public static verify(message: { [k: string]: any }): (string|null);
35044
+
35045
+ /**
35046
+ * Creates a BrazeProxyChatMessageSent message from a plain object. Also converts values to their respective internal types.
35047
+ * @param object Plain object
35048
+ * @returns BrazeProxyChatMessageSent
35049
+ */
35050
+ public static fromObject(object: { [k: string]: any }): BrazeProxyChatMessageSent;
35051
+
35052
+ /**
35053
+ * Creates a plain object from a BrazeProxyChatMessageSent message. Also converts values to other types if specified.
35054
+ * @param message BrazeProxyChatMessageSent
35055
+ * @param [options] Conversion options
35056
+ * @returns Plain object
35057
+ */
35058
+ public static toObject(message: BrazeProxyChatMessageSent, options?: $protobuf.IConversionOptions): { [k: string]: any };
35059
+
35060
+ /**
35061
+ * Converts this BrazeProxyChatMessageSent to JSON.
35062
+ * @returns JSON object
35063
+ */
35064
+ public toJSON(): { [k: string]: any };
35065
+ }
35066
+
34959
35067
  /** GroupType enum. */
34960
35068
  export enum GroupType {
34961
35069
  GROUP_TYPE_UNKNOWN = 0,
package/lib/index.js CHANGED
@@ -74935,6 +74935,7 @@ $root.ContentCourseCompleted = (function() {
74935
74935
  * @name IContentCourseCompleted
74936
74936
  * @interface IContentCourseCompleted
74937
74937
  * @property {string|null} [userId] ContentCourseCompleted userId
74938
+ * @property {number|Long|null} [completedAt] ContentCourseCompleted completedAt
74938
74939
  */
74939
74940
 
74940
74941
  /**
@@ -74960,6 +74961,14 @@ $root.ContentCourseCompleted = (function() {
74960
74961
  */
74961
74962
  ContentCourseCompleted.prototype.userId = "";
74962
74963
 
74964
+ /**
74965
+ * ContentCourseCompleted completedAt.
74966
+ * @member {number|Long} completedAt
74967
+ * @memberof ContentCourseCompleted
74968
+ * @instance
74969
+ */
74970
+ ContentCourseCompleted.prototype.completedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
74971
+
74963
74972
  /**
74964
74973
  * Creates a new ContentCourseCompleted instance using the specified properties.
74965
74974
  * @function create
@@ -74986,6 +74995,8 @@ $root.ContentCourseCompleted = (function() {
74986
74995
  writer = $Writer.create();
74987
74996
  if (message.userId != null && message.hasOwnProperty("userId"))
74988
74997
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
74998
+ if (message.completedAt != null && message.hasOwnProperty("completedAt"))
74999
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.completedAt);
74989
75000
  return writer;
74990
75001
  };
74991
75002
 
@@ -75023,6 +75034,9 @@ $root.ContentCourseCompleted = (function() {
75023
75034
  case 1:
75024
75035
  message.userId = reader.string();
75025
75036
  break;
75037
+ case 2:
75038
+ message.completedAt = reader.uint64();
75039
+ break;
75026
75040
  default:
75027
75041
  reader.skipType(tag & 7);
75028
75042
  break;
@@ -75061,6 +75075,9 @@ $root.ContentCourseCompleted = (function() {
75061
75075
  if (message.userId != null && message.hasOwnProperty("userId"))
75062
75076
  if (!$util.isString(message.userId))
75063
75077
  return "userId: string expected";
75078
+ if (message.completedAt != null && message.hasOwnProperty("completedAt"))
75079
+ if (!$util.isInteger(message.completedAt) && !(message.completedAt && $util.isInteger(message.completedAt.low) && $util.isInteger(message.completedAt.high)))
75080
+ return "completedAt: integer|Long expected";
75064
75081
  return null;
75065
75082
  };
75066
75083
 
@@ -75078,6 +75095,15 @@ $root.ContentCourseCompleted = (function() {
75078
75095
  var message = new $root.ContentCourseCompleted();
75079
75096
  if (object.userId != null)
75080
75097
  message.userId = String(object.userId);
75098
+ if (object.completedAt != null)
75099
+ if ($util.Long)
75100
+ (message.completedAt = $util.Long.fromValue(object.completedAt)).unsigned = true;
75101
+ else if (typeof object.completedAt === "string")
75102
+ message.completedAt = parseInt(object.completedAt, 10);
75103
+ else if (typeof object.completedAt === "number")
75104
+ message.completedAt = object.completedAt;
75105
+ else if (typeof object.completedAt === "object")
75106
+ message.completedAt = new $util.LongBits(object.completedAt.low >>> 0, object.completedAt.high >>> 0).toNumber(true);
75081
75107
  return message;
75082
75108
  };
75083
75109
 
@@ -75094,10 +75120,21 @@ $root.ContentCourseCompleted = (function() {
75094
75120
  if (!options)
75095
75121
  options = {};
75096
75122
  var object = {};
75097
- if (options.defaults)
75123
+ if (options.defaults) {
75098
75124
  object.userId = "";
75125
+ if ($util.Long) {
75126
+ var long = new $util.Long(0, 0, true);
75127
+ object.completedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
75128
+ } else
75129
+ object.completedAt = options.longs === String ? "0" : 0;
75130
+ }
75099
75131
  if (message.userId != null && message.hasOwnProperty("userId"))
75100
75132
  object.userId = message.userId;
75133
+ if (message.completedAt != null && message.hasOwnProperty("completedAt"))
75134
+ if (typeof message.completedAt === "number")
75135
+ object.completedAt = options.longs === String ? String(message.completedAt) : message.completedAt;
75136
+ else
75137
+ object.completedAt = options.longs === String ? $util.Long.prototype.toString.call(message.completedAt) : options.longs === Number ? new $util.LongBits(message.completedAt.low >>> 0, message.completedAt.high >>> 0).toNumber(true) : message.completedAt;
75101
75138
  return object;
75102
75139
  };
75103
75140
 
@@ -97618,6 +97655,252 @@ $root.OrganizationSubscriptionDeleted = (function() {
97618
97655
  return OrganizationSubscriptionDeleted;
97619
97656
  })();
97620
97657
 
97658
+ $root.BrazeProxyChatMessageSent = (function() {
97659
+
97660
+ /**
97661
+ * Properties of a BrazeProxyChatMessageSent.
97662
+ * @name IBrazeProxyChatMessageSent
97663
+ * @interface IBrazeProxyChatMessageSent
97664
+ * @property {string|null} [hsUserId] BrazeProxyChatMessageSent hsUserId
97665
+ * @property {string|null} [messageId] BrazeProxyChatMessageSent messageId
97666
+ * @property {number|Long|null} [timestamp] BrazeProxyChatMessageSent timestamp
97667
+ */
97668
+
97669
+ /**
97670
+ * Constructs a new BrazeProxyChatMessageSent.
97671
+ * @name BrazeProxyChatMessageSent
97672
+ * @classdesc Represents a BrazeProxyChatMessageSent.
97673
+ * @implements IBrazeProxyChatMessageSent
97674
+ * @constructor
97675
+ * @param {IBrazeProxyChatMessageSent=} [properties] Properties to set
97676
+ */
97677
+ function BrazeProxyChatMessageSent(properties) {
97678
+ if (properties)
97679
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
97680
+ if (properties[keys[i]] != null)
97681
+ this[keys[i]] = properties[keys[i]];
97682
+ }
97683
+
97684
+ /**
97685
+ * BrazeProxyChatMessageSent hsUserId.
97686
+ * @member {string} hsUserId
97687
+ * @memberof BrazeProxyChatMessageSent
97688
+ * @instance
97689
+ */
97690
+ BrazeProxyChatMessageSent.prototype.hsUserId = "";
97691
+
97692
+ /**
97693
+ * BrazeProxyChatMessageSent messageId.
97694
+ * @member {string} messageId
97695
+ * @memberof BrazeProxyChatMessageSent
97696
+ * @instance
97697
+ */
97698
+ BrazeProxyChatMessageSent.prototype.messageId = "";
97699
+
97700
+ /**
97701
+ * BrazeProxyChatMessageSent timestamp.
97702
+ * @member {number|Long} timestamp
97703
+ * @memberof BrazeProxyChatMessageSent
97704
+ * @instance
97705
+ */
97706
+ BrazeProxyChatMessageSent.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
97707
+
97708
+ /**
97709
+ * Creates a new BrazeProxyChatMessageSent instance using the specified properties.
97710
+ * @function create
97711
+ * @memberof BrazeProxyChatMessageSent
97712
+ * @static
97713
+ * @param {IBrazeProxyChatMessageSent=} [properties] Properties to set
97714
+ * @returns {BrazeProxyChatMessageSent} BrazeProxyChatMessageSent instance
97715
+ */
97716
+ BrazeProxyChatMessageSent.create = function create(properties) {
97717
+ return new BrazeProxyChatMessageSent(properties);
97718
+ };
97719
+
97720
+ /**
97721
+ * Encodes the specified BrazeProxyChatMessageSent message. Does not implicitly {@link BrazeProxyChatMessageSent.verify|verify} messages.
97722
+ * @function encode
97723
+ * @memberof BrazeProxyChatMessageSent
97724
+ * @static
97725
+ * @param {IBrazeProxyChatMessageSent} message BrazeProxyChatMessageSent message or plain object to encode
97726
+ * @param {$protobuf.Writer} [writer] Writer to encode to
97727
+ * @returns {$protobuf.Writer} Writer
97728
+ */
97729
+ BrazeProxyChatMessageSent.encode = function encode(message, writer) {
97730
+ if (!writer)
97731
+ writer = $Writer.create();
97732
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
97733
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
97734
+ if (message.messageId != null && message.hasOwnProperty("messageId"))
97735
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.messageId);
97736
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
97737
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
97738
+ return writer;
97739
+ };
97740
+
97741
+ /**
97742
+ * Encodes the specified BrazeProxyChatMessageSent message, length delimited. Does not implicitly {@link BrazeProxyChatMessageSent.verify|verify} messages.
97743
+ * @function encodeDelimited
97744
+ * @memberof BrazeProxyChatMessageSent
97745
+ * @static
97746
+ * @param {IBrazeProxyChatMessageSent} message BrazeProxyChatMessageSent message or plain object to encode
97747
+ * @param {$protobuf.Writer} [writer] Writer to encode to
97748
+ * @returns {$protobuf.Writer} Writer
97749
+ */
97750
+ BrazeProxyChatMessageSent.encodeDelimited = function encodeDelimited(message, writer) {
97751
+ return this.encode(message, writer).ldelim();
97752
+ };
97753
+
97754
+ /**
97755
+ * Decodes a BrazeProxyChatMessageSent message from the specified reader or buffer.
97756
+ * @function decode
97757
+ * @memberof BrazeProxyChatMessageSent
97758
+ * @static
97759
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
97760
+ * @param {number} [length] Message length if known beforehand
97761
+ * @returns {BrazeProxyChatMessageSent} BrazeProxyChatMessageSent
97762
+ * @throws {Error} If the payload is not a reader or valid buffer
97763
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
97764
+ */
97765
+ BrazeProxyChatMessageSent.decode = function decode(reader, length) {
97766
+ if (!(reader instanceof $Reader))
97767
+ reader = $Reader.create(reader);
97768
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.BrazeProxyChatMessageSent();
97769
+ while (reader.pos < end) {
97770
+ var tag = reader.uint32();
97771
+ switch (tag >>> 3) {
97772
+ case 1:
97773
+ message.hsUserId = reader.string();
97774
+ break;
97775
+ case 2:
97776
+ message.messageId = reader.string();
97777
+ break;
97778
+ case 3:
97779
+ message.timestamp = reader.uint64();
97780
+ break;
97781
+ default:
97782
+ reader.skipType(tag & 7);
97783
+ break;
97784
+ }
97785
+ }
97786
+ return message;
97787
+ };
97788
+
97789
+ /**
97790
+ * Decodes a BrazeProxyChatMessageSent message from the specified reader or buffer, length delimited.
97791
+ * @function decodeDelimited
97792
+ * @memberof BrazeProxyChatMessageSent
97793
+ * @static
97794
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
97795
+ * @returns {BrazeProxyChatMessageSent} BrazeProxyChatMessageSent
97796
+ * @throws {Error} If the payload is not a reader or valid buffer
97797
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
97798
+ */
97799
+ BrazeProxyChatMessageSent.decodeDelimited = function decodeDelimited(reader) {
97800
+ if (!(reader instanceof $Reader))
97801
+ reader = new $Reader(reader);
97802
+ return this.decode(reader, reader.uint32());
97803
+ };
97804
+
97805
+ /**
97806
+ * Verifies a BrazeProxyChatMessageSent message.
97807
+ * @function verify
97808
+ * @memberof BrazeProxyChatMessageSent
97809
+ * @static
97810
+ * @param {Object.<string,*>} message Plain object to verify
97811
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
97812
+ */
97813
+ BrazeProxyChatMessageSent.verify = function verify(message) {
97814
+ if (typeof message !== "object" || message === null)
97815
+ return "object expected";
97816
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
97817
+ if (!$util.isString(message.hsUserId))
97818
+ return "hsUserId: string expected";
97819
+ if (message.messageId != null && message.hasOwnProperty("messageId"))
97820
+ if (!$util.isString(message.messageId))
97821
+ return "messageId: string expected";
97822
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
97823
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
97824
+ return "timestamp: integer|Long expected";
97825
+ return null;
97826
+ };
97827
+
97828
+ /**
97829
+ * Creates a BrazeProxyChatMessageSent message from a plain object. Also converts values to their respective internal types.
97830
+ * @function fromObject
97831
+ * @memberof BrazeProxyChatMessageSent
97832
+ * @static
97833
+ * @param {Object.<string,*>} object Plain object
97834
+ * @returns {BrazeProxyChatMessageSent} BrazeProxyChatMessageSent
97835
+ */
97836
+ BrazeProxyChatMessageSent.fromObject = function fromObject(object) {
97837
+ if (object instanceof $root.BrazeProxyChatMessageSent)
97838
+ return object;
97839
+ var message = new $root.BrazeProxyChatMessageSent();
97840
+ if (object.hsUserId != null)
97841
+ message.hsUserId = String(object.hsUserId);
97842
+ if (object.messageId != null)
97843
+ message.messageId = String(object.messageId);
97844
+ if (object.timestamp != null)
97845
+ if ($util.Long)
97846
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
97847
+ else if (typeof object.timestamp === "string")
97848
+ message.timestamp = parseInt(object.timestamp, 10);
97849
+ else if (typeof object.timestamp === "number")
97850
+ message.timestamp = object.timestamp;
97851
+ else if (typeof object.timestamp === "object")
97852
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
97853
+ return message;
97854
+ };
97855
+
97856
+ /**
97857
+ * Creates a plain object from a BrazeProxyChatMessageSent message. Also converts values to other types if specified.
97858
+ * @function toObject
97859
+ * @memberof BrazeProxyChatMessageSent
97860
+ * @static
97861
+ * @param {BrazeProxyChatMessageSent} message BrazeProxyChatMessageSent
97862
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
97863
+ * @returns {Object.<string,*>} Plain object
97864
+ */
97865
+ BrazeProxyChatMessageSent.toObject = function toObject(message, options) {
97866
+ if (!options)
97867
+ options = {};
97868
+ var object = {};
97869
+ if (options.defaults) {
97870
+ object.hsUserId = "";
97871
+ object.messageId = "";
97872
+ if ($util.Long) {
97873
+ var long = new $util.Long(0, 0, true);
97874
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
97875
+ } else
97876
+ object.timestamp = options.longs === String ? "0" : 0;
97877
+ }
97878
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
97879
+ object.hsUserId = message.hsUserId;
97880
+ if (message.messageId != null && message.hasOwnProperty("messageId"))
97881
+ object.messageId = message.messageId;
97882
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
97883
+ if (typeof message.timestamp === "number")
97884
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
97885
+ else
97886
+ 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;
97887
+ return object;
97888
+ };
97889
+
97890
+ /**
97891
+ * Converts this BrazeProxyChatMessageSent to JSON.
97892
+ * @function toJSON
97893
+ * @memberof BrazeProxyChatMessageSent
97894
+ * @instance
97895
+ * @returns {Object.<string,*>} JSON object
97896
+ */
97897
+ BrazeProxyChatMessageSent.prototype.toJSON = function toJSON() {
97898
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
97899
+ };
97900
+
97901
+ return BrazeProxyChatMessageSent;
97902
+ })();
97903
+
97621
97904
  /**
97622
97905
  * GroupType enum.
97623
97906
  * @name GroupType
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.577.0"
19
+ "version": "1.579.0"
20
20
  }