@headspace/protos-events 1.449.0 → 1.450.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
@@ -29384,6 +29384,102 @@ export class B2BChallengeCreated implements IB2BChallengeCreated {
29384
29384
  public toJSON(): { [k: string]: any };
29385
29385
  }
29386
29386
 
29387
+ /** Properties of a B2BChallengeCanceled. */
29388
+ export interface IB2BChallengeCanceled {
29389
+
29390
+ /** B2BChallengeCanceled brazeScheduleId */
29391
+ brazeScheduleId?: (string|null);
29392
+
29393
+ /** B2BChallengeCanceled durationInWeeks */
29394
+ durationInWeeks?: (number|Long|null);
29395
+ }
29396
+
29397
+ /** Represents a B2BChallengeCanceled. */
29398
+ export class B2BChallengeCanceled implements IB2BChallengeCanceled {
29399
+
29400
+ /**
29401
+ * Constructs a new B2BChallengeCanceled.
29402
+ * @param [properties] Properties to set
29403
+ */
29404
+ constructor(properties?: IB2BChallengeCanceled);
29405
+
29406
+ /** B2BChallengeCanceled brazeScheduleId. */
29407
+ public brazeScheduleId: string;
29408
+
29409
+ /** B2BChallengeCanceled durationInWeeks. */
29410
+ public durationInWeeks: (number|Long);
29411
+
29412
+ /**
29413
+ * Creates a new B2BChallengeCanceled instance using the specified properties.
29414
+ * @param [properties] Properties to set
29415
+ * @returns B2BChallengeCanceled instance
29416
+ */
29417
+ public static create(properties?: IB2BChallengeCanceled): B2BChallengeCanceled;
29418
+
29419
+ /**
29420
+ * Encodes the specified B2BChallengeCanceled message. Does not implicitly {@link B2BChallengeCanceled.verify|verify} messages.
29421
+ * @param message B2BChallengeCanceled message or plain object to encode
29422
+ * @param [writer] Writer to encode to
29423
+ * @returns Writer
29424
+ */
29425
+ public static encode(message: IB2BChallengeCanceled, writer?: $protobuf.Writer): $protobuf.Writer;
29426
+
29427
+ /**
29428
+ * Encodes the specified B2BChallengeCanceled message, length delimited. Does not implicitly {@link B2BChallengeCanceled.verify|verify} messages.
29429
+ * @param message B2BChallengeCanceled message or plain object to encode
29430
+ * @param [writer] Writer to encode to
29431
+ * @returns Writer
29432
+ */
29433
+ public static encodeDelimited(message: IB2BChallengeCanceled, writer?: $protobuf.Writer): $protobuf.Writer;
29434
+
29435
+ /**
29436
+ * Decodes a B2BChallengeCanceled message from the specified reader or buffer.
29437
+ * @param reader Reader or buffer to decode from
29438
+ * @param [length] Message length if known beforehand
29439
+ * @returns B2BChallengeCanceled
29440
+ * @throws {Error} If the payload is not a reader or valid buffer
29441
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
29442
+ */
29443
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): B2BChallengeCanceled;
29444
+
29445
+ /**
29446
+ * Decodes a B2BChallengeCanceled message from the specified reader or buffer, length delimited.
29447
+ * @param reader Reader or buffer to decode from
29448
+ * @returns B2BChallengeCanceled
29449
+ * @throws {Error} If the payload is not a reader or valid buffer
29450
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
29451
+ */
29452
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): B2BChallengeCanceled;
29453
+
29454
+ /**
29455
+ * Verifies a B2BChallengeCanceled message.
29456
+ * @param message Plain object to verify
29457
+ * @returns `null` if valid, otherwise the reason why it is not
29458
+ */
29459
+ public static verify(message: { [k: string]: any }): (string|null);
29460
+
29461
+ /**
29462
+ * Creates a B2BChallengeCanceled message from a plain object. Also converts values to their respective internal types.
29463
+ * @param object Plain object
29464
+ * @returns B2BChallengeCanceled
29465
+ */
29466
+ public static fromObject(object: { [k: string]: any }): B2BChallengeCanceled;
29467
+
29468
+ /**
29469
+ * Creates a plain object from a B2BChallengeCanceled message. Also converts values to other types if specified.
29470
+ * @param message B2BChallengeCanceled
29471
+ * @param [options] Conversion options
29472
+ * @returns Plain object
29473
+ */
29474
+ public static toObject(message: B2BChallengeCanceled, options?: $protobuf.IConversionOptions): { [k: string]: any };
29475
+
29476
+ /**
29477
+ * Converts this B2BChallengeCanceled to JSON.
29478
+ * @returns JSON object
29479
+ */
29480
+ public toJSON(): { [k: string]: any };
29481
+ }
29482
+
29387
29483
  /** Properties of an EligibilityFileProcessed. */
29388
29484
  export interface IEligibilityFileProcessed {
29389
29485
 
package/lib/index.js CHANGED
@@ -81314,6 +81314,230 @@ $root.B2BChallengeCreated = (function() {
81314
81314
  return B2BChallengeCreated;
81315
81315
  })();
81316
81316
 
81317
+ $root.B2BChallengeCanceled = (function() {
81318
+
81319
+ /**
81320
+ * Properties of a B2BChallengeCanceled.
81321
+ * @exports IB2BChallengeCanceled
81322
+ * @interface IB2BChallengeCanceled
81323
+ * @property {string|null} [brazeScheduleId] B2BChallengeCanceled brazeScheduleId
81324
+ * @property {number|Long|null} [durationInWeeks] B2BChallengeCanceled durationInWeeks
81325
+ */
81326
+
81327
+ /**
81328
+ * Constructs a new B2BChallengeCanceled.
81329
+ * @exports B2BChallengeCanceled
81330
+ * @classdesc Represents a B2BChallengeCanceled.
81331
+ * @implements IB2BChallengeCanceled
81332
+ * @constructor
81333
+ * @param {IB2BChallengeCanceled=} [properties] Properties to set
81334
+ */
81335
+ function B2BChallengeCanceled(properties) {
81336
+ if (properties)
81337
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
81338
+ if (properties[keys[i]] != null)
81339
+ this[keys[i]] = properties[keys[i]];
81340
+ }
81341
+
81342
+ /**
81343
+ * B2BChallengeCanceled brazeScheduleId.
81344
+ * @member {string} brazeScheduleId
81345
+ * @memberof B2BChallengeCanceled
81346
+ * @instance
81347
+ */
81348
+ B2BChallengeCanceled.prototype.brazeScheduleId = "";
81349
+
81350
+ /**
81351
+ * B2BChallengeCanceled durationInWeeks.
81352
+ * @member {number|Long} durationInWeeks
81353
+ * @memberof B2BChallengeCanceled
81354
+ * @instance
81355
+ */
81356
+ B2BChallengeCanceled.prototype.durationInWeeks = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
81357
+
81358
+ /**
81359
+ * Creates a new B2BChallengeCanceled instance using the specified properties.
81360
+ * @function create
81361
+ * @memberof B2BChallengeCanceled
81362
+ * @static
81363
+ * @param {IB2BChallengeCanceled=} [properties] Properties to set
81364
+ * @returns {B2BChallengeCanceled} B2BChallengeCanceled instance
81365
+ */
81366
+ B2BChallengeCanceled.create = function create(properties) {
81367
+ return new B2BChallengeCanceled(properties);
81368
+ };
81369
+
81370
+ /**
81371
+ * Encodes the specified B2BChallengeCanceled message. Does not implicitly {@link B2BChallengeCanceled.verify|verify} messages.
81372
+ * @function encode
81373
+ * @memberof B2BChallengeCanceled
81374
+ * @static
81375
+ * @param {IB2BChallengeCanceled} message B2BChallengeCanceled message or plain object to encode
81376
+ * @param {$protobuf.Writer} [writer] Writer to encode to
81377
+ * @returns {$protobuf.Writer} Writer
81378
+ */
81379
+ B2BChallengeCanceled.encode = function encode(message, writer) {
81380
+ if (!writer)
81381
+ writer = $Writer.create();
81382
+ if (message.brazeScheduleId != null && message.hasOwnProperty("brazeScheduleId"))
81383
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.brazeScheduleId);
81384
+ if (message.durationInWeeks != null && message.hasOwnProperty("durationInWeeks"))
81385
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.durationInWeeks);
81386
+ return writer;
81387
+ };
81388
+
81389
+ /**
81390
+ * Encodes the specified B2BChallengeCanceled message, length delimited. Does not implicitly {@link B2BChallengeCanceled.verify|verify} messages.
81391
+ * @function encodeDelimited
81392
+ * @memberof B2BChallengeCanceled
81393
+ * @static
81394
+ * @param {IB2BChallengeCanceled} message B2BChallengeCanceled message or plain object to encode
81395
+ * @param {$protobuf.Writer} [writer] Writer to encode to
81396
+ * @returns {$protobuf.Writer} Writer
81397
+ */
81398
+ B2BChallengeCanceled.encodeDelimited = function encodeDelimited(message, writer) {
81399
+ return this.encode(message, writer).ldelim();
81400
+ };
81401
+
81402
+ /**
81403
+ * Decodes a B2BChallengeCanceled message from the specified reader or buffer.
81404
+ * @function decode
81405
+ * @memberof B2BChallengeCanceled
81406
+ * @static
81407
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
81408
+ * @param {number} [length] Message length if known beforehand
81409
+ * @returns {B2BChallengeCanceled} B2BChallengeCanceled
81410
+ * @throws {Error} If the payload is not a reader or valid buffer
81411
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
81412
+ */
81413
+ B2BChallengeCanceled.decode = function decode(reader, length) {
81414
+ if (!(reader instanceof $Reader))
81415
+ reader = $Reader.create(reader);
81416
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.B2BChallengeCanceled();
81417
+ while (reader.pos < end) {
81418
+ var tag = reader.uint32();
81419
+ switch (tag >>> 3) {
81420
+ case 1:
81421
+ message.brazeScheduleId = reader.string();
81422
+ break;
81423
+ case 2:
81424
+ message.durationInWeeks = reader.uint64();
81425
+ break;
81426
+ default:
81427
+ reader.skipType(tag & 7);
81428
+ break;
81429
+ }
81430
+ }
81431
+ return message;
81432
+ };
81433
+
81434
+ /**
81435
+ * Decodes a B2BChallengeCanceled message from the specified reader or buffer, length delimited.
81436
+ * @function decodeDelimited
81437
+ * @memberof B2BChallengeCanceled
81438
+ * @static
81439
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
81440
+ * @returns {B2BChallengeCanceled} B2BChallengeCanceled
81441
+ * @throws {Error} If the payload is not a reader or valid buffer
81442
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
81443
+ */
81444
+ B2BChallengeCanceled.decodeDelimited = function decodeDelimited(reader) {
81445
+ if (!(reader instanceof $Reader))
81446
+ reader = new $Reader(reader);
81447
+ return this.decode(reader, reader.uint32());
81448
+ };
81449
+
81450
+ /**
81451
+ * Verifies a B2BChallengeCanceled message.
81452
+ * @function verify
81453
+ * @memberof B2BChallengeCanceled
81454
+ * @static
81455
+ * @param {Object.<string,*>} message Plain object to verify
81456
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
81457
+ */
81458
+ B2BChallengeCanceled.verify = function verify(message) {
81459
+ if (typeof message !== "object" || message === null)
81460
+ return "object expected";
81461
+ if (message.brazeScheduleId != null && message.hasOwnProperty("brazeScheduleId"))
81462
+ if (!$util.isString(message.brazeScheduleId))
81463
+ return "brazeScheduleId: string expected";
81464
+ if (message.durationInWeeks != null && message.hasOwnProperty("durationInWeeks"))
81465
+ if (!$util.isInteger(message.durationInWeeks) && !(message.durationInWeeks && $util.isInteger(message.durationInWeeks.low) && $util.isInteger(message.durationInWeeks.high)))
81466
+ return "durationInWeeks: integer|Long expected";
81467
+ return null;
81468
+ };
81469
+
81470
+ /**
81471
+ * Creates a B2BChallengeCanceled message from a plain object. Also converts values to their respective internal types.
81472
+ * @function fromObject
81473
+ * @memberof B2BChallengeCanceled
81474
+ * @static
81475
+ * @param {Object.<string,*>} object Plain object
81476
+ * @returns {B2BChallengeCanceled} B2BChallengeCanceled
81477
+ */
81478
+ B2BChallengeCanceled.fromObject = function fromObject(object) {
81479
+ if (object instanceof $root.B2BChallengeCanceled)
81480
+ return object;
81481
+ var message = new $root.B2BChallengeCanceled();
81482
+ if (object.brazeScheduleId != null)
81483
+ message.brazeScheduleId = String(object.brazeScheduleId);
81484
+ if (object.durationInWeeks != null)
81485
+ if ($util.Long)
81486
+ (message.durationInWeeks = $util.Long.fromValue(object.durationInWeeks)).unsigned = true;
81487
+ else if (typeof object.durationInWeeks === "string")
81488
+ message.durationInWeeks = parseInt(object.durationInWeeks, 10);
81489
+ else if (typeof object.durationInWeeks === "number")
81490
+ message.durationInWeeks = object.durationInWeeks;
81491
+ else if (typeof object.durationInWeeks === "object")
81492
+ message.durationInWeeks = new $util.LongBits(object.durationInWeeks.low >>> 0, object.durationInWeeks.high >>> 0).toNumber(true);
81493
+ return message;
81494
+ };
81495
+
81496
+ /**
81497
+ * Creates a plain object from a B2BChallengeCanceled message. Also converts values to other types if specified.
81498
+ * @function toObject
81499
+ * @memberof B2BChallengeCanceled
81500
+ * @static
81501
+ * @param {B2BChallengeCanceled} message B2BChallengeCanceled
81502
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
81503
+ * @returns {Object.<string,*>} Plain object
81504
+ */
81505
+ B2BChallengeCanceled.toObject = function toObject(message, options) {
81506
+ if (!options)
81507
+ options = {};
81508
+ var object = {};
81509
+ if (options.defaults) {
81510
+ object.brazeScheduleId = "";
81511
+ if ($util.Long) {
81512
+ var long = new $util.Long(0, 0, true);
81513
+ object.durationInWeeks = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
81514
+ } else
81515
+ object.durationInWeeks = options.longs === String ? "0" : 0;
81516
+ }
81517
+ if (message.brazeScheduleId != null && message.hasOwnProperty("brazeScheduleId"))
81518
+ object.brazeScheduleId = message.brazeScheduleId;
81519
+ if (message.durationInWeeks != null && message.hasOwnProperty("durationInWeeks"))
81520
+ if (typeof message.durationInWeeks === "number")
81521
+ object.durationInWeeks = options.longs === String ? String(message.durationInWeeks) : message.durationInWeeks;
81522
+ else
81523
+ object.durationInWeeks = options.longs === String ? $util.Long.prototype.toString.call(message.durationInWeeks) : options.longs === Number ? new $util.LongBits(message.durationInWeeks.low >>> 0, message.durationInWeeks.high >>> 0).toNumber(true) : message.durationInWeeks;
81524
+ return object;
81525
+ };
81526
+
81527
+ /**
81528
+ * Converts this B2BChallengeCanceled to JSON.
81529
+ * @function toJSON
81530
+ * @memberof B2BChallengeCanceled
81531
+ * @instance
81532
+ * @returns {Object.<string,*>} JSON object
81533
+ */
81534
+ B2BChallengeCanceled.prototype.toJSON = function toJSON() {
81535
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
81536
+ };
81537
+
81538
+ return B2BChallengeCanceled;
81539
+ })();
81540
+
81317
81541
  $root.EligibilityFileProcessed = (function() {
81318
81542
 
81319
81543
  /**
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.449.0"
19
+ "version": "1.450.0"
20
20
  }