@headspace/protos-events 1.807.0 → 1.808.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 +42 -0
- package/lib/index.js +143 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -89509,6 +89509,27 @@ export class PartnerSignalStateAssigned {
|
|
|
89509
89509
|
/** UTC epoch milliseconds - when the signal was assigned. */
|
|
89510
89510
|
createdAtTimestamp: (number|Long);
|
|
89511
89511
|
|
|
89512
|
+
/** Data fidelity tier of the sleep source (e.g. high, medium, low). */
|
|
89513
|
+
fidelityTier: string;
|
|
89514
|
+
|
|
89515
|
+
/**
|
|
89516
|
+
* Apple Sleep Score band (very_low, low, ok, high, very_high).
|
|
89517
|
+
* Only populated when source is apple_health.
|
|
89518
|
+
*/
|
|
89519
|
+
scoreBand?: (string|null);
|
|
89520
|
+
|
|
89521
|
+
/**
|
|
89522
|
+
* Cold start status at time of assignment (e.g. cold_start_pending, established).
|
|
89523
|
+
* Only populated when source is apple_health.
|
|
89524
|
+
*/
|
|
89525
|
+
coldStartStatus?: (string|null);
|
|
89526
|
+
|
|
89527
|
+
/**
|
|
89528
|
+
* Bundle identifier of the HealthKit data source (e.g. com.apple.health, com.autosleep.app).
|
|
89529
|
+
* Only populated for apple_health push payloads.
|
|
89530
|
+
*/
|
|
89531
|
+
bundleIdentifier?: (string|null);
|
|
89532
|
+
|
|
89512
89533
|
/**
|
|
89513
89534
|
* Creates a new PartnerSignalStateAssigned instance using the specified properties.
|
|
89514
89535
|
* @param [properties] Properties to set
|
|
@@ -89608,6 +89629,27 @@ export namespace PartnerSignalStateAssigned {
|
|
|
89608
89629
|
/** UTC epoch milliseconds - when the signal was assigned. */
|
|
89609
89630
|
createdAtTimestamp?: (number|Long|null);
|
|
89610
89631
|
|
|
89632
|
+
/** Data fidelity tier of the sleep source (e.g. high, medium, low). */
|
|
89633
|
+
fidelityTier?: (string|null);
|
|
89634
|
+
|
|
89635
|
+
/**
|
|
89636
|
+
* Apple Sleep Score band (very_low, low, ok, high, very_high).
|
|
89637
|
+
* Only populated when source is apple_health.
|
|
89638
|
+
*/
|
|
89639
|
+
scoreBand?: (string|null);
|
|
89640
|
+
|
|
89641
|
+
/**
|
|
89642
|
+
* Cold start status at time of assignment (e.g. cold_start_pending, established).
|
|
89643
|
+
* Only populated when source is apple_health.
|
|
89644
|
+
*/
|
|
89645
|
+
coldStartStatus?: (string|null);
|
|
89646
|
+
|
|
89647
|
+
/**
|
|
89648
|
+
* Bundle identifier of the HealthKit data source (e.g. com.apple.health, com.autosleep.app).
|
|
89649
|
+
* Only populated for apple_health push payloads.
|
|
89650
|
+
*/
|
|
89651
|
+
bundleIdentifier?: (string|null);
|
|
89652
|
+
|
|
89611
89653
|
/** Unknown fields preserved while decoding */
|
|
89612
89654
|
$unknowns?: Uint8Array[];
|
|
89613
89655
|
}
|
package/lib/index.js
CHANGED
|
@@ -262485,6 +262485,13 @@ $root.PartnerSignalStateAssigned = (function() {
|
|
|
262485
262485
|
* @property {string|null} [signal] Assigned signal.
|
|
262486
262486
|
* @property {string|null} [hsUserId] Headspace user that was assigned the signal (e.g. HSUSER_FOOBAR).
|
|
262487
262487
|
* @property {number|Long|null} [createdAtTimestamp] UTC epoch milliseconds - when the signal was assigned.
|
|
262488
|
+
* @property {string|null} [fidelityTier] Data fidelity tier of the sleep source (e.g. high, medium, low).
|
|
262489
|
+
* @property {string|null} [scoreBand] Apple Sleep Score band (very_low, low, ok, high, very_high).
|
|
262490
|
+
* Only populated when source is apple_health.
|
|
262491
|
+
* @property {string|null} [coldStartStatus] Cold start status at time of assignment (e.g. cold_start_pending, established).
|
|
262492
|
+
* Only populated when source is apple_health.
|
|
262493
|
+
* @property {string|null} [bundleIdentifier] Bundle identifier of the HealthKit data source (e.g. com.apple.health, com.autosleep.app).
|
|
262494
|
+
* Only populated for apple_health push payloads.
|
|
262488
262495
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
262489
262496
|
*/
|
|
262490
262497
|
|
|
@@ -262556,6 +262563,41 @@ $root.PartnerSignalStateAssigned = (function() {
|
|
|
262556
262563
|
*/
|
|
262557
262564
|
PartnerSignalStateAssigned.prototype.createdAtTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
262558
262565
|
|
|
262566
|
+
/**
|
|
262567
|
+
* Data fidelity tier of the sleep source (e.g. high, medium, low).
|
|
262568
|
+
* @member {string} fidelityTier
|
|
262569
|
+
* @memberof PartnerSignalStateAssigned
|
|
262570
|
+
* @instance
|
|
262571
|
+
*/
|
|
262572
|
+
PartnerSignalStateAssigned.prototype.fidelityTier = "";
|
|
262573
|
+
|
|
262574
|
+
/**
|
|
262575
|
+
* Apple Sleep Score band (very_low, low, ok, high, very_high).
|
|
262576
|
+
* Only populated when source is apple_health.
|
|
262577
|
+
* @member {string|null|undefined} scoreBand
|
|
262578
|
+
* @memberof PartnerSignalStateAssigned
|
|
262579
|
+
* @instance
|
|
262580
|
+
*/
|
|
262581
|
+
PartnerSignalStateAssigned.prototype.scoreBand = null;
|
|
262582
|
+
|
|
262583
|
+
/**
|
|
262584
|
+
* Cold start status at time of assignment (e.g. cold_start_pending, established).
|
|
262585
|
+
* Only populated when source is apple_health.
|
|
262586
|
+
* @member {string|null|undefined} coldStartStatus
|
|
262587
|
+
* @memberof PartnerSignalStateAssigned
|
|
262588
|
+
* @instance
|
|
262589
|
+
*/
|
|
262590
|
+
PartnerSignalStateAssigned.prototype.coldStartStatus = null;
|
|
262591
|
+
|
|
262592
|
+
/**
|
|
262593
|
+
* Bundle identifier of the HealthKit data source (e.g. com.apple.health, com.autosleep.app).
|
|
262594
|
+
* Only populated for apple_health push payloads.
|
|
262595
|
+
* @member {string|null|undefined} bundleIdentifier
|
|
262596
|
+
* @memberof PartnerSignalStateAssigned
|
|
262597
|
+
* @instance
|
|
262598
|
+
*/
|
|
262599
|
+
PartnerSignalStateAssigned.prototype.bundleIdentifier = null;
|
|
262600
|
+
|
|
262559
262601
|
// OneOf field names bound to virtual getters and setters
|
|
262560
262602
|
var $oneOfFields;
|
|
262561
262603
|
|
|
@@ -262565,6 +262607,24 @@ $root.PartnerSignalStateAssigned = (function() {
|
|
|
262565
262607
|
set: $util.oneOfSetter($oneOfFields)
|
|
262566
262608
|
});
|
|
262567
262609
|
|
|
262610
|
+
// Virtual OneOf for proto3 optional field
|
|
262611
|
+
Object.defineProperty(PartnerSignalStateAssigned.prototype, "_scoreBand", {
|
|
262612
|
+
get: $util.oneOfGetter($oneOfFields = ["scoreBand"]),
|
|
262613
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
262614
|
+
});
|
|
262615
|
+
|
|
262616
|
+
// Virtual OneOf for proto3 optional field
|
|
262617
|
+
Object.defineProperty(PartnerSignalStateAssigned.prototype, "_coldStartStatus", {
|
|
262618
|
+
get: $util.oneOfGetter($oneOfFields = ["coldStartStatus"]),
|
|
262619
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
262620
|
+
});
|
|
262621
|
+
|
|
262622
|
+
// Virtual OneOf for proto3 optional field
|
|
262623
|
+
Object.defineProperty(PartnerSignalStateAssigned.prototype, "_bundleIdentifier", {
|
|
262624
|
+
get: $util.oneOfGetter($oneOfFields = ["bundleIdentifier"]),
|
|
262625
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
262626
|
+
});
|
|
262627
|
+
|
|
262568
262628
|
/**
|
|
262569
262629
|
* Creates a new PartnerSignalStateAssigned instance using the specified properties.
|
|
262570
262630
|
* @function create
|
|
@@ -262603,6 +262663,14 @@ $root.PartnerSignalStateAssigned = (function() {
|
|
|
262603
262663
|
writer.uint32(/* id 4, wireType 2 =*/34).string(message.hsUserId);
|
|
262604
262664
|
if (message.createdAtTimestamp != null && Object.hasOwnProperty.call(message, "createdAtTimestamp"))
|
|
262605
262665
|
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.createdAtTimestamp);
|
|
262666
|
+
if (message.fidelityTier != null && Object.hasOwnProperty.call(message, "fidelityTier"))
|
|
262667
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.fidelityTier);
|
|
262668
|
+
if (message.scoreBand != null && Object.hasOwnProperty.call(message, "scoreBand"))
|
|
262669
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.scoreBand);
|
|
262670
|
+
if (message.coldStartStatus != null && Object.hasOwnProperty.call(message, "coldStartStatus"))
|
|
262671
|
+
writer.uint32(/* id 8, wireType 2 =*/66).string(message.coldStartStatus);
|
|
262672
|
+
if (message.bundleIdentifier != null && Object.hasOwnProperty.call(message, "bundleIdentifier"))
|
|
262673
|
+
writer.uint32(/* id 9, wireType 2 =*/74).string(message.bundleIdentifier);
|
|
262606
262674
|
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
262607
262675
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
262608
262676
|
writer.raw(message.$unknowns[i]);
|
|
@@ -262693,6 +262761,36 @@ $root.PartnerSignalStateAssigned = (function() {
|
|
|
262693
262761
|
delete message.createdAtTimestamp;
|
|
262694
262762
|
continue;
|
|
262695
262763
|
}
|
|
262764
|
+
case 6: {
|
|
262765
|
+
if (wireType !== 2)
|
|
262766
|
+
break;
|
|
262767
|
+
if ((value = reader.string()).length)
|
|
262768
|
+
message.fidelityTier = value;
|
|
262769
|
+
else
|
|
262770
|
+
delete message.fidelityTier;
|
|
262771
|
+
continue;
|
|
262772
|
+
}
|
|
262773
|
+
case 7: {
|
|
262774
|
+
if (wireType !== 2)
|
|
262775
|
+
break;
|
|
262776
|
+
message.scoreBand = reader.string();
|
|
262777
|
+
message._scoreBand = "scoreBand";
|
|
262778
|
+
continue;
|
|
262779
|
+
}
|
|
262780
|
+
case 8: {
|
|
262781
|
+
if (wireType !== 2)
|
|
262782
|
+
break;
|
|
262783
|
+
message.coldStartStatus = reader.string();
|
|
262784
|
+
message._coldStartStatus = "coldStartStatus";
|
|
262785
|
+
continue;
|
|
262786
|
+
}
|
|
262787
|
+
case 9: {
|
|
262788
|
+
if (wireType !== 2)
|
|
262789
|
+
break;
|
|
262790
|
+
message.bundleIdentifier = reader.string();
|
|
262791
|
+
message._bundleIdentifier = "bundleIdentifier";
|
|
262792
|
+
continue;
|
|
262793
|
+
}
|
|
262696
262794
|
}
|
|
262697
262795
|
reader.skipType(wireType, _depth, tag);
|
|
262698
262796
|
$util.makeProp(message, "$unknowns", false);
|
|
@@ -262752,6 +262850,24 @@ $root.PartnerSignalStateAssigned = (function() {
|
|
|
262752
262850
|
if (message.createdAtTimestamp != null && message.hasOwnProperty("createdAtTimestamp"))
|
|
262753
262851
|
if (!$util.isInteger(message.createdAtTimestamp) && !(message.createdAtTimestamp && $util.isInteger(message.createdAtTimestamp.low) && $util.isInteger(message.createdAtTimestamp.high)))
|
|
262754
262852
|
return "createdAtTimestamp: integer|Long expected";
|
|
262853
|
+
if (message.fidelityTier != null && message.hasOwnProperty("fidelityTier"))
|
|
262854
|
+
if (!$util.isString(message.fidelityTier))
|
|
262855
|
+
return "fidelityTier: string expected";
|
|
262856
|
+
if (message.scoreBand != null && message.hasOwnProperty("scoreBand")) {
|
|
262857
|
+
properties._scoreBand = 1;
|
|
262858
|
+
if (!$util.isString(message.scoreBand))
|
|
262859
|
+
return "scoreBand: string expected";
|
|
262860
|
+
}
|
|
262861
|
+
if (message.coldStartStatus != null && message.hasOwnProperty("coldStartStatus")) {
|
|
262862
|
+
properties._coldStartStatus = 1;
|
|
262863
|
+
if (!$util.isString(message.coldStartStatus))
|
|
262864
|
+
return "coldStartStatus: string expected";
|
|
262865
|
+
}
|
|
262866
|
+
if (message.bundleIdentifier != null && message.hasOwnProperty("bundleIdentifier")) {
|
|
262867
|
+
properties._bundleIdentifier = 1;
|
|
262868
|
+
if (!$util.isString(message.bundleIdentifier))
|
|
262869
|
+
return "bundleIdentifier: string expected";
|
|
262870
|
+
}
|
|
262755
262871
|
return null;
|
|
262756
262872
|
};
|
|
262757
262873
|
|
|
@@ -262792,6 +262908,15 @@ $root.PartnerSignalStateAssigned = (function() {
|
|
|
262792
262908
|
message.createdAtTimestamp = object.createdAtTimestamp;
|
|
262793
262909
|
else if (typeof object.createdAtTimestamp === "object")
|
|
262794
262910
|
message.createdAtTimestamp = new $util.LongBits(object.createdAtTimestamp.low >>> 0, object.createdAtTimestamp.high >>> 0).toNumber(true);
|
|
262911
|
+
if (object.fidelityTier != null)
|
|
262912
|
+
if (typeof object.fidelityTier !== "string" || object.fidelityTier.length)
|
|
262913
|
+
message.fidelityTier = String(object.fidelityTier);
|
|
262914
|
+
if (object.scoreBand != null)
|
|
262915
|
+
message.scoreBand = String(object.scoreBand);
|
|
262916
|
+
if (object.coldStartStatus != null)
|
|
262917
|
+
message.coldStartStatus = String(object.coldStartStatus);
|
|
262918
|
+
if (object.bundleIdentifier != null)
|
|
262919
|
+
message.bundleIdentifier = String(object.bundleIdentifier);
|
|
262795
262920
|
return message;
|
|
262796
262921
|
};
|
|
262797
262922
|
|
|
@@ -262817,6 +262942,7 @@ $root.PartnerSignalStateAssigned = (function() {
|
|
|
262817
262942
|
object.createdAtTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
262818
262943
|
} else
|
|
262819
262944
|
object.createdAtTimestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
262945
|
+
object.fidelityTier = "";
|
|
262820
262946
|
}
|
|
262821
262947
|
if (message.partnerId != null && message.hasOwnProperty("partnerId")) {
|
|
262822
262948
|
object.partnerId = message.partnerId;
|
|
@@ -262836,6 +262962,23 @@ $root.PartnerSignalStateAssigned = (function() {
|
|
|
262836
262962
|
object.createdAtTimestamp = options.longs === String ? String(message.createdAtTimestamp) : message.createdAtTimestamp;
|
|
262837
262963
|
else
|
|
262838
262964
|
object.createdAtTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.createdAtTimestamp) : options.longs === Number ? new $util.LongBits(message.createdAtTimestamp.low >>> 0, message.createdAtTimestamp.high >>> 0).toNumber(true) : message.createdAtTimestamp;
|
|
262965
|
+
if (message.fidelityTier != null && message.hasOwnProperty("fidelityTier"))
|
|
262966
|
+
object.fidelityTier = message.fidelityTier;
|
|
262967
|
+
if (message.scoreBand != null && message.hasOwnProperty("scoreBand")) {
|
|
262968
|
+
object.scoreBand = message.scoreBand;
|
|
262969
|
+
if (options.oneofs)
|
|
262970
|
+
object._scoreBand = "scoreBand";
|
|
262971
|
+
}
|
|
262972
|
+
if (message.coldStartStatus != null && message.hasOwnProperty("coldStartStatus")) {
|
|
262973
|
+
object.coldStartStatus = message.coldStartStatus;
|
|
262974
|
+
if (options.oneofs)
|
|
262975
|
+
object._coldStartStatus = "coldStartStatus";
|
|
262976
|
+
}
|
|
262977
|
+
if (message.bundleIdentifier != null && message.hasOwnProperty("bundleIdentifier")) {
|
|
262978
|
+
object.bundleIdentifier = message.bundleIdentifier;
|
|
262979
|
+
if (options.oneofs)
|
|
262980
|
+
object._bundleIdentifier = "bundleIdentifier";
|
|
262981
|
+
}
|
|
262839
262982
|
return object;
|
|
262840
262983
|
};
|
|
262841
262984
|
|
package/package.json
CHANGED