@headspace/protos-events 1.808.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 +411 -0
- package/lib/index.js +997 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -200755,6 +200755,435 @@ $root.OrgMarketingConfigUpdated = (function() {
|
|
|
200755
200755
|
return OrgMarketingConfigUpdated;
|
|
200756
200756
|
})();
|
|
200757
200757
|
|
|
200758
|
+
$root.OrgProviderPartnerConfigUpdated = (function() {
|
|
200759
|
+
|
|
200760
|
+
/**
|
|
200761
|
+
* Properties of an OrgProviderPartnerConfigUpdated.
|
|
200762
|
+
* @typedef {Object} OrgProviderPartnerConfigUpdated.$Properties
|
|
200763
|
+
* @property {number|null} [b2bOrgId] OrgProviderPartnerConfigUpdated b2bOrgId
|
|
200764
|
+
* @property {clinical.ClinicalPartnerSource|null} [providerPartner] OrgProviderPartnerConfigUpdated providerPartner
|
|
200765
|
+
* @property {boolean|null} [isVirtualEnabled] OrgProviderPartnerConfigUpdated isVirtualEnabled
|
|
200766
|
+
* @property {boolean|null} [isInpersonEnabled] OrgProviderPartnerConfigUpdated isInpersonEnabled
|
|
200767
|
+
* @property {number|null} [adminId] OrgProviderPartnerConfigUpdated adminId
|
|
200768
|
+
* @property {number|Long|null} [timestamp] OrgProviderPartnerConfigUpdated timestamp
|
|
200769
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
200770
|
+
*/
|
|
200771
|
+
|
|
200772
|
+
/**
|
|
200773
|
+
* Properties of an OrgProviderPartnerConfigUpdated.
|
|
200774
|
+
* @name IOrgProviderPartnerConfigUpdated
|
|
200775
|
+
* @interface IOrgProviderPartnerConfigUpdated
|
|
200776
|
+
* @augments OrgProviderPartnerConfigUpdated.$Properties
|
|
200777
|
+
* @deprecated Use OrgProviderPartnerConfigUpdated.$Properties instead.
|
|
200778
|
+
*/
|
|
200779
|
+
|
|
200780
|
+
/**
|
|
200781
|
+
* Shape of an OrgProviderPartnerConfigUpdated.
|
|
200782
|
+
* @typedef {OrgProviderPartnerConfigUpdated.$Properties} OrgProviderPartnerConfigUpdated.$Shape
|
|
200783
|
+
*/
|
|
200784
|
+
|
|
200785
|
+
/**
|
|
200786
|
+
* Constructs a new OrgProviderPartnerConfigUpdated.
|
|
200787
|
+
* @name OrgProviderPartnerConfigUpdated
|
|
200788
|
+
* @classdesc Represents an OrgProviderPartnerConfigUpdated.
|
|
200789
|
+
* @constructor
|
|
200790
|
+
* @param {OrgProviderPartnerConfigUpdated.$Properties=} [properties] Properties to set
|
|
200791
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
200792
|
+
*/
|
|
200793
|
+
function OrgProviderPartnerConfigUpdated(properties) {
|
|
200794
|
+
if (properties)
|
|
200795
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
200796
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
200797
|
+
this[keys[i]] = properties[keys[i]];
|
|
200798
|
+
}
|
|
200799
|
+
|
|
200800
|
+
/**
|
|
200801
|
+
* OrgProviderPartnerConfigUpdated b2bOrgId.
|
|
200802
|
+
* @member {number} b2bOrgId
|
|
200803
|
+
* @memberof OrgProviderPartnerConfigUpdated
|
|
200804
|
+
* @instance
|
|
200805
|
+
*/
|
|
200806
|
+
OrgProviderPartnerConfigUpdated.prototype.b2bOrgId = 0;
|
|
200807
|
+
|
|
200808
|
+
/**
|
|
200809
|
+
* OrgProviderPartnerConfigUpdated providerPartner.
|
|
200810
|
+
* @member {clinical.ClinicalPartnerSource} providerPartner
|
|
200811
|
+
* @memberof OrgProviderPartnerConfigUpdated
|
|
200812
|
+
* @instance
|
|
200813
|
+
*/
|
|
200814
|
+
OrgProviderPartnerConfigUpdated.prototype.providerPartner = 0;
|
|
200815
|
+
|
|
200816
|
+
/**
|
|
200817
|
+
* OrgProviderPartnerConfigUpdated isVirtualEnabled.
|
|
200818
|
+
* @member {boolean} isVirtualEnabled
|
|
200819
|
+
* @memberof OrgProviderPartnerConfigUpdated
|
|
200820
|
+
* @instance
|
|
200821
|
+
*/
|
|
200822
|
+
OrgProviderPartnerConfigUpdated.prototype.isVirtualEnabled = false;
|
|
200823
|
+
|
|
200824
|
+
/**
|
|
200825
|
+
* OrgProviderPartnerConfigUpdated isInpersonEnabled.
|
|
200826
|
+
* @member {boolean} isInpersonEnabled
|
|
200827
|
+
* @memberof OrgProviderPartnerConfigUpdated
|
|
200828
|
+
* @instance
|
|
200829
|
+
*/
|
|
200830
|
+
OrgProviderPartnerConfigUpdated.prototype.isInpersonEnabled = false;
|
|
200831
|
+
|
|
200832
|
+
/**
|
|
200833
|
+
* OrgProviderPartnerConfigUpdated adminId.
|
|
200834
|
+
* @member {number} adminId
|
|
200835
|
+
* @memberof OrgProviderPartnerConfigUpdated
|
|
200836
|
+
* @instance
|
|
200837
|
+
*/
|
|
200838
|
+
OrgProviderPartnerConfigUpdated.prototype.adminId = 0;
|
|
200839
|
+
|
|
200840
|
+
/**
|
|
200841
|
+
* OrgProviderPartnerConfigUpdated timestamp.
|
|
200842
|
+
* @member {number|Long} timestamp
|
|
200843
|
+
* @memberof OrgProviderPartnerConfigUpdated
|
|
200844
|
+
* @instance
|
|
200845
|
+
*/
|
|
200846
|
+
OrgProviderPartnerConfigUpdated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
200847
|
+
|
|
200848
|
+
/**
|
|
200849
|
+
* Creates a new OrgProviderPartnerConfigUpdated instance using the specified properties.
|
|
200850
|
+
* @function create
|
|
200851
|
+
* @memberof OrgProviderPartnerConfigUpdated
|
|
200852
|
+
* @static
|
|
200853
|
+
* @param {OrgProviderPartnerConfigUpdated.$Properties=} [properties] Properties to set
|
|
200854
|
+
* @returns {OrgProviderPartnerConfigUpdated} OrgProviderPartnerConfigUpdated instance
|
|
200855
|
+
* @type {{
|
|
200856
|
+
* (properties: OrgProviderPartnerConfigUpdated.$Shape): OrgProviderPartnerConfigUpdated & OrgProviderPartnerConfigUpdated.$Shape;
|
|
200857
|
+
* (properties?: OrgProviderPartnerConfigUpdated.$Properties): OrgProviderPartnerConfigUpdated;
|
|
200858
|
+
* }}
|
|
200859
|
+
*/
|
|
200860
|
+
OrgProviderPartnerConfigUpdated.create = function create(properties) {
|
|
200861
|
+
return new OrgProviderPartnerConfigUpdated(properties);
|
|
200862
|
+
};
|
|
200863
|
+
|
|
200864
|
+
/**
|
|
200865
|
+
* Encodes the specified OrgProviderPartnerConfigUpdated message. Does not implicitly {@link OrgProviderPartnerConfigUpdated.verify|verify} messages.
|
|
200866
|
+
* @function encode
|
|
200867
|
+
* @memberof OrgProviderPartnerConfigUpdated
|
|
200868
|
+
* @static
|
|
200869
|
+
* @param {OrgProviderPartnerConfigUpdated.$Properties} message OrgProviderPartnerConfigUpdated message or plain object to encode
|
|
200870
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
200871
|
+
* @returns {$protobuf.Writer} Writer
|
|
200872
|
+
*/
|
|
200873
|
+
OrgProviderPartnerConfigUpdated.encode = function encode(message, writer) {
|
|
200874
|
+
if (!writer)
|
|
200875
|
+
writer = $Writer.create();
|
|
200876
|
+
if (message.b2bOrgId != null && Object.hasOwnProperty.call(message, "b2bOrgId"))
|
|
200877
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.b2bOrgId);
|
|
200878
|
+
if (message.providerPartner != null && Object.hasOwnProperty.call(message, "providerPartner"))
|
|
200879
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.providerPartner);
|
|
200880
|
+
if (message.isVirtualEnabled != null && Object.hasOwnProperty.call(message, "isVirtualEnabled"))
|
|
200881
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isVirtualEnabled);
|
|
200882
|
+
if (message.isInpersonEnabled != null && Object.hasOwnProperty.call(message, "isInpersonEnabled"))
|
|
200883
|
+
writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isInpersonEnabled);
|
|
200884
|
+
if (message.adminId != null && Object.hasOwnProperty.call(message, "adminId"))
|
|
200885
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.adminId);
|
|
200886
|
+
if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
|
|
200887
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.timestamp);
|
|
200888
|
+
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
200889
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
200890
|
+
writer.raw(message.$unknowns[i]);
|
|
200891
|
+
return writer;
|
|
200892
|
+
};
|
|
200893
|
+
|
|
200894
|
+
/**
|
|
200895
|
+
* Encodes the specified OrgProviderPartnerConfigUpdated message, length delimited. Does not implicitly {@link OrgProviderPartnerConfigUpdated.verify|verify} messages.
|
|
200896
|
+
* @function encodeDelimited
|
|
200897
|
+
* @memberof OrgProviderPartnerConfigUpdated
|
|
200898
|
+
* @static
|
|
200899
|
+
* @param {OrgProviderPartnerConfigUpdated.$Properties} message OrgProviderPartnerConfigUpdated message or plain object to encode
|
|
200900
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
200901
|
+
* @returns {$protobuf.Writer} Writer
|
|
200902
|
+
*/
|
|
200903
|
+
OrgProviderPartnerConfigUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
200904
|
+
return this.encode(message, writer).ldelim();
|
|
200905
|
+
};
|
|
200906
|
+
|
|
200907
|
+
/**
|
|
200908
|
+
* Decodes an OrgProviderPartnerConfigUpdated message from the specified reader or buffer.
|
|
200909
|
+
* @function decode
|
|
200910
|
+
* @memberof OrgProviderPartnerConfigUpdated
|
|
200911
|
+
* @static
|
|
200912
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
200913
|
+
* @param {number} [length] Message length if known beforehand
|
|
200914
|
+
* @returns {OrgProviderPartnerConfigUpdated & OrgProviderPartnerConfigUpdated.$Shape} OrgProviderPartnerConfigUpdated
|
|
200915
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
200916
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
200917
|
+
*/
|
|
200918
|
+
OrgProviderPartnerConfigUpdated.decode = function decode(reader, length, _end, _depth, _target) {
|
|
200919
|
+
if (!(reader instanceof $Reader))
|
|
200920
|
+
reader = $Reader.create(reader);
|
|
200921
|
+
if (_depth === undefined)
|
|
200922
|
+
_depth = 0;
|
|
200923
|
+
if (_depth > $Reader.recursionLimit)
|
|
200924
|
+
throw Error("max depth exceeded");
|
|
200925
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.OrgProviderPartnerConfigUpdated(), value;
|
|
200926
|
+
while (reader.pos < end) {
|
|
200927
|
+
var start = reader.pos;
|
|
200928
|
+
var tag = reader.tag();
|
|
200929
|
+
if (tag === _end) {
|
|
200930
|
+
_end = undefined;
|
|
200931
|
+
break;
|
|
200932
|
+
}
|
|
200933
|
+
var wireType = tag & 7;
|
|
200934
|
+
switch (tag >>>= 3) {
|
|
200935
|
+
case 1: {
|
|
200936
|
+
if (wireType !== 0)
|
|
200937
|
+
break;
|
|
200938
|
+
if (value = reader.uint32())
|
|
200939
|
+
message.b2bOrgId = value;
|
|
200940
|
+
else
|
|
200941
|
+
delete message.b2bOrgId;
|
|
200942
|
+
continue;
|
|
200943
|
+
}
|
|
200944
|
+
case 2: {
|
|
200945
|
+
if (wireType !== 0)
|
|
200946
|
+
break;
|
|
200947
|
+
if (value = reader.int32())
|
|
200948
|
+
message.providerPartner = value;
|
|
200949
|
+
else
|
|
200950
|
+
delete message.providerPartner;
|
|
200951
|
+
continue;
|
|
200952
|
+
}
|
|
200953
|
+
case 3: {
|
|
200954
|
+
if (wireType !== 0)
|
|
200955
|
+
break;
|
|
200956
|
+
if (value = reader.bool())
|
|
200957
|
+
message.isVirtualEnabled = value;
|
|
200958
|
+
else
|
|
200959
|
+
delete message.isVirtualEnabled;
|
|
200960
|
+
continue;
|
|
200961
|
+
}
|
|
200962
|
+
case 4: {
|
|
200963
|
+
if (wireType !== 0)
|
|
200964
|
+
break;
|
|
200965
|
+
if (value = reader.bool())
|
|
200966
|
+
message.isInpersonEnabled = value;
|
|
200967
|
+
else
|
|
200968
|
+
delete message.isInpersonEnabled;
|
|
200969
|
+
continue;
|
|
200970
|
+
}
|
|
200971
|
+
case 5: {
|
|
200972
|
+
if (wireType !== 0)
|
|
200973
|
+
break;
|
|
200974
|
+
if (value = reader.uint32())
|
|
200975
|
+
message.adminId = value;
|
|
200976
|
+
else
|
|
200977
|
+
delete message.adminId;
|
|
200978
|
+
continue;
|
|
200979
|
+
}
|
|
200980
|
+
case 6: {
|
|
200981
|
+
if (wireType !== 0)
|
|
200982
|
+
break;
|
|
200983
|
+
if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
|
|
200984
|
+
message.timestamp = value;
|
|
200985
|
+
else
|
|
200986
|
+
delete message.timestamp;
|
|
200987
|
+
continue;
|
|
200988
|
+
}
|
|
200989
|
+
}
|
|
200990
|
+
reader.skipType(wireType, _depth, tag);
|
|
200991
|
+
$util.makeProp(message, "$unknowns", false);
|
|
200992
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
200993
|
+
}
|
|
200994
|
+
if (_end !== undefined)
|
|
200995
|
+
throw Error("missing end group");
|
|
200996
|
+
return message;
|
|
200997
|
+
};
|
|
200998
|
+
|
|
200999
|
+
/**
|
|
201000
|
+
* Decodes an OrgProviderPartnerConfigUpdated message from the specified reader or buffer, length delimited.
|
|
201001
|
+
* @function decodeDelimited
|
|
201002
|
+
* @memberof OrgProviderPartnerConfigUpdated
|
|
201003
|
+
* @static
|
|
201004
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
201005
|
+
* @returns {OrgProviderPartnerConfigUpdated & OrgProviderPartnerConfigUpdated.$Shape} OrgProviderPartnerConfigUpdated
|
|
201006
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
201007
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
201008
|
+
*/
|
|
201009
|
+
OrgProviderPartnerConfigUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
201010
|
+
if (!(reader instanceof $Reader))
|
|
201011
|
+
reader = new $Reader(reader);
|
|
201012
|
+
return this.decode(reader, reader.uint32());
|
|
201013
|
+
};
|
|
201014
|
+
|
|
201015
|
+
/**
|
|
201016
|
+
* Verifies an OrgProviderPartnerConfigUpdated message.
|
|
201017
|
+
* @function verify
|
|
201018
|
+
* @memberof OrgProviderPartnerConfigUpdated
|
|
201019
|
+
* @static
|
|
201020
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
201021
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
201022
|
+
*/
|
|
201023
|
+
OrgProviderPartnerConfigUpdated.verify = function verify(message, _depth) {
|
|
201024
|
+
if (typeof message !== "object" || message === null)
|
|
201025
|
+
return "object expected";
|
|
201026
|
+
if (_depth === undefined)
|
|
201027
|
+
_depth = 0;
|
|
201028
|
+
if (_depth > $util.recursionLimit)
|
|
201029
|
+
return "max depth exceeded";
|
|
201030
|
+
if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
|
|
201031
|
+
if (!$util.isInteger(message.b2bOrgId))
|
|
201032
|
+
return "b2bOrgId: integer expected";
|
|
201033
|
+
if (message.providerPartner != null && message.hasOwnProperty("providerPartner"))
|
|
201034
|
+
switch (message.providerPartner) {
|
|
201035
|
+
default:
|
|
201036
|
+
return "providerPartner: enum value expected";
|
|
201037
|
+
case 0:
|
|
201038
|
+
case 1:
|
|
201039
|
+
break;
|
|
201040
|
+
}
|
|
201041
|
+
if (message.isVirtualEnabled != null && message.hasOwnProperty("isVirtualEnabled"))
|
|
201042
|
+
if (typeof message.isVirtualEnabled !== "boolean")
|
|
201043
|
+
return "isVirtualEnabled: boolean expected";
|
|
201044
|
+
if (message.isInpersonEnabled != null && message.hasOwnProperty("isInpersonEnabled"))
|
|
201045
|
+
if (typeof message.isInpersonEnabled !== "boolean")
|
|
201046
|
+
return "isInpersonEnabled: boolean expected";
|
|
201047
|
+
if (message.adminId != null && message.hasOwnProperty("adminId"))
|
|
201048
|
+
if (!$util.isInteger(message.adminId))
|
|
201049
|
+
return "adminId: integer expected";
|
|
201050
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
201051
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
201052
|
+
return "timestamp: integer|Long expected";
|
|
201053
|
+
return null;
|
|
201054
|
+
};
|
|
201055
|
+
|
|
201056
|
+
/**
|
|
201057
|
+
* Creates an OrgProviderPartnerConfigUpdated message from a plain object. Also converts values to their respective internal types.
|
|
201058
|
+
* @function fromObject
|
|
201059
|
+
* @memberof OrgProviderPartnerConfigUpdated
|
|
201060
|
+
* @static
|
|
201061
|
+
* @param {Object.<string,*>} object Plain object
|
|
201062
|
+
* @returns {OrgProviderPartnerConfigUpdated} OrgProviderPartnerConfigUpdated
|
|
201063
|
+
*/
|
|
201064
|
+
OrgProviderPartnerConfigUpdated.fromObject = function fromObject(object, _depth) {
|
|
201065
|
+
if (object instanceof $root.OrgProviderPartnerConfigUpdated)
|
|
201066
|
+
return object;
|
|
201067
|
+
if (_depth === undefined)
|
|
201068
|
+
_depth = 0;
|
|
201069
|
+
if (_depth > $util.recursionLimit)
|
|
201070
|
+
throw Error("max depth exceeded");
|
|
201071
|
+
var message = new $root.OrgProviderPartnerConfigUpdated();
|
|
201072
|
+
if (object.b2bOrgId != null)
|
|
201073
|
+
if (Number(object.b2bOrgId) !== 0)
|
|
201074
|
+
message.b2bOrgId = object.b2bOrgId >>> 0;
|
|
201075
|
+
if (object.providerPartner !== 0 && (typeof object.providerPartner !== "string" || $root.clinical.ClinicalPartnerSource[object.providerPartner] !== 0))
|
|
201076
|
+
switch (object.providerPartner) {
|
|
201077
|
+
default:
|
|
201078
|
+
if (typeof object.providerPartner === "number") {
|
|
201079
|
+
message.providerPartner = object.providerPartner;
|
|
201080
|
+
break;
|
|
201081
|
+
}
|
|
201082
|
+
break;
|
|
201083
|
+
case "CLINICAL_PARTNER_SOURCE_UNKNOWN":
|
|
201084
|
+
case 0:
|
|
201085
|
+
message.providerPartner = 0;
|
|
201086
|
+
break;
|
|
201087
|
+
case "CLINICAL_PARTNER_SOURCE_SONDERMIND":
|
|
201088
|
+
case 1:
|
|
201089
|
+
message.providerPartner = 1;
|
|
201090
|
+
break;
|
|
201091
|
+
}
|
|
201092
|
+
if (object.isVirtualEnabled != null)
|
|
201093
|
+
if (object.isVirtualEnabled)
|
|
201094
|
+
message.isVirtualEnabled = Boolean(object.isVirtualEnabled);
|
|
201095
|
+
if (object.isInpersonEnabled != null)
|
|
201096
|
+
if (object.isInpersonEnabled)
|
|
201097
|
+
message.isInpersonEnabled = Boolean(object.isInpersonEnabled);
|
|
201098
|
+
if (object.adminId != null)
|
|
201099
|
+
if (Number(object.adminId) !== 0)
|
|
201100
|
+
message.adminId = object.adminId >>> 0;
|
|
201101
|
+
if (object.timestamp != null)
|
|
201102
|
+
if (typeof object.timestamp === "object" ? object.timestamp.low || object.timestamp.high : Number(object.timestamp) !== 0)
|
|
201103
|
+
if ($util.Long)
|
|
201104
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
201105
|
+
else if (typeof object.timestamp === "string")
|
|
201106
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
201107
|
+
else if (typeof object.timestamp === "number")
|
|
201108
|
+
message.timestamp = object.timestamp;
|
|
201109
|
+
else if (typeof object.timestamp === "object")
|
|
201110
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
201111
|
+
return message;
|
|
201112
|
+
};
|
|
201113
|
+
|
|
201114
|
+
/**
|
|
201115
|
+
* Creates a plain object from an OrgProviderPartnerConfigUpdated message. Also converts values to other types if specified.
|
|
201116
|
+
* @function toObject
|
|
201117
|
+
* @memberof OrgProviderPartnerConfigUpdated
|
|
201118
|
+
* @static
|
|
201119
|
+
* @param {OrgProviderPartnerConfigUpdated} message OrgProviderPartnerConfigUpdated
|
|
201120
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
201121
|
+
* @returns {Object.<string,*>} Plain object
|
|
201122
|
+
*/
|
|
201123
|
+
OrgProviderPartnerConfigUpdated.toObject = function toObject(message, options) {
|
|
201124
|
+
if (!options)
|
|
201125
|
+
options = {};
|
|
201126
|
+
var object = {};
|
|
201127
|
+
if (options.defaults) {
|
|
201128
|
+
object.b2bOrgId = 0;
|
|
201129
|
+
object.providerPartner = options.enums === String ? "CLINICAL_PARTNER_SOURCE_UNKNOWN" : 0;
|
|
201130
|
+
object.isVirtualEnabled = false;
|
|
201131
|
+
object.isInpersonEnabled = false;
|
|
201132
|
+
object.adminId = 0;
|
|
201133
|
+
if ($util.Long) {
|
|
201134
|
+
var long = new $util.Long(0, 0, true);
|
|
201135
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
201136
|
+
} else
|
|
201137
|
+
object.timestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
201138
|
+
}
|
|
201139
|
+
if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
|
|
201140
|
+
object.b2bOrgId = message.b2bOrgId;
|
|
201141
|
+
if (message.providerPartner != null && message.hasOwnProperty("providerPartner"))
|
|
201142
|
+
object.providerPartner = options.enums === String ? $root.clinical.ClinicalPartnerSource[message.providerPartner] === undefined ? message.providerPartner : $root.clinical.ClinicalPartnerSource[message.providerPartner] : message.providerPartner;
|
|
201143
|
+
if (message.isVirtualEnabled != null && message.hasOwnProperty("isVirtualEnabled"))
|
|
201144
|
+
object.isVirtualEnabled = message.isVirtualEnabled;
|
|
201145
|
+
if (message.isInpersonEnabled != null && message.hasOwnProperty("isInpersonEnabled"))
|
|
201146
|
+
object.isInpersonEnabled = message.isInpersonEnabled;
|
|
201147
|
+
if (message.adminId != null && message.hasOwnProperty("adminId"))
|
|
201148
|
+
object.adminId = message.adminId;
|
|
201149
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
201150
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
201151
|
+
object.timestamp = typeof message.timestamp === "number" ? BigInt(message.timestamp) : $util.Long.fromBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0, true).toBigInt();
|
|
201152
|
+
else if (typeof message.timestamp === "number")
|
|
201153
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
201154
|
+
else
|
|
201155
|
+
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;
|
|
201156
|
+
return object;
|
|
201157
|
+
};
|
|
201158
|
+
|
|
201159
|
+
/**
|
|
201160
|
+
* Converts this OrgProviderPartnerConfigUpdated to JSON.
|
|
201161
|
+
* @function toJSON
|
|
201162
|
+
* @memberof OrgProviderPartnerConfigUpdated
|
|
201163
|
+
* @instance
|
|
201164
|
+
* @returns {Object.<string,*>} JSON object
|
|
201165
|
+
*/
|
|
201166
|
+
OrgProviderPartnerConfigUpdated.prototype.toJSON = function toJSON() {
|
|
201167
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
201168
|
+
};
|
|
201169
|
+
|
|
201170
|
+
/**
|
|
201171
|
+
* Gets the type url for OrgProviderPartnerConfigUpdated
|
|
201172
|
+
* @function getTypeUrl
|
|
201173
|
+
* @memberof OrgProviderPartnerConfigUpdated
|
|
201174
|
+
* @static
|
|
201175
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
201176
|
+
* @returns {string} The type url
|
|
201177
|
+
*/
|
|
201178
|
+
OrgProviderPartnerConfigUpdated.getTypeUrl = function getTypeUrl(prefix) {
|
|
201179
|
+
if (prefix === undefined)
|
|
201180
|
+
prefix = "type.googleapis.com";
|
|
201181
|
+
return prefix + "/OrgProviderPartnerConfigUpdated";
|
|
201182
|
+
};
|
|
201183
|
+
|
|
201184
|
+
return OrgProviderPartnerConfigUpdated;
|
|
201185
|
+
})();
|
|
201186
|
+
|
|
200758
201187
|
$root.OrganizationSubscriptionCreated = (function() {
|
|
200759
201188
|
|
|
200760
201189
|
/**
|
|
@@ -263010,6 +263439,292 @@ $root.PartnerSignalStateAssigned = (function() {
|
|
|
263010
263439
|
return PartnerSignalStateAssigned;
|
|
263011
263440
|
})();
|
|
263012
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
|
+
|
|
263013
263728
|
$root.PHQAssessmentAssigned = (function() {
|
|
263014
263729
|
|
|
263015
263730
|
/**
|
|
@@ -302713,6 +303428,288 @@ $root.UserAppleWatchNotificationSettingUpdated = (function() {
|
|
|
302713
303428
|
return UserAppleWatchNotificationSettingUpdated;
|
|
302714
303429
|
})();
|
|
302715
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
|
+
|
|
302716
303713
|
$root.UserOuraNotificationSettingUpdated = (function() {
|
|
302717
303714
|
|
|
302718
303715
|
/**
|