@headspace/protos-events 1.424.0 → 1.426.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
@@ -29320,6 +29320,126 @@ export class EligibilityLinked implements IEligibilityLinked {
29320
29320
  public toJSON(): { [k: string]: any };
29321
29321
  }
29322
29322
 
29323
+ /** Properties of an EligibilityVerified. */
29324
+ export interface IEligibilityVerified {
29325
+
29326
+ /** EligibilityVerified headspaceHealthOrgId */
29327
+ headspaceHealthOrgId?: (string|null);
29328
+
29329
+ /** EligibilityVerified keyType */
29330
+ keyType?: (KeyType|null);
29331
+
29332
+ /** EligibilityVerified workEmail */
29333
+ workEmail?: (string|null);
29334
+
29335
+ /** EligibilityVerified workId */
29336
+ workId?: (string|null);
29337
+
29338
+ /** EligibilityVerified isUmd */
29339
+ isUmd?: (boolean|null);
29340
+
29341
+ /** EligibilityVerified timestamp */
29342
+ timestamp?: (number|Long|null);
29343
+ }
29344
+
29345
+ /** Represents an EligibilityVerified. */
29346
+ export class EligibilityVerified implements IEligibilityVerified {
29347
+
29348
+ /**
29349
+ * Constructs a new EligibilityVerified.
29350
+ * @param [properties] Properties to set
29351
+ */
29352
+ constructor(properties?: IEligibilityVerified);
29353
+
29354
+ /** EligibilityVerified headspaceHealthOrgId. */
29355
+ public headspaceHealthOrgId: string;
29356
+
29357
+ /** EligibilityVerified keyType. */
29358
+ public keyType: KeyType;
29359
+
29360
+ /** EligibilityVerified workEmail. */
29361
+ public workEmail: string;
29362
+
29363
+ /** EligibilityVerified workId. */
29364
+ public workId: string;
29365
+
29366
+ /** EligibilityVerified isUmd. */
29367
+ public isUmd: boolean;
29368
+
29369
+ /** EligibilityVerified timestamp. */
29370
+ public timestamp: (number|Long);
29371
+
29372
+ /**
29373
+ * Creates a new EligibilityVerified instance using the specified properties.
29374
+ * @param [properties] Properties to set
29375
+ * @returns EligibilityVerified instance
29376
+ */
29377
+ public static create(properties?: IEligibilityVerified): EligibilityVerified;
29378
+
29379
+ /**
29380
+ * Encodes the specified EligibilityVerified message. Does not implicitly {@link EligibilityVerified.verify|verify} messages.
29381
+ * @param message EligibilityVerified message or plain object to encode
29382
+ * @param [writer] Writer to encode to
29383
+ * @returns Writer
29384
+ */
29385
+ public static encode(message: IEligibilityVerified, writer?: $protobuf.Writer): $protobuf.Writer;
29386
+
29387
+ /**
29388
+ * Encodes the specified EligibilityVerified message, length delimited. Does not implicitly {@link EligibilityVerified.verify|verify} messages.
29389
+ * @param message EligibilityVerified message or plain object to encode
29390
+ * @param [writer] Writer to encode to
29391
+ * @returns Writer
29392
+ */
29393
+ public static encodeDelimited(message: IEligibilityVerified, writer?: $protobuf.Writer): $protobuf.Writer;
29394
+
29395
+ /**
29396
+ * Decodes an EligibilityVerified message from the specified reader or buffer.
29397
+ * @param reader Reader or buffer to decode from
29398
+ * @param [length] Message length if known beforehand
29399
+ * @returns EligibilityVerified
29400
+ * @throws {Error} If the payload is not a reader or valid buffer
29401
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
29402
+ */
29403
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): EligibilityVerified;
29404
+
29405
+ /**
29406
+ * Decodes an EligibilityVerified message from the specified reader or buffer, length delimited.
29407
+ * @param reader Reader or buffer to decode from
29408
+ * @returns EligibilityVerified
29409
+ * @throws {Error} If the payload is not a reader or valid buffer
29410
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
29411
+ */
29412
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): EligibilityVerified;
29413
+
29414
+ /**
29415
+ * Verifies an EligibilityVerified message.
29416
+ * @param message Plain object to verify
29417
+ * @returns `null` if valid, otherwise the reason why it is not
29418
+ */
29419
+ public static verify(message: { [k: string]: any }): (string|null);
29420
+
29421
+ /**
29422
+ * Creates an EligibilityVerified message from a plain object. Also converts values to their respective internal types.
29423
+ * @param object Plain object
29424
+ * @returns EligibilityVerified
29425
+ */
29426
+ public static fromObject(object: { [k: string]: any }): EligibilityVerified;
29427
+
29428
+ /**
29429
+ * Creates a plain object from an EligibilityVerified message. Also converts values to other types if specified.
29430
+ * @param message EligibilityVerified
29431
+ * @param [options] Conversion options
29432
+ * @returns Plain object
29433
+ */
29434
+ public static toObject(message: EligibilityVerified, options?: $protobuf.IConversionOptions): { [k: string]: any };
29435
+
29436
+ /**
29437
+ * Converts this EligibilityVerified to JSON.
29438
+ * @returns JSON object
29439
+ */
29440
+ public toJSON(): { [k: string]: any };
29441
+ }
29442
+
29323
29443
  /** Properties of an Email. */
29324
29444
  export interface IEmail {
29325
29445
 
@@ -30982,6 +31102,114 @@ export class OrganizationSubscriptionAmended implements IOrganizationSubscriptio
30982
31102
  public toJSON(): { [k: string]: any };
30983
31103
  }
30984
31104
 
31105
+ /** Properties of an OrganizationSubscriptionActivated. */
31106
+ export interface IOrganizationSubscriptionActivated {
31107
+
31108
+ /** OrganizationSubscriptionActivated timestamp */
31109
+ timestamp?: (number|Long|null);
31110
+
31111
+ /** OrganizationSubscriptionActivated dashboardUserId */
31112
+ dashboardUserId?: (number|null);
31113
+
31114
+ /** OrganizationSubscriptionActivated organization */
31115
+ organization?: (b2b.IOrganization|null);
31116
+
31117
+ /** OrganizationSubscriptionActivated subscription */
31118
+ subscription?: (b2b.IB2BSubscriptionManagement|null);
31119
+ }
31120
+
31121
+ /** Represents an OrganizationSubscriptionActivated. */
31122
+ export class OrganizationSubscriptionActivated implements IOrganizationSubscriptionActivated {
31123
+
31124
+ /**
31125
+ * Constructs a new OrganizationSubscriptionActivated.
31126
+ * @param [properties] Properties to set
31127
+ */
31128
+ constructor(properties?: IOrganizationSubscriptionActivated);
31129
+
31130
+ /** OrganizationSubscriptionActivated timestamp. */
31131
+ public timestamp: (number|Long);
31132
+
31133
+ /** OrganizationSubscriptionActivated dashboardUserId. */
31134
+ public dashboardUserId: number;
31135
+
31136
+ /** OrganizationSubscriptionActivated organization. */
31137
+ public organization?: (b2b.IOrganization|null);
31138
+
31139
+ /** OrganizationSubscriptionActivated subscription. */
31140
+ public subscription?: (b2b.IB2BSubscriptionManagement|null);
31141
+
31142
+ /**
31143
+ * Creates a new OrganizationSubscriptionActivated instance using the specified properties.
31144
+ * @param [properties] Properties to set
31145
+ * @returns OrganizationSubscriptionActivated instance
31146
+ */
31147
+ public static create(properties?: IOrganizationSubscriptionActivated): OrganizationSubscriptionActivated;
31148
+
31149
+ /**
31150
+ * Encodes the specified OrganizationSubscriptionActivated message. Does not implicitly {@link OrganizationSubscriptionActivated.verify|verify} messages.
31151
+ * @param message OrganizationSubscriptionActivated message or plain object to encode
31152
+ * @param [writer] Writer to encode to
31153
+ * @returns Writer
31154
+ */
31155
+ public static encode(message: IOrganizationSubscriptionActivated, writer?: $protobuf.Writer): $protobuf.Writer;
31156
+
31157
+ /**
31158
+ * Encodes the specified OrganizationSubscriptionActivated message, length delimited. Does not implicitly {@link OrganizationSubscriptionActivated.verify|verify} messages.
31159
+ * @param message OrganizationSubscriptionActivated message or plain object to encode
31160
+ * @param [writer] Writer to encode to
31161
+ * @returns Writer
31162
+ */
31163
+ public static encodeDelimited(message: IOrganizationSubscriptionActivated, writer?: $protobuf.Writer): $protobuf.Writer;
31164
+
31165
+ /**
31166
+ * Decodes an OrganizationSubscriptionActivated message from the specified reader or buffer.
31167
+ * @param reader Reader or buffer to decode from
31168
+ * @param [length] Message length if known beforehand
31169
+ * @returns OrganizationSubscriptionActivated
31170
+ * @throws {Error} If the payload is not a reader or valid buffer
31171
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
31172
+ */
31173
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): OrganizationSubscriptionActivated;
31174
+
31175
+ /**
31176
+ * Decodes an OrganizationSubscriptionActivated message from the specified reader or buffer, length delimited.
31177
+ * @param reader Reader or buffer to decode from
31178
+ * @returns OrganizationSubscriptionActivated
31179
+ * @throws {Error} If the payload is not a reader or valid buffer
31180
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
31181
+ */
31182
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): OrganizationSubscriptionActivated;
31183
+
31184
+ /**
31185
+ * Verifies an OrganizationSubscriptionActivated message.
31186
+ * @param message Plain object to verify
31187
+ * @returns `null` if valid, otherwise the reason why it is not
31188
+ */
31189
+ public static verify(message: { [k: string]: any }): (string|null);
31190
+
31191
+ /**
31192
+ * Creates an OrganizationSubscriptionActivated message from a plain object. Also converts values to their respective internal types.
31193
+ * @param object Plain object
31194
+ * @returns OrganizationSubscriptionActivated
31195
+ */
31196
+ public static fromObject(object: { [k: string]: any }): OrganizationSubscriptionActivated;
31197
+
31198
+ /**
31199
+ * Creates a plain object from an OrganizationSubscriptionActivated message. Also converts values to other types if specified.
31200
+ * @param message OrganizationSubscriptionActivated
31201
+ * @param [options] Conversion options
31202
+ * @returns Plain object
31203
+ */
31204
+ public static toObject(message: OrganizationSubscriptionActivated, options?: $protobuf.IConversionOptions): { [k: string]: any };
31205
+
31206
+ /**
31207
+ * Converts this OrganizationSubscriptionActivated to JSON.
31208
+ * @returns JSON object
31209
+ */
31210
+ public toJSON(): { [k: string]: any };
31211
+ }
31212
+
30985
31213
  /** Properties of a FamilyMemberAdded. */
30986
31214
  export interface IFamilyMemberAdded {
30987
31215
 
package/lib/index.js CHANGED
@@ -81281,6 +81281,331 @@ $root.EligibilityLinked = (function() {
81281
81281
  return EligibilityLinked;
81282
81282
  })();
81283
81283
 
81284
+ $root.EligibilityVerified = (function() {
81285
+
81286
+ /**
81287
+ * Properties of an EligibilityVerified.
81288
+ * @exports IEligibilityVerified
81289
+ * @interface IEligibilityVerified
81290
+ * @property {string|null} [headspaceHealthOrgId] EligibilityVerified headspaceHealthOrgId
81291
+ * @property {KeyType|null} [keyType] EligibilityVerified keyType
81292
+ * @property {string|null} [workEmail] EligibilityVerified workEmail
81293
+ * @property {string|null} [workId] EligibilityVerified workId
81294
+ * @property {boolean|null} [isUmd] EligibilityVerified isUmd
81295
+ * @property {number|Long|null} [timestamp] EligibilityVerified timestamp
81296
+ */
81297
+
81298
+ /**
81299
+ * Constructs a new EligibilityVerified.
81300
+ * @exports EligibilityVerified
81301
+ * @classdesc Represents an EligibilityVerified.
81302
+ * @implements IEligibilityVerified
81303
+ * @constructor
81304
+ * @param {IEligibilityVerified=} [properties] Properties to set
81305
+ */
81306
+ function EligibilityVerified(properties) {
81307
+ if (properties)
81308
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
81309
+ if (properties[keys[i]] != null)
81310
+ this[keys[i]] = properties[keys[i]];
81311
+ }
81312
+
81313
+ /**
81314
+ * EligibilityVerified headspaceHealthOrgId.
81315
+ * @member {string} headspaceHealthOrgId
81316
+ * @memberof EligibilityVerified
81317
+ * @instance
81318
+ */
81319
+ EligibilityVerified.prototype.headspaceHealthOrgId = "";
81320
+
81321
+ /**
81322
+ * EligibilityVerified keyType.
81323
+ * @member {KeyType} keyType
81324
+ * @memberof EligibilityVerified
81325
+ * @instance
81326
+ */
81327
+ EligibilityVerified.prototype.keyType = 0;
81328
+
81329
+ /**
81330
+ * EligibilityVerified workEmail.
81331
+ * @member {string} workEmail
81332
+ * @memberof EligibilityVerified
81333
+ * @instance
81334
+ */
81335
+ EligibilityVerified.prototype.workEmail = "";
81336
+
81337
+ /**
81338
+ * EligibilityVerified workId.
81339
+ * @member {string} workId
81340
+ * @memberof EligibilityVerified
81341
+ * @instance
81342
+ */
81343
+ EligibilityVerified.prototype.workId = "";
81344
+
81345
+ /**
81346
+ * EligibilityVerified isUmd.
81347
+ * @member {boolean} isUmd
81348
+ * @memberof EligibilityVerified
81349
+ * @instance
81350
+ */
81351
+ EligibilityVerified.prototype.isUmd = false;
81352
+
81353
+ /**
81354
+ * EligibilityVerified timestamp.
81355
+ * @member {number|Long} timestamp
81356
+ * @memberof EligibilityVerified
81357
+ * @instance
81358
+ */
81359
+ EligibilityVerified.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
81360
+
81361
+ /**
81362
+ * Creates a new EligibilityVerified instance using the specified properties.
81363
+ * @function create
81364
+ * @memberof EligibilityVerified
81365
+ * @static
81366
+ * @param {IEligibilityVerified=} [properties] Properties to set
81367
+ * @returns {EligibilityVerified} EligibilityVerified instance
81368
+ */
81369
+ EligibilityVerified.create = function create(properties) {
81370
+ return new EligibilityVerified(properties);
81371
+ };
81372
+
81373
+ /**
81374
+ * Encodes the specified EligibilityVerified message. Does not implicitly {@link EligibilityVerified.verify|verify} messages.
81375
+ * @function encode
81376
+ * @memberof EligibilityVerified
81377
+ * @static
81378
+ * @param {IEligibilityVerified} message EligibilityVerified message or plain object to encode
81379
+ * @param {$protobuf.Writer} [writer] Writer to encode to
81380
+ * @returns {$protobuf.Writer} Writer
81381
+ */
81382
+ EligibilityVerified.encode = function encode(message, writer) {
81383
+ if (!writer)
81384
+ writer = $Writer.create();
81385
+ if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
81386
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.headspaceHealthOrgId);
81387
+ if (message.keyType != null && message.hasOwnProperty("keyType"))
81388
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.keyType);
81389
+ if (message.workEmail != null && message.hasOwnProperty("workEmail"))
81390
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.workEmail);
81391
+ if (message.workId != null && message.hasOwnProperty("workId"))
81392
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.workId);
81393
+ if (message.isUmd != null && message.hasOwnProperty("isUmd"))
81394
+ writer.uint32(/* id 5, wireType 0 =*/40).bool(message.isUmd);
81395
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
81396
+ writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.timestamp);
81397
+ return writer;
81398
+ };
81399
+
81400
+ /**
81401
+ * Encodes the specified EligibilityVerified message, length delimited. Does not implicitly {@link EligibilityVerified.verify|verify} messages.
81402
+ * @function encodeDelimited
81403
+ * @memberof EligibilityVerified
81404
+ * @static
81405
+ * @param {IEligibilityVerified} message EligibilityVerified message or plain object to encode
81406
+ * @param {$protobuf.Writer} [writer] Writer to encode to
81407
+ * @returns {$protobuf.Writer} Writer
81408
+ */
81409
+ EligibilityVerified.encodeDelimited = function encodeDelimited(message, writer) {
81410
+ return this.encode(message, writer).ldelim();
81411
+ };
81412
+
81413
+ /**
81414
+ * Decodes an EligibilityVerified message from the specified reader or buffer.
81415
+ * @function decode
81416
+ * @memberof EligibilityVerified
81417
+ * @static
81418
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
81419
+ * @param {number} [length] Message length if known beforehand
81420
+ * @returns {EligibilityVerified} EligibilityVerified
81421
+ * @throws {Error} If the payload is not a reader or valid buffer
81422
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
81423
+ */
81424
+ EligibilityVerified.decode = function decode(reader, length) {
81425
+ if (!(reader instanceof $Reader))
81426
+ reader = $Reader.create(reader);
81427
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.EligibilityVerified();
81428
+ while (reader.pos < end) {
81429
+ var tag = reader.uint32();
81430
+ switch (tag >>> 3) {
81431
+ case 1:
81432
+ message.headspaceHealthOrgId = reader.string();
81433
+ break;
81434
+ case 2:
81435
+ message.keyType = reader.int32();
81436
+ break;
81437
+ case 3:
81438
+ message.workEmail = reader.string();
81439
+ break;
81440
+ case 4:
81441
+ message.workId = reader.string();
81442
+ break;
81443
+ case 5:
81444
+ message.isUmd = reader.bool();
81445
+ break;
81446
+ case 6:
81447
+ message.timestamp = reader.uint64();
81448
+ break;
81449
+ default:
81450
+ reader.skipType(tag & 7);
81451
+ break;
81452
+ }
81453
+ }
81454
+ return message;
81455
+ };
81456
+
81457
+ /**
81458
+ * Decodes an EligibilityVerified message from the specified reader or buffer, length delimited.
81459
+ * @function decodeDelimited
81460
+ * @memberof EligibilityVerified
81461
+ * @static
81462
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
81463
+ * @returns {EligibilityVerified} EligibilityVerified
81464
+ * @throws {Error} If the payload is not a reader or valid buffer
81465
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
81466
+ */
81467
+ EligibilityVerified.decodeDelimited = function decodeDelimited(reader) {
81468
+ if (!(reader instanceof $Reader))
81469
+ reader = new $Reader(reader);
81470
+ return this.decode(reader, reader.uint32());
81471
+ };
81472
+
81473
+ /**
81474
+ * Verifies an EligibilityVerified message.
81475
+ * @function verify
81476
+ * @memberof EligibilityVerified
81477
+ * @static
81478
+ * @param {Object.<string,*>} message Plain object to verify
81479
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
81480
+ */
81481
+ EligibilityVerified.verify = function verify(message) {
81482
+ if (typeof message !== "object" || message === null)
81483
+ return "object expected";
81484
+ if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
81485
+ if (!$util.isString(message.headspaceHealthOrgId))
81486
+ return "headspaceHealthOrgId: string expected";
81487
+ if (message.keyType != null && message.hasOwnProperty("keyType"))
81488
+ switch (message.keyType) {
81489
+ default:
81490
+ return "keyType: enum value expected";
81491
+ case 0:
81492
+ case 1:
81493
+ break;
81494
+ }
81495
+ if (message.workEmail != null && message.hasOwnProperty("workEmail"))
81496
+ if (!$util.isString(message.workEmail))
81497
+ return "workEmail: string expected";
81498
+ if (message.workId != null && message.hasOwnProperty("workId"))
81499
+ if (!$util.isString(message.workId))
81500
+ return "workId: string expected";
81501
+ if (message.isUmd != null && message.hasOwnProperty("isUmd"))
81502
+ if (typeof message.isUmd !== "boolean")
81503
+ return "isUmd: boolean expected";
81504
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
81505
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
81506
+ return "timestamp: integer|Long expected";
81507
+ return null;
81508
+ };
81509
+
81510
+ /**
81511
+ * Creates an EligibilityVerified message from a plain object. Also converts values to their respective internal types.
81512
+ * @function fromObject
81513
+ * @memberof EligibilityVerified
81514
+ * @static
81515
+ * @param {Object.<string,*>} object Plain object
81516
+ * @returns {EligibilityVerified} EligibilityVerified
81517
+ */
81518
+ EligibilityVerified.fromObject = function fromObject(object) {
81519
+ if (object instanceof $root.EligibilityVerified)
81520
+ return object;
81521
+ var message = new $root.EligibilityVerified();
81522
+ if (object.headspaceHealthOrgId != null)
81523
+ message.headspaceHealthOrgId = String(object.headspaceHealthOrgId);
81524
+ switch (object.keyType) {
81525
+ case "WORK_ID":
81526
+ case 0:
81527
+ message.keyType = 0;
81528
+ break;
81529
+ case "WORK_EMAIL":
81530
+ case 1:
81531
+ message.keyType = 1;
81532
+ break;
81533
+ }
81534
+ if (object.workEmail != null)
81535
+ message.workEmail = String(object.workEmail);
81536
+ if (object.workId != null)
81537
+ message.workId = String(object.workId);
81538
+ if (object.isUmd != null)
81539
+ message.isUmd = Boolean(object.isUmd);
81540
+ if (object.timestamp != null)
81541
+ if ($util.Long)
81542
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
81543
+ else if (typeof object.timestamp === "string")
81544
+ message.timestamp = parseInt(object.timestamp, 10);
81545
+ else if (typeof object.timestamp === "number")
81546
+ message.timestamp = object.timestamp;
81547
+ else if (typeof object.timestamp === "object")
81548
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
81549
+ return message;
81550
+ };
81551
+
81552
+ /**
81553
+ * Creates a plain object from an EligibilityVerified message. Also converts values to other types if specified.
81554
+ * @function toObject
81555
+ * @memberof EligibilityVerified
81556
+ * @static
81557
+ * @param {EligibilityVerified} message EligibilityVerified
81558
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
81559
+ * @returns {Object.<string,*>} Plain object
81560
+ */
81561
+ EligibilityVerified.toObject = function toObject(message, options) {
81562
+ if (!options)
81563
+ options = {};
81564
+ var object = {};
81565
+ if (options.defaults) {
81566
+ object.headspaceHealthOrgId = "";
81567
+ object.keyType = options.enums === String ? "WORK_ID" : 0;
81568
+ object.workEmail = "";
81569
+ object.workId = "";
81570
+ object.isUmd = false;
81571
+ if ($util.Long) {
81572
+ var long = new $util.Long(0, 0, true);
81573
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
81574
+ } else
81575
+ object.timestamp = options.longs === String ? "0" : 0;
81576
+ }
81577
+ if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
81578
+ object.headspaceHealthOrgId = message.headspaceHealthOrgId;
81579
+ if (message.keyType != null && message.hasOwnProperty("keyType"))
81580
+ object.keyType = options.enums === String ? $root.KeyType[message.keyType] : message.keyType;
81581
+ if (message.workEmail != null && message.hasOwnProperty("workEmail"))
81582
+ object.workEmail = message.workEmail;
81583
+ if (message.workId != null && message.hasOwnProperty("workId"))
81584
+ object.workId = message.workId;
81585
+ if (message.isUmd != null && message.hasOwnProperty("isUmd"))
81586
+ object.isUmd = message.isUmd;
81587
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
81588
+ if (typeof message.timestamp === "number")
81589
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
81590
+ else
81591
+ 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;
81592
+ return object;
81593
+ };
81594
+
81595
+ /**
81596
+ * Converts this EligibilityVerified to JSON.
81597
+ * @function toJSON
81598
+ * @memberof EligibilityVerified
81599
+ * @instance
81600
+ * @returns {Object.<string,*>} JSON object
81601
+ */
81602
+ EligibilityVerified.prototype.toJSON = function toJSON() {
81603
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
81604
+ };
81605
+
81606
+ return EligibilityVerified;
81607
+ })();
81608
+
81284
81609
  $root.Email = (function() {
81285
81610
 
81286
81611
  /**
@@ -85942,6 +86267,284 @@ $root.OrganizationSubscriptionAmended = (function() {
85942
86267
  return OrganizationSubscriptionAmended;
85943
86268
  })();
85944
86269
 
86270
+ $root.OrganizationSubscriptionActivated = (function() {
86271
+
86272
+ /**
86273
+ * Properties of an OrganizationSubscriptionActivated.
86274
+ * @exports IOrganizationSubscriptionActivated
86275
+ * @interface IOrganizationSubscriptionActivated
86276
+ * @property {number|Long|null} [timestamp] OrganizationSubscriptionActivated timestamp
86277
+ * @property {number|null} [dashboardUserId] OrganizationSubscriptionActivated dashboardUserId
86278
+ * @property {b2b.IOrganization|null} [organization] OrganizationSubscriptionActivated organization
86279
+ * @property {b2b.IB2BSubscriptionManagement|null} [subscription] OrganizationSubscriptionActivated subscription
86280
+ */
86281
+
86282
+ /**
86283
+ * Constructs a new OrganizationSubscriptionActivated.
86284
+ * @exports OrganizationSubscriptionActivated
86285
+ * @classdesc Represents an OrganizationSubscriptionActivated.
86286
+ * @implements IOrganizationSubscriptionActivated
86287
+ * @constructor
86288
+ * @param {IOrganizationSubscriptionActivated=} [properties] Properties to set
86289
+ */
86290
+ function OrganizationSubscriptionActivated(properties) {
86291
+ if (properties)
86292
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
86293
+ if (properties[keys[i]] != null)
86294
+ this[keys[i]] = properties[keys[i]];
86295
+ }
86296
+
86297
+ /**
86298
+ * OrganizationSubscriptionActivated timestamp.
86299
+ * @member {number|Long} timestamp
86300
+ * @memberof OrganizationSubscriptionActivated
86301
+ * @instance
86302
+ */
86303
+ OrganizationSubscriptionActivated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
86304
+
86305
+ /**
86306
+ * OrganizationSubscriptionActivated dashboardUserId.
86307
+ * @member {number} dashboardUserId
86308
+ * @memberof OrganizationSubscriptionActivated
86309
+ * @instance
86310
+ */
86311
+ OrganizationSubscriptionActivated.prototype.dashboardUserId = 0;
86312
+
86313
+ /**
86314
+ * OrganizationSubscriptionActivated organization.
86315
+ * @member {b2b.IOrganization|null|undefined} organization
86316
+ * @memberof OrganizationSubscriptionActivated
86317
+ * @instance
86318
+ */
86319
+ OrganizationSubscriptionActivated.prototype.organization = null;
86320
+
86321
+ /**
86322
+ * OrganizationSubscriptionActivated subscription.
86323
+ * @member {b2b.IB2BSubscriptionManagement|null|undefined} subscription
86324
+ * @memberof OrganizationSubscriptionActivated
86325
+ * @instance
86326
+ */
86327
+ OrganizationSubscriptionActivated.prototype.subscription = null;
86328
+
86329
+ /**
86330
+ * Creates a new OrganizationSubscriptionActivated instance using the specified properties.
86331
+ * @function create
86332
+ * @memberof OrganizationSubscriptionActivated
86333
+ * @static
86334
+ * @param {IOrganizationSubscriptionActivated=} [properties] Properties to set
86335
+ * @returns {OrganizationSubscriptionActivated} OrganizationSubscriptionActivated instance
86336
+ */
86337
+ OrganizationSubscriptionActivated.create = function create(properties) {
86338
+ return new OrganizationSubscriptionActivated(properties);
86339
+ };
86340
+
86341
+ /**
86342
+ * Encodes the specified OrganizationSubscriptionActivated message. Does not implicitly {@link OrganizationSubscriptionActivated.verify|verify} messages.
86343
+ * @function encode
86344
+ * @memberof OrganizationSubscriptionActivated
86345
+ * @static
86346
+ * @param {IOrganizationSubscriptionActivated} message OrganizationSubscriptionActivated message or plain object to encode
86347
+ * @param {$protobuf.Writer} [writer] Writer to encode to
86348
+ * @returns {$protobuf.Writer} Writer
86349
+ */
86350
+ OrganizationSubscriptionActivated.encode = function encode(message, writer) {
86351
+ if (!writer)
86352
+ writer = $Writer.create();
86353
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
86354
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
86355
+ if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
86356
+ writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.dashboardUserId);
86357
+ if (message.organization != null && message.hasOwnProperty("organization"))
86358
+ $root.b2b.Organization.encode(message.organization, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
86359
+ if (message.subscription != null && message.hasOwnProperty("subscription"))
86360
+ $root.b2b.B2BSubscriptionManagement.encode(message.subscription, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
86361
+ return writer;
86362
+ };
86363
+
86364
+ /**
86365
+ * Encodes the specified OrganizationSubscriptionActivated message, length delimited. Does not implicitly {@link OrganizationSubscriptionActivated.verify|verify} messages.
86366
+ * @function encodeDelimited
86367
+ * @memberof OrganizationSubscriptionActivated
86368
+ * @static
86369
+ * @param {IOrganizationSubscriptionActivated} message OrganizationSubscriptionActivated message or plain object to encode
86370
+ * @param {$protobuf.Writer} [writer] Writer to encode to
86371
+ * @returns {$protobuf.Writer} Writer
86372
+ */
86373
+ OrganizationSubscriptionActivated.encodeDelimited = function encodeDelimited(message, writer) {
86374
+ return this.encode(message, writer).ldelim();
86375
+ };
86376
+
86377
+ /**
86378
+ * Decodes an OrganizationSubscriptionActivated message from the specified reader or buffer.
86379
+ * @function decode
86380
+ * @memberof OrganizationSubscriptionActivated
86381
+ * @static
86382
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
86383
+ * @param {number} [length] Message length if known beforehand
86384
+ * @returns {OrganizationSubscriptionActivated} OrganizationSubscriptionActivated
86385
+ * @throws {Error} If the payload is not a reader or valid buffer
86386
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
86387
+ */
86388
+ OrganizationSubscriptionActivated.decode = function decode(reader, length) {
86389
+ if (!(reader instanceof $Reader))
86390
+ reader = $Reader.create(reader);
86391
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.OrganizationSubscriptionActivated();
86392
+ while (reader.pos < end) {
86393
+ var tag = reader.uint32();
86394
+ switch (tag >>> 3) {
86395
+ case 1:
86396
+ message.timestamp = reader.uint64();
86397
+ break;
86398
+ case 2:
86399
+ message.dashboardUserId = reader.uint32();
86400
+ break;
86401
+ case 3:
86402
+ message.organization = $root.b2b.Organization.decode(reader, reader.uint32());
86403
+ break;
86404
+ case 4:
86405
+ message.subscription = $root.b2b.B2BSubscriptionManagement.decode(reader, reader.uint32());
86406
+ break;
86407
+ default:
86408
+ reader.skipType(tag & 7);
86409
+ break;
86410
+ }
86411
+ }
86412
+ return message;
86413
+ };
86414
+
86415
+ /**
86416
+ * Decodes an OrganizationSubscriptionActivated message from the specified reader or buffer, length delimited.
86417
+ * @function decodeDelimited
86418
+ * @memberof OrganizationSubscriptionActivated
86419
+ * @static
86420
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
86421
+ * @returns {OrganizationSubscriptionActivated} OrganizationSubscriptionActivated
86422
+ * @throws {Error} If the payload is not a reader or valid buffer
86423
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
86424
+ */
86425
+ OrganizationSubscriptionActivated.decodeDelimited = function decodeDelimited(reader) {
86426
+ if (!(reader instanceof $Reader))
86427
+ reader = new $Reader(reader);
86428
+ return this.decode(reader, reader.uint32());
86429
+ };
86430
+
86431
+ /**
86432
+ * Verifies an OrganizationSubscriptionActivated message.
86433
+ * @function verify
86434
+ * @memberof OrganizationSubscriptionActivated
86435
+ * @static
86436
+ * @param {Object.<string,*>} message Plain object to verify
86437
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
86438
+ */
86439
+ OrganizationSubscriptionActivated.verify = function verify(message) {
86440
+ if (typeof message !== "object" || message === null)
86441
+ return "object expected";
86442
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
86443
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
86444
+ return "timestamp: integer|Long expected";
86445
+ if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
86446
+ if (!$util.isInteger(message.dashboardUserId))
86447
+ return "dashboardUserId: integer expected";
86448
+ if (message.organization != null && message.hasOwnProperty("organization")) {
86449
+ var error = $root.b2b.Organization.verify(message.organization);
86450
+ if (error)
86451
+ return "organization." + error;
86452
+ }
86453
+ if (message.subscription != null && message.hasOwnProperty("subscription")) {
86454
+ var error = $root.b2b.B2BSubscriptionManagement.verify(message.subscription);
86455
+ if (error)
86456
+ return "subscription." + error;
86457
+ }
86458
+ return null;
86459
+ };
86460
+
86461
+ /**
86462
+ * Creates an OrganizationSubscriptionActivated message from a plain object. Also converts values to their respective internal types.
86463
+ * @function fromObject
86464
+ * @memberof OrganizationSubscriptionActivated
86465
+ * @static
86466
+ * @param {Object.<string,*>} object Plain object
86467
+ * @returns {OrganizationSubscriptionActivated} OrganizationSubscriptionActivated
86468
+ */
86469
+ OrganizationSubscriptionActivated.fromObject = function fromObject(object) {
86470
+ if (object instanceof $root.OrganizationSubscriptionActivated)
86471
+ return object;
86472
+ var message = new $root.OrganizationSubscriptionActivated();
86473
+ if (object.timestamp != null)
86474
+ if ($util.Long)
86475
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
86476
+ else if (typeof object.timestamp === "string")
86477
+ message.timestamp = parseInt(object.timestamp, 10);
86478
+ else if (typeof object.timestamp === "number")
86479
+ message.timestamp = object.timestamp;
86480
+ else if (typeof object.timestamp === "object")
86481
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
86482
+ if (object.dashboardUserId != null)
86483
+ message.dashboardUserId = object.dashboardUserId >>> 0;
86484
+ if (object.organization != null) {
86485
+ if (typeof object.organization !== "object")
86486
+ throw TypeError(".OrganizationSubscriptionActivated.organization: object expected");
86487
+ message.organization = $root.b2b.Organization.fromObject(object.organization);
86488
+ }
86489
+ if (object.subscription != null) {
86490
+ if (typeof object.subscription !== "object")
86491
+ throw TypeError(".OrganizationSubscriptionActivated.subscription: object expected");
86492
+ message.subscription = $root.b2b.B2BSubscriptionManagement.fromObject(object.subscription);
86493
+ }
86494
+ return message;
86495
+ };
86496
+
86497
+ /**
86498
+ * Creates a plain object from an OrganizationSubscriptionActivated message. Also converts values to other types if specified.
86499
+ * @function toObject
86500
+ * @memberof OrganizationSubscriptionActivated
86501
+ * @static
86502
+ * @param {OrganizationSubscriptionActivated} message OrganizationSubscriptionActivated
86503
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
86504
+ * @returns {Object.<string,*>} Plain object
86505
+ */
86506
+ OrganizationSubscriptionActivated.toObject = function toObject(message, options) {
86507
+ if (!options)
86508
+ options = {};
86509
+ var object = {};
86510
+ if (options.defaults) {
86511
+ if ($util.Long) {
86512
+ var long = new $util.Long(0, 0, true);
86513
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
86514
+ } else
86515
+ object.timestamp = options.longs === String ? "0" : 0;
86516
+ object.dashboardUserId = 0;
86517
+ object.organization = null;
86518
+ object.subscription = null;
86519
+ }
86520
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
86521
+ if (typeof message.timestamp === "number")
86522
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
86523
+ else
86524
+ 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;
86525
+ if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
86526
+ object.dashboardUserId = message.dashboardUserId;
86527
+ if (message.organization != null && message.hasOwnProperty("organization"))
86528
+ object.organization = $root.b2b.Organization.toObject(message.organization, options);
86529
+ if (message.subscription != null && message.hasOwnProperty("subscription"))
86530
+ object.subscription = $root.b2b.B2BSubscriptionManagement.toObject(message.subscription, options);
86531
+ return object;
86532
+ };
86533
+
86534
+ /**
86535
+ * Converts this OrganizationSubscriptionActivated to JSON.
86536
+ * @function toJSON
86537
+ * @memberof OrganizationSubscriptionActivated
86538
+ * @instance
86539
+ * @returns {Object.<string,*>} JSON object
86540
+ */
86541
+ OrganizationSubscriptionActivated.prototype.toJSON = function toJSON() {
86542
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
86543
+ };
86544
+
86545
+ return OrganizationSubscriptionActivated;
86546
+ })();
86547
+
85945
86548
  $root.FamilyMemberAdded = (function() {
85946
86549
 
85947
86550
  /**
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.424.0"
19
+ "version": "1.426.0"
20
20
  }