@headspace/protos-events 1.501.0 → 1.503.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
@@ -29411,6 +29411,9 @@ export interface IB2BChallengeCreated {
29411
29411
 
29412
29412
  /** B2BChallengeCreated goalTarget */
29413
29413
  goalTarget?: (number|Long|null);
29414
+
29415
+ /** B2BChallengeCreated memberStatuses */
29416
+ memberStatuses?: (b2b.MemberStatus[]|null);
29414
29417
  }
29415
29418
 
29416
29419
  /** Represents a B2BChallengeCreated. */
@@ -29449,6 +29452,9 @@ export class B2BChallengeCreated implements IB2BChallengeCreated {
29449
29452
  /** B2BChallengeCreated goalTarget. */
29450
29453
  public goalTarget: (number|Long);
29451
29454
 
29455
+ /** B2BChallengeCreated memberStatuses. */
29456
+ public memberStatuses: b2b.MemberStatus[];
29457
+
29452
29458
  /**
29453
29459
  * Creates a new B2BChallengeCreated instance using the specified properties.
29454
29460
  * @param [properties] Properties to set
@@ -47109,6 +47115,96 @@ export class UserMessageNotification implements IUserMessageNotification {
47109
47115
  public toJSON(): { [k: string]: any };
47110
47116
  }
47111
47117
 
47118
+ /** Properties of a UserMessageProcessMessagesEvent. */
47119
+ export interface IUserMessageProcessMessagesEvent {
47120
+
47121
+ /** UserMessageProcessMessagesEvent filePath */
47122
+ filePath?: (string|null);
47123
+ }
47124
+
47125
+ /** Represents a UserMessageProcessMessagesEvent. */
47126
+ export class UserMessageProcessMessagesEvent implements IUserMessageProcessMessagesEvent {
47127
+
47128
+ /**
47129
+ * Constructs a new UserMessageProcessMessagesEvent.
47130
+ * @param [properties] Properties to set
47131
+ */
47132
+ constructor(properties?: IUserMessageProcessMessagesEvent);
47133
+
47134
+ /** UserMessageProcessMessagesEvent filePath. */
47135
+ public filePath: string;
47136
+
47137
+ /**
47138
+ * Creates a new UserMessageProcessMessagesEvent instance using the specified properties.
47139
+ * @param [properties] Properties to set
47140
+ * @returns UserMessageProcessMessagesEvent instance
47141
+ */
47142
+ public static create(properties?: IUserMessageProcessMessagesEvent): UserMessageProcessMessagesEvent;
47143
+
47144
+ /**
47145
+ * Encodes the specified UserMessageProcessMessagesEvent message. Does not implicitly {@link UserMessageProcessMessagesEvent.verify|verify} messages.
47146
+ * @param message UserMessageProcessMessagesEvent message or plain object to encode
47147
+ * @param [writer] Writer to encode to
47148
+ * @returns Writer
47149
+ */
47150
+ public static encode(message: IUserMessageProcessMessagesEvent, writer?: $protobuf.Writer): $protobuf.Writer;
47151
+
47152
+ /**
47153
+ * Encodes the specified UserMessageProcessMessagesEvent message, length delimited. Does not implicitly {@link UserMessageProcessMessagesEvent.verify|verify} messages.
47154
+ * @param message UserMessageProcessMessagesEvent message or plain object to encode
47155
+ * @param [writer] Writer to encode to
47156
+ * @returns Writer
47157
+ */
47158
+ public static encodeDelimited(message: IUserMessageProcessMessagesEvent, writer?: $protobuf.Writer): $protobuf.Writer;
47159
+
47160
+ /**
47161
+ * Decodes a UserMessageProcessMessagesEvent message from the specified reader or buffer.
47162
+ * @param reader Reader or buffer to decode from
47163
+ * @param [length] Message length if known beforehand
47164
+ * @returns UserMessageProcessMessagesEvent
47165
+ * @throws {Error} If the payload is not a reader or valid buffer
47166
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
47167
+ */
47168
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserMessageProcessMessagesEvent;
47169
+
47170
+ /**
47171
+ * Decodes a UserMessageProcessMessagesEvent message from the specified reader or buffer, length delimited.
47172
+ * @param reader Reader or buffer to decode from
47173
+ * @returns UserMessageProcessMessagesEvent
47174
+ * @throws {Error} If the payload is not a reader or valid buffer
47175
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
47176
+ */
47177
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserMessageProcessMessagesEvent;
47178
+
47179
+ /**
47180
+ * Verifies a UserMessageProcessMessagesEvent message.
47181
+ * @param message Plain object to verify
47182
+ * @returns `null` if valid, otherwise the reason why it is not
47183
+ */
47184
+ public static verify(message: { [k: string]: any }): (string|null);
47185
+
47186
+ /**
47187
+ * Creates a UserMessageProcessMessagesEvent message from a plain object. Also converts values to their respective internal types.
47188
+ * @param object Plain object
47189
+ * @returns UserMessageProcessMessagesEvent
47190
+ */
47191
+ public static fromObject(object: { [k: string]: any }): UserMessageProcessMessagesEvent;
47192
+
47193
+ /**
47194
+ * Creates a plain object from a UserMessageProcessMessagesEvent message. Also converts values to other types if specified.
47195
+ * @param message UserMessageProcessMessagesEvent
47196
+ * @param [options] Conversion options
47197
+ * @returns Plain object
47198
+ */
47199
+ public static toObject(message: UserMessageProcessMessagesEvent, options?: $protobuf.IConversionOptions): { [k: string]: any };
47200
+
47201
+ /**
47202
+ * Converts this UserMessageProcessMessagesEvent to JSON.
47203
+ * @returns JSON object
47204
+ */
47205
+ public toJSON(): { [k: string]: any };
47206
+ }
47207
+
47112
47208
  /** Properties of a VirginPulseAccountLinked. */
47113
47209
  export interface IVirginPulseAccountLinked {
47114
47210
 
package/lib/index.js CHANGED
@@ -81495,6 +81495,7 @@ $root.B2BChallengeCreated = (function() {
81495
81495
  * @property {number|Long|null} [durationInWeeks] B2BChallengeCreated durationInWeeks
81496
81496
  * @property {GoalType|null} [goalType] B2BChallengeCreated goalType
81497
81497
  * @property {number|Long|null} [goalTarget] B2BChallengeCreated goalTarget
81498
+ * @property {Array.<b2b.MemberStatus>|null} [memberStatuses] B2BChallengeCreated memberStatuses
81498
81499
  */
81499
81500
 
81500
81501
  /**
@@ -81506,6 +81507,7 @@ $root.B2BChallengeCreated = (function() {
81506
81507
  * @param {IB2BChallengeCreated=} [properties] Properties to set
81507
81508
  */
81508
81509
  function B2BChallengeCreated(properties) {
81510
+ this.memberStatuses = [];
81509
81511
  if (properties)
81510
81512
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
81511
81513
  if (properties[keys[i]] != null)
@@ -81584,6 +81586,14 @@ $root.B2BChallengeCreated = (function() {
81584
81586
  */
81585
81587
  B2BChallengeCreated.prototype.goalTarget = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
81586
81588
 
81589
+ /**
81590
+ * B2BChallengeCreated memberStatuses.
81591
+ * @member {Array.<b2b.MemberStatus>} memberStatuses
81592
+ * @memberof B2BChallengeCreated
81593
+ * @instance
81594
+ */
81595
+ B2BChallengeCreated.prototype.memberStatuses = $util.emptyArray;
81596
+
81587
81597
  /**
81588
81598
  * Creates a new B2BChallengeCreated instance using the specified properties.
81589
81599
  * @function create
@@ -81626,6 +81636,12 @@ $root.B2BChallengeCreated = (function() {
81626
81636
  writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.goalTarget);
81627
81637
  if (message.challengeId != null && message.hasOwnProperty("challengeId"))
81628
81638
  writer.uint32(/* id 9, wireType 0 =*/72).uint64(message.challengeId);
81639
+ if (message.memberStatuses != null && message.memberStatuses.length) {
81640
+ writer.uint32(/* id 10, wireType 2 =*/82).fork();
81641
+ for (var i = 0; i < message.memberStatuses.length; ++i)
81642
+ writer.int32(message.memberStatuses[i]);
81643
+ writer.ldelim();
81644
+ }
81629
81645
  return writer;
81630
81646
  };
81631
81647
 
@@ -81687,6 +81703,16 @@ $root.B2BChallengeCreated = (function() {
81687
81703
  case 8:
81688
81704
  message.goalTarget = reader.uint64();
81689
81705
  break;
81706
+ case 10:
81707
+ if (!(message.memberStatuses && message.memberStatuses.length))
81708
+ message.memberStatuses = [];
81709
+ if ((tag & 7) === 2) {
81710
+ var end2 = reader.uint32() + reader.pos;
81711
+ while (reader.pos < end2)
81712
+ message.memberStatuses.push(reader.int32());
81713
+ } else
81714
+ message.memberStatuses.push(reader.int32());
81715
+ break;
81690
81716
  default:
81691
81717
  reader.skipType(tag & 7);
81692
81718
  break;
@@ -81762,6 +81788,23 @@ $root.B2BChallengeCreated = (function() {
81762
81788
  if (message.goalTarget != null && message.hasOwnProperty("goalTarget"))
81763
81789
  if (!$util.isInteger(message.goalTarget) && !(message.goalTarget && $util.isInteger(message.goalTarget.low) && $util.isInteger(message.goalTarget.high)))
81764
81790
  return "goalTarget: integer|Long expected";
81791
+ if (message.memberStatuses != null && message.hasOwnProperty("memberStatuses")) {
81792
+ if (!Array.isArray(message.memberStatuses))
81793
+ return "memberStatuses: array expected";
81794
+ for (var i = 0; i < message.memberStatuses.length; ++i)
81795
+ switch (message.memberStatuses[i]) {
81796
+ default:
81797
+ return "memberStatuses: enum value[] expected";
81798
+ case 0:
81799
+ case 1:
81800
+ case 2:
81801
+ case 3:
81802
+ case 4:
81803
+ case 5:
81804
+ case 6:
81805
+ break;
81806
+ }
81807
+ }
81765
81808
  return null;
81766
81809
  };
81767
81810
 
@@ -81851,6 +81894,43 @@ $root.B2BChallengeCreated = (function() {
81851
81894
  message.goalTarget = object.goalTarget;
81852
81895
  else if (typeof object.goalTarget === "object")
81853
81896
  message.goalTarget = new $util.LongBits(object.goalTarget.low >>> 0, object.goalTarget.high >>> 0).toNumber(true);
81897
+ if (object.memberStatuses) {
81898
+ if (!Array.isArray(object.memberStatuses))
81899
+ throw TypeError(".B2BChallengeCreated.memberStatuses: array expected");
81900
+ message.memberStatuses = [];
81901
+ for (var i = 0; i < object.memberStatuses.length; ++i)
81902
+ switch (object.memberStatuses[i]) {
81903
+ default:
81904
+ case "PENDING":
81905
+ case 0:
81906
+ message.memberStatuses[i] = 0;
81907
+ break;
81908
+ case "ORPHAN":
81909
+ case 1:
81910
+ message.memberStatuses[i] = 1;
81911
+ break;
81912
+ case "ACTIVE":
81913
+ case 2:
81914
+ message.memberStatuses[i] = 2;
81915
+ break;
81916
+ case "REMOVED":
81917
+ case 3:
81918
+ message.memberStatuses[i] = 3;
81919
+ break;
81920
+ case "EXPIRED":
81921
+ case 4:
81922
+ message.memberStatuses[i] = 4;
81923
+ break;
81924
+ case "ELIGIBLE":
81925
+ case 5:
81926
+ message.memberStatuses[i] = 5;
81927
+ break;
81928
+ case "PENDING_REMOVAL":
81929
+ case 6:
81930
+ message.memberStatuses[i] = 6;
81931
+ break;
81932
+ }
81933
+ }
81854
81934
  return message;
81855
81935
  };
81856
81936
 
@@ -81867,6 +81947,8 @@ $root.B2BChallengeCreated = (function() {
81867
81947
  if (!options)
81868
81948
  options = {};
81869
81949
  var object = {};
81950
+ if (options.arrays || options.defaults)
81951
+ object.memberStatuses = [];
81870
81952
  if (options.defaults) {
81871
81953
  if ($util.Long) {
81872
81954
  var long = new $util.Long(0, 0, true);
@@ -81924,6 +82006,11 @@ $root.B2BChallengeCreated = (function() {
81924
82006
  object.challengeId = options.longs === String ? String(message.challengeId) : message.challengeId;
81925
82007
  else
81926
82008
  object.challengeId = options.longs === String ? $util.Long.prototype.toString.call(message.challengeId) : options.longs === Number ? new $util.LongBits(message.challengeId.low >>> 0, message.challengeId.high >>> 0).toNumber(true) : message.challengeId;
82009
+ if (message.memberStatuses && message.memberStatuses.length) {
82010
+ object.memberStatuses = [];
82011
+ for (var j = 0; j < message.memberStatuses.length; ++j)
82012
+ object.memberStatuses[j] = options.enums === String ? $root.b2b.MemberStatus[message.memberStatuses[j]] : message.memberStatuses[j];
82013
+ }
81927
82014
  return object;
81928
82015
  };
81929
82016
 
@@ -133810,6 +133897,193 @@ $root.UserMessageNotification = (function() {
133810
133897
  return UserMessageNotification;
133811
133898
  })();
133812
133899
 
133900
+ $root.UserMessageProcessMessagesEvent = (function() {
133901
+
133902
+ /**
133903
+ * Properties of a UserMessageProcessMessagesEvent.
133904
+ * @name IUserMessageProcessMessagesEvent
133905
+ * @interface IUserMessageProcessMessagesEvent
133906
+ * @property {string|null} [filePath] UserMessageProcessMessagesEvent filePath
133907
+ */
133908
+
133909
+ /**
133910
+ * Constructs a new UserMessageProcessMessagesEvent.
133911
+ * @name UserMessageProcessMessagesEvent
133912
+ * @classdesc Represents a UserMessageProcessMessagesEvent.
133913
+ * @implements IUserMessageProcessMessagesEvent
133914
+ * @constructor
133915
+ * @param {IUserMessageProcessMessagesEvent=} [properties] Properties to set
133916
+ */
133917
+ function UserMessageProcessMessagesEvent(properties) {
133918
+ if (properties)
133919
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
133920
+ if (properties[keys[i]] != null)
133921
+ this[keys[i]] = properties[keys[i]];
133922
+ }
133923
+
133924
+ /**
133925
+ * UserMessageProcessMessagesEvent filePath.
133926
+ * @member {string} filePath
133927
+ * @memberof UserMessageProcessMessagesEvent
133928
+ * @instance
133929
+ */
133930
+ UserMessageProcessMessagesEvent.prototype.filePath = "";
133931
+
133932
+ /**
133933
+ * Creates a new UserMessageProcessMessagesEvent instance using the specified properties.
133934
+ * @function create
133935
+ * @memberof UserMessageProcessMessagesEvent
133936
+ * @static
133937
+ * @param {IUserMessageProcessMessagesEvent=} [properties] Properties to set
133938
+ * @returns {UserMessageProcessMessagesEvent} UserMessageProcessMessagesEvent instance
133939
+ */
133940
+ UserMessageProcessMessagesEvent.create = function create(properties) {
133941
+ return new UserMessageProcessMessagesEvent(properties);
133942
+ };
133943
+
133944
+ /**
133945
+ * Encodes the specified UserMessageProcessMessagesEvent message. Does not implicitly {@link UserMessageProcessMessagesEvent.verify|verify} messages.
133946
+ * @function encode
133947
+ * @memberof UserMessageProcessMessagesEvent
133948
+ * @static
133949
+ * @param {IUserMessageProcessMessagesEvent} message UserMessageProcessMessagesEvent message or plain object to encode
133950
+ * @param {$protobuf.Writer} [writer] Writer to encode to
133951
+ * @returns {$protobuf.Writer} Writer
133952
+ */
133953
+ UserMessageProcessMessagesEvent.encode = function encode(message, writer) {
133954
+ if (!writer)
133955
+ writer = $Writer.create();
133956
+ if (message.filePath != null && message.hasOwnProperty("filePath"))
133957
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.filePath);
133958
+ return writer;
133959
+ };
133960
+
133961
+ /**
133962
+ * Encodes the specified UserMessageProcessMessagesEvent message, length delimited. Does not implicitly {@link UserMessageProcessMessagesEvent.verify|verify} messages.
133963
+ * @function encodeDelimited
133964
+ * @memberof UserMessageProcessMessagesEvent
133965
+ * @static
133966
+ * @param {IUserMessageProcessMessagesEvent} message UserMessageProcessMessagesEvent message or plain object to encode
133967
+ * @param {$protobuf.Writer} [writer] Writer to encode to
133968
+ * @returns {$protobuf.Writer} Writer
133969
+ */
133970
+ UserMessageProcessMessagesEvent.encodeDelimited = function encodeDelimited(message, writer) {
133971
+ return this.encode(message, writer).ldelim();
133972
+ };
133973
+
133974
+ /**
133975
+ * Decodes a UserMessageProcessMessagesEvent message from the specified reader or buffer.
133976
+ * @function decode
133977
+ * @memberof UserMessageProcessMessagesEvent
133978
+ * @static
133979
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
133980
+ * @param {number} [length] Message length if known beforehand
133981
+ * @returns {UserMessageProcessMessagesEvent} UserMessageProcessMessagesEvent
133982
+ * @throws {Error} If the payload is not a reader or valid buffer
133983
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
133984
+ */
133985
+ UserMessageProcessMessagesEvent.decode = function decode(reader, length) {
133986
+ if (!(reader instanceof $Reader))
133987
+ reader = $Reader.create(reader);
133988
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserMessageProcessMessagesEvent();
133989
+ while (reader.pos < end) {
133990
+ var tag = reader.uint32();
133991
+ switch (tag >>> 3) {
133992
+ case 1:
133993
+ message.filePath = reader.string();
133994
+ break;
133995
+ default:
133996
+ reader.skipType(tag & 7);
133997
+ break;
133998
+ }
133999
+ }
134000
+ return message;
134001
+ };
134002
+
134003
+ /**
134004
+ * Decodes a UserMessageProcessMessagesEvent message from the specified reader or buffer, length delimited.
134005
+ * @function decodeDelimited
134006
+ * @memberof UserMessageProcessMessagesEvent
134007
+ * @static
134008
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
134009
+ * @returns {UserMessageProcessMessagesEvent} UserMessageProcessMessagesEvent
134010
+ * @throws {Error} If the payload is not a reader or valid buffer
134011
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
134012
+ */
134013
+ UserMessageProcessMessagesEvent.decodeDelimited = function decodeDelimited(reader) {
134014
+ if (!(reader instanceof $Reader))
134015
+ reader = new $Reader(reader);
134016
+ return this.decode(reader, reader.uint32());
134017
+ };
134018
+
134019
+ /**
134020
+ * Verifies a UserMessageProcessMessagesEvent message.
134021
+ * @function verify
134022
+ * @memberof UserMessageProcessMessagesEvent
134023
+ * @static
134024
+ * @param {Object.<string,*>} message Plain object to verify
134025
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
134026
+ */
134027
+ UserMessageProcessMessagesEvent.verify = function verify(message) {
134028
+ if (typeof message !== "object" || message === null)
134029
+ return "object expected";
134030
+ if (message.filePath != null && message.hasOwnProperty("filePath"))
134031
+ if (!$util.isString(message.filePath))
134032
+ return "filePath: string expected";
134033
+ return null;
134034
+ };
134035
+
134036
+ /**
134037
+ * Creates a UserMessageProcessMessagesEvent message from a plain object. Also converts values to their respective internal types.
134038
+ * @function fromObject
134039
+ * @memberof UserMessageProcessMessagesEvent
134040
+ * @static
134041
+ * @param {Object.<string,*>} object Plain object
134042
+ * @returns {UserMessageProcessMessagesEvent} UserMessageProcessMessagesEvent
134043
+ */
134044
+ UserMessageProcessMessagesEvent.fromObject = function fromObject(object) {
134045
+ if (object instanceof $root.UserMessageProcessMessagesEvent)
134046
+ return object;
134047
+ var message = new $root.UserMessageProcessMessagesEvent();
134048
+ if (object.filePath != null)
134049
+ message.filePath = String(object.filePath);
134050
+ return message;
134051
+ };
134052
+
134053
+ /**
134054
+ * Creates a plain object from a UserMessageProcessMessagesEvent message. Also converts values to other types if specified.
134055
+ * @function toObject
134056
+ * @memberof UserMessageProcessMessagesEvent
134057
+ * @static
134058
+ * @param {UserMessageProcessMessagesEvent} message UserMessageProcessMessagesEvent
134059
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
134060
+ * @returns {Object.<string,*>} Plain object
134061
+ */
134062
+ UserMessageProcessMessagesEvent.toObject = function toObject(message, options) {
134063
+ if (!options)
134064
+ options = {};
134065
+ var object = {};
134066
+ if (options.defaults)
134067
+ object.filePath = "";
134068
+ if (message.filePath != null && message.hasOwnProperty("filePath"))
134069
+ object.filePath = message.filePath;
134070
+ return object;
134071
+ };
134072
+
134073
+ /**
134074
+ * Converts this UserMessageProcessMessagesEvent to JSON.
134075
+ * @function toJSON
134076
+ * @memberof UserMessageProcessMessagesEvent
134077
+ * @instance
134078
+ * @returns {Object.<string,*>} JSON object
134079
+ */
134080
+ UserMessageProcessMessagesEvent.prototype.toJSON = function toJSON() {
134081
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
134082
+ };
134083
+
134084
+ return UserMessageProcessMessagesEvent;
134085
+ })();
134086
+
133813
134087
  $root.VirginPulseAccountLinked = (function() {
133814
134088
 
133815
134089
  /**
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.501.0"
19
+ "version": "1.503.0"
20
20
  }