@headspace/protos-events 1.449.0 → 1.451.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
@@ -10052,6 +10052,12 @@ export namespace b2b {
10052
10052
 
10053
10053
  /** Organization enrollmentUrl */
10054
10054
  enrollmentUrl?: (string|null);
10055
+
10056
+ /** Organization rootOrgId */
10057
+ rootOrgId?: (number|null);
10058
+
10059
+ /** Organization parentOrgId */
10060
+ parentOrgId?: (number|null);
10055
10061
  }
10056
10062
 
10057
10063
  /** Represents an Organization. */
@@ -10117,6 +10123,12 @@ export namespace b2b {
10117
10123
  /** Organization enrollmentUrl. */
10118
10124
  public enrollmentUrl: string;
10119
10125
 
10126
+ /** Organization rootOrgId. */
10127
+ public rootOrgId: number;
10128
+
10129
+ /** Organization parentOrgId. */
10130
+ public parentOrgId: number;
10131
+
10120
10132
  /**
10121
10133
  * Creates a new Organization instance using the specified properties.
10122
10134
  * @param [properties] Properties to set
@@ -29384,6 +29396,102 @@ export class B2BChallengeCreated implements IB2BChallengeCreated {
29384
29396
  public toJSON(): { [k: string]: any };
29385
29397
  }
29386
29398
 
29399
+ /** Properties of a B2BChallengeCanceled. */
29400
+ export interface IB2BChallengeCanceled {
29401
+
29402
+ /** B2BChallengeCanceled brazeScheduleId */
29403
+ brazeScheduleId?: (string|null);
29404
+
29405
+ /** B2BChallengeCanceled durationInWeeks */
29406
+ durationInWeeks?: (number|Long|null);
29407
+ }
29408
+
29409
+ /** Represents a B2BChallengeCanceled. */
29410
+ export class B2BChallengeCanceled implements IB2BChallengeCanceled {
29411
+
29412
+ /**
29413
+ * Constructs a new B2BChallengeCanceled.
29414
+ * @param [properties] Properties to set
29415
+ */
29416
+ constructor(properties?: IB2BChallengeCanceled);
29417
+
29418
+ /** B2BChallengeCanceled brazeScheduleId. */
29419
+ public brazeScheduleId: string;
29420
+
29421
+ /** B2BChallengeCanceled durationInWeeks. */
29422
+ public durationInWeeks: (number|Long);
29423
+
29424
+ /**
29425
+ * Creates a new B2BChallengeCanceled instance using the specified properties.
29426
+ * @param [properties] Properties to set
29427
+ * @returns B2BChallengeCanceled instance
29428
+ */
29429
+ public static create(properties?: IB2BChallengeCanceled): B2BChallengeCanceled;
29430
+
29431
+ /**
29432
+ * Encodes the specified B2BChallengeCanceled message. Does not implicitly {@link B2BChallengeCanceled.verify|verify} messages.
29433
+ * @param message B2BChallengeCanceled message or plain object to encode
29434
+ * @param [writer] Writer to encode to
29435
+ * @returns Writer
29436
+ */
29437
+ public static encode(message: IB2BChallengeCanceled, writer?: $protobuf.Writer): $protobuf.Writer;
29438
+
29439
+ /**
29440
+ * Encodes the specified B2BChallengeCanceled message, length delimited. Does not implicitly {@link B2BChallengeCanceled.verify|verify} messages.
29441
+ * @param message B2BChallengeCanceled message or plain object to encode
29442
+ * @param [writer] Writer to encode to
29443
+ * @returns Writer
29444
+ */
29445
+ public static encodeDelimited(message: IB2BChallengeCanceled, writer?: $protobuf.Writer): $protobuf.Writer;
29446
+
29447
+ /**
29448
+ * Decodes a B2BChallengeCanceled message from the specified reader or buffer.
29449
+ * @param reader Reader or buffer to decode from
29450
+ * @param [length] Message length if known beforehand
29451
+ * @returns B2BChallengeCanceled
29452
+ * @throws {Error} If the payload is not a reader or valid buffer
29453
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
29454
+ */
29455
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): B2BChallengeCanceled;
29456
+
29457
+ /**
29458
+ * Decodes a B2BChallengeCanceled message from the specified reader or buffer, length delimited.
29459
+ * @param reader Reader or buffer to decode from
29460
+ * @returns B2BChallengeCanceled
29461
+ * @throws {Error} If the payload is not a reader or valid buffer
29462
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
29463
+ */
29464
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): B2BChallengeCanceled;
29465
+
29466
+ /**
29467
+ * Verifies a B2BChallengeCanceled message.
29468
+ * @param message Plain object to verify
29469
+ * @returns `null` if valid, otherwise the reason why it is not
29470
+ */
29471
+ public static verify(message: { [k: string]: any }): (string|null);
29472
+
29473
+ /**
29474
+ * Creates a B2BChallengeCanceled message from a plain object. Also converts values to their respective internal types.
29475
+ * @param object Plain object
29476
+ * @returns B2BChallengeCanceled
29477
+ */
29478
+ public static fromObject(object: { [k: string]: any }): B2BChallengeCanceled;
29479
+
29480
+ /**
29481
+ * Creates a plain object from a B2BChallengeCanceled message. Also converts values to other types if specified.
29482
+ * @param message B2BChallengeCanceled
29483
+ * @param [options] Conversion options
29484
+ * @returns Plain object
29485
+ */
29486
+ public static toObject(message: B2BChallengeCanceled, options?: $protobuf.IConversionOptions): { [k: string]: any };
29487
+
29488
+ /**
29489
+ * Converts this B2BChallengeCanceled to JSON.
29490
+ * @returns JSON object
29491
+ */
29492
+ public toJSON(): { [k: string]: any };
29493
+ }
29494
+
29387
29495
  /** Properties of an EligibilityFileProcessed. */
29388
29496
  export interface IEligibilityFileProcessed {
29389
29497
 
package/lib/index.js CHANGED
@@ -23952,6 +23952,8 @@ $root.b2b = (function() {
23952
23952
  * @property {string|null} [parentOrgHeadspaceHealthId] Organization parentOrgHeadspaceHealthId
23953
23953
  * @property {boolean|null} [enabledConnected] Organization enabledConnected
23954
23954
  * @property {string|null} [enrollmentUrl] Organization enrollmentUrl
23955
+ * @property {number|null} [rootOrgId] Organization rootOrgId
23956
+ * @property {number|null} [parentOrgId] Organization parentOrgId
23955
23957
  */
23956
23958
 
23957
23959
  /**
@@ -24114,6 +24116,22 @@ $root.b2b = (function() {
24114
24116
  */
24115
24117
  Organization.prototype.enrollmentUrl = "";
24116
24118
 
24119
+ /**
24120
+ * Organization rootOrgId.
24121
+ * @member {number} rootOrgId
24122
+ * @memberof b2b.Organization
24123
+ * @instance
24124
+ */
24125
+ Organization.prototype.rootOrgId = 0;
24126
+
24127
+ /**
24128
+ * Organization parentOrgId.
24129
+ * @member {number} parentOrgId
24130
+ * @memberof b2b.Organization
24131
+ * @instance
24132
+ */
24133
+ Organization.prototype.parentOrgId = 0;
24134
+
24117
24135
  /**
24118
24136
  * Creates a new Organization instance using the specified properties.
24119
24137
  * @function create
@@ -24178,6 +24196,10 @@ $root.b2b = (function() {
24178
24196
  writer.uint32(/* id 17, wireType 0 =*/136).bool(message.enabledConnected);
24179
24197
  if (message.enrollmentUrl != null && message.hasOwnProperty("enrollmentUrl"))
24180
24198
  writer.uint32(/* id 18, wireType 2 =*/146).string(message.enrollmentUrl);
24199
+ if (message.rootOrgId != null && message.hasOwnProperty("rootOrgId"))
24200
+ writer.uint32(/* id 19, wireType 0 =*/152).uint32(message.rootOrgId);
24201
+ if (message.parentOrgId != null && message.hasOwnProperty("parentOrgId"))
24202
+ writer.uint32(/* id 20, wireType 0 =*/160).uint32(message.parentOrgId);
24181
24203
  return writer;
24182
24204
  };
24183
24205
 
@@ -24273,6 +24295,12 @@ $root.b2b = (function() {
24273
24295
  case 18:
24274
24296
  message.enrollmentUrl = reader.string();
24275
24297
  break;
24298
+ case 19:
24299
+ message.rootOrgId = reader.uint32();
24300
+ break;
24301
+ case 20:
24302
+ message.parentOrgId = reader.uint32();
24303
+ break;
24276
24304
  default:
24277
24305
  reader.skipType(tag & 7);
24278
24306
  break;
@@ -24396,6 +24424,12 @@ $root.b2b = (function() {
24396
24424
  if (message.enrollmentUrl != null && message.hasOwnProperty("enrollmentUrl"))
24397
24425
  if (!$util.isString(message.enrollmentUrl))
24398
24426
  return "enrollmentUrl: string expected";
24427
+ if (message.rootOrgId != null && message.hasOwnProperty("rootOrgId"))
24428
+ if (!$util.isInteger(message.rootOrgId))
24429
+ return "rootOrgId: integer expected";
24430
+ if (message.parentOrgId != null && message.hasOwnProperty("parentOrgId"))
24431
+ if (!$util.isInteger(message.parentOrgId))
24432
+ return "parentOrgId: integer expected";
24399
24433
  return null;
24400
24434
  };
24401
24435
 
@@ -24538,6 +24572,10 @@ $root.b2b = (function() {
24538
24572
  message.enabledConnected = Boolean(object.enabledConnected);
24539
24573
  if (object.enrollmentUrl != null)
24540
24574
  message.enrollmentUrl = String(object.enrollmentUrl);
24575
+ if (object.rootOrgId != null)
24576
+ message.rootOrgId = object.rootOrgId >>> 0;
24577
+ if (object.parentOrgId != null)
24578
+ message.parentOrgId = object.parentOrgId >>> 0;
24541
24579
  return message;
24542
24580
  };
24543
24581
 
@@ -24574,6 +24612,8 @@ $root.b2b = (function() {
24574
24612
  object.parentOrgHeadspaceHealthId = "";
24575
24613
  object.enabledConnected = false;
24576
24614
  object.enrollmentUrl = "";
24615
+ object.rootOrgId = 0;
24616
+ object.parentOrgId = 0;
24577
24617
  }
24578
24618
  if (message.orgId != null && message.hasOwnProperty("orgId"))
24579
24619
  object.orgId = message.orgId;
@@ -24614,6 +24654,10 @@ $root.b2b = (function() {
24614
24654
  object.enabledConnected = message.enabledConnected;
24615
24655
  if (message.enrollmentUrl != null && message.hasOwnProperty("enrollmentUrl"))
24616
24656
  object.enrollmentUrl = message.enrollmentUrl;
24657
+ if (message.rootOrgId != null && message.hasOwnProperty("rootOrgId"))
24658
+ object.rootOrgId = message.rootOrgId;
24659
+ if (message.parentOrgId != null && message.hasOwnProperty("parentOrgId"))
24660
+ object.parentOrgId = message.parentOrgId;
24617
24661
  return object;
24618
24662
  };
24619
24663
 
@@ -81314,6 +81358,230 @@ $root.B2BChallengeCreated = (function() {
81314
81358
  return B2BChallengeCreated;
81315
81359
  })();
81316
81360
 
81361
+ $root.B2BChallengeCanceled = (function() {
81362
+
81363
+ /**
81364
+ * Properties of a B2BChallengeCanceled.
81365
+ * @exports IB2BChallengeCanceled
81366
+ * @interface IB2BChallengeCanceled
81367
+ * @property {string|null} [brazeScheduleId] B2BChallengeCanceled brazeScheduleId
81368
+ * @property {number|Long|null} [durationInWeeks] B2BChallengeCanceled durationInWeeks
81369
+ */
81370
+
81371
+ /**
81372
+ * Constructs a new B2BChallengeCanceled.
81373
+ * @exports B2BChallengeCanceled
81374
+ * @classdesc Represents a B2BChallengeCanceled.
81375
+ * @implements IB2BChallengeCanceled
81376
+ * @constructor
81377
+ * @param {IB2BChallengeCanceled=} [properties] Properties to set
81378
+ */
81379
+ function B2BChallengeCanceled(properties) {
81380
+ if (properties)
81381
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
81382
+ if (properties[keys[i]] != null)
81383
+ this[keys[i]] = properties[keys[i]];
81384
+ }
81385
+
81386
+ /**
81387
+ * B2BChallengeCanceled brazeScheduleId.
81388
+ * @member {string} brazeScheduleId
81389
+ * @memberof B2BChallengeCanceled
81390
+ * @instance
81391
+ */
81392
+ B2BChallengeCanceled.prototype.brazeScheduleId = "";
81393
+
81394
+ /**
81395
+ * B2BChallengeCanceled durationInWeeks.
81396
+ * @member {number|Long} durationInWeeks
81397
+ * @memberof B2BChallengeCanceled
81398
+ * @instance
81399
+ */
81400
+ B2BChallengeCanceled.prototype.durationInWeeks = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
81401
+
81402
+ /**
81403
+ * Creates a new B2BChallengeCanceled instance using the specified properties.
81404
+ * @function create
81405
+ * @memberof B2BChallengeCanceled
81406
+ * @static
81407
+ * @param {IB2BChallengeCanceled=} [properties] Properties to set
81408
+ * @returns {B2BChallengeCanceled} B2BChallengeCanceled instance
81409
+ */
81410
+ B2BChallengeCanceled.create = function create(properties) {
81411
+ return new B2BChallengeCanceled(properties);
81412
+ };
81413
+
81414
+ /**
81415
+ * Encodes the specified B2BChallengeCanceled message. Does not implicitly {@link B2BChallengeCanceled.verify|verify} messages.
81416
+ * @function encode
81417
+ * @memberof B2BChallengeCanceled
81418
+ * @static
81419
+ * @param {IB2BChallengeCanceled} message B2BChallengeCanceled message or plain object to encode
81420
+ * @param {$protobuf.Writer} [writer] Writer to encode to
81421
+ * @returns {$protobuf.Writer} Writer
81422
+ */
81423
+ B2BChallengeCanceled.encode = function encode(message, writer) {
81424
+ if (!writer)
81425
+ writer = $Writer.create();
81426
+ if (message.brazeScheduleId != null && message.hasOwnProperty("brazeScheduleId"))
81427
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.brazeScheduleId);
81428
+ if (message.durationInWeeks != null && message.hasOwnProperty("durationInWeeks"))
81429
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.durationInWeeks);
81430
+ return writer;
81431
+ };
81432
+
81433
+ /**
81434
+ * Encodes the specified B2BChallengeCanceled message, length delimited. Does not implicitly {@link B2BChallengeCanceled.verify|verify} messages.
81435
+ * @function encodeDelimited
81436
+ * @memberof B2BChallengeCanceled
81437
+ * @static
81438
+ * @param {IB2BChallengeCanceled} message B2BChallengeCanceled message or plain object to encode
81439
+ * @param {$protobuf.Writer} [writer] Writer to encode to
81440
+ * @returns {$protobuf.Writer} Writer
81441
+ */
81442
+ B2BChallengeCanceled.encodeDelimited = function encodeDelimited(message, writer) {
81443
+ return this.encode(message, writer).ldelim();
81444
+ };
81445
+
81446
+ /**
81447
+ * Decodes a B2BChallengeCanceled message from the specified reader or buffer.
81448
+ * @function decode
81449
+ * @memberof B2BChallengeCanceled
81450
+ * @static
81451
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
81452
+ * @param {number} [length] Message length if known beforehand
81453
+ * @returns {B2BChallengeCanceled} B2BChallengeCanceled
81454
+ * @throws {Error} If the payload is not a reader or valid buffer
81455
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
81456
+ */
81457
+ B2BChallengeCanceled.decode = function decode(reader, length) {
81458
+ if (!(reader instanceof $Reader))
81459
+ reader = $Reader.create(reader);
81460
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.B2BChallengeCanceled();
81461
+ while (reader.pos < end) {
81462
+ var tag = reader.uint32();
81463
+ switch (tag >>> 3) {
81464
+ case 1:
81465
+ message.brazeScheduleId = reader.string();
81466
+ break;
81467
+ case 2:
81468
+ message.durationInWeeks = reader.uint64();
81469
+ break;
81470
+ default:
81471
+ reader.skipType(tag & 7);
81472
+ break;
81473
+ }
81474
+ }
81475
+ return message;
81476
+ };
81477
+
81478
+ /**
81479
+ * Decodes a B2BChallengeCanceled message from the specified reader or buffer, length delimited.
81480
+ * @function decodeDelimited
81481
+ * @memberof B2BChallengeCanceled
81482
+ * @static
81483
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
81484
+ * @returns {B2BChallengeCanceled} B2BChallengeCanceled
81485
+ * @throws {Error} If the payload is not a reader or valid buffer
81486
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
81487
+ */
81488
+ B2BChallengeCanceled.decodeDelimited = function decodeDelimited(reader) {
81489
+ if (!(reader instanceof $Reader))
81490
+ reader = new $Reader(reader);
81491
+ return this.decode(reader, reader.uint32());
81492
+ };
81493
+
81494
+ /**
81495
+ * Verifies a B2BChallengeCanceled message.
81496
+ * @function verify
81497
+ * @memberof B2BChallengeCanceled
81498
+ * @static
81499
+ * @param {Object.<string,*>} message Plain object to verify
81500
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
81501
+ */
81502
+ B2BChallengeCanceled.verify = function verify(message) {
81503
+ if (typeof message !== "object" || message === null)
81504
+ return "object expected";
81505
+ if (message.brazeScheduleId != null && message.hasOwnProperty("brazeScheduleId"))
81506
+ if (!$util.isString(message.brazeScheduleId))
81507
+ return "brazeScheduleId: string expected";
81508
+ if (message.durationInWeeks != null && message.hasOwnProperty("durationInWeeks"))
81509
+ if (!$util.isInteger(message.durationInWeeks) && !(message.durationInWeeks && $util.isInteger(message.durationInWeeks.low) && $util.isInteger(message.durationInWeeks.high)))
81510
+ return "durationInWeeks: integer|Long expected";
81511
+ return null;
81512
+ };
81513
+
81514
+ /**
81515
+ * Creates a B2BChallengeCanceled message from a plain object. Also converts values to their respective internal types.
81516
+ * @function fromObject
81517
+ * @memberof B2BChallengeCanceled
81518
+ * @static
81519
+ * @param {Object.<string,*>} object Plain object
81520
+ * @returns {B2BChallengeCanceled} B2BChallengeCanceled
81521
+ */
81522
+ B2BChallengeCanceled.fromObject = function fromObject(object) {
81523
+ if (object instanceof $root.B2BChallengeCanceled)
81524
+ return object;
81525
+ var message = new $root.B2BChallengeCanceled();
81526
+ if (object.brazeScheduleId != null)
81527
+ message.brazeScheduleId = String(object.brazeScheduleId);
81528
+ if (object.durationInWeeks != null)
81529
+ if ($util.Long)
81530
+ (message.durationInWeeks = $util.Long.fromValue(object.durationInWeeks)).unsigned = true;
81531
+ else if (typeof object.durationInWeeks === "string")
81532
+ message.durationInWeeks = parseInt(object.durationInWeeks, 10);
81533
+ else if (typeof object.durationInWeeks === "number")
81534
+ message.durationInWeeks = object.durationInWeeks;
81535
+ else if (typeof object.durationInWeeks === "object")
81536
+ message.durationInWeeks = new $util.LongBits(object.durationInWeeks.low >>> 0, object.durationInWeeks.high >>> 0).toNumber(true);
81537
+ return message;
81538
+ };
81539
+
81540
+ /**
81541
+ * Creates a plain object from a B2BChallengeCanceled message. Also converts values to other types if specified.
81542
+ * @function toObject
81543
+ * @memberof B2BChallengeCanceled
81544
+ * @static
81545
+ * @param {B2BChallengeCanceled} message B2BChallengeCanceled
81546
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
81547
+ * @returns {Object.<string,*>} Plain object
81548
+ */
81549
+ B2BChallengeCanceled.toObject = function toObject(message, options) {
81550
+ if (!options)
81551
+ options = {};
81552
+ var object = {};
81553
+ if (options.defaults) {
81554
+ object.brazeScheduleId = "";
81555
+ if ($util.Long) {
81556
+ var long = new $util.Long(0, 0, true);
81557
+ object.durationInWeeks = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
81558
+ } else
81559
+ object.durationInWeeks = options.longs === String ? "0" : 0;
81560
+ }
81561
+ if (message.brazeScheduleId != null && message.hasOwnProperty("brazeScheduleId"))
81562
+ object.brazeScheduleId = message.brazeScheduleId;
81563
+ if (message.durationInWeeks != null && message.hasOwnProperty("durationInWeeks"))
81564
+ if (typeof message.durationInWeeks === "number")
81565
+ object.durationInWeeks = options.longs === String ? String(message.durationInWeeks) : message.durationInWeeks;
81566
+ else
81567
+ 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;
81568
+ return object;
81569
+ };
81570
+
81571
+ /**
81572
+ * Converts this B2BChallengeCanceled to JSON.
81573
+ * @function toJSON
81574
+ * @memberof B2BChallengeCanceled
81575
+ * @instance
81576
+ * @returns {Object.<string,*>} JSON object
81577
+ */
81578
+ B2BChallengeCanceled.prototype.toJSON = function toJSON() {
81579
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
81580
+ };
81581
+
81582
+ return B2BChallengeCanceled;
81583
+ })();
81584
+
81317
81585
  $root.EligibilityFileProcessed = (function() {
81318
81586
 
81319
81587
  /**
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.451.0"
20
20
  }