@headspace/protos-events 1.849.0 → 1.851.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 +309 -0
- package/lib/index.js +817 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -72326,6 +72326,9 @@ export class CmsAccessEligibilityDetermined {
|
|
|
72326
72326
|
/** CmsAccessEligibilityDetermined cmsSubmissionId. */
|
|
72327
72327
|
cmsSubmissionId: string;
|
|
72328
72328
|
|
|
72329
|
+
/** CmsAccessEligibilityDetermined submittedAt. */
|
|
72330
|
+
submittedAt: (number|Long);
|
|
72331
|
+
|
|
72329
72332
|
/**
|
|
72330
72333
|
* Creates a new CmsAccessEligibilityDetermined instance using the specified properties.
|
|
72331
72334
|
* @param [properties] Properties to set
|
|
@@ -72425,6 +72428,9 @@ export namespace CmsAccessEligibilityDetermined {
|
|
|
72425
72428
|
/** CmsAccessEligibilityDetermined cmsSubmissionId */
|
|
72426
72429
|
cmsSubmissionId?: (string|null);
|
|
72427
72430
|
|
|
72431
|
+
/** CmsAccessEligibilityDetermined submittedAt */
|
|
72432
|
+
submittedAt?: (number|Long|null);
|
|
72433
|
+
|
|
72428
72434
|
/** Unknown fields preserved while decoding */
|
|
72429
72435
|
$unknowns?: Uint8Array[];
|
|
72430
72436
|
}
|
|
@@ -72478,6 +72484,9 @@ export class CmsAccessAlignmentCompleted {
|
|
|
72478
72484
|
/** CmsAccessAlignmentCompleted carePeriodEndsAt. */
|
|
72479
72485
|
carePeriodEndsAt: (number|Long);
|
|
72480
72486
|
|
|
72487
|
+
/** CmsAccessAlignmentCompleted submittedAt. */
|
|
72488
|
+
submittedAt: (number|Long);
|
|
72489
|
+
|
|
72481
72490
|
/**
|
|
72482
72491
|
* Creates a new CmsAccessAlignmentCompleted instance using the specified properties.
|
|
72483
72492
|
* @param [properties] Properties to set
|
|
@@ -72583,6 +72592,9 @@ export namespace CmsAccessAlignmentCompleted {
|
|
|
72583
72592
|
/** CmsAccessAlignmentCompleted carePeriodEndsAt */
|
|
72584
72593
|
carePeriodEndsAt?: (number|Long|null);
|
|
72585
72594
|
|
|
72595
|
+
/** CmsAccessAlignmentCompleted submittedAt */
|
|
72596
|
+
submittedAt?: (number|Long|null);
|
|
72597
|
+
|
|
72586
72598
|
/** Unknown fields preserved while decoding */
|
|
72587
72599
|
$unknowns?: Uint8Array[];
|
|
72588
72600
|
}
|
|
@@ -110335,6 +110347,303 @@ export enum UserServiceAppClient {
|
|
|
110335
110347
|
USER_SERVICE_APP_CLIENT_CROCPIT = 3
|
|
110336
110348
|
}
|
|
110337
110349
|
|
|
110350
|
+
/**
|
|
110351
|
+
* Properties of a UserProfileCreated.
|
|
110352
|
+
* @deprecated Use UserProfileCreated.$Properties instead.
|
|
110353
|
+
*/
|
|
110354
|
+
export interface IUserProfileCreated extends UserProfileCreated.$Properties {
|
|
110355
|
+
}
|
|
110356
|
+
|
|
110357
|
+
/**
|
|
110358
|
+
* Sent when a Headspace Jr. child profile is created.
|
|
110359
|
+
*
|
|
110360
|
+
* "Profile" here is the Headspace Jr. child-profile identity concept. It is a different
|
|
110361
|
+
* bounded concept from the pre-existing, apparently-unused UserProfileResponse /
|
|
110362
|
+
* UserProfileManager RPC schema in protos/services/user/user_profile.proto (an Amplitude
|
|
110363
|
+
* profile lookup) — do not conflate the two.
|
|
110364
|
+
*
|
|
110365
|
+
* display_name and birth_year_month are intentionally carried on this event for
|
|
110366
|
+
* data-lake-only routing. Do not remove them assuming they are an oversight.
|
|
110367
|
+
*
|
|
110368
|
+
* Consumers: published by hs-user-service; consumed by Braze/lifecycle and the data lake.
|
|
110369
|
+
*/
|
|
110370
|
+
export class UserProfileCreated {
|
|
110371
|
+
|
|
110372
|
+
/**
|
|
110373
|
+
* Constructs a new UserProfileCreated.
|
|
110374
|
+
* @param [properties] Properties to set
|
|
110375
|
+
*/
|
|
110376
|
+
constructor(properties?: UserProfileCreated.$Properties);
|
|
110377
|
+
|
|
110378
|
+
/** Unknown fields preserved while decoding */
|
|
110379
|
+
$unknowns?: Uint8Array[];
|
|
110380
|
+
|
|
110381
|
+
/** UserProfileCreated hsUserId. */
|
|
110382
|
+
hsUserId: string;
|
|
110383
|
+
|
|
110384
|
+
/** UserProfileCreated profileId. */
|
|
110385
|
+
profileId: string;
|
|
110386
|
+
|
|
110387
|
+
/** UserProfileCreated displayName. */
|
|
110388
|
+
displayName: string;
|
|
110389
|
+
|
|
110390
|
+
/** UserProfileCreated birthYearMonth. */
|
|
110391
|
+
birthYearMonth: string;
|
|
110392
|
+
|
|
110393
|
+
/** UserProfileCreated timestamp. */
|
|
110394
|
+
timestamp: (number|Long);
|
|
110395
|
+
|
|
110396
|
+
/**
|
|
110397
|
+
* Creates a new UserProfileCreated instance using the specified properties.
|
|
110398
|
+
* @param [properties] Properties to set
|
|
110399
|
+
* @returns UserProfileCreated instance
|
|
110400
|
+
*/
|
|
110401
|
+
static create(properties: UserProfileCreated.$Shape): UserProfileCreated & UserProfileCreated.$Shape;
|
|
110402
|
+
static create(properties?: UserProfileCreated.$Properties): UserProfileCreated;
|
|
110403
|
+
|
|
110404
|
+
/**
|
|
110405
|
+
* Encodes the specified UserProfileCreated message. Does not implicitly {@link UserProfileCreated.verify|verify} messages.
|
|
110406
|
+
* @param message UserProfileCreated message or plain object to encode
|
|
110407
|
+
* @param [writer] Writer to encode to
|
|
110408
|
+
* @returns Writer
|
|
110409
|
+
*/
|
|
110410
|
+
static encode(message: UserProfileCreated.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
110411
|
+
|
|
110412
|
+
/**
|
|
110413
|
+
* Encodes the specified UserProfileCreated message, length delimited. Does not implicitly {@link UserProfileCreated.verify|verify} messages.
|
|
110414
|
+
* @param message UserProfileCreated message or plain object to encode
|
|
110415
|
+
* @param [writer] Writer to encode to
|
|
110416
|
+
* @returns Writer
|
|
110417
|
+
*/
|
|
110418
|
+
static encodeDelimited(message: UserProfileCreated.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
110419
|
+
|
|
110420
|
+
/**
|
|
110421
|
+
* Decodes a UserProfileCreated message from the specified reader or buffer.
|
|
110422
|
+
* @param reader Reader or buffer to decode from
|
|
110423
|
+
* @param [length] Message length if known beforehand
|
|
110424
|
+
* @returns {UserProfileCreated & UserProfileCreated.$Shape} UserProfileCreated
|
|
110425
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
110426
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
110427
|
+
*/
|
|
110428
|
+
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserProfileCreated & UserProfileCreated.$Shape;
|
|
110429
|
+
|
|
110430
|
+
/**
|
|
110431
|
+
* Decodes a UserProfileCreated message from the specified reader or buffer, length delimited.
|
|
110432
|
+
* @param reader Reader or buffer to decode from
|
|
110433
|
+
* @returns {UserProfileCreated & UserProfileCreated.$Shape} UserProfileCreated
|
|
110434
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
110435
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
110436
|
+
*/
|
|
110437
|
+
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserProfileCreated & UserProfileCreated.$Shape;
|
|
110438
|
+
|
|
110439
|
+
/**
|
|
110440
|
+
* Verifies a UserProfileCreated message.
|
|
110441
|
+
* @param message Plain object to verify
|
|
110442
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
110443
|
+
*/
|
|
110444
|
+
static verify(message: { [k: string]: any }): (string|null);
|
|
110445
|
+
|
|
110446
|
+
/**
|
|
110447
|
+
* Creates a UserProfileCreated message from a plain object. Also converts values to their respective internal types.
|
|
110448
|
+
* @param object Plain object
|
|
110449
|
+
* @returns UserProfileCreated
|
|
110450
|
+
*/
|
|
110451
|
+
static fromObject(object: { [k: string]: any }): UserProfileCreated;
|
|
110452
|
+
|
|
110453
|
+
/**
|
|
110454
|
+
* Creates a plain object from a UserProfileCreated message. Also converts values to other types if specified.
|
|
110455
|
+
* @param message UserProfileCreated
|
|
110456
|
+
* @param [options] Conversion options
|
|
110457
|
+
* @returns Plain object
|
|
110458
|
+
*/
|
|
110459
|
+
static toObject(message: UserProfileCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
110460
|
+
|
|
110461
|
+
/**
|
|
110462
|
+
* Converts this UserProfileCreated to JSON.
|
|
110463
|
+
* @returns JSON object
|
|
110464
|
+
*/
|
|
110465
|
+
toJSON(): { [k: string]: any };
|
|
110466
|
+
|
|
110467
|
+
/**
|
|
110468
|
+
* Gets the type url for UserProfileCreated
|
|
110469
|
+
* @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
110470
|
+
* @returns The type url
|
|
110471
|
+
*/
|
|
110472
|
+
static getTypeUrl(prefix?: string): string;
|
|
110473
|
+
}
|
|
110474
|
+
|
|
110475
|
+
export namespace UserProfileCreated {
|
|
110476
|
+
|
|
110477
|
+
/** Properties of a UserProfileCreated. */
|
|
110478
|
+
interface $Properties {
|
|
110479
|
+
|
|
110480
|
+
/** UserProfileCreated hsUserId */
|
|
110481
|
+
hsUserId?: (string|null);
|
|
110482
|
+
|
|
110483
|
+
/** UserProfileCreated profileId */
|
|
110484
|
+
profileId?: (string|null);
|
|
110485
|
+
|
|
110486
|
+
/** UserProfileCreated displayName */
|
|
110487
|
+
displayName?: (string|null);
|
|
110488
|
+
|
|
110489
|
+
/** UserProfileCreated birthYearMonth */
|
|
110490
|
+
birthYearMonth?: (string|null);
|
|
110491
|
+
|
|
110492
|
+
/** UserProfileCreated timestamp */
|
|
110493
|
+
timestamp?: (number|Long|null);
|
|
110494
|
+
|
|
110495
|
+
/** Unknown fields preserved while decoding */
|
|
110496
|
+
$unknowns?: Uint8Array[];
|
|
110497
|
+
}
|
|
110498
|
+
|
|
110499
|
+
/** Shape of a UserProfileCreated. */
|
|
110500
|
+
type $Shape = UserProfileCreated.$Properties;
|
|
110501
|
+
}
|
|
110502
|
+
|
|
110503
|
+
/**
|
|
110504
|
+
* Properties of a UserProfileDeleted.
|
|
110505
|
+
* @deprecated Use UserProfileDeleted.$Properties instead.
|
|
110506
|
+
*/
|
|
110507
|
+
export interface IUserProfileDeleted extends UserProfileDeleted.$Properties {
|
|
110508
|
+
}
|
|
110509
|
+
|
|
110510
|
+
/**
|
|
110511
|
+
* Sent when a Headspace Jr. child profile is deleted.
|
|
110512
|
+
*
|
|
110513
|
+
* "Profile" here is the Headspace Jr. child-profile identity concept. It is a different
|
|
110514
|
+
* bounded concept from the pre-existing, apparently-unused UserProfileResponse /
|
|
110515
|
+
* UserProfileManager RPC schema in protos/services/user/user_profile.proto (an Amplitude
|
|
110516
|
+
* profile lookup) — do not conflate the two.
|
|
110517
|
+
*
|
|
110518
|
+
* Consumers: published by hs-user-service; consumed by hs-content-engagement-service to
|
|
110519
|
+
* cascade-delete the profile's passports.
|
|
110520
|
+
*
|
|
110521
|
+
* That cascade delete is eventually consistent, not atomic: this event fires after the
|
|
110522
|
+
* profile row is already gone, and passport cleanup happens asynchronously on the consumer
|
|
110523
|
+
* side afterward. A caller can briefly still see a just-deleted profile's passports until
|
|
110524
|
+
* this event is consumed. This is an accepted tradeoff, not a bug.
|
|
110525
|
+
*/
|
|
110526
|
+
export class UserProfileDeleted {
|
|
110527
|
+
|
|
110528
|
+
/**
|
|
110529
|
+
* Constructs a new UserProfileDeleted.
|
|
110530
|
+
* @param [properties] Properties to set
|
|
110531
|
+
*/
|
|
110532
|
+
constructor(properties?: UserProfileDeleted.$Properties);
|
|
110533
|
+
|
|
110534
|
+
/** Unknown fields preserved while decoding */
|
|
110535
|
+
$unknowns?: Uint8Array[];
|
|
110536
|
+
|
|
110537
|
+
/** UserProfileDeleted hsUserId. */
|
|
110538
|
+
hsUserId: string;
|
|
110539
|
+
|
|
110540
|
+
/** UserProfileDeleted profileId. */
|
|
110541
|
+
profileId: string;
|
|
110542
|
+
|
|
110543
|
+
/** UserProfileDeleted timestamp. */
|
|
110544
|
+
timestamp: (number|Long);
|
|
110545
|
+
|
|
110546
|
+
/**
|
|
110547
|
+
* Creates a new UserProfileDeleted instance using the specified properties.
|
|
110548
|
+
* @param [properties] Properties to set
|
|
110549
|
+
* @returns UserProfileDeleted instance
|
|
110550
|
+
*/
|
|
110551
|
+
static create(properties: UserProfileDeleted.$Shape): UserProfileDeleted & UserProfileDeleted.$Shape;
|
|
110552
|
+
static create(properties?: UserProfileDeleted.$Properties): UserProfileDeleted;
|
|
110553
|
+
|
|
110554
|
+
/**
|
|
110555
|
+
* Encodes the specified UserProfileDeleted message. Does not implicitly {@link UserProfileDeleted.verify|verify} messages.
|
|
110556
|
+
* @param message UserProfileDeleted message or plain object to encode
|
|
110557
|
+
* @param [writer] Writer to encode to
|
|
110558
|
+
* @returns Writer
|
|
110559
|
+
*/
|
|
110560
|
+
static encode(message: UserProfileDeleted.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
110561
|
+
|
|
110562
|
+
/**
|
|
110563
|
+
* Encodes the specified UserProfileDeleted message, length delimited. Does not implicitly {@link UserProfileDeleted.verify|verify} messages.
|
|
110564
|
+
* @param message UserProfileDeleted message or plain object to encode
|
|
110565
|
+
* @param [writer] Writer to encode to
|
|
110566
|
+
* @returns Writer
|
|
110567
|
+
*/
|
|
110568
|
+
static encodeDelimited(message: UserProfileDeleted.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
110569
|
+
|
|
110570
|
+
/**
|
|
110571
|
+
* Decodes a UserProfileDeleted message from the specified reader or buffer.
|
|
110572
|
+
* @param reader Reader or buffer to decode from
|
|
110573
|
+
* @param [length] Message length if known beforehand
|
|
110574
|
+
* @returns {UserProfileDeleted & UserProfileDeleted.$Shape} UserProfileDeleted
|
|
110575
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
110576
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
110577
|
+
*/
|
|
110578
|
+
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserProfileDeleted & UserProfileDeleted.$Shape;
|
|
110579
|
+
|
|
110580
|
+
/**
|
|
110581
|
+
* Decodes a UserProfileDeleted message from the specified reader or buffer, length delimited.
|
|
110582
|
+
* @param reader Reader or buffer to decode from
|
|
110583
|
+
* @returns {UserProfileDeleted & UserProfileDeleted.$Shape} UserProfileDeleted
|
|
110584
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
110585
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
110586
|
+
*/
|
|
110587
|
+
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserProfileDeleted & UserProfileDeleted.$Shape;
|
|
110588
|
+
|
|
110589
|
+
/**
|
|
110590
|
+
* Verifies a UserProfileDeleted message.
|
|
110591
|
+
* @param message Plain object to verify
|
|
110592
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
110593
|
+
*/
|
|
110594
|
+
static verify(message: { [k: string]: any }): (string|null);
|
|
110595
|
+
|
|
110596
|
+
/**
|
|
110597
|
+
* Creates a UserProfileDeleted message from a plain object. Also converts values to their respective internal types.
|
|
110598
|
+
* @param object Plain object
|
|
110599
|
+
* @returns UserProfileDeleted
|
|
110600
|
+
*/
|
|
110601
|
+
static fromObject(object: { [k: string]: any }): UserProfileDeleted;
|
|
110602
|
+
|
|
110603
|
+
/**
|
|
110604
|
+
* Creates a plain object from a UserProfileDeleted message. Also converts values to other types if specified.
|
|
110605
|
+
* @param message UserProfileDeleted
|
|
110606
|
+
* @param [options] Conversion options
|
|
110607
|
+
* @returns Plain object
|
|
110608
|
+
*/
|
|
110609
|
+
static toObject(message: UserProfileDeleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
110610
|
+
|
|
110611
|
+
/**
|
|
110612
|
+
* Converts this UserProfileDeleted to JSON.
|
|
110613
|
+
* @returns JSON object
|
|
110614
|
+
*/
|
|
110615
|
+
toJSON(): { [k: string]: any };
|
|
110616
|
+
|
|
110617
|
+
/**
|
|
110618
|
+
* Gets the type url for UserProfileDeleted
|
|
110619
|
+
* @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
110620
|
+
* @returns The type url
|
|
110621
|
+
*/
|
|
110622
|
+
static getTypeUrl(prefix?: string): string;
|
|
110623
|
+
}
|
|
110624
|
+
|
|
110625
|
+
export namespace UserProfileDeleted {
|
|
110626
|
+
|
|
110627
|
+
/** Properties of a UserProfileDeleted. */
|
|
110628
|
+
interface $Properties {
|
|
110629
|
+
|
|
110630
|
+
/** UserProfileDeleted hsUserId */
|
|
110631
|
+
hsUserId?: (string|null);
|
|
110632
|
+
|
|
110633
|
+
/** UserProfileDeleted profileId */
|
|
110634
|
+
profileId?: (string|null);
|
|
110635
|
+
|
|
110636
|
+
/** UserProfileDeleted timestamp */
|
|
110637
|
+
timestamp?: (number|Long|null);
|
|
110638
|
+
|
|
110639
|
+
/** Unknown fields preserved while decoding */
|
|
110640
|
+
$unknowns?: Uint8Array[];
|
|
110641
|
+
}
|
|
110642
|
+
|
|
110643
|
+
/** Shape of a UserProfileDeleted. */
|
|
110644
|
+
type $Shape = UserProfileDeleted.$Properties;
|
|
110645
|
+
}
|
|
110646
|
+
|
|
110338
110647
|
/**
|
|
110339
110648
|
* Properties of a CareCoachingInteractionStarted.
|
|
110340
110649
|
* @deprecated Use CareCoachingInteractionStarted.$Properties instead.
|
package/lib/index.js
CHANGED
|
@@ -210306,6 +210306,7 @@ $root.CmsAccessEligibilityDetermined = (function() {
|
|
|
210306
210306
|
* @property {string|null} [trackingId] CmsAccessEligibilityDetermined trackingId
|
|
210307
210307
|
* @property {CmsAccessEligibilityResult|null} [result] CmsAccessEligibilityDetermined result
|
|
210308
210308
|
* @property {string|null} [cmsSubmissionId] CmsAccessEligibilityDetermined cmsSubmissionId
|
|
210309
|
+
* @property {number|Long|null} [submittedAt] CmsAccessEligibilityDetermined submittedAt
|
|
210309
210310
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
210310
210311
|
*/
|
|
210311
210312
|
|
|
@@ -210380,6 +210381,14 @@ $root.CmsAccessEligibilityDetermined = (function() {
|
|
|
210380
210381
|
*/
|
|
210381
210382
|
CmsAccessEligibilityDetermined.prototype.cmsSubmissionId = "";
|
|
210382
210383
|
|
|
210384
|
+
/**
|
|
210385
|
+
* CmsAccessEligibilityDetermined submittedAt.
|
|
210386
|
+
* @member {number|Long} submittedAt
|
|
210387
|
+
* @memberof CmsAccessEligibilityDetermined
|
|
210388
|
+
* @instance
|
|
210389
|
+
*/
|
|
210390
|
+
CmsAccessEligibilityDetermined.prototype.submittedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
210391
|
+
|
|
210383
210392
|
/**
|
|
210384
210393
|
* Creates a new CmsAccessEligibilityDetermined instance using the specified properties.
|
|
210385
210394
|
* @function create
|
|
@@ -210418,6 +210427,8 @@ $root.CmsAccessEligibilityDetermined = (function() {
|
|
|
210418
210427
|
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.result);
|
|
210419
210428
|
if (message.cmsSubmissionId != null && Object.hasOwnProperty.call(message, "cmsSubmissionId"))
|
|
210420
210429
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.cmsSubmissionId);
|
|
210430
|
+
if (message.submittedAt != null && Object.hasOwnProperty.call(message, "submittedAt"))
|
|
210431
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.submittedAt);
|
|
210421
210432
|
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
210422
210433
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
210423
210434
|
writer.raw(message.$unknowns[i]);
|
|
@@ -210510,6 +210521,15 @@ $root.CmsAccessEligibilityDetermined = (function() {
|
|
|
210510
210521
|
delete message.cmsSubmissionId;
|
|
210511
210522
|
continue;
|
|
210512
210523
|
}
|
|
210524
|
+
case 6: {
|
|
210525
|
+
if (wireType !== 0)
|
|
210526
|
+
break;
|
|
210527
|
+
if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
|
|
210528
|
+
message.submittedAt = value;
|
|
210529
|
+
else
|
|
210530
|
+
delete message.submittedAt;
|
|
210531
|
+
continue;
|
|
210532
|
+
}
|
|
210513
210533
|
}
|
|
210514
210534
|
reader.skipType(wireType, _depth, tag);
|
|
210515
210535
|
$util.makeProp(message, "$unknowns", false);
|
|
@@ -210580,6 +210600,9 @@ $root.CmsAccessEligibilityDetermined = (function() {
|
|
|
210580
210600
|
if (message.cmsSubmissionId != null && message.hasOwnProperty("cmsSubmissionId"))
|
|
210581
210601
|
if (!$util.isString(message.cmsSubmissionId))
|
|
210582
210602
|
return "cmsSubmissionId: string expected";
|
|
210603
|
+
if (message.submittedAt != null && message.hasOwnProperty("submittedAt"))
|
|
210604
|
+
if (!$util.isInteger(message.submittedAt) && !(message.submittedAt && $util.isInteger(message.submittedAt.low) && $util.isInteger(message.submittedAt.high)))
|
|
210605
|
+
return "submittedAt: integer|Long expected";
|
|
210583
210606
|
return null;
|
|
210584
210607
|
};
|
|
210585
210608
|
|
|
@@ -210671,6 +210694,16 @@ $root.CmsAccessEligibilityDetermined = (function() {
|
|
|
210671
210694
|
if (object.cmsSubmissionId != null)
|
|
210672
210695
|
if (typeof object.cmsSubmissionId !== "string" || object.cmsSubmissionId.length)
|
|
210673
210696
|
message.cmsSubmissionId = String(object.cmsSubmissionId);
|
|
210697
|
+
if (object.submittedAt != null)
|
|
210698
|
+
if (typeof object.submittedAt === "object" ? object.submittedAt.low || object.submittedAt.high : Number(object.submittedAt) !== 0)
|
|
210699
|
+
if ($util.Long)
|
|
210700
|
+
(message.submittedAt = $util.Long.fromValue(object.submittedAt)).unsigned = true;
|
|
210701
|
+
else if (typeof object.submittedAt === "string")
|
|
210702
|
+
message.submittedAt = parseInt(object.submittedAt, 10);
|
|
210703
|
+
else if (typeof object.submittedAt === "number")
|
|
210704
|
+
message.submittedAt = object.submittedAt;
|
|
210705
|
+
else if (typeof object.submittedAt === "object")
|
|
210706
|
+
message.submittedAt = new $util.LongBits(object.submittedAt.low >>> 0, object.submittedAt.high >>> 0).toNumber(true);
|
|
210674
210707
|
return message;
|
|
210675
210708
|
};
|
|
210676
210709
|
|
|
@@ -210697,6 +210730,11 @@ $root.CmsAccessEligibilityDetermined = (function() {
|
|
|
210697
210730
|
object.trackingId = "";
|
|
210698
210731
|
object.result = options.enums === String ? "CMS_ACCESS_ELIGIBILITY_RESULT_UNKNOWN" : 0;
|
|
210699
210732
|
object.cmsSubmissionId = "";
|
|
210733
|
+
if ($util.Long) {
|
|
210734
|
+
var long = new $util.Long(0, 0, true);
|
|
210735
|
+
object.submittedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
210736
|
+
} else
|
|
210737
|
+
object.submittedAt = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
210700
210738
|
}
|
|
210701
210739
|
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
210702
210740
|
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
@@ -210713,6 +210751,13 @@ $root.CmsAccessEligibilityDetermined = (function() {
|
|
|
210713
210751
|
object.result = options.enums === String ? $root.CmsAccessEligibilityResult[message.result] === undefined ? message.result : $root.CmsAccessEligibilityResult[message.result] : message.result;
|
|
210714
210752
|
if (message.cmsSubmissionId != null && message.hasOwnProperty("cmsSubmissionId"))
|
|
210715
210753
|
object.cmsSubmissionId = message.cmsSubmissionId;
|
|
210754
|
+
if (message.submittedAt != null && message.hasOwnProperty("submittedAt"))
|
|
210755
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
210756
|
+
object.submittedAt = typeof message.submittedAt === "number" ? BigInt(message.submittedAt) : $util.Long.fromBits(message.submittedAt.low >>> 0, message.submittedAt.high >>> 0, true).toBigInt();
|
|
210757
|
+
else if (typeof message.submittedAt === "number")
|
|
210758
|
+
object.submittedAt = options.longs === String ? String(message.submittedAt) : message.submittedAt;
|
|
210759
|
+
else
|
|
210760
|
+
object.submittedAt = options.longs === String ? $util.Long.prototype.toString.call(message.submittedAt) : options.longs === Number ? new $util.LongBits(message.submittedAt.low >>> 0, message.submittedAt.high >>> 0).toNumber(true) : message.submittedAt;
|
|
210716
210761
|
return object;
|
|
210717
210762
|
};
|
|
210718
210763
|
|
|
@@ -210756,6 +210801,7 @@ $root.CmsAccessAlignmentCompleted = (function() {
|
|
|
210756
210801
|
* @property {string|null} [cmsSubmissionId] CmsAccessAlignmentCompleted cmsSubmissionId
|
|
210757
210802
|
* @property {number|Long|null} [alignedAt] CmsAccessAlignmentCompleted alignedAt
|
|
210758
210803
|
* @property {number|Long|null} [carePeriodEndsAt] CmsAccessAlignmentCompleted carePeriodEndsAt
|
|
210804
|
+
* @property {number|Long|null} [submittedAt] CmsAccessAlignmentCompleted submittedAt
|
|
210759
210805
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
210760
210806
|
*/
|
|
210761
210807
|
|
|
@@ -210846,6 +210892,14 @@ $root.CmsAccessAlignmentCompleted = (function() {
|
|
|
210846
210892
|
*/
|
|
210847
210893
|
CmsAccessAlignmentCompleted.prototype.carePeriodEndsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
210848
210894
|
|
|
210895
|
+
/**
|
|
210896
|
+
* CmsAccessAlignmentCompleted submittedAt.
|
|
210897
|
+
* @member {number|Long} submittedAt
|
|
210898
|
+
* @memberof CmsAccessAlignmentCompleted
|
|
210899
|
+
* @instance
|
|
210900
|
+
*/
|
|
210901
|
+
CmsAccessAlignmentCompleted.prototype.submittedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
210902
|
+
|
|
210849
210903
|
/**
|
|
210850
210904
|
* Creates a new CmsAccessAlignmentCompleted instance using the specified properties.
|
|
210851
210905
|
* @function create
|
|
@@ -210888,6 +210942,8 @@ $root.CmsAccessAlignmentCompleted = (function() {
|
|
|
210888
210942
|
writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.alignedAt);
|
|
210889
210943
|
if (message.carePeriodEndsAt != null && Object.hasOwnProperty.call(message, "carePeriodEndsAt"))
|
|
210890
210944
|
writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.carePeriodEndsAt);
|
|
210945
|
+
if (message.submittedAt != null && Object.hasOwnProperty.call(message, "submittedAt"))
|
|
210946
|
+
writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.submittedAt);
|
|
210891
210947
|
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
210892
210948
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
210893
210949
|
writer.raw(message.$unknowns[i]);
|
|
@@ -210998,6 +211054,15 @@ $root.CmsAccessAlignmentCompleted = (function() {
|
|
|
210998
211054
|
delete message.carePeriodEndsAt;
|
|
210999
211055
|
continue;
|
|
211000
211056
|
}
|
|
211057
|
+
case 8: {
|
|
211058
|
+
if (wireType !== 0)
|
|
211059
|
+
break;
|
|
211060
|
+
if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
|
|
211061
|
+
message.submittedAt = value;
|
|
211062
|
+
else
|
|
211063
|
+
delete message.submittedAt;
|
|
211064
|
+
continue;
|
|
211065
|
+
}
|
|
211001
211066
|
}
|
|
211002
211067
|
reader.skipType(wireType, _depth, tag);
|
|
211003
211068
|
$util.makeProp(message, "$unknowns", false);
|
|
@@ -211074,6 +211139,9 @@ $root.CmsAccessAlignmentCompleted = (function() {
|
|
|
211074
211139
|
if (message.carePeriodEndsAt != null && message.hasOwnProperty("carePeriodEndsAt"))
|
|
211075
211140
|
if (!$util.isInteger(message.carePeriodEndsAt) && !(message.carePeriodEndsAt && $util.isInteger(message.carePeriodEndsAt.low) && $util.isInteger(message.carePeriodEndsAt.high)))
|
|
211076
211141
|
return "carePeriodEndsAt: integer|Long expected";
|
|
211142
|
+
if (message.submittedAt != null && message.hasOwnProperty("submittedAt"))
|
|
211143
|
+
if (!$util.isInteger(message.submittedAt) && !(message.submittedAt && $util.isInteger(message.submittedAt.low) && $util.isInteger(message.submittedAt.high)))
|
|
211144
|
+
return "submittedAt: integer|Long expected";
|
|
211077
211145
|
return null;
|
|
211078
211146
|
};
|
|
211079
211147
|
|
|
@@ -211185,6 +211253,16 @@ $root.CmsAccessAlignmentCompleted = (function() {
|
|
|
211185
211253
|
message.carePeriodEndsAt = object.carePeriodEndsAt;
|
|
211186
211254
|
else if (typeof object.carePeriodEndsAt === "object")
|
|
211187
211255
|
message.carePeriodEndsAt = new $util.LongBits(object.carePeriodEndsAt.low >>> 0, object.carePeriodEndsAt.high >>> 0).toNumber(true);
|
|
211256
|
+
if (object.submittedAt != null)
|
|
211257
|
+
if (typeof object.submittedAt === "object" ? object.submittedAt.low || object.submittedAt.high : Number(object.submittedAt) !== 0)
|
|
211258
|
+
if ($util.Long)
|
|
211259
|
+
(message.submittedAt = $util.Long.fromValue(object.submittedAt)).unsigned = true;
|
|
211260
|
+
else if (typeof object.submittedAt === "string")
|
|
211261
|
+
message.submittedAt = parseInt(object.submittedAt, 10);
|
|
211262
|
+
else if (typeof object.submittedAt === "number")
|
|
211263
|
+
message.submittedAt = object.submittedAt;
|
|
211264
|
+
else if (typeof object.submittedAt === "object")
|
|
211265
|
+
message.submittedAt = new $util.LongBits(object.submittedAt.low >>> 0, object.submittedAt.high >>> 0).toNumber(true);
|
|
211188
211266
|
return message;
|
|
211189
211267
|
};
|
|
211190
211268
|
|
|
@@ -211221,6 +211299,11 @@ $root.CmsAccessAlignmentCompleted = (function() {
|
|
|
211221
211299
|
object.carePeriodEndsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
211222
211300
|
} else
|
|
211223
211301
|
object.carePeriodEndsAt = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
211302
|
+
if ($util.Long) {
|
|
211303
|
+
var long = new $util.Long(0, 0, true);
|
|
211304
|
+
object.submittedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
211305
|
+
} else
|
|
211306
|
+
object.submittedAt = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
211224
211307
|
}
|
|
211225
211308
|
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
211226
211309
|
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
@@ -211251,6 +211334,13 @@ $root.CmsAccessAlignmentCompleted = (function() {
|
|
|
211251
211334
|
object.carePeriodEndsAt = options.longs === String ? String(message.carePeriodEndsAt) : message.carePeriodEndsAt;
|
|
211252
211335
|
else
|
|
211253
211336
|
object.carePeriodEndsAt = options.longs === String ? $util.Long.prototype.toString.call(message.carePeriodEndsAt) : options.longs === Number ? new $util.LongBits(message.carePeriodEndsAt.low >>> 0, message.carePeriodEndsAt.high >>> 0).toNumber(true) : message.carePeriodEndsAt;
|
|
211337
|
+
if (message.submittedAt != null && message.hasOwnProperty("submittedAt"))
|
|
211338
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
211339
|
+
object.submittedAt = typeof message.submittedAt === "number" ? BigInt(message.submittedAt) : $util.Long.fromBits(message.submittedAt.low >>> 0, message.submittedAt.high >>> 0, true).toBigInt();
|
|
211340
|
+
else if (typeof message.submittedAt === "number")
|
|
211341
|
+
object.submittedAt = options.longs === String ? String(message.submittedAt) : message.submittedAt;
|
|
211342
|
+
else
|
|
211343
|
+
object.submittedAt = options.longs === String ? $util.Long.prototype.toString.call(message.submittedAt) : options.longs === Number ? new $util.LongBits(message.submittedAt.low >>> 0, message.submittedAt.high >>> 0).toNumber(true) : message.submittedAt;
|
|
211254
211344
|
return object;
|
|
211255
211345
|
};
|
|
211256
211346
|
|
|
@@ -323927,6 +324017,733 @@ $root.UserServiceAppClient = (function() {
|
|
|
323927
324017
|
return values;
|
|
323928
324018
|
})();
|
|
323929
324019
|
|
|
324020
|
+
$root.UserProfileCreated = (function() {
|
|
324021
|
+
|
|
324022
|
+
/**
|
|
324023
|
+
* Properties of a UserProfileCreated.
|
|
324024
|
+
* @typedef {Object} UserProfileCreated.$Properties
|
|
324025
|
+
* @property {string|null} [hsUserId] UserProfileCreated hsUserId
|
|
324026
|
+
* @property {string|null} [profileId] UserProfileCreated profileId
|
|
324027
|
+
* @property {string|null} [displayName] UserProfileCreated displayName
|
|
324028
|
+
* @property {string|null} [birthYearMonth] UserProfileCreated birthYearMonth
|
|
324029
|
+
* @property {number|Long|null} [timestamp] UserProfileCreated timestamp
|
|
324030
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
324031
|
+
*/
|
|
324032
|
+
|
|
324033
|
+
/**
|
|
324034
|
+
* Properties of a UserProfileCreated.
|
|
324035
|
+
* @name IUserProfileCreated
|
|
324036
|
+
* @interface IUserProfileCreated
|
|
324037
|
+
* @augments UserProfileCreated.$Properties
|
|
324038
|
+
* @deprecated Use UserProfileCreated.$Properties instead.
|
|
324039
|
+
*/
|
|
324040
|
+
|
|
324041
|
+
/**
|
|
324042
|
+
* Shape of a UserProfileCreated.
|
|
324043
|
+
* @typedef {UserProfileCreated.$Properties} UserProfileCreated.$Shape
|
|
324044
|
+
*/
|
|
324045
|
+
|
|
324046
|
+
/**
|
|
324047
|
+
* Constructs a new UserProfileCreated.
|
|
324048
|
+
* @name UserProfileCreated
|
|
324049
|
+
* @classdesc Sent when a Headspace Jr. child profile is created.
|
|
324050
|
+
*
|
|
324051
|
+
* "Profile" here is the Headspace Jr. child-profile identity concept. It is a different
|
|
324052
|
+
* bounded concept from the pre-existing, apparently-unused UserProfileResponse /
|
|
324053
|
+
* UserProfileManager RPC schema in protos/services/user/user_profile.proto (an Amplitude
|
|
324054
|
+
* profile lookup) — do not conflate the two.
|
|
324055
|
+
*
|
|
324056
|
+
* display_name and birth_year_month are intentionally carried on this event for
|
|
324057
|
+
* data-lake-only routing. Do not remove them assuming they are an oversight.
|
|
324058
|
+
*
|
|
324059
|
+
* Consumers: published by hs-user-service; consumed by Braze/lifecycle and the data lake.
|
|
324060
|
+
* @constructor
|
|
324061
|
+
* @param {UserProfileCreated.$Properties=} [properties] Properties to set
|
|
324062
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
324063
|
+
*/
|
|
324064
|
+
function UserProfileCreated(properties) {
|
|
324065
|
+
if (properties)
|
|
324066
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
324067
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
324068
|
+
this[keys[i]] = properties[keys[i]];
|
|
324069
|
+
}
|
|
324070
|
+
|
|
324071
|
+
/**
|
|
324072
|
+
* UserProfileCreated hsUserId.
|
|
324073
|
+
* @member {string} hsUserId
|
|
324074
|
+
* @memberof UserProfileCreated
|
|
324075
|
+
* @instance
|
|
324076
|
+
*/
|
|
324077
|
+
UserProfileCreated.prototype.hsUserId = "";
|
|
324078
|
+
|
|
324079
|
+
/**
|
|
324080
|
+
* UserProfileCreated profileId.
|
|
324081
|
+
* @member {string} profileId
|
|
324082
|
+
* @memberof UserProfileCreated
|
|
324083
|
+
* @instance
|
|
324084
|
+
*/
|
|
324085
|
+
UserProfileCreated.prototype.profileId = "";
|
|
324086
|
+
|
|
324087
|
+
/**
|
|
324088
|
+
* UserProfileCreated displayName.
|
|
324089
|
+
* @member {string} displayName
|
|
324090
|
+
* @memberof UserProfileCreated
|
|
324091
|
+
* @instance
|
|
324092
|
+
*/
|
|
324093
|
+
UserProfileCreated.prototype.displayName = "";
|
|
324094
|
+
|
|
324095
|
+
/**
|
|
324096
|
+
* UserProfileCreated birthYearMonth.
|
|
324097
|
+
* @member {string} birthYearMonth
|
|
324098
|
+
* @memberof UserProfileCreated
|
|
324099
|
+
* @instance
|
|
324100
|
+
*/
|
|
324101
|
+
UserProfileCreated.prototype.birthYearMonth = "";
|
|
324102
|
+
|
|
324103
|
+
/**
|
|
324104
|
+
* UserProfileCreated timestamp.
|
|
324105
|
+
* @member {number|Long} timestamp
|
|
324106
|
+
* @memberof UserProfileCreated
|
|
324107
|
+
* @instance
|
|
324108
|
+
*/
|
|
324109
|
+
UserProfileCreated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
324110
|
+
|
|
324111
|
+
/**
|
|
324112
|
+
* Creates a new UserProfileCreated instance using the specified properties.
|
|
324113
|
+
* @function create
|
|
324114
|
+
* @memberof UserProfileCreated
|
|
324115
|
+
* @static
|
|
324116
|
+
* @param {UserProfileCreated.$Properties=} [properties] Properties to set
|
|
324117
|
+
* @returns {UserProfileCreated} UserProfileCreated instance
|
|
324118
|
+
* @type {{
|
|
324119
|
+
* (properties: UserProfileCreated.$Shape): UserProfileCreated & UserProfileCreated.$Shape;
|
|
324120
|
+
* (properties?: UserProfileCreated.$Properties): UserProfileCreated;
|
|
324121
|
+
* }}
|
|
324122
|
+
*/
|
|
324123
|
+
UserProfileCreated.create = function create(properties) {
|
|
324124
|
+
return new UserProfileCreated(properties);
|
|
324125
|
+
};
|
|
324126
|
+
|
|
324127
|
+
/**
|
|
324128
|
+
* Encodes the specified UserProfileCreated message. Does not implicitly {@link UserProfileCreated.verify|verify} messages.
|
|
324129
|
+
* @function encode
|
|
324130
|
+
* @memberof UserProfileCreated
|
|
324131
|
+
* @static
|
|
324132
|
+
* @param {UserProfileCreated.$Properties} message UserProfileCreated message or plain object to encode
|
|
324133
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
324134
|
+
* @returns {$protobuf.Writer} Writer
|
|
324135
|
+
*/
|
|
324136
|
+
UserProfileCreated.encode = function encode(message, writer) {
|
|
324137
|
+
if (!writer)
|
|
324138
|
+
writer = $Writer.create();
|
|
324139
|
+
if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
|
|
324140
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
|
|
324141
|
+
if (message.profileId != null && Object.hasOwnProperty.call(message, "profileId"))
|
|
324142
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.profileId);
|
|
324143
|
+
if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
|
|
324144
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName);
|
|
324145
|
+
if (message.birthYearMonth != null && Object.hasOwnProperty.call(message, "birthYearMonth"))
|
|
324146
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.birthYearMonth);
|
|
324147
|
+
if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
|
|
324148
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.timestamp);
|
|
324149
|
+
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
324150
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
324151
|
+
writer.raw(message.$unknowns[i]);
|
|
324152
|
+
return writer;
|
|
324153
|
+
};
|
|
324154
|
+
|
|
324155
|
+
/**
|
|
324156
|
+
* Encodes the specified UserProfileCreated message, length delimited. Does not implicitly {@link UserProfileCreated.verify|verify} messages.
|
|
324157
|
+
* @function encodeDelimited
|
|
324158
|
+
* @memberof UserProfileCreated
|
|
324159
|
+
* @static
|
|
324160
|
+
* @param {UserProfileCreated.$Properties} message UserProfileCreated message or plain object to encode
|
|
324161
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
324162
|
+
* @returns {$protobuf.Writer} Writer
|
|
324163
|
+
*/
|
|
324164
|
+
UserProfileCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
324165
|
+
return this.encode(message, writer).ldelim();
|
|
324166
|
+
};
|
|
324167
|
+
|
|
324168
|
+
/**
|
|
324169
|
+
* Decodes a UserProfileCreated message from the specified reader or buffer.
|
|
324170
|
+
* @function decode
|
|
324171
|
+
* @memberof UserProfileCreated
|
|
324172
|
+
* @static
|
|
324173
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
324174
|
+
* @param {number} [length] Message length if known beforehand
|
|
324175
|
+
* @returns {UserProfileCreated & UserProfileCreated.$Shape} UserProfileCreated
|
|
324176
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
324177
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
324178
|
+
*/
|
|
324179
|
+
UserProfileCreated.decode = function decode(reader, length, _end, _depth, _target) {
|
|
324180
|
+
if (!(reader instanceof $Reader))
|
|
324181
|
+
reader = $Reader.create(reader);
|
|
324182
|
+
if (_depth === undefined)
|
|
324183
|
+
_depth = 0;
|
|
324184
|
+
if (_depth > $Reader.recursionLimit)
|
|
324185
|
+
throw Error("max depth exceeded");
|
|
324186
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.UserProfileCreated(), value;
|
|
324187
|
+
while (reader.pos < end) {
|
|
324188
|
+
var start = reader.pos;
|
|
324189
|
+
var tag = reader.tag();
|
|
324190
|
+
if (tag === _end) {
|
|
324191
|
+
_end = undefined;
|
|
324192
|
+
break;
|
|
324193
|
+
}
|
|
324194
|
+
var wireType = tag & 7;
|
|
324195
|
+
switch (tag >>>= 3) {
|
|
324196
|
+
case 1: {
|
|
324197
|
+
if (wireType !== 2)
|
|
324198
|
+
break;
|
|
324199
|
+
if ((value = reader.string()).length)
|
|
324200
|
+
message.hsUserId = value;
|
|
324201
|
+
else
|
|
324202
|
+
delete message.hsUserId;
|
|
324203
|
+
continue;
|
|
324204
|
+
}
|
|
324205
|
+
case 2: {
|
|
324206
|
+
if (wireType !== 2)
|
|
324207
|
+
break;
|
|
324208
|
+
if ((value = reader.string()).length)
|
|
324209
|
+
message.profileId = value;
|
|
324210
|
+
else
|
|
324211
|
+
delete message.profileId;
|
|
324212
|
+
continue;
|
|
324213
|
+
}
|
|
324214
|
+
case 3: {
|
|
324215
|
+
if (wireType !== 2)
|
|
324216
|
+
break;
|
|
324217
|
+
if ((value = reader.string()).length)
|
|
324218
|
+
message.displayName = value;
|
|
324219
|
+
else
|
|
324220
|
+
delete message.displayName;
|
|
324221
|
+
continue;
|
|
324222
|
+
}
|
|
324223
|
+
case 4: {
|
|
324224
|
+
if (wireType !== 2)
|
|
324225
|
+
break;
|
|
324226
|
+
if ((value = reader.string()).length)
|
|
324227
|
+
message.birthYearMonth = value;
|
|
324228
|
+
else
|
|
324229
|
+
delete message.birthYearMonth;
|
|
324230
|
+
continue;
|
|
324231
|
+
}
|
|
324232
|
+
case 5: {
|
|
324233
|
+
if (wireType !== 0)
|
|
324234
|
+
break;
|
|
324235
|
+
if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
|
|
324236
|
+
message.timestamp = value;
|
|
324237
|
+
else
|
|
324238
|
+
delete message.timestamp;
|
|
324239
|
+
continue;
|
|
324240
|
+
}
|
|
324241
|
+
}
|
|
324242
|
+
reader.skipType(wireType, _depth, tag);
|
|
324243
|
+
$util.makeProp(message, "$unknowns", false);
|
|
324244
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
324245
|
+
}
|
|
324246
|
+
if (_end !== undefined)
|
|
324247
|
+
throw Error("missing end group");
|
|
324248
|
+
return message;
|
|
324249
|
+
};
|
|
324250
|
+
|
|
324251
|
+
/**
|
|
324252
|
+
* Decodes a UserProfileCreated message from the specified reader or buffer, length delimited.
|
|
324253
|
+
* @function decodeDelimited
|
|
324254
|
+
* @memberof UserProfileCreated
|
|
324255
|
+
* @static
|
|
324256
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
324257
|
+
* @returns {UserProfileCreated & UserProfileCreated.$Shape} UserProfileCreated
|
|
324258
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
324259
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
324260
|
+
*/
|
|
324261
|
+
UserProfileCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
324262
|
+
if (!(reader instanceof $Reader))
|
|
324263
|
+
reader = new $Reader(reader);
|
|
324264
|
+
return this.decode(reader, reader.uint32());
|
|
324265
|
+
};
|
|
324266
|
+
|
|
324267
|
+
/**
|
|
324268
|
+
* Verifies a UserProfileCreated message.
|
|
324269
|
+
* @function verify
|
|
324270
|
+
* @memberof UserProfileCreated
|
|
324271
|
+
* @static
|
|
324272
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
324273
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
324274
|
+
*/
|
|
324275
|
+
UserProfileCreated.verify = function verify(message, _depth) {
|
|
324276
|
+
if (typeof message !== "object" || message === null)
|
|
324277
|
+
return "object expected";
|
|
324278
|
+
if (_depth === undefined)
|
|
324279
|
+
_depth = 0;
|
|
324280
|
+
if (_depth > $util.recursionLimit)
|
|
324281
|
+
return "max depth exceeded";
|
|
324282
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
324283
|
+
if (!$util.isString(message.hsUserId))
|
|
324284
|
+
return "hsUserId: string expected";
|
|
324285
|
+
if (message.profileId != null && message.hasOwnProperty("profileId"))
|
|
324286
|
+
if (!$util.isString(message.profileId))
|
|
324287
|
+
return "profileId: string expected";
|
|
324288
|
+
if (message.displayName != null && message.hasOwnProperty("displayName"))
|
|
324289
|
+
if (!$util.isString(message.displayName))
|
|
324290
|
+
return "displayName: string expected";
|
|
324291
|
+
if (message.birthYearMonth != null && message.hasOwnProperty("birthYearMonth"))
|
|
324292
|
+
if (!$util.isString(message.birthYearMonth))
|
|
324293
|
+
return "birthYearMonth: string expected";
|
|
324294
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
324295
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
324296
|
+
return "timestamp: integer|Long expected";
|
|
324297
|
+
return null;
|
|
324298
|
+
};
|
|
324299
|
+
|
|
324300
|
+
/**
|
|
324301
|
+
* Creates a UserProfileCreated message from a plain object. Also converts values to their respective internal types.
|
|
324302
|
+
* @function fromObject
|
|
324303
|
+
* @memberof UserProfileCreated
|
|
324304
|
+
* @static
|
|
324305
|
+
* @param {Object.<string,*>} object Plain object
|
|
324306
|
+
* @returns {UserProfileCreated} UserProfileCreated
|
|
324307
|
+
*/
|
|
324308
|
+
UserProfileCreated.fromObject = function fromObject(object, _depth) {
|
|
324309
|
+
if (object instanceof $root.UserProfileCreated)
|
|
324310
|
+
return object;
|
|
324311
|
+
if (_depth === undefined)
|
|
324312
|
+
_depth = 0;
|
|
324313
|
+
if (_depth > $util.recursionLimit)
|
|
324314
|
+
throw Error("max depth exceeded");
|
|
324315
|
+
var message = new $root.UserProfileCreated();
|
|
324316
|
+
if (object.hsUserId != null)
|
|
324317
|
+
if (typeof object.hsUserId !== "string" || object.hsUserId.length)
|
|
324318
|
+
message.hsUserId = String(object.hsUserId);
|
|
324319
|
+
if (object.profileId != null)
|
|
324320
|
+
if (typeof object.profileId !== "string" || object.profileId.length)
|
|
324321
|
+
message.profileId = String(object.profileId);
|
|
324322
|
+
if (object.displayName != null)
|
|
324323
|
+
if (typeof object.displayName !== "string" || object.displayName.length)
|
|
324324
|
+
message.displayName = String(object.displayName);
|
|
324325
|
+
if (object.birthYearMonth != null)
|
|
324326
|
+
if (typeof object.birthYearMonth !== "string" || object.birthYearMonth.length)
|
|
324327
|
+
message.birthYearMonth = String(object.birthYearMonth);
|
|
324328
|
+
if (object.timestamp != null)
|
|
324329
|
+
if (typeof object.timestamp === "object" ? object.timestamp.low || object.timestamp.high : Number(object.timestamp) !== 0)
|
|
324330
|
+
if ($util.Long)
|
|
324331
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
324332
|
+
else if (typeof object.timestamp === "string")
|
|
324333
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
324334
|
+
else if (typeof object.timestamp === "number")
|
|
324335
|
+
message.timestamp = object.timestamp;
|
|
324336
|
+
else if (typeof object.timestamp === "object")
|
|
324337
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
324338
|
+
return message;
|
|
324339
|
+
};
|
|
324340
|
+
|
|
324341
|
+
/**
|
|
324342
|
+
* Creates a plain object from a UserProfileCreated message. Also converts values to other types if specified.
|
|
324343
|
+
* @function toObject
|
|
324344
|
+
* @memberof UserProfileCreated
|
|
324345
|
+
* @static
|
|
324346
|
+
* @param {UserProfileCreated} message UserProfileCreated
|
|
324347
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
324348
|
+
* @returns {Object.<string,*>} Plain object
|
|
324349
|
+
*/
|
|
324350
|
+
UserProfileCreated.toObject = function toObject(message, options) {
|
|
324351
|
+
if (!options)
|
|
324352
|
+
options = {};
|
|
324353
|
+
var object = {};
|
|
324354
|
+
if (options.defaults) {
|
|
324355
|
+
object.hsUserId = "";
|
|
324356
|
+
object.profileId = "";
|
|
324357
|
+
object.displayName = "";
|
|
324358
|
+
object.birthYearMonth = "";
|
|
324359
|
+
if ($util.Long) {
|
|
324360
|
+
var long = new $util.Long(0, 0, true);
|
|
324361
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
324362
|
+
} else
|
|
324363
|
+
object.timestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
324364
|
+
}
|
|
324365
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
324366
|
+
object.hsUserId = message.hsUserId;
|
|
324367
|
+
if (message.profileId != null && message.hasOwnProperty("profileId"))
|
|
324368
|
+
object.profileId = message.profileId;
|
|
324369
|
+
if (message.displayName != null && message.hasOwnProperty("displayName"))
|
|
324370
|
+
object.displayName = message.displayName;
|
|
324371
|
+
if (message.birthYearMonth != null && message.hasOwnProperty("birthYearMonth"))
|
|
324372
|
+
object.birthYearMonth = message.birthYearMonth;
|
|
324373
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
324374
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
324375
|
+
object.timestamp = typeof message.timestamp === "number" ? BigInt(message.timestamp) : $util.Long.fromBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0, true).toBigInt();
|
|
324376
|
+
else if (typeof message.timestamp === "number")
|
|
324377
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
324378
|
+
else
|
|
324379
|
+
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;
|
|
324380
|
+
return object;
|
|
324381
|
+
};
|
|
324382
|
+
|
|
324383
|
+
/**
|
|
324384
|
+
* Converts this UserProfileCreated to JSON.
|
|
324385
|
+
* @function toJSON
|
|
324386
|
+
* @memberof UserProfileCreated
|
|
324387
|
+
* @instance
|
|
324388
|
+
* @returns {Object.<string,*>} JSON object
|
|
324389
|
+
*/
|
|
324390
|
+
UserProfileCreated.prototype.toJSON = function toJSON() {
|
|
324391
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
324392
|
+
};
|
|
324393
|
+
|
|
324394
|
+
/**
|
|
324395
|
+
* Gets the type url for UserProfileCreated
|
|
324396
|
+
* @function getTypeUrl
|
|
324397
|
+
* @memberof UserProfileCreated
|
|
324398
|
+
* @static
|
|
324399
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
324400
|
+
* @returns {string} The type url
|
|
324401
|
+
*/
|
|
324402
|
+
UserProfileCreated.getTypeUrl = function getTypeUrl(prefix) {
|
|
324403
|
+
if (prefix === undefined)
|
|
324404
|
+
prefix = "type.googleapis.com";
|
|
324405
|
+
return prefix + "/UserProfileCreated";
|
|
324406
|
+
};
|
|
324407
|
+
|
|
324408
|
+
return UserProfileCreated;
|
|
324409
|
+
})();
|
|
324410
|
+
|
|
324411
|
+
$root.UserProfileDeleted = (function() {
|
|
324412
|
+
|
|
324413
|
+
/**
|
|
324414
|
+
* Properties of a UserProfileDeleted.
|
|
324415
|
+
* @typedef {Object} UserProfileDeleted.$Properties
|
|
324416
|
+
* @property {string|null} [hsUserId] UserProfileDeleted hsUserId
|
|
324417
|
+
* @property {string|null} [profileId] UserProfileDeleted profileId
|
|
324418
|
+
* @property {number|Long|null} [timestamp] UserProfileDeleted timestamp
|
|
324419
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
324420
|
+
*/
|
|
324421
|
+
|
|
324422
|
+
/**
|
|
324423
|
+
* Properties of a UserProfileDeleted.
|
|
324424
|
+
* @name IUserProfileDeleted
|
|
324425
|
+
* @interface IUserProfileDeleted
|
|
324426
|
+
* @augments UserProfileDeleted.$Properties
|
|
324427
|
+
* @deprecated Use UserProfileDeleted.$Properties instead.
|
|
324428
|
+
*/
|
|
324429
|
+
|
|
324430
|
+
/**
|
|
324431
|
+
* Shape of a UserProfileDeleted.
|
|
324432
|
+
* @typedef {UserProfileDeleted.$Properties} UserProfileDeleted.$Shape
|
|
324433
|
+
*/
|
|
324434
|
+
|
|
324435
|
+
/**
|
|
324436
|
+
* Constructs a new UserProfileDeleted.
|
|
324437
|
+
* @name UserProfileDeleted
|
|
324438
|
+
* @classdesc Sent when a Headspace Jr. child profile is deleted.
|
|
324439
|
+
*
|
|
324440
|
+
* "Profile" here is the Headspace Jr. child-profile identity concept. It is a different
|
|
324441
|
+
* bounded concept from the pre-existing, apparently-unused UserProfileResponse /
|
|
324442
|
+
* UserProfileManager RPC schema in protos/services/user/user_profile.proto (an Amplitude
|
|
324443
|
+
* profile lookup) — do not conflate the two.
|
|
324444
|
+
*
|
|
324445
|
+
* Consumers: published by hs-user-service; consumed by hs-content-engagement-service to
|
|
324446
|
+
* cascade-delete the profile's passports.
|
|
324447
|
+
*
|
|
324448
|
+
* That cascade delete is eventually consistent, not atomic: this event fires after the
|
|
324449
|
+
* profile row is already gone, and passport cleanup happens asynchronously on the consumer
|
|
324450
|
+
* side afterward. A caller can briefly still see a just-deleted profile's passports until
|
|
324451
|
+
* this event is consumed. This is an accepted tradeoff, not a bug.
|
|
324452
|
+
* @constructor
|
|
324453
|
+
* @param {UserProfileDeleted.$Properties=} [properties] Properties to set
|
|
324454
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
324455
|
+
*/
|
|
324456
|
+
function UserProfileDeleted(properties) {
|
|
324457
|
+
if (properties)
|
|
324458
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
324459
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
324460
|
+
this[keys[i]] = properties[keys[i]];
|
|
324461
|
+
}
|
|
324462
|
+
|
|
324463
|
+
/**
|
|
324464
|
+
* UserProfileDeleted hsUserId.
|
|
324465
|
+
* @member {string} hsUserId
|
|
324466
|
+
* @memberof UserProfileDeleted
|
|
324467
|
+
* @instance
|
|
324468
|
+
*/
|
|
324469
|
+
UserProfileDeleted.prototype.hsUserId = "";
|
|
324470
|
+
|
|
324471
|
+
/**
|
|
324472
|
+
* UserProfileDeleted profileId.
|
|
324473
|
+
* @member {string} profileId
|
|
324474
|
+
* @memberof UserProfileDeleted
|
|
324475
|
+
* @instance
|
|
324476
|
+
*/
|
|
324477
|
+
UserProfileDeleted.prototype.profileId = "";
|
|
324478
|
+
|
|
324479
|
+
/**
|
|
324480
|
+
* UserProfileDeleted timestamp.
|
|
324481
|
+
* @member {number|Long} timestamp
|
|
324482
|
+
* @memberof UserProfileDeleted
|
|
324483
|
+
* @instance
|
|
324484
|
+
*/
|
|
324485
|
+
UserProfileDeleted.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
324486
|
+
|
|
324487
|
+
/**
|
|
324488
|
+
* Creates a new UserProfileDeleted instance using the specified properties.
|
|
324489
|
+
* @function create
|
|
324490
|
+
* @memberof UserProfileDeleted
|
|
324491
|
+
* @static
|
|
324492
|
+
* @param {UserProfileDeleted.$Properties=} [properties] Properties to set
|
|
324493
|
+
* @returns {UserProfileDeleted} UserProfileDeleted instance
|
|
324494
|
+
* @type {{
|
|
324495
|
+
* (properties: UserProfileDeleted.$Shape): UserProfileDeleted & UserProfileDeleted.$Shape;
|
|
324496
|
+
* (properties?: UserProfileDeleted.$Properties): UserProfileDeleted;
|
|
324497
|
+
* }}
|
|
324498
|
+
*/
|
|
324499
|
+
UserProfileDeleted.create = function create(properties) {
|
|
324500
|
+
return new UserProfileDeleted(properties);
|
|
324501
|
+
};
|
|
324502
|
+
|
|
324503
|
+
/**
|
|
324504
|
+
* Encodes the specified UserProfileDeleted message. Does not implicitly {@link UserProfileDeleted.verify|verify} messages.
|
|
324505
|
+
* @function encode
|
|
324506
|
+
* @memberof UserProfileDeleted
|
|
324507
|
+
* @static
|
|
324508
|
+
* @param {UserProfileDeleted.$Properties} message UserProfileDeleted message or plain object to encode
|
|
324509
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
324510
|
+
* @returns {$protobuf.Writer} Writer
|
|
324511
|
+
*/
|
|
324512
|
+
UserProfileDeleted.encode = function encode(message, writer) {
|
|
324513
|
+
if (!writer)
|
|
324514
|
+
writer = $Writer.create();
|
|
324515
|
+
if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
|
|
324516
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
|
|
324517
|
+
if (message.profileId != null && Object.hasOwnProperty.call(message, "profileId"))
|
|
324518
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.profileId);
|
|
324519
|
+
if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
|
|
324520
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
|
|
324521
|
+
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
324522
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
324523
|
+
writer.raw(message.$unknowns[i]);
|
|
324524
|
+
return writer;
|
|
324525
|
+
};
|
|
324526
|
+
|
|
324527
|
+
/**
|
|
324528
|
+
* Encodes the specified UserProfileDeleted message, length delimited. Does not implicitly {@link UserProfileDeleted.verify|verify} messages.
|
|
324529
|
+
* @function encodeDelimited
|
|
324530
|
+
* @memberof UserProfileDeleted
|
|
324531
|
+
* @static
|
|
324532
|
+
* @param {UserProfileDeleted.$Properties} message UserProfileDeleted message or plain object to encode
|
|
324533
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
324534
|
+
* @returns {$protobuf.Writer} Writer
|
|
324535
|
+
*/
|
|
324536
|
+
UserProfileDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
324537
|
+
return this.encode(message, writer).ldelim();
|
|
324538
|
+
};
|
|
324539
|
+
|
|
324540
|
+
/**
|
|
324541
|
+
* Decodes a UserProfileDeleted message from the specified reader or buffer.
|
|
324542
|
+
* @function decode
|
|
324543
|
+
* @memberof UserProfileDeleted
|
|
324544
|
+
* @static
|
|
324545
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
324546
|
+
* @param {number} [length] Message length if known beforehand
|
|
324547
|
+
* @returns {UserProfileDeleted & UserProfileDeleted.$Shape} UserProfileDeleted
|
|
324548
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
324549
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
324550
|
+
*/
|
|
324551
|
+
UserProfileDeleted.decode = function decode(reader, length, _end, _depth, _target) {
|
|
324552
|
+
if (!(reader instanceof $Reader))
|
|
324553
|
+
reader = $Reader.create(reader);
|
|
324554
|
+
if (_depth === undefined)
|
|
324555
|
+
_depth = 0;
|
|
324556
|
+
if (_depth > $Reader.recursionLimit)
|
|
324557
|
+
throw Error("max depth exceeded");
|
|
324558
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.UserProfileDeleted(), value;
|
|
324559
|
+
while (reader.pos < end) {
|
|
324560
|
+
var start = reader.pos;
|
|
324561
|
+
var tag = reader.tag();
|
|
324562
|
+
if (tag === _end) {
|
|
324563
|
+
_end = undefined;
|
|
324564
|
+
break;
|
|
324565
|
+
}
|
|
324566
|
+
var wireType = tag & 7;
|
|
324567
|
+
switch (tag >>>= 3) {
|
|
324568
|
+
case 1: {
|
|
324569
|
+
if (wireType !== 2)
|
|
324570
|
+
break;
|
|
324571
|
+
if ((value = reader.string()).length)
|
|
324572
|
+
message.hsUserId = value;
|
|
324573
|
+
else
|
|
324574
|
+
delete message.hsUserId;
|
|
324575
|
+
continue;
|
|
324576
|
+
}
|
|
324577
|
+
case 2: {
|
|
324578
|
+
if (wireType !== 2)
|
|
324579
|
+
break;
|
|
324580
|
+
if ((value = reader.string()).length)
|
|
324581
|
+
message.profileId = value;
|
|
324582
|
+
else
|
|
324583
|
+
delete message.profileId;
|
|
324584
|
+
continue;
|
|
324585
|
+
}
|
|
324586
|
+
case 3: {
|
|
324587
|
+
if (wireType !== 0)
|
|
324588
|
+
break;
|
|
324589
|
+
if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
|
|
324590
|
+
message.timestamp = value;
|
|
324591
|
+
else
|
|
324592
|
+
delete message.timestamp;
|
|
324593
|
+
continue;
|
|
324594
|
+
}
|
|
324595
|
+
}
|
|
324596
|
+
reader.skipType(wireType, _depth, tag);
|
|
324597
|
+
$util.makeProp(message, "$unknowns", false);
|
|
324598
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
324599
|
+
}
|
|
324600
|
+
if (_end !== undefined)
|
|
324601
|
+
throw Error("missing end group");
|
|
324602
|
+
return message;
|
|
324603
|
+
};
|
|
324604
|
+
|
|
324605
|
+
/**
|
|
324606
|
+
* Decodes a UserProfileDeleted message from the specified reader or buffer, length delimited.
|
|
324607
|
+
* @function decodeDelimited
|
|
324608
|
+
* @memberof UserProfileDeleted
|
|
324609
|
+
* @static
|
|
324610
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
324611
|
+
* @returns {UserProfileDeleted & UserProfileDeleted.$Shape} UserProfileDeleted
|
|
324612
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
324613
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
324614
|
+
*/
|
|
324615
|
+
UserProfileDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
324616
|
+
if (!(reader instanceof $Reader))
|
|
324617
|
+
reader = new $Reader(reader);
|
|
324618
|
+
return this.decode(reader, reader.uint32());
|
|
324619
|
+
};
|
|
324620
|
+
|
|
324621
|
+
/**
|
|
324622
|
+
* Verifies a UserProfileDeleted message.
|
|
324623
|
+
* @function verify
|
|
324624
|
+
* @memberof UserProfileDeleted
|
|
324625
|
+
* @static
|
|
324626
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
324627
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
324628
|
+
*/
|
|
324629
|
+
UserProfileDeleted.verify = function verify(message, _depth) {
|
|
324630
|
+
if (typeof message !== "object" || message === null)
|
|
324631
|
+
return "object expected";
|
|
324632
|
+
if (_depth === undefined)
|
|
324633
|
+
_depth = 0;
|
|
324634
|
+
if (_depth > $util.recursionLimit)
|
|
324635
|
+
return "max depth exceeded";
|
|
324636
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
324637
|
+
if (!$util.isString(message.hsUserId))
|
|
324638
|
+
return "hsUserId: string expected";
|
|
324639
|
+
if (message.profileId != null && message.hasOwnProperty("profileId"))
|
|
324640
|
+
if (!$util.isString(message.profileId))
|
|
324641
|
+
return "profileId: string expected";
|
|
324642
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
324643
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
324644
|
+
return "timestamp: integer|Long expected";
|
|
324645
|
+
return null;
|
|
324646
|
+
};
|
|
324647
|
+
|
|
324648
|
+
/**
|
|
324649
|
+
* Creates a UserProfileDeleted message from a plain object. Also converts values to their respective internal types.
|
|
324650
|
+
* @function fromObject
|
|
324651
|
+
* @memberof UserProfileDeleted
|
|
324652
|
+
* @static
|
|
324653
|
+
* @param {Object.<string,*>} object Plain object
|
|
324654
|
+
* @returns {UserProfileDeleted} UserProfileDeleted
|
|
324655
|
+
*/
|
|
324656
|
+
UserProfileDeleted.fromObject = function fromObject(object, _depth) {
|
|
324657
|
+
if (object instanceof $root.UserProfileDeleted)
|
|
324658
|
+
return object;
|
|
324659
|
+
if (_depth === undefined)
|
|
324660
|
+
_depth = 0;
|
|
324661
|
+
if (_depth > $util.recursionLimit)
|
|
324662
|
+
throw Error("max depth exceeded");
|
|
324663
|
+
var message = new $root.UserProfileDeleted();
|
|
324664
|
+
if (object.hsUserId != null)
|
|
324665
|
+
if (typeof object.hsUserId !== "string" || object.hsUserId.length)
|
|
324666
|
+
message.hsUserId = String(object.hsUserId);
|
|
324667
|
+
if (object.profileId != null)
|
|
324668
|
+
if (typeof object.profileId !== "string" || object.profileId.length)
|
|
324669
|
+
message.profileId = String(object.profileId);
|
|
324670
|
+
if (object.timestamp != null)
|
|
324671
|
+
if (typeof object.timestamp === "object" ? object.timestamp.low || object.timestamp.high : Number(object.timestamp) !== 0)
|
|
324672
|
+
if ($util.Long)
|
|
324673
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
324674
|
+
else if (typeof object.timestamp === "string")
|
|
324675
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
324676
|
+
else if (typeof object.timestamp === "number")
|
|
324677
|
+
message.timestamp = object.timestamp;
|
|
324678
|
+
else if (typeof object.timestamp === "object")
|
|
324679
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
324680
|
+
return message;
|
|
324681
|
+
};
|
|
324682
|
+
|
|
324683
|
+
/**
|
|
324684
|
+
* Creates a plain object from a UserProfileDeleted message. Also converts values to other types if specified.
|
|
324685
|
+
* @function toObject
|
|
324686
|
+
* @memberof UserProfileDeleted
|
|
324687
|
+
* @static
|
|
324688
|
+
* @param {UserProfileDeleted} message UserProfileDeleted
|
|
324689
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
324690
|
+
* @returns {Object.<string,*>} Plain object
|
|
324691
|
+
*/
|
|
324692
|
+
UserProfileDeleted.toObject = function toObject(message, options) {
|
|
324693
|
+
if (!options)
|
|
324694
|
+
options = {};
|
|
324695
|
+
var object = {};
|
|
324696
|
+
if (options.defaults) {
|
|
324697
|
+
object.hsUserId = "";
|
|
324698
|
+
object.profileId = "";
|
|
324699
|
+
if ($util.Long) {
|
|
324700
|
+
var long = new $util.Long(0, 0, true);
|
|
324701
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
324702
|
+
} else
|
|
324703
|
+
object.timestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
324704
|
+
}
|
|
324705
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
324706
|
+
object.hsUserId = message.hsUserId;
|
|
324707
|
+
if (message.profileId != null && message.hasOwnProperty("profileId"))
|
|
324708
|
+
object.profileId = message.profileId;
|
|
324709
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
324710
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
324711
|
+
object.timestamp = typeof message.timestamp === "number" ? BigInt(message.timestamp) : $util.Long.fromBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0, true).toBigInt();
|
|
324712
|
+
else if (typeof message.timestamp === "number")
|
|
324713
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
324714
|
+
else
|
|
324715
|
+
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;
|
|
324716
|
+
return object;
|
|
324717
|
+
};
|
|
324718
|
+
|
|
324719
|
+
/**
|
|
324720
|
+
* Converts this UserProfileDeleted to JSON.
|
|
324721
|
+
* @function toJSON
|
|
324722
|
+
* @memberof UserProfileDeleted
|
|
324723
|
+
* @instance
|
|
324724
|
+
* @returns {Object.<string,*>} JSON object
|
|
324725
|
+
*/
|
|
324726
|
+
UserProfileDeleted.prototype.toJSON = function toJSON() {
|
|
324727
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
324728
|
+
};
|
|
324729
|
+
|
|
324730
|
+
/**
|
|
324731
|
+
* Gets the type url for UserProfileDeleted
|
|
324732
|
+
* @function getTypeUrl
|
|
324733
|
+
* @memberof UserProfileDeleted
|
|
324734
|
+
* @static
|
|
324735
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
324736
|
+
* @returns {string} The type url
|
|
324737
|
+
*/
|
|
324738
|
+
UserProfileDeleted.getTypeUrl = function getTypeUrl(prefix) {
|
|
324739
|
+
if (prefix === undefined)
|
|
324740
|
+
prefix = "type.googleapis.com";
|
|
324741
|
+
return prefix + "/UserProfileDeleted";
|
|
324742
|
+
};
|
|
324743
|
+
|
|
324744
|
+
return UserProfileDeleted;
|
|
324745
|
+
})();
|
|
324746
|
+
|
|
323930
324747
|
$root.CareCoachingInteractionStarted = (function() {
|
|
323931
324748
|
|
|
323932
324749
|
/**
|
package/package.json
CHANGED