@headspace/protos-events 1.432.0 → 1.433.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
@@ -28915,6 +28915,9 @@ export enum GoalType {
28915
28915
  /** Properties of a B2BChallengeCreated. */
28916
28916
  export interface IB2BChallengeCreated {
28917
28917
 
28918
+ /** B2BChallengeCreated challengeId */
28919
+ challengeId?: (number|Long|null);
28920
+
28918
28921
  /** B2BChallengeCreated b2bOrgId */
28919
28922
  b2bOrgId?: (number|Long|null);
28920
28923
 
@@ -28949,6 +28952,9 @@ export class B2BChallengeCreated implements IB2BChallengeCreated {
28949
28952
  */
28950
28953
  constructor(properties?: IB2BChallengeCreated);
28951
28954
 
28955
+ /** B2BChallengeCreated challengeId. */
28956
+ public challengeId: (number|Long);
28957
+
28952
28958
  /** B2BChallengeCreated b2bOrgId. */
28953
28959
  public b2bOrgId: (number|Long);
28954
28960
 
@@ -29044,6 +29050,102 @@ export class B2BChallengeCreated implements IB2BChallengeCreated {
29044
29050
  public toJSON(): { [k: string]: any };
29045
29051
  }
29046
29052
 
29053
+ /** Properties of a B2BChallengeScheduled. */
29054
+ export interface IB2BChallengeScheduled {
29055
+
29056
+ /** B2BChallengeScheduled challengeId */
29057
+ challengeId?: (number|Long|null);
29058
+
29059
+ /** B2BChallengeScheduled brazeScheduleId */
29060
+ brazeScheduleId?: (string|null);
29061
+ }
29062
+
29063
+ /** Represents a B2BChallengeScheduled. */
29064
+ export class B2BChallengeScheduled implements IB2BChallengeScheduled {
29065
+
29066
+ /**
29067
+ * Constructs a new B2BChallengeScheduled.
29068
+ * @param [properties] Properties to set
29069
+ */
29070
+ constructor(properties?: IB2BChallengeScheduled);
29071
+
29072
+ /** B2BChallengeScheduled challengeId. */
29073
+ public challengeId: (number|Long);
29074
+
29075
+ /** B2BChallengeScheduled brazeScheduleId. */
29076
+ public brazeScheduleId: string;
29077
+
29078
+ /**
29079
+ * Creates a new B2BChallengeScheduled instance using the specified properties.
29080
+ * @param [properties] Properties to set
29081
+ * @returns B2BChallengeScheduled instance
29082
+ */
29083
+ public static create(properties?: IB2BChallengeScheduled): B2BChallengeScheduled;
29084
+
29085
+ /**
29086
+ * Encodes the specified B2BChallengeScheduled message. Does not implicitly {@link B2BChallengeScheduled.verify|verify} messages.
29087
+ * @param message B2BChallengeScheduled message or plain object to encode
29088
+ * @param [writer] Writer to encode to
29089
+ * @returns Writer
29090
+ */
29091
+ public static encode(message: IB2BChallengeScheduled, writer?: $protobuf.Writer): $protobuf.Writer;
29092
+
29093
+ /**
29094
+ * Encodes the specified B2BChallengeScheduled message, length delimited. Does not implicitly {@link B2BChallengeScheduled.verify|verify} messages.
29095
+ * @param message B2BChallengeScheduled message or plain object to encode
29096
+ * @param [writer] Writer to encode to
29097
+ * @returns Writer
29098
+ */
29099
+ public static encodeDelimited(message: IB2BChallengeScheduled, writer?: $protobuf.Writer): $protobuf.Writer;
29100
+
29101
+ /**
29102
+ * Decodes a B2BChallengeScheduled message from the specified reader or buffer.
29103
+ * @param reader Reader or buffer to decode from
29104
+ * @param [length] Message length if known beforehand
29105
+ * @returns B2BChallengeScheduled
29106
+ * @throws {Error} If the payload is not a reader or valid buffer
29107
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
29108
+ */
29109
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): B2BChallengeScheduled;
29110
+
29111
+ /**
29112
+ * Decodes a B2BChallengeScheduled message from the specified reader or buffer, length delimited.
29113
+ * @param reader Reader or buffer to decode from
29114
+ * @returns B2BChallengeScheduled
29115
+ * @throws {Error} If the payload is not a reader or valid buffer
29116
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
29117
+ */
29118
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): B2BChallengeScheduled;
29119
+
29120
+ /**
29121
+ * Verifies a B2BChallengeScheduled message.
29122
+ * @param message Plain object to verify
29123
+ * @returns `null` if valid, otherwise the reason why it is not
29124
+ */
29125
+ public static verify(message: { [k: string]: any }): (string|null);
29126
+
29127
+ /**
29128
+ * Creates a B2BChallengeScheduled message from a plain object. Also converts values to their respective internal types.
29129
+ * @param object Plain object
29130
+ * @returns B2BChallengeScheduled
29131
+ */
29132
+ public static fromObject(object: { [k: string]: any }): B2BChallengeScheduled;
29133
+
29134
+ /**
29135
+ * Creates a plain object from a B2BChallengeScheduled message. Also converts values to other types if specified.
29136
+ * @param message B2BChallengeScheduled
29137
+ * @param [options] Conversion options
29138
+ * @returns Plain object
29139
+ */
29140
+ public static toObject(message: B2BChallengeScheduled, options?: $protobuf.IConversionOptions): { [k: string]: any };
29141
+
29142
+ /**
29143
+ * Converts this B2BChallengeScheduled to JSON.
29144
+ * @returns JSON object
29145
+ */
29146
+ public toJSON(): { [k: string]: any };
29147
+ }
29148
+
29047
29149
  /** Properties of an EligibilityFileProcessed. */
29048
29150
  export interface IEligibilityFileProcessed {
29049
29151
 
package/lib/index.js CHANGED
@@ -80013,6 +80013,7 @@ $root.B2BChallengeCreated = (function() {
80013
80013
  * Properties of a B2BChallengeCreated.
80014
80014
  * @exports IB2BChallengeCreated
80015
80015
  * @interface IB2BChallengeCreated
80016
+ * @property {number|Long|null} [challengeId] B2BChallengeCreated challengeId
80016
80017
  * @property {number|Long|null} [b2bOrgId] B2BChallengeCreated b2bOrgId
80017
80018
  * @property {string|null} [headspaceHealthId] B2BChallengeCreated headspaceHealthId
80018
80019
  * @property {string|null} [orgName] B2BChallengeCreated orgName
@@ -80038,6 +80039,14 @@ $root.B2BChallengeCreated = (function() {
80038
80039
  this[keys[i]] = properties[keys[i]];
80039
80040
  }
80040
80041
 
80042
+ /**
80043
+ * B2BChallengeCreated challengeId.
80044
+ * @member {number|Long} challengeId
80045
+ * @memberof B2BChallengeCreated
80046
+ * @instance
80047
+ */
80048
+ B2BChallengeCreated.prototype.challengeId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
80049
+
80041
80050
  /**
80042
80051
  * B2BChallengeCreated b2bOrgId.
80043
80052
  * @member {number|Long} b2bOrgId
@@ -80142,6 +80151,8 @@ $root.B2BChallengeCreated = (function() {
80142
80151
  writer.uint32(/* id 7, wireType 0 =*/56).int32(message.goalType);
80143
80152
  if (message.goalTarget != null && message.hasOwnProperty("goalTarget"))
80144
80153
  writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.goalTarget);
80154
+ if (message.challengeId != null && message.hasOwnProperty("challengeId"))
80155
+ writer.uint32(/* id 9, wireType 0 =*/72).uint64(message.challengeId);
80145
80156
  return writer;
80146
80157
  };
80147
80158
 
@@ -80176,6 +80187,9 @@ $root.B2BChallengeCreated = (function() {
80176
80187
  while (reader.pos < end) {
80177
80188
  var tag = reader.uint32();
80178
80189
  switch (tag >>> 3) {
80190
+ case 9:
80191
+ message.challengeId = reader.uint64();
80192
+ break;
80179
80193
  case 1:
80180
80194
  message.b2bOrgId = reader.uint64();
80181
80195
  break;
@@ -80235,6 +80249,9 @@ $root.B2BChallengeCreated = (function() {
80235
80249
  B2BChallengeCreated.verify = function verify(message) {
80236
80250
  if (typeof message !== "object" || message === null)
80237
80251
  return "object expected";
80252
+ if (message.challengeId != null && message.hasOwnProperty("challengeId"))
80253
+ if (!$util.isInteger(message.challengeId) && !(message.challengeId && $util.isInteger(message.challengeId.low) && $util.isInteger(message.challengeId.high)))
80254
+ return "challengeId: integer|Long expected";
80238
80255
  if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
80239
80256
  if (!$util.isInteger(message.b2bOrgId) && !(message.b2bOrgId && $util.isInteger(message.b2bOrgId.low) && $util.isInteger(message.b2bOrgId.high)))
80240
80257
  return "b2bOrgId: integer|Long expected";
@@ -80287,6 +80304,15 @@ $root.B2BChallengeCreated = (function() {
80287
80304
  if (object instanceof $root.B2BChallengeCreated)
80288
80305
  return object;
80289
80306
  var message = new $root.B2BChallengeCreated();
80307
+ if (object.challengeId != null)
80308
+ if ($util.Long)
80309
+ (message.challengeId = $util.Long.fromValue(object.challengeId)).unsigned = true;
80310
+ else if (typeof object.challengeId === "string")
80311
+ message.challengeId = parseInt(object.challengeId, 10);
80312
+ else if (typeof object.challengeId === "number")
80313
+ message.challengeId = object.challengeId;
80314
+ else if (typeof object.challengeId === "object")
80315
+ message.challengeId = new $util.LongBits(object.challengeId.low >>> 0, object.challengeId.high >>> 0).toNumber(true);
80290
80316
  if (object.b2bOrgId != null)
80291
80317
  if ($util.Long)
80292
80318
  (message.b2bOrgId = $util.Long.fromValue(object.b2bOrgId)).unsigned = true;
@@ -80389,6 +80415,11 @@ $root.B2BChallengeCreated = (function() {
80389
80415
  object.goalTarget = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
80390
80416
  } else
80391
80417
  object.goalTarget = options.longs === String ? "0" : 0;
80418
+ if ($util.Long) {
80419
+ var long = new $util.Long(0, 0, true);
80420
+ object.challengeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
80421
+ } else
80422
+ object.challengeId = options.longs === String ? "0" : 0;
80392
80423
  }
80393
80424
  if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
80394
80425
  if (typeof message.b2bOrgId === "number")
@@ -80415,6 +80446,11 @@ $root.B2BChallengeCreated = (function() {
80415
80446
  object.goalTarget = options.longs === String ? String(message.goalTarget) : message.goalTarget;
80416
80447
  else
80417
80448
  object.goalTarget = options.longs === String ? $util.Long.prototype.toString.call(message.goalTarget) : options.longs === Number ? new $util.LongBits(message.goalTarget.low >>> 0, message.goalTarget.high >>> 0).toNumber(true) : message.goalTarget;
80449
+ if (message.challengeId != null && message.hasOwnProperty("challengeId"))
80450
+ if (typeof message.challengeId === "number")
80451
+ object.challengeId = options.longs === String ? String(message.challengeId) : message.challengeId;
80452
+ else
80453
+ 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;
80418
80454
  return object;
80419
80455
  };
80420
80456
 
@@ -80432,6 +80468,230 @@ $root.B2BChallengeCreated = (function() {
80432
80468
  return B2BChallengeCreated;
80433
80469
  })();
80434
80470
 
80471
+ $root.B2BChallengeScheduled = (function() {
80472
+
80473
+ /**
80474
+ * Properties of a B2BChallengeScheduled.
80475
+ * @exports IB2BChallengeScheduled
80476
+ * @interface IB2BChallengeScheduled
80477
+ * @property {number|Long|null} [challengeId] B2BChallengeScheduled challengeId
80478
+ * @property {string|null} [brazeScheduleId] B2BChallengeScheduled brazeScheduleId
80479
+ */
80480
+
80481
+ /**
80482
+ * Constructs a new B2BChallengeScheduled.
80483
+ * @exports B2BChallengeScheduled
80484
+ * @classdesc Represents a B2BChallengeScheduled.
80485
+ * @implements IB2BChallengeScheduled
80486
+ * @constructor
80487
+ * @param {IB2BChallengeScheduled=} [properties] Properties to set
80488
+ */
80489
+ function B2BChallengeScheduled(properties) {
80490
+ if (properties)
80491
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
80492
+ if (properties[keys[i]] != null)
80493
+ this[keys[i]] = properties[keys[i]];
80494
+ }
80495
+
80496
+ /**
80497
+ * B2BChallengeScheduled challengeId.
80498
+ * @member {number|Long} challengeId
80499
+ * @memberof B2BChallengeScheduled
80500
+ * @instance
80501
+ */
80502
+ B2BChallengeScheduled.prototype.challengeId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
80503
+
80504
+ /**
80505
+ * B2BChallengeScheduled brazeScheduleId.
80506
+ * @member {string} brazeScheduleId
80507
+ * @memberof B2BChallengeScheduled
80508
+ * @instance
80509
+ */
80510
+ B2BChallengeScheduled.prototype.brazeScheduleId = "";
80511
+
80512
+ /**
80513
+ * Creates a new B2BChallengeScheduled instance using the specified properties.
80514
+ * @function create
80515
+ * @memberof B2BChallengeScheduled
80516
+ * @static
80517
+ * @param {IB2BChallengeScheduled=} [properties] Properties to set
80518
+ * @returns {B2BChallengeScheduled} B2BChallengeScheduled instance
80519
+ */
80520
+ B2BChallengeScheduled.create = function create(properties) {
80521
+ return new B2BChallengeScheduled(properties);
80522
+ };
80523
+
80524
+ /**
80525
+ * Encodes the specified B2BChallengeScheduled message. Does not implicitly {@link B2BChallengeScheduled.verify|verify} messages.
80526
+ * @function encode
80527
+ * @memberof B2BChallengeScheduled
80528
+ * @static
80529
+ * @param {IB2BChallengeScheduled} message B2BChallengeScheduled message or plain object to encode
80530
+ * @param {$protobuf.Writer} [writer] Writer to encode to
80531
+ * @returns {$protobuf.Writer} Writer
80532
+ */
80533
+ B2BChallengeScheduled.encode = function encode(message, writer) {
80534
+ if (!writer)
80535
+ writer = $Writer.create();
80536
+ if (message.challengeId != null && message.hasOwnProperty("challengeId"))
80537
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.challengeId);
80538
+ if (message.brazeScheduleId != null && message.hasOwnProperty("brazeScheduleId"))
80539
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.brazeScheduleId);
80540
+ return writer;
80541
+ };
80542
+
80543
+ /**
80544
+ * Encodes the specified B2BChallengeScheduled message, length delimited. Does not implicitly {@link B2BChallengeScheduled.verify|verify} messages.
80545
+ * @function encodeDelimited
80546
+ * @memberof B2BChallengeScheduled
80547
+ * @static
80548
+ * @param {IB2BChallengeScheduled} message B2BChallengeScheduled message or plain object to encode
80549
+ * @param {$protobuf.Writer} [writer] Writer to encode to
80550
+ * @returns {$protobuf.Writer} Writer
80551
+ */
80552
+ B2BChallengeScheduled.encodeDelimited = function encodeDelimited(message, writer) {
80553
+ return this.encode(message, writer).ldelim();
80554
+ };
80555
+
80556
+ /**
80557
+ * Decodes a B2BChallengeScheduled message from the specified reader or buffer.
80558
+ * @function decode
80559
+ * @memberof B2BChallengeScheduled
80560
+ * @static
80561
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
80562
+ * @param {number} [length] Message length if known beforehand
80563
+ * @returns {B2BChallengeScheduled} B2BChallengeScheduled
80564
+ * @throws {Error} If the payload is not a reader or valid buffer
80565
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
80566
+ */
80567
+ B2BChallengeScheduled.decode = function decode(reader, length) {
80568
+ if (!(reader instanceof $Reader))
80569
+ reader = $Reader.create(reader);
80570
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.B2BChallengeScheduled();
80571
+ while (reader.pos < end) {
80572
+ var tag = reader.uint32();
80573
+ switch (tag >>> 3) {
80574
+ case 1:
80575
+ message.challengeId = reader.uint64();
80576
+ break;
80577
+ case 2:
80578
+ message.brazeScheduleId = reader.string();
80579
+ break;
80580
+ default:
80581
+ reader.skipType(tag & 7);
80582
+ break;
80583
+ }
80584
+ }
80585
+ return message;
80586
+ };
80587
+
80588
+ /**
80589
+ * Decodes a B2BChallengeScheduled message from the specified reader or buffer, length delimited.
80590
+ * @function decodeDelimited
80591
+ * @memberof B2BChallengeScheduled
80592
+ * @static
80593
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
80594
+ * @returns {B2BChallengeScheduled} B2BChallengeScheduled
80595
+ * @throws {Error} If the payload is not a reader or valid buffer
80596
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
80597
+ */
80598
+ B2BChallengeScheduled.decodeDelimited = function decodeDelimited(reader) {
80599
+ if (!(reader instanceof $Reader))
80600
+ reader = new $Reader(reader);
80601
+ return this.decode(reader, reader.uint32());
80602
+ };
80603
+
80604
+ /**
80605
+ * Verifies a B2BChallengeScheduled message.
80606
+ * @function verify
80607
+ * @memberof B2BChallengeScheduled
80608
+ * @static
80609
+ * @param {Object.<string,*>} message Plain object to verify
80610
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
80611
+ */
80612
+ B2BChallengeScheduled.verify = function verify(message) {
80613
+ if (typeof message !== "object" || message === null)
80614
+ return "object expected";
80615
+ if (message.challengeId != null && message.hasOwnProperty("challengeId"))
80616
+ if (!$util.isInteger(message.challengeId) && !(message.challengeId && $util.isInteger(message.challengeId.low) && $util.isInteger(message.challengeId.high)))
80617
+ return "challengeId: integer|Long expected";
80618
+ if (message.brazeScheduleId != null && message.hasOwnProperty("brazeScheduleId"))
80619
+ if (!$util.isString(message.brazeScheduleId))
80620
+ return "brazeScheduleId: string expected";
80621
+ return null;
80622
+ };
80623
+
80624
+ /**
80625
+ * Creates a B2BChallengeScheduled message from a plain object. Also converts values to their respective internal types.
80626
+ * @function fromObject
80627
+ * @memberof B2BChallengeScheduled
80628
+ * @static
80629
+ * @param {Object.<string,*>} object Plain object
80630
+ * @returns {B2BChallengeScheduled} B2BChallengeScheduled
80631
+ */
80632
+ B2BChallengeScheduled.fromObject = function fromObject(object) {
80633
+ if (object instanceof $root.B2BChallengeScheduled)
80634
+ return object;
80635
+ var message = new $root.B2BChallengeScheduled();
80636
+ if (object.challengeId != null)
80637
+ if ($util.Long)
80638
+ (message.challengeId = $util.Long.fromValue(object.challengeId)).unsigned = true;
80639
+ else if (typeof object.challengeId === "string")
80640
+ message.challengeId = parseInt(object.challengeId, 10);
80641
+ else if (typeof object.challengeId === "number")
80642
+ message.challengeId = object.challengeId;
80643
+ else if (typeof object.challengeId === "object")
80644
+ message.challengeId = new $util.LongBits(object.challengeId.low >>> 0, object.challengeId.high >>> 0).toNumber(true);
80645
+ if (object.brazeScheduleId != null)
80646
+ message.brazeScheduleId = String(object.brazeScheduleId);
80647
+ return message;
80648
+ };
80649
+
80650
+ /**
80651
+ * Creates a plain object from a B2BChallengeScheduled message. Also converts values to other types if specified.
80652
+ * @function toObject
80653
+ * @memberof B2BChallengeScheduled
80654
+ * @static
80655
+ * @param {B2BChallengeScheduled} message B2BChallengeScheduled
80656
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
80657
+ * @returns {Object.<string,*>} Plain object
80658
+ */
80659
+ B2BChallengeScheduled.toObject = function toObject(message, options) {
80660
+ if (!options)
80661
+ options = {};
80662
+ var object = {};
80663
+ if (options.defaults) {
80664
+ if ($util.Long) {
80665
+ var long = new $util.Long(0, 0, true);
80666
+ object.challengeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
80667
+ } else
80668
+ object.challengeId = options.longs === String ? "0" : 0;
80669
+ object.brazeScheduleId = "";
80670
+ }
80671
+ if (message.challengeId != null && message.hasOwnProperty("challengeId"))
80672
+ if (typeof message.challengeId === "number")
80673
+ object.challengeId = options.longs === String ? String(message.challengeId) : message.challengeId;
80674
+ else
80675
+ 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;
80676
+ if (message.brazeScheduleId != null && message.hasOwnProperty("brazeScheduleId"))
80677
+ object.brazeScheduleId = message.brazeScheduleId;
80678
+ return object;
80679
+ };
80680
+
80681
+ /**
80682
+ * Converts this B2BChallengeScheduled to JSON.
80683
+ * @function toJSON
80684
+ * @memberof B2BChallengeScheduled
80685
+ * @instance
80686
+ * @returns {Object.<string,*>} JSON object
80687
+ */
80688
+ B2BChallengeScheduled.prototype.toJSON = function toJSON() {
80689
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
80690
+ };
80691
+
80692
+ return B2BChallengeScheduled;
80693
+ })();
80694
+
80435
80695
  $root.EligibilityFileProcessed = (function() {
80436
80696
 
80437
80697
  /**
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.432.0"
19
+ "version": "1.433.0"
20
20
  }