@headspace/protos-events 1.809.0 → 1.810.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 +264 -0
- package/lib/index.js +568 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -89805,6 +89805,143 @@ export namespace PartnerSignalStateAssigned {
|
|
|
89805
89805
|
type $Shape = PartnerSignalStateAssigned.$Properties;
|
|
89806
89806
|
}
|
|
89807
89807
|
|
|
89808
|
+
/**
|
|
89809
|
+
* Properties of a PartnerSignalWindDownScheduled.
|
|
89810
|
+
* @deprecated Use PartnerSignalWindDownScheduled.$Properties instead.
|
|
89811
|
+
*/
|
|
89812
|
+
export interface IPartnerSignalWindDownScheduled extends PartnerSignalWindDownScheduled.$Properties {
|
|
89813
|
+
}
|
|
89814
|
+
|
|
89815
|
+
/**
|
|
89816
|
+
* Published when a user submits a new night of Apple HealthKit sleep data and has enough history
|
|
89817
|
+
* (≥1 prior night with a recorded sleep start time) to compute a personalized wind-down reminder time.
|
|
89818
|
+
* Used to schedule a push notification 30 minutes before the user's average historical bedtime.
|
|
89819
|
+
*/
|
|
89820
|
+
export class PartnerSignalWindDownScheduled {
|
|
89821
|
+
|
|
89822
|
+
/**
|
|
89823
|
+
* Constructs a new PartnerSignalWindDownScheduled.
|
|
89824
|
+
* @param [properties] Properties to set
|
|
89825
|
+
*/
|
|
89826
|
+
constructor(properties?: PartnerSignalWindDownScheduled.$Properties);
|
|
89827
|
+
|
|
89828
|
+
/** Unknown fields preserved while decoding */
|
|
89829
|
+
$unknowns?: Uint8Array[];
|
|
89830
|
+
|
|
89831
|
+
/** Headspace user that should receive the wind-down push notification (e.g. HSUSER_ABC123). */
|
|
89832
|
+
hsUserId: string;
|
|
89833
|
+
|
|
89834
|
+
/**
|
|
89835
|
+
* ISO 8601 UTC datetime at which the wind-down push should be delivered.
|
|
89836
|
+
* Computed as the circular mean of the user's recent sleep start times minus 30 minutes,
|
|
89837
|
+
* projected onto today's date (e.g. "2026-05-30T21:30:00.000Z").
|
|
89838
|
+
* Only set if this time is still in the future at the moment of publishing.
|
|
89839
|
+
*/
|
|
89840
|
+
scheduledTimeIso: string;
|
|
89841
|
+
|
|
89842
|
+
/**
|
|
89843
|
+
* Creates a new PartnerSignalWindDownScheduled instance using the specified properties.
|
|
89844
|
+
* @param [properties] Properties to set
|
|
89845
|
+
* @returns PartnerSignalWindDownScheduled instance
|
|
89846
|
+
*/
|
|
89847
|
+
static create(properties: PartnerSignalWindDownScheduled.$Shape): PartnerSignalWindDownScheduled & PartnerSignalWindDownScheduled.$Shape;
|
|
89848
|
+
static create(properties?: PartnerSignalWindDownScheduled.$Properties): PartnerSignalWindDownScheduled;
|
|
89849
|
+
|
|
89850
|
+
/**
|
|
89851
|
+
* Encodes the specified PartnerSignalWindDownScheduled message. Does not implicitly {@link PartnerSignalWindDownScheduled.verify|verify} messages.
|
|
89852
|
+
* @param message PartnerSignalWindDownScheduled message or plain object to encode
|
|
89853
|
+
* @param [writer] Writer to encode to
|
|
89854
|
+
* @returns Writer
|
|
89855
|
+
*/
|
|
89856
|
+
static encode(message: PartnerSignalWindDownScheduled.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
89857
|
+
|
|
89858
|
+
/**
|
|
89859
|
+
* Encodes the specified PartnerSignalWindDownScheduled message, length delimited. Does not implicitly {@link PartnerSignalWindDownScheduled.verify|verify} messages.
|
|
89860
|
+
* @param message PartnerSignalWindDownScheduled message or plain object to encode
|
|
89861
|
+
* @param [writer] Writer to encode to
|
|
89862
|
+
* @returns Writer
|
|
89863
|
+
*/
|
|
89864
|
+
static encodeDelimited(message: PartnerSignalWindDownScheduled.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
89865
|
+
|
|
89866
|
+
/**
|
|
89867
|
+
* Decodes a PartnerSignalWindDownScheduled message from the specified reader or buffer.
|
|
89868
|
+
* @param reader Reader or buffer to decode from
|
|
89869
|
+
* @param [length] Message length if known beforehand
|
|
89870
|
+
* @returns {PartnerSignalWindDownScheduled & PartnerSignalWindDownScheduled.$Shape} PartnerSignalWindDownScheduled
|
|
89871
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
89872
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
89873
|
+
*/
|
|
89874
|
+
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PartnerSignalWindDownScheduled & PartnerSignalWindDownScheduled.$Shape;
|
|
89875
|
+
|
|
89876
|
+
/**
|
|
89877
|
+
* Decodes a PartnerSignalWindDownScheduled message from the specified reader or buffer, length delimited.
|
|
89878
|
+
* @param reader Reader or buffer to decode from
|
|
89879
|
+
* @returns {PartnerSignalWindDownScheduled & PartnerSignalWindDownScheduled.$Shape} PartnerSignalWindDownScheduled
|
|
89880
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
89881
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
89882
|
+
*/
|
|
89883
|
+
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PartnerSignalWindDownScheduled & PartnerSignalWindDownScheduled.$Shape;
|
|
89884
|
+
|
|
89885
|
+
/**
|
|
89886
|
+
* Verifies a PartnerSignalWindDownScheduled message.
|
|
89887
|
+
* @param message Plain object to verify
|
|
89888
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
89889
|
+
*/
|
|
89890
|
+
static verify(message: { [k: string]: any }): (string|null);
|
|
89891
|
+
|
|
89892
|
+
/**
|
|
89893
|
+
* Creates a PartnerSignalWindDownScheduled message from a plain object. Also converts values to their respective internal types.
|
|
89894
|
+
* @param object Plain object
|
|
89895
|
+
* @returns PartnerSignalWindDownScheduled
|
|
89896
|
+
*/
|
|
89897
|
+
static fromObject(object: { [k: string]: any }): PartnerSignalWindDownScheduled;
|
|
89898
|
+
|
|
89899
|
+
/**
|
|
89900
|
+
* Creates a plain object from a PartnerSignalWindDownScheduled message. Also converts values to other types if specified.
|
|
89901
|
+
* @param message PartnerSignalWindDownScheduled
|
|
89902
|
+
* @param [options] Conversion options
|
|
89903
|
+
* @returns Plain object
|
|
89904
|
+
*/
|
|
89905
|
+
static toObject(message: PartnerSignalWindDownScheduled, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
89906
|
+
|
|
89907
|
+
/**
|
|
89908
|
+
* Converts this PartnerSignalWindDownScheduled to JSON.
|
|
89909
|
+
* @returns JSON object
|
|
89910
|
+
*/
|
|
89911
|
+
toJSON(): { [k: string]: any };
|
|
89912
|
+
|
|
89913
|
+
/**
|
|
89914
|
+
* Gets the type url for PartnerSignalWindDownScheduled
|
|
89915
|
+
* @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
89916
|
+
* @returns The type url
|
|
89917
|
+
*/
|
|
89918
|
+
static getTypeUrl(prefix?: string): string;
|
|
89919
|
+
}
|
|
89920
|
+
|
|
89921
|
+
export namespace PartnerSignalWindDownScheduled {
|
|
89922
|
+
|
|
89923
|
+
/** Properties of a PartnerSignalWindDownScheduled. */
|
|
89924
|
+
interface $Properties {
|
|
89925
|
+
|
|
89926
|
+
/** Headspace user that should receive the wind-down push notification (e.g. HSUSER_ABC123). */
|
|
89927
|
+
hsUserId?: (string|null);
|
|
89928
|
+
|
|
89929
|
+
/**
|
|
89930
|
+
* ISO 8601 UTC datetime at which the wind-down push should be delivered.
|
|
89931
|
+
* Computed as the circular mean of the user's recent sleep start times minus 30 minutes,
|
|
89932
|
+
* projected onto today's date (e.g. "2026-05-30T21:30:00.000Z").
|
|
89933
|
+
* Only set if this time is still in the future at the moment of publishing.
|
|
89934
|
+
*/
|
|
89935
|
+
scheduledTimeIso?: (string|null);
|
|
89936
|
+
|
|
89937
|
+
/** Unknown fields preserved while decoding */
|
|
89938
|
+
$unknowns?: Uint8Array[];
|
|
89939
|
+
}
|
|
89940
|
+
|
|
89941
|
+
/** Shape of a PartnerSignalWindDownScheduled. */
|
|
89942
|
+
type $Shape = PartnerSignalWindDownScheduled.$Properties;
|
|
89943
|
+
}
|
|
89944
|
+
|
|
89808
89945
|
/**
|
|
89809
89946
|
* Properties of a PHQAssessmentAssigned.
|
|
89810
89947
|
* @deprecated Use PHQAssessmentAssigned.$Properties instead.
|
|
@@ -103372,6 +103509,133 @@ export namespace UserAppleWatchNotificationSettingUpdated {
|
|
|
103372
103509
|
type $Shape = UserAppleWatchNotificationSettingUpdated.$Properties;
|
|
103373
103510
|
}
|
|
103374
103511
|
|
|
103512
|
+
/**
|
|
103513
|
+
* Properties of a UserAppleHealthSleepNudgeSettingUpdated.
|
|
103514
|
+
* @deprecated Use UserAppleHealthSleepNudgeSettingUpdated.$Properties instead.
|
|
103515
|
+
*/
|
|
103516
|
+
export interface IUserAppleHealthSleepNudgeSettingUpdated extends UserAppleHealthSleepNudgeSettingUpdated.$Properties {
|
|
103517
|
+
}
|
|
103518
|
+
|
|
103519
|
+
/**
|
|
103520
|
+
* Sent when a user updates their Apple Health sleep nudge notification setting.
|
|
103521
|
+
* Responsible team: Consumer Growth
|
|
103522
|
+
*
|
|
103523
|
+
*/
|
|
103524
|
+
export class UserAppleHealthSleepNudgeSettingUpdated {
|
|
103525
|
+
|
|
103526
|
+
/**
|
|
103527
|
+
* Constructs a new UserAppleHealthSleepNudgeSettingUpdated.
|
|
103528
|
+
* @param [properties] Properties to set
|
|
103529
|
+
*/
|
|
103530
|
+
constructor(properties?: UserAppleHealthSleepNudgeSettingUpdated.$Properties);
|
|
103531
|
+
|
|
103532
|
+
/** Unknown fields preserved while decoding */
|
|
103533
|
+
$unknowns?: Uint8Array[];
|
|
103534
|
+
|
|
103535
|
+
/** UserAppleHealthSleepNudgeSettingUpdated hsUserId. */
|
|
103536
|
+
hsUserId: string;
|
|
103537
|
+
|
|
103538
|
+
/** UserAppleHealthSleepNudgeSettingUpdated isEnabled. */
|
|
103539
|
+
isEnabled: boolean;
|
|
103540
|
+
|
|
103541
|
+
/**
|
|
103542
|
+
* Creates a new UserAppleHealthSleepNudgeSettingUpdated instance using the specified properties.
|
|
103543
|
+
* @param [properties] Properties to set
|
|
103544
|
+
* @returns UserAppleHealthSleepNudgeSettingUpdated instance
|
|
103545
|
+
*/
|
|
103546
|
+
static create(properties: UserAppleHealthSleepNudgeSettingUpdated.$Shape): UserAppleHealthSleepNudgeSettingUpdated & UserAppleHealthSleepNudgeSettingUpdated.$Shape;
|
|
103547
|
+
static create(properties?: UserAppleHealthSleepNudgeSettingUpdated.$Properties): UserAppleHealthSleepNudgeSettingUpdated;
|
|
103548
|
+
|
|
103549
|
+
/**
|
|
103550
|
+
* Encodes the specified UserAppleHealthSleepNudgeSettingUpdated message. Does not implicitly {@link UserAppleHealthSleepNudgeSettingUpdated.verify|verify} messages.
|
|
103551
|
+
* @param message UserAppleHealthSleepNudgeSettingUpdated message or plain object to encode
|
|
103552
|
+
* @param [writer] Writer to encode to
|
|
103553
|
+
* @returns Writer
|
|
103554
|
+
*/
|
|
103555
|
+
static encode(message: UserAppleHealthSleepNudgeSettingUpdated.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
103556
|
+
|
|
103557
|
+
/**
|
|
103558
|
+
* Encodes the specified UserAppleHealthSleepNudgeSettingUpdated message, length delimited. Does not implicitly {@link UserAppleHealthSleepNudgeSettingUpdated.verify|verify} messages.
|
|
103559
|
+
* @param message UserAppleHealthSleepNudgeSettingUpdated message or plain object to encode
|
|
103560
|
+
* @param [writer] Writer to encode to
|
|
103561
|
+
* @returns Writer
|
|
103562
|
+
*/
|
|
103563
|
+
static encodeDelimited(message: UserAppleHealthSleepNudgeSettingUpdated.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
103564
|
+
|
|
103565
|
+
/**
|
|
103566
|
+
* Decodes a UserAppleHealthSleepNudgeSettingUpdated message from the specified reader or buffer.
|
|
103567
|
+
* @param reader Reader or buffer to decode from
|
|
103568
|
+
* @param [length] Message length if known beforehand
|
|
103569
|
+
* @returns {UserAppleHealthSleepNudgeSettingUpdated & UserAppleHealthSleepNudgeSettingUpdated.$Shape} UserAppleHealthSleepNudgeSettingUpdated
|
|
103570
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
103571
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
103572
|
+
*/
|
|
103573
|
+
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserAppleHealthSleepNudgeSettingUpdated & UserAppleHealthSleepNudgeSettingUpdated.$Shape;
|
|
103574
|
+
|
|
103575
|
+
/**
|
|
103576
|
+
* Decodes a UserAppleHealthSleepNudgeSettingUpdated message from the specified reader or buffer, length delimited.
|
|
103577
|
+
* @param reader Reader or buffer to decode from
|
|
103578
|
+
* @returns {UserAppleHealthSleepNudgeSettingUpdated & UserAppleHealthSleepNudgeSettingUpdated.$Shape} UserAppleHealthSleepNudgeSettingUpdated
|
|
103579
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
103580
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
103581
|
+
*/
|
|
103582
|
+
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserAppleHealthSleepNudgeSettingUpdated & UserAppleHealthSleepNudgeSettingUpdated.$Shape;
|
|
103583
|
+
|
|
103584
|
+
/**
|
|
103585
|
+
* Verifies a UserAppleHealthSleepNudgeSettingUpdated message.
|
|
103586
|
+
* @param message Plain object to verify
|
|
103587
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
103588
|
+
*/
|
|
103589
|
+
static verify(message: { [k: string]: any }): (string|null);
|
|
103590
|
+
|
|
103591
|
+
/**
|
|
103592
|
+
* Creates a UserAppleHealthSleepNudgeSettingUpdated message from a plain object. Also converts values to their respective internal types.
|
|
103593
|
+
* @param object Plain object
|
|
103594
|
+
* @returns UserAppleHealthSleepNudgeSettingUpdated
|
|
103595
|
+
*/
|
|
103596
|
+
static fromObject(object: { [k: string]: any }): UserAppleHealthSleepNudgeSettingUpdated;
|
|
103597
|
+
|
|
103598
|
+
/**
|
|
103599
|
+
* Creates a plain object from a UserAppleHealthSleepNudgeSettingUpdated message. Also converts values to other types if specified.
|
|
103600
|
+
* @param message UserAppleHealthSleepNudgeSettingUpdated
|
|
103601
|
+
* @param [options] Conversion options
|
|
103602
|
+
* @returns Plain object
|
|
103603
|
+
*/
|
|
103604
|
+
static toObject(message: UserAppleHealthSleepNudgeSettingUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
103605
|
+
|
|
103606
|
+
/**
|
|
103607
|
+
* Converts this UserAppleHealthSleepNudgeSettingUpdated to JSON.
|
|
103608
|
+
* @returns JSON object
|
|
103609
|
+
*/
|
|
103610
|
+
toJSON(): { [k: string]: any };
|
|
103611
|
+
|
|
103612
|
+
/**
|
|
103613
|
+
* Gets the type url for UserAppleHealthSleepNudgeSettingUpdated
|
|
103614
|
+
* @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
103615
|
+
* @returns The type url
|
|
103616
|
+
*/
|
|
103617
|
+
static getTypeUrl(prefix?: string): string;
|
|
103618
|
+
}
|
|
103619
|
+
|
|
103620
|
+
export namespace UserAppleHealthSleepNudgeSettingUpdated {
|
|
103621
|
+
|
|
103622
|
+
/** Properties of a UserAppleHealthSleepNudgeSettingUpdated. */
|
|
103623
|
+
interface $Properties {
|
|
103624
|
+
|
|
103625
|
+
/** UserAppleHealthSleepNudgeSettingUpdated hsUserId */
|
|
103626
|
+
hsUserId?: (string|null);
|
|
103627
|
+
|
|
103628
|
+
/** UserAppleHealthSleepNudgeSettingUpdated isEnabled */
|
|
103629
|
+
isEnabled?: (boolean|null);
|
|
103630
|
+
|
|
103631
|
+
/** Unknown fields preserved while decoding */
|
|
103632
|
+
$unknowns?: Uint8Array[];
|
|
103633
|
+
}
|
|
103634
|
+
|
|
103635
|
+
/** Shape of a UserAppleHealthSleepNudgeSettingUpdated. */
|
|
103636
|
+
type $Shape = UserAppleHealthSleepNudgeSettingUpdated.$Properties;
|
|
103637
|
+
}
|
|
103638
|
+
|
|
103375
103639
|
/**
|
|
103376
103640
|
* Properties of a UserOuraNotificationSettingUpdated.
|
|
103377
103641
|
* @deprecated Use UserOuraNotificationSettingUpdated.$Properties instead.
|
package/lib/index.js
CHANGED
|
@@ -263439,6 +263439,292 @@ $root.PartnerSignalStateAssigned = (function() {
|
|
|
263439
263439
|
return PartnerSignalStateAssigned;
|
|
263440
263440
|
})();
|
|
263441
263441
|
|
|
263442
|
+
$root.PartnerSignalWindDownScheduled = (function() {
|
|
263443
|
+
|
|
263444
|
+
/**
|
|
263445
|
+
* Properties of a PartnerSignalWindDownScheduled.
|
|
263446
|
+
* @typedef {Object} PartnerSignalWindDownScheduled.$Properties
|
|
263447
|
+
* @property {string|null} [hsUserId] Headspace user that should receive the wind-down push notification (e.g. HSUSER_ABC123).
|
|
263448
|
+
* @property {string|null} [scheduledTimeIso] ISO 8601 UTC datetime at which the wind-down push should be delivered.
|
|
263449
|
+
* Computed as the circular mean of the user's recent sleep start times minus 30 minutes,
|
|
263450
|
+
* projected onto today's date (e.g. "2026-05-30T21:30:00.000Z").
|
|
263451
|
+
* Only set if this time is still in the future at the moment of publishing.
|
|
263452
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
263453
|
+
*/
|
|
263454
|
+
|
|
263455
|
+
/**
|
|
263456
|
+
* Properties of a PartnerSignalWindDownScheduled.
|
|
263457
|
+
* @name IPartnerSignalWindDownScheduled
|
|
263458
|
+
* @interface IPartnerSignalWindDownScheduled
|
|
263459
|
+
* @augments PartnerSignalWindDownScheduled.$Properties
|
|
263460
|
+
* @deprecated Use PartnerSignalWindDownScheduled.$Properties instead.
|
|
263461
|
+
*/
|
|
263462
|
+
|
|
263463
|
+
/**
|
|
263464
|
+
* Shape of a PartnerSignalWindDownScheduled.
|
|
263465
|
+
* @typedef {PartnerSignalWindDownScheduled.$Properties} PartnerSignalWindDownScheduled.$Shape
|
|
263466
|
+
*/
|
|
263467
|
+
|
|
263468
|
+
/**
|
|
263469
|
+
* Constructs a new PartnerSignalWindDownScheduled.
|
|
263470
|
+
* @name PartnerSignalWindDownScheduled
|
|
263471
|
+
* @classdesc Published when a user submits a new night of Apple HealthKit sleep data and has enough history
|
|
263472
|
+
* (≥1 prior night with a recorded sleep start time) to compute a personalized wind-down reminder time.
|
|
263473
|
+
* Used to schedule a push notification 30 minutes before the user's average historical bedtime.
|
|
263474
|
+
* @constructor
|
|
263475
|
+
* @param {PartnerSignalWindDownScheduled.$Properties=} [properties] Properties to set
|
|
263476
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
263477
|
+
*/
|
|
263478
|
+
function PartnerSignalWindDownScheduled(properties) {
|
|
263479
|
+
if (properties)
|
|
263480
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
263481
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
263482
|
+
this[keys[i]] = properties[keys[i]];
|
|
263483
|
+
}
|
|
263484
|
+
|
|
263485
|
+
/**
|
|
263486
|
+
* Headspace user that should receive the wind-down push notification (e.g. HSUSER_ABC123).
|
|
263487
|
+
* @member {string} hsUserId
|
|
263488
|
+
* @memberof PartnerSignalWindDownScheduled
|
|
263489
|
+
* @instance
|
|
263490
|
+
*/
|
|
263491
|
+
PartnerSignalWindDownScheduled.prototype.hsUserId = "";
|
|
263492
|
+
|
|
263493
|
+
/**
|
|
263494
|
+
* ISO 8601 UTC datetime at which the wind-down push should be delivered.
|
|
263495
|
+
* Computed as the circular mean of the user's recent sleep start times minus 30 minutes,
|
|
263496
|
+
* projected onto today's date (e.g. "2026-05-30T21:30:00.000Z").
|
|
263497
|
+
* Only set if this time is still in the future at the moment of publishing.
|
|
263498
|
+
* @member {string} scheduledTimeIso
|
|
263499
|
+
* @memberof PartnerSignalWindDownScheduled
|
|
263500
|
+
* @instance
|
|
263501
|
+
*/
|
|
263502
|
+
PartnerSignalWindDownScheduled.prototype.scheduledTimeIso = "";
|
|
263503
|
+
|
|
263504
|
+
/**
|
|
263505
|
+
* Creates a new PartnerSignalWindDownScheduled instance using the specified properties.
|
|
263506
|
+
* @function create
|
|
263507
|
+
* @memberof PartnerSignalWindDownScheduled
|
|
263508
|
+
* @static
|
|
263509
|
+
* @param {PartnerSignalWindDownScheduled.$Properties=} [properties] Properties to set
|
|
263510
|
+
* @returns {PartnerSignalWindDownScheduled} PartnerSignalWindDownScheduled instance
|
|
263511
|
+
* @type {{
|
|
263512
|
+
* (properties: PartnerSignalWindDownScheduled.$Shape): PartnerSignalWindDownScheduled & PartnerSignalWindDownScheduled.$Shape;
|
|
263513
|
+
* (properties?: PartnerSignalWindDownScheduled.$Properties): PartnerSignalWindDownScheduled;
|
|
263514
|
+
* }}
|
|
263515
|
+
*/
|
|
263516
|
+
PartnerSignalWindDownScheduled.create = function create(properties) {
|
|
263517
|
+
return new PartnerSignalWindDownScheduled(properties);
|
|
263518
|
+
};
|
|
263519
|
+
|
|
263520
|
+
/**
|
|
263521
|
+
* Encodes the specified PartnerSignalWindDownScheduled message. Does not implicitly {@link PartnerSignalWindDownScheduled.verify|verify} messages.
|
|
263522
|
+
* @function encode
|
|
263523
|
+
* @memberof PartnerSignalWindDownScheduled
|
|
263524
|
+
* @static
|
|
263525
|
+
* @param {PartnerSignalWindDownScheduled.$Properties} message PartnerSignalWindDownScheduled message or plain object to encode
|
|
263526
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
263527
|
+
* @returns {$protobuf.Writer} Writer
|
|
263528
|
+
*/
|
|
263529
|
+
PartnerSignalWindDownScheduled.encode = function encode(message, writer) {
|
|
263530
|
+
if (!writer)
|
|
263531
|
+
writer = $Writer.create();
|
|
263532
|
+
if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
|
|
263533
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
|
|
263534
|
+
if (message.scheduledTimeIso != null && Object.hasOwnProperty.call(message, "scheduledTimeIso"))
|
|
263535
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.scheduledTimeIso);
|
|
263536
|
+
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
263537
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
263538
|
+
writer.raw(message.$unknowns[i]);
|
|
263539
|
+
return writer;
|
|
263540
|
+
};
|
|
263541
|
+
|
|
263542
|
+
/**
|
|
263543
|
+
* Encodes the specified PartnerSignalWindDownScheduled message, length delimited. Does not implicitly {@link PartnerSignalWindDownScheduled.verify|verify} messages.
|
|
263544
|
+
* @function encodeDelimited
|
|
263545
|
+
* @memberof PartnerSignalWindDownScheduled
|
|
263546
|
+
* @static
|
|
263547
|
+
* @param {PartnerSignalWindDownScheduled.$Properties} message PartnerSignalWindDownScheduled message or plain object to encode
|
|
263548
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
263549
|
+
* @returns {$protobuf.Writer} Writer
|
|
263550
|
+
*/
|
|
263551
|
+
PartnerSignalWindDownScheduled.encodeDelimited = function encodeDelimited(message, writer) {
|
|
263552
|
+
return this.encode(message, writer).ldelim();
|
|
263553
|
+
};
|
|
263554
|
+
|
|
263555
|
+
/**
|
|
263556
|
+
* Decodes a PartnerSignalWindDownScheduled message from the specified reader or buffer.
|
|
263557
|
+
* @function decode
|
|
263558
|
+
* @memberof PartnerSignalWindDownScheduled
|
|
263559
|
+
* @static
|
|
263560
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
263561
|
+
* @param {number} [length] Message length if known beforehand
|
|
263562
|
+
* @returns {PartnerSignalWindDownScheduled & PartnerSignalWindDownScheduled.$Shape} PartnerSignalWindDownScheduled
|
|
263563
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
263564
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
263565
|
+
*/
|
|
263566
|
+
PartnerSignalWindDownScheduled.decode = function decode(reader, length, _end, _depth, _target) {
|
|
263567
|
+
if (!(reader instanceof $Reader))
|
|
263568
|
+
reader = $Reader.create(reader);
|
|
263569
|
+
if (_depth === undefined)
|
|
263570
|
+
_depth = 0;
|
|
263571
|
+
if (_depth > $Reader.recursionLimit)
|
|
263572
|
+
throw Error("max depth exceeded");
|
|
263573
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.PartnerSignalWindDownScheduled(), value;
|
|
263574
|
+
while (reader.pos < end) {
|
|
263575
|
+
var start = reader.pos;
|
|
263576
|
+
var tag = reader.tag();
|
|
263577
|
+
if (tag === _end) {
|
|
263578
|
+
_end = undefined;
|
|
263579
|
+
break;
|
|
263580
|
+
}
|
|
263581
|
+
var wireType = tag & 7;
|
|
263582
|
+
switch (tag >>>= 3) {
|
|
263583
|
+
case 1: {
|
|
263584
|
+
if (wireType !== 2)
|
|
263585
|
+
break;
|
|
263586
|
+
if ((value = reader.string()).length)
|
|
263587
|
+
message.hsUserId = value;
|
|
263588
|
+
else
|
|
263589
|
+
delete message.hsUserId;
|
|
263590
|
+
continue;
|
|
263591
|
+
}
|
|
263592
|
+
case 2: {
|
|
263593
|
+
if (wireType !== 2)
|
|
263594
|
+
break;
|
|
263595
|
+
if ((value = reader.string()).length)
|
|
263596
|
+
message.scheduledTimeIso = value;
|
|
263597
|
+
else
|
|
263598
|
+
delete message.scheduledTimeIso;
|
|
263599
|
+
continue;
|
|
263600
|
+
}
|
|
263601
|
+
}
|
|
263602
|
+
reader.skipType(wireType, _depth, tag);
|
|
263603
|
+
$util.makeProp(message, "$unknowns", false);
|
|
263604
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
263605
|
+
}
|
|
263606
|
+
if (_end !== undefined)
|
|
263607
|
+
throw Error("missing end group");
|
|
263608
|
+
return message;
|
|
263609
|
+
};
|
|
263610
|
+
|
|
263611
|
+
/**
|
|
263612
|
+
* Decodes a PartnerSignalWindDownScheduled message from the specified reader or buffer, length delimited.
|
|
263613
|
+
* @function decodeDelimited
|
|
263614
|
+
* @memberof PartnerSignalWindDownScheduled
|
|
263615
|
+
* @static
|
|
263616
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
263617
|
+
* @returns {PartnerSignalWindDownScheduled & PartnerSignalWindDownScheduled.$Shape} PartnerSignalWindDownScheduled
|
|
263618
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
263619
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
263620
|
+
*/
|
|
263621
|
+
PartnerSignalWindDownScheduled.decodeDelimited = function decodeDelimited(reader) {
|
|
263622
|
+
if (!(reader instanceof $Reader))
|
|
263623
|
+
reader = new $Reader(reader);
|
|
263624
|
+
return this.decode(reader, reader.uint32());
|
|
263625
|
+
};
|
|
263626
|
+
|
|
263627
|
+
/**
|
|
263628
|
+
* Verifies a PartnerSignalWindDownScheduled message.
|
|
263629
|
+
* @function verify
|
|
263630
|
+
* @memberof PartnerSignalWindDownScheduled
|
|
263631
|
+
* @static
|
|
263632
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
263633
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
263634
|
+
*/
|
|
263635
|
+
PartnerSignalWindDownScheduled.verify = function verify(message, _depth) {
|
|
263636
|
+
if (typeof message !== "object" || message === null)
|
|
263637
|
+
return "object expected";
|
|
263638
|
+
if (_depth === undefined)
|
|
263639
|
+
_depth = 0;
|
|
263640
|
+
if (_depth > $util.recursionLimit)
|
|
263641
|
+
return "max depth exceeded";
|
|
263642
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
263643
|
+
if (!$util.isString(message.hsUserId))
|
|
263644
|
+
return "hsUserId: string expected";
|
|
263645
|
+
if (message.scheduledTimeIso != null && message.hasOwnProperty("scheduledTimeIso"))
|
|
263646
|
+
if (!$util.isString(message.scheduledTimeIso))
|
|
263647
|
+
return "scheduledTimeIso: string expected";
|
|
263648
|
+
return null;
|
|
263649
|
+
};
|
|
263650
|
+
|
|
263651
|
+
/**
|
|
263652
|
+
* Creates a PartnerSignalWindDownScheduled message from a plain object. Also converts values to their respective internal types.
|
|
263653
|
+
* @function fromObject
|
|
263654
|
+
* @memberof PartnerSignalWindDownScheduled
|
|
263655
|
+
* @static
|
|
263656
|
+
* @param {Object.<string,*>} object Plain object
|
|
263657
|
+
* @returns {PartnerSignalWindDownScheduled} PartnerSignalWindDownScheduled
|
|
263658
|
+
*/
|
|
263659
|
+
PartnerSignalWindDownScheduled.fromObject = function fromObject(object, _depth) {
|
|
263660
|
+
if (object instanceof $root.PartnerSignalWindDownScheduled)
|
|
263661
|
+
return object;
|
|
263662
|
+
if (_depth === undefined)
|
|
263663
|
+
_depth = 0;
|
|
263664
|
+
if (_depth > $util.recursionLimit)
|
|
263665
|
+
throw Error("max depth exceeded");
|
|
263666
|
+
var message = new $root.PartnerSignalWindDownScheduled();
|
|
263667
|
+
if (object.hsUserId != null)
|
|
263668
|
+
if (typeof object.hsUserId !== "string" || object.hsUserId.length)
|
|
263669
|
+
message.hsUserId = String(object.hsUserId);
|
|
263670
|
+
if (object.scheduledTimeIso != null)
|
|
263671
|
+
if (typeof object.scheduledTimeIso !== "string" || object.scheduledTimeIso.length)
|
|
263672
|
+
message.scheduledTimeIso = String(object.scheduledTimeIso);
|
|
263673
|
+
return message;
|
|
263674
|
+
};
|
|
263675
|
+
|
|
263676
|
+
/**
|
|
263677
|
+
* Creates a plain object from a PartnerSignalWindDownScheduled message. Also converts values to other types if specified.
|
|
263678
|
+
* @function toObject
|
|
263679
|
+
* @memberof PartnerSignalWindDownScheduled
|
|
263680
|
+
* @static
|
|
263681
|
+
* @param {PartnerSignalWindDownScheduled} message PartnerSignalWindDownScheduled
|
|
263682
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
263683
|
+
* @returns {Object.<string,*>} Plain object
|
|
263684
|
+
*/
|
|
263685
|
+
PartnerSignalWindDownScheduled.toObject = function toObject(message, options) {
|
|
263686
|
+
if (!options)
|
|
263687
|
+
options = {};
|
|
263688
|
+
var object = {};
|
|
263689
|
+
if (options.defaults) {
|
|
263690
|
+
object.hsUserId = "";
|
|
263691
|
+
object.scheduledTimeIso = "";
|
|
263692
|
+
}
|
|
263693
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
263694
|
+
object.hsUserId = message.hsUserId;
|
|
263695
|
+
if (message.scheduledTimeIso != null && message.hasOwnProperty("scheduledTimeIso"))
|
|
263696
|
+
object.scheduledTimeIso = message.scheduledTimeIso;
|
|
263697
|
+
return object;
|
|
263698
|
+
};
|
|
263699
|
+
|
|
263700
|
+
/**
|
|
263701
|
+
* Converts this PartnerSignalWindDownScheduled to JSON.
|
|
263702
|
+
* @function toJSON
|
|
263703
|
+
* @memberof PartnerSignalWindDownScheduled
|
|
263704
|
+
* @instance
|
|
263705
|
+
* @returns {Object.<string,*>} JSON object
|
|
263706
|
+
*/
|
|
263707
|
+
PartnerSignalWindDownScheduled.prototype.toJSON = function toJSON() {
|
|
263708
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
263709
|
+
};
|
|
263710
|
+
|
|
263711
|
+
/**
|
|
263712
|
+
* Gets the type url for PartnerSignalWindDownScheduled
|
|
263713
|
+
* @function getTypeUrl
|
|
263714
|
+
* @memberof PartnerSignalWindDownScheduled
|
|
263715
|
+
* @static
|
|
263716
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
263717
|
+
* @returns {string} The type url
|
|
263718
|
+
*/
|
|
263719
|
+
PartnerSignalWindDownScheduled.getTypeUrl = function getTypeUrl(prefix) {
|
|
263720
|
+
if (prefix === undefined)
|
|
263721
|
+
prefix = "type.googleapis.com";
|
|
263722
|
+
return prefix + "/PartnerSignalWindDownScheduled";
|
|
263723
|
+
};
|
|
263724
|
+
|
|
263725
|
+
return PartnerSignalWindDownScheduled;
|
|
263726
|
+
})();
|
|
263727
|
+
|
|
263442
263728
|
$root.PHQAssessmentAssigned = (function() {
|
|
263443
263729
|
|
|
263444
263730
|
/**
|
|
@@ -303142,6 +303428,288 @@ $root.UserAppleWatchNotificationSettingUpdated = (function() {
|
|
|
303142
303428
|
return UserAppleWatchNotificationSettingUpdated;
|
|
303143
303429
|
})();
|
|
303144
303430
|
|
|
303431
|
+
$root.UserAppleHealthSleepNudgeSettingUpdated = (function() {
|
|
303432
|
+
|
|
303433
|
+
/**
|
|
303434
|
+
* Properties of a UserAppleHealthSleepNudgeSettingUpdated.
|
|
303435
|
+
* @typedef {Object} UserAppleHealthSleepNudgeSettingUpdated.$Properties
|
|
303436
|
+
* @property {string|null} [hsUserId] UserAppleHealthSleepNudgeSettingUpdated hsUserId
|
|
303437
|
+
* @property {boolean|null} [isEnabled] UserAppleHealthSleepNudgeSettingUpdated isEnabled
|
|
303438
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
303439
|
+
*/
|
|
303440
|
+
|
|
303441
|
+
/**
|
|
303442
|
+
* Properties of a UserAppleHealthSleepNudgeSettingUpdated.
|
|
303443
|
+
* @name IUserAppleHealthSleepNudgeSettingUpdated
|
|
303444
|
+
* @interface IUserAppleHealthSleepNudgeSettingUpdated
|
|
303445
|
+
* @augments UserAppleHealthSleepNudgeSettingUpdated.$Properties
|
|
303446
|
+
* @deprecated Use UserAppleHealthSleepNudgeSettingUpdated.$Properties instead.
|
|
303447
|
+
*/
|
|
303448
|
+
|
|
303449
|
+
/**
|
|
303450
|
+
* Shape of a UserAppleHealthSleepNudgeSettingUpdated.
|
|
303451
|
+
* @typedef {UserAppleHealthSleepNudgeSettingUpdated.$Properties} UserAppleHealthSleepNudgeSettingUpdated.$Shape
|
|
303452
|
+
*/
|
|
303453
|
+
|
|
303454
|
+
/**
|
|
303455
|
+
* Constructs a new UserAppleHealthSleepNudgeSettingUpdated.
|
|
303456
|
+
* @name UserAppleHealthSleepNudgeSettingUpdated
|
|
303457
|
+
* @classdesc Sent when a user updates their Apple Health sleep nudge notification setting.
|
|
303458
|
+
* Responsible team: Consumer Growth
|
|
303459
|
+
*
|
|
303460
|
+
* @example User opts in to Apple Health sleep nudge push notifications.
|
|
303461
|
+
* Apple Health sleep nudge ticket: https://headspace.atlassian.net/browse/GROW-853
|
|
303462
|
+
* @constructor
|
|
303463
|
+
* @param {UserAppleHealthSleepNudgeSettingUpdated.$Properties=} [properties] Properties to set
|
|
303464
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
303465
|
+
*/
|
|
303466
|
+
function UserAppleHealthSleepNudgeSettingUpdated(properties) {
|
|
303467
|
+
if (properties)
|
|
303468
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
303469
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
303470
|
+
this[keys[i]] = properties[keys[i]];
|
|
303471
|
+
}
|
|
303472
|
+
|
|
303473
|
+
/**
|
|
303474
|
+
* UserAppleHealthSleepNudgeSettingUpdated hsUserId.
|
|
303475
|
+
* @member {string} hsUserId
|
|
303476
|
+
* @memberof UserAppleHealthSleepNudgeSettingUpdated
|
|
303477
|
+
* @instance
|
|
303478
|
+
*/
|
|
303479
|
+
UserAppleHealthSleepNudgeSettingUpdated.prototype.hsUserId = "";
|
|
303480
|
+
|
|
303481
|
+
/**
|
|
303482
|
+
* UserAppleHealthSleepNudgeSettingUpdated isEnabled.
|
|
303483
|
+
* @member {boolean} isEnabled
|
|
303484
|
+
* @memberof UserAppleHealthSleepNudgeSettingUpdated
|
|
303485
|
+
* @instance
|
|
303486
|
+
*/
|
|
303487
|
+
UserAppleHealthSleepNudgeSettingUpdated.prototype.isEnabled = false;
|
|
303488
|
+
|
|
303489
|
+
/**
|
|
303490
|
+
* Creates a new UserAppleHealthSleepNudgeSettingUpdated instance using the specified properties.
|
|
303491
|
+
* @function create
|
|
303492
|
+
* @memberof UserAppleHealthSleepNudgeSettingUpdated
|
|
303493
|
+
* @static
|
|
303494
|
+
* @param {UserAppleHealthSleepNudgeSettingUpdated.$Properties=} [properties] Properties to set
|
|
303495
|
+
* @returns {UserAppleHealthSleepNudgeSettingUpdated} UserAppleHealthSleepNudgeSettingUpdated instance
|
|
303496
|
+
* @type {{
|
|
303497
|
+
* (properties: UserAppleHealthSleepNudgeSettingUpdated.$Shape): UserAppleHealthSleepNudgeSettingUpdated & UserAppleHealthSleepNudgeSettingUpdated.$Shape;
|
|
303498
|
+
* (properties?: UserAppleHealthSleepNudgeSettingUpdated.$Properties): UserAppleHealthSleepNudgeSettingUpdated;
|
|
303499
|
+
* }}
|
|
303500
|
+
*/
|
|
303501
|
+
UserAppleHealthSleepNudgeSettingUpdated.create = function create(properties) {
|
|
303502
|
+
return new UserAppleHealthSleepNudgeSettingUpdated(properties);
|
|
303503
|
+
};
|
|
303504
|
+
|
|
303505
|
+
/**
|
|
303506
|
+
* Encodes the specified UserAppleHealthSleepNudgeSettingUpdated message. Does not implicitly {@link UserAppleHealthSleepNudgeSettingUpdated.verify|verify} messages.
|
|
303507
|
+
* @function encode
|
|
303508
|
+
* @memberof UserAppleHealthSleepNudgeSettingUpdated
|
|
303509
|
+
* @static
|
|
303510
|
+
* @param {UserAppleHealthSleepNudgeSettingUpdated.$Properties} message UserAppleHealthSleepNudgeSettingUpdated message or plain object to encode
|
|
303511
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
303512
|
+
* @returns {$protobuf.Writer} Writer
|
|
303513
|
+
*/
|
|
303514
|
+
UserAppleHealthSleepNudgeSettingUpdated.encode = function encode(message, writer) {
|
|
303515
|
+
if (!writer)
|
|
303516
|
+
writer = $Writer.create();
|
|
303517
|
+
if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
|
|
303518
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
|
|
303519
|
+
if (message.isEnabled != null && Object.hasOwnProperty.call(message, "isEnabled"))
|
|
303520
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isEnabled);
|
|
303521
|
+
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
303522
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
303523
|
+
writer.raw(message.$unknowns[i]);
|
|
303524
|
+
return writer;
|
|
303525
|
+
};
|
|
303526
|
+
|
|
303527
|
+
/**
|
|
303528
|
+
* Encodes the specified UserAppleHealthSleepNudgeSettingUpdated message, length delimited. Does not implicitly {@link UserAppleHealthSleepNudgeSettingUpdated.verify|verify} messages.
|
|
303529
|
+
* @function encodeDelimited
|
|
303530
|
+
* @memberof UserAppleHealthSleepNudgeSettingUpdated
|
|
303531
|
+
* @static
|
|
303532
|
+
* @param {UserAppleHealthSleepNudgeSettingUpdated.$Properties} message UserAppleHealthSleepNudgeSettingUpdated message or plain object to encode
|
|
303533
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
303534
|
+
* @returns {$protobuf.Writer} Writer
|
|
303535
|
+
*/
|
|
303536
|
+
UserAppleHealthSleepNudgeSettingUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
303537
|
+
return this.encode(message, writer).ldelim();
|
|
303538
|
+
};
|
|
303539
|
+
|
|
303540
|
+
/**
|
|
303541
|
+
* Decodes a UserAppleHealthSleepNudgeSettingUpdated message from the specified reader or buffer.
|
|
303542
|
+
* @function decode
|
|
303543
|
+
* @memberof UserAppleHealthSleepNudgeSettingUpdated
|
|
303544
|
+
* @static
|
|
303545
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
303546
|
+
* @param {number} [length] Message length if known beforehand
|
|
303547
|
+
* @returns {UserAppleHealthSleepNudgeSettingUpdated & UserAppleHealthSleepNudgeSettingUpdated.$Shape} UserAppleHealthSleepNudgeSettingUpdated
|
|
303548
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
303549
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
303550
|
+
*/
|
|
303551
|
+
UserAppleHealthSleepNudgeSettingUpdated.decode = function decode(reader, length, _end, _depth, _target) {
|
|
303552
|
+
if (!(reader instanceof $Reader))
|
|
303553
|
+
reader = $Reader.create(reader);
|
|
303554
|
+
if (_depth === undefined)
|
|
303555
|
+
_depth = 0;
|
|
303556
|
+
if (_depth > $Reader.recursionLimit)
|
|
303557
|
+
throw Error("max depth exceeded");
|
|
303558
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.UserAppleHealthSleepNudgeSettingUpdated(), value;
|
|
303559
|
+
while (reader.pos < end) {
|
|
303560
|
+
var start = reader.pos;
|
|
303561
|
+
var tag = reader.tag();
|
|
303562
|
+
if (tag === _end) {
|
|
303563
|
+
_end = undefined;
|
|
303564
|
+
break;
|
|
303565
|
+
}
|
|
303566
|
+
var wireType = tag & 7;
|
|
303567
|
+
switch (tag >>>= 3) {
|
|
303568
|
+
case 1: {
|
|
303569
|
+
if (wireType !== 2)
|
|
303570
|
+
break;
|
|
303571
|
+
if ((value = reader.string()).length)
|
|
303572
|
+
message.hsUserId = value;
|
|
303573
|
+
else
|
|
303574
|
+
delete message.hsUserId;
|
|
303575
|
+
continue;
|
|
303576
|
+
}
|
|
303577
|
+
case 2: {
|
|
303578
|
+
if (wireType !== 0)
|
|
303579
|
+
break;
|
|
303580
|
+
if (value = reader.bool())
|
|
303581
|
+
message.isEnabled = value;
|
|
303582
|
+
else
|
|
303583
|
+
delete message.isEnabled;
|
|
303584
|
+
continue;
|
|
303585
|
+
}
|
|
303586
|
+
}
|
|
303587
|
+
reader.skipType(wireType, _depth, tag);
|
|
303588
|
+
$util.makeProp(message, "$unknowns", false);
|
|
303589
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
303590
|
+
}
|
|
303591
|
+
if (_end !== undefined)
|
|
303592
|
+
throw Error("missing end group");
|
|
303593
|
+
return message;
|
|
303594
|
+
};
|
|
303595
|
+
|
|
303596
|
+
/**
|
|
303597
|
+
* Decodes a UserAppleHealthSleepNudgeSettingUpdated message from the specified reader or buffer, length delimited.
|
|
303598
|
+
* @function decodeDelimited
|
|
303599
|
+
* @memberof UserAppleHealthSleepNudgeSettingUpdated
|
|
303600
|
+
* @static
|
|
303601
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
303602
|
+
* @returns {UserAppleHealthSleepNudgeSettingUpdated & UserAppleHealthSleepNudgeSettingUpdated.$Shape} UserAppleHealthSleepNudgeSettingUpdated
|
|
303603
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
303604
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
303605
|
+
*/
|
|
303606
|
+
UserAppleHealthSleepNudgeSettingUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
303607
|
+
if (!(reader instanceof $Reader))
|
|
303608
|
+
reader = new $Reader(reader);
|
|
303609
|
+
return this.decode(reader, reader.uint32());
|
|
303610
|
+
};
|
|
303611
|
+
|
|
303612
|
+
/**
|
|
303613
|
+
* Verifies a UserAppleHealthSleepNudgeSettingUpdated message.
|
|
303614
|
+
* @function verify
|
|
303615
|
+
* @memberof UserAppleHealthSleepNudgeSettingUpdated
|
|
303616
|
+
* @static
|
|
303617
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
303618
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
303619
|
+
*/
|
|
303620
|
+
UserAppleHealthSleepNudgeSettingUpdated.verify = function verify(message, _depth) {
|
|
303621
|
+
if (typeof message !== "object" || message === null)
|
|
303622
|
+
return "object expected";
|
|
303623
|
+
if (_depth === undefined)
|
|
303624
|
+
_depth = 0;
|
|
303625
|
+
if (_depth > $util.recursionLimit)
|
|
303626
|
+
return "max depth exceeded";
|
|
303627
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
303628
|
+
if (!$util.isString(message.hsUserId))
|
|
303629
|
+
return "hsUserId: string expected";
|
|
303630
|
+
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
303631
|
+
if (typeof message.isEnabled !== "boolean")
|
|
303632
|
+
return "isEnabled: boolean expected";
|
|
303633
|
+
return null;
|
|
303634
|
+
};
|
|
303635
|
+
|
|
303636
|
+
/**
|
|
303637
|
+
* Creates a UserAppleHealthSleepNudgeSettingUpdated message from a plain object. Also converts values to their respective internal types.
|
|
303638
|
+
* @function fromObject
|
|
303639
|
+
* @memberof UserAppleHealthSleepNudgeSettingUpdated
|
|
303640
|
+
* @static
|
|
303641
|
+
* @param {Object.<string,*>} object Plain object
|
|
303642
|
+
* @returns {UserAppleHealthSleepNudgeSettingUpdated} UserAppleHealthSleepNudgeSettingUpdated
|
|
303643
|
+
*/
|
|
303644
|
+
UserAppleHealthSleepNudgeSettingUpdated.fromObject = function fromObject(object, _depth) {
|
|
303645
|
+
if (object instanceof $root.UserAppleHealthSleepNudgeSettingUpdated)
|
|
303646
|
+
return object;
|
|
303647
|
+
if (_depth === undefined)
|
|
303648
|
+
_depth = 0;
|
|
303649
|
+
if (_depth > $util.recursionLimit)
|
|
303650
|
+
throw Error("max depth exceeded");
|
|
303651
|
+
var message = new $root.UserAppleHealthSleepNudgeSettingUpdated();
|
|
303652
|
+
if (object.hsUserId != null)
|
|
303653
|
+
if (typeof object.hsUserId !== "string" || object.hsUserId.length)
|
|
303654
|
+
message.hsUserId = String(object.hsUserId);
|
|
303655
|
+
if (object.isEnabled != null)
|
|
303656
|
+
if (object.isEnabled)
|
|
303657
|
+
message.isEnabled = Boolean(object.isEnabled);
|
|
303658
|
+
return message;
|
|
303659
|
+
};
|
|
303660
|
+
|
|
303661
|
+
/**
|
|
303662
|
+
* Creates a plain object from a UserAppleHealthSleepNudgeSettingUpdated message. Also converts values to other types if specified.
|
|
303663
|
+
* @function toObject
|
|
303664
|
+
* @memberof UserAppleHealthSleepNudgeSettingUpdated
|
|
303665
|
+
* @static
|
|
303666
|
+
* @param {UserAppleHealthSleepNudgeSettingUpdated} message UserAppleHealthSleepNudgeSettingUpdated
|
|
303667
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
303668
|
+
* @returns {Object.<string,*>} Plain object
|
|
303669
|
+
*/
|
|
303670
|
+
UserAppleHealthSleepNudgeSettingUpdated.toObject = function toObject(message, options) {
|
|
303671
|
+
if (!options)
|
|
303672
|
+
options = {};
|
|
303673
|
+
var object = {};
|
|
303674
|
+
if (options.defaults) {
|
|
303675
|
+
object.hsUserId = "";
|
|
303676
|
+
object.isEnabled = false;
|
|
303677
|
+
}
|
|
303678
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
303679
|
+
object.hsUserId = message.hsUserId;
|
|
303680
|
+
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
303681
|
+
object.isEnabled = message.isEnabled;
|
|
303682
|
+
return object;
|
|
303683
|
+
};
|
|
303684
|
+
|
|
303685
|
+
/**
|
|
303686
|
+
* Converts this UserAppleHealthSleepNudgeSettingUpdated to JSON.
|
|
303687
|
+
* @function toJSON
|
|
303688
|
+
* @memberof UserAppleHealthSleepNudgeSettingUpdated
|
|
303689
|
+
* @instance
|
|
303690
|
+
* @returns {Object.<string,*>} JSON object
|
|
303691
|
+
*/
|
|
303692
|
+
UserAppleHealthSleepNudgeSettingUpdated.prototype.toJSON = function toJSON() {
|
|
303693
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
303694
|
+
};
|
|
303695
|
+
|
|
303696
|
+
/**
|
|
303697
|
+
* Gets the type url for UserAppleHealthSleepNudgeSettingUpdated
|
|
303698
|
+
* @function getTypeUrl
|
|
303699
|
+
* @memberof UserAppleHealthSleepNudgeSettingUpdated
|
|
303700
|
+
* @static
|
|
303701
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
303702
|
+
* @returns {string} The type url
|
|
303703
|
+
*/
|
|
303704
|
+
UserAppleHealthSleepNudgeSettingUpdated.getTypeUrl = function getTypeUrl(prefix) {
|
|
303705
|
+
if (prefix === undefined)
|
|
303706
|
+
prefix = "type.googleapis.com";
|
|
303707
|
+
return prefix + "/UserAppleHealthSleepNudgeSettingUpdated";
|
|
303708
|
+
};
|
|
303709
|
+
|
|
303710
|
+
return UserAppleHealthSleepNudgeSettingUpdated;
|
|
303711
|
+
})();
|
|
303712
|
+
|
|
303145
303713
|
$root.UserOuraNotificationSettingUpdated = (function() {
|
|
303146
303714
|
|
|
303147
303715
|
/**
|
package/package.json
CHANGED