@headspace/protos-events 1.807.0 → 1.809.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 +189 -0
- package/lib/index.js +572 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -68958,6 +68958,153 @@ export namespace OrgMarketingConfigUpdated {
|
|
|
68958
68958
|
type $Shape = OrgMarketingConfigUpdated.$Properties;
|
|
68959
68959
|
}
|
|
68960
68960
|
|
|
68961
|
+
/**
|
|
68962
|
+
* Properties of an OrgProviderPartnerConfigUpdated.
|
|
68963
|
+
* @deprecated Use OrgProviderPartnerConfigUpdated.$Properties instead.
|
|
68964
|
+
*/
|
|
68965
|
+
export interface IOrgProviderPartnerConfigUpdated extends OrgProviderPartnerConfigUpdated.$Properties {
|
|
68966
|
+
}
|
|
68967
|
+
|
|
68968
|
+
/** Represents an OrgProviderPartnerConfigUpdated. */
|
|
68969
|
+
export class OrgProviderPartnerConfigUpdated {
|
|
68970
|
+
|
|
68971
|
+
/**
|
|
68972
|
+
* Constructs a new OrgProviderPartnerConfigUpdated.
|
|
68973
|
+
* @param [properties] Properties to set
|
|
68974
|
+
*/
|
|
68975
|
+
constructor(properties?: OrgProviderPartnerConfigUpdated.$Properties);
|
|
68976
|
+
|
|
68977
|
+
/** Unknown fields preserved while decoding */
|
|
68978
|
+
$unknowns?: Uint8Array[];
|
|
68979
|
+
|
|
68980
|
+
/** OrgProviderPartnerConfigUpdated b2bOrgId. */
|
|
68981
|
+
b2bOrgId: number;
|
|
68982
|
+
|
|
68983
|
+
/** OrgProviderPartnerConfigUpdated providerPartner. */
|
|
68984
|
+
providerPartner: clinical.ClinicalPartnerSource;
|
|
68985
|
+
|
|
68986
|
+
/** OrgProviderPartnerConfigUpdated isVirtualEnabled. */
|
|
68987
|
+
isVirtualEnabled: boolean;
|
|
68988
|
+
|
|
68989
|
+
/** OrgProviderPartnerConfigUpdated isInpersonEnabled. */
|
|
68990
|
+
isInpersonEnabled: boolean;
|
|
68991
|
+
|
|
68992
|
+
/** OrgProviderPartnerConfigUpdated adminId. */
|
|
68993
|
+
adminId: number;
|
|
68994
|
+
|
|
68995
|
+
/** OrgProviderPartnerConfigUpdated timestamp. */
|
|
68996
|
+
timestamp: (number|Long);
|
|
68997
|
+
|
|
68998
|
+
/**
|
|
68999
|
+
* Creates a new OrgProviderPartnerConfigUpdated instance using the specified properties.
|
|
69000
|
+
* @param [properties] Properties to set
|
|
69001
|
+
* @returns OrgProviderPartnerConfigUpdated instance
|
|
69002
|
+
*/
|
|
69003
|
+
static create(properties: OrgProviderPartnerConfigUpdated.$Shape): OrgProviderPartnerConfigUpdated & OrgProviderPartnerConfigUpdated.$Shape;
|
|
69004
|
+
static create(properties?: OrgProviderPartnerConfigUpdated.$Properties): OrgProviderPartnerConfigUpdated;
|
|
69005
|
+
|
|
69006
|
+
/**
|
|
69007
|
+
* Encodes the specified OrgProviderPartnerConfigUpdated message. Does not implicitly {@link OrgProviderPartnerConfigUpdated.verify|verify} messages.
|
|
69008
|
+
* @param message OrgProviderPartnerConfigUpdated message or plain object to encode
|
|
69009
|
+
* @param [writer] Writer to encode to
|
|
69010
|
+
* @returns Writer
|
|
69011
|
+
*/
|
|
69012
|
+
static encode(message: OrgProviderPartnerConfigUpdated.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
69013
|
+
|
|
69014
|
+
/**
|
|
69015
|
+
* Encodes the specified OrgProviderPartnerConfigUpdated message, length delimited. Does not implicitly {@link OrgProviderPartnerConfigUpdated.verify|verify} messages.
|
|
69016
|
+
* @param message OrgProviderPartnerConfigUpdated message or plain object to encode
|
|
69017
|
+
* @param [writer] Writer to encode to
|
|
69018
|
+
* @returns Writer
|
|
69019
|
+
*/
|
|
69020
|
+
static encodeDelimited(message: OrgProviderPartnerConfigUpdated.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
69021
|
+
|
|
69022
|
+
/**
|
|
69023
|
+
* Decodes an OrgProviderPartnerConfigUpdated message from the specified reader or buffer.
|
|
69024
|
+
* @param reader Reader or buffer to decode from
|
|
69025
|
+
* @param [length] Message length if known beforehand
|
|
69026
|
+
* @returns {OrgProviderPartnerConfigUpdated & OrgProviderPartnerConfigUpdated.$Shape} OrgProviderPartnerConfigUpdated
|
|
69027
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
69028
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
69029
|
+
*/
|
|
69030
|
+
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): OrgProviderPartnerConfigUpdated & OrgProviderPartnerConfigUpdated.$Shape;
|
|
69031
|
+
|
|
69032
|
+
/**
|
|
69033
|
+
* Decodes an OrgProviderPartnerConfigUpdated message from the specified reader or buffer, length delimited.
|
|
69034
|
+
* @param reader Reader or buffer to decode from
|
|
69035
|
+
* @returns {OrgProviderPartnerConfigUpdated & OrgProviderPartnerConfigUpdated.$Shape} OrgProviderPartnerConfigUpdated
|
|
69036
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
69037
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
69038
|
+
*/
|
|
69039
|
+
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): OrgProviderPartnerConfigUpdated & OrgProviderPartnerConfigUpdated.$Shape;
|
|
69040
|
+
|
|
69041
|
+
/**
|
|
69042
|
+
* Verifies an OrgProviderPartnerConfigUpdated message.
|
|
69043
|
+
* @param message Plain object to verify
|
|
69044
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
69045
|
+
*/
|
|
69046
|
+
static verify(message: { [k: string]: any }): (string|null);
|
|
69047
|
+
|
|
69048
|
+
/**
|
|
69049
|
+
* Creates an OrgProviderPartnerConfigUpdated message from a plain object. Also converts values to their respective internal types.
|
|
69050
|
+
* @param object Plain object
|
|
69051
|
+
* @returns OrgProviderPartnerConfigUpdated
|
|
69052
|
+
*/
|
|
69053
|
+
static fromObject(object: { [k: string]: any }): OrgProviderPartnerConfigUpdated;
|
|
69054
|
+
|
|
69055
|
+
/**
|
|
69056
|
+
* Creates a plain object from an OrgProviderPartnerConfigUpdated message. Also converts values to other types if specified.
|
|
69057
|
+
* @param message OrgProviderPartnerConfigUpdated
|
|
69058
|
+
* @param [options] Conversion options
|
|
69059
|
+
* @returns Plain object
|
|
69060
|
+
*/
|
|
69061
|
+
static toObject(message: OrgProviderPartnerConfigUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
69062
|
+
|
|
69063
|
+
/**
|
|
69064
|
+
* Converts this OrgProviderPartnerConfigUpdated to JSON.
|
|
69065
|
+
* @returns JSON object
|
|
69066
|
+
*/
|
|
69067
|
+
toJSON(): { [k: string]: any };
|
|
69068
|
+
|
|
69069
|
+
/**
|
|
69070
|
+
* Gets the type url for OrgProviderPartnerConfigUpdated
|
|
69071
|
+
* @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
69072
|
+
* @returns The type url
|
|
69073
|
+
*/
|
|
69074
|
+
static getTypeUrl(prefix?: string): string;
|
|
69075
|
+
}
|
|
69076
|
+
|
|
69077
|
+
export namespace OrgProviderPartnerConfigUpdated {
|
|
69078
|
+
|
|
69079
|
+
/** Properties of an OrgProviderPartnerConfigUpdated. */
|
|
69080
|
+
interface $Properties {
|
|
69081
|
+
|
|
69082
|
+
/** OrgProviderPartnerConfigUpdated b2bOrgId */
|
|
69083
|
+
b2bOrgId?: (number|null);
|
|
69084
|
+
|
|
69085
|
+
/** OrgProviderPartnerConfigUpdated providerPartner */
|
|
69086
|
+
providerPartner?: (clinical.ClinicalPartnerSource|null);
|
|
69087
|
+
|
|
69088
|
+
/** OrgProviderPartnerConfigUpdated isVirtualEnabled */
|
|
69089
|
+
isVirtualEnabled?: (boolean|null);
|
|
69090
|
+
|
|
69091
|
+
/** OrgProviderPartnerConfigUpdated isInpersonEnabled */
|
|
69092
|
+
isInpersonEnabled?: (boolean|null);
|
|
69093
|
+
|
|
69094
|
+
/** OrgProviderPartnerConfigUpdated adminId */
|
|
69095
|
+
adminId?: (number|null);
|
|
69096
|
+
|
|
69097
|
+
/** OrgProviderPartnerConfigUpdated timestamp */
|
|
69098
|
+
timestamp?: (number|Long|null);
|
|
69099
|
+
|
|
69100
|
+
/** Unknown fields preserved while decoding */
|
|
69101
|
+
$unknowns?: Uint8Array[];
|
|
69102
|
+
}
|
|
69103
|
+
|
|
69104
|
+
/** Shape of an OrgProviderPartnerConfigUpdated. */
|
|
69105
|
+
type $Shape = OrgProviderPartnerConfigUpdated.$Properties;
|
|
69106
|
+
}
|
|
69107
|
+
|
|
68961
69108
|
/**
|
|
68962
69109
|
* Properties of an OrganizationSubscriptionCreated.
|
|
68963
69110
|
* @deprecated Use OrganizationSubscriptionCreated.$Properties instead.
|
|
@@ -89509,6 +89656,27 @@ export class PartnerSignalStateAssigned {
|
|
|
89509
89656
|
/** UTC epoch milliseconds - when the signal was assigned. */
|
|
89510
89657
|
createdAtTimestamp: (number|Long);
|
|
89511
89658
|
|
|
89659
|
+
/** Data fidelity tier of the sleep source (e.g. high, medium, low). */
|
|
89660
|
+
fidelityTier: string;
|
|
89661
|
+
|
|
89662
|
+
/**
|
|
89663
|
+
* Apple Sleep Score band (very_low, low, ok, high, very_high).
|
|
89664
|
+
* Only populated when source is apple_health.
|
|
89665
|
+
*/
|
|
89666
|
+
scoreBand?: (string|null);
|
|
89667
|
+
|
|
89668
|
+
/**
|
|
89669
|
+
* Cold start status at time of assignment (e.g. cold_start_pending, established).
|
|
89670
|
+
* Only populated when source is apple_health.
|
|
89671
|
+
*/
|
|
89672
|
+
coldStartStatus?: (string|null);
|
|
89673
|
+
|
|
89674
|
+
/**
|
|
89675
|
+
* Bundle identifier of the HealthKit data source (e.g. com.apple.health, com.autosleep.app).
|
|
89676
|
+
* Only populated for apple_health push payloads.
|
|
89677
|
+
*/
|
|
89678
|
+
bundleIdentifier?: (string|null);
|
|
89679
|
+
|
|
89512
89680
|
/**
|
|
89513
89681
|
* Creates a new PartnerSignalStateAssigned instance using the specified properties.
|
|
89514
89682
|
* @param [properties] Properties to set
|
|
@@ -89608,6 +89776,27 @@ export namespace PartnerSignalStateAssigned {
|
|
|
89608
89776
|
/** UTC epoch milliseconds - when the signal was assigned. */
|
|
89609
89777
|
createdAtTimestamp?: (number|Long|null);
|
|
89610
89778
|
|
|
89779
|
+
/** Data fidelity tier of the sleep source (e.g. high, medium, low). */
|
|
89780
|
+
fidelityTier?: (string|null);
|
|
89781
|
+
|
|
89782
|
+
/**
|
|
89783
|
+
* Apple Sleep Score band (very_low, low, ok, high, very_high).
|
|
89784
|
+
* Only populated when source is apple_health.
|
|
89785
|
+
*/
|
|
89786
|
+
scoreBand?: (string|null);
|
|
89787
|
+
|
|
89788
|
+
/**
|
|
89789
|
+
* Cold start status at time of assignment (e.g. cold_start_pending, established).
|
|
89790
|
+
* Only populated when source is apple_health.
|
|
89791
|
+
*/
|
|
89792
|
+
coldStartStatus?: (string|null);
|
|
89793
|
+
|
|
89794
|
+
/**
|
|
89795
|
+
* Bundle identifier of the HealthKit data source (e.g. com.apple.health, com.autosleep.app).
|
|
89796
|
+
* Only populated for apple_health push payloads.
|
|
89797
|
+
*/
|
|
89798
|
+
bundleIdentifier?: (string|null);
|
|
89799
|
+
|
|
89611
89800
|
/** Unknown fields preserved while decoding */
|
|
89612
89801
|
$unknowns?: Uint8Array[];
|
|
89613
89802
|
}
|
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
|
/**
|
|
@@ -262485,6 +262914,13 @@ $root.PartnerSignalStateAssigned = (function() {
|
|
|
262485
262914
|
* @property {string|null} [signal] Assigned signal.
|
|
262486
262915
|
* @property {string|null} [hsUserId] Headspace user that was assigned the signal (e.g. HSUSER_FOOBAR).
|
|
262487
262916
|
* @property {number|Long|null} [createdAtTimestamp] UTC epoch milliseconds - when the signal was assigned.
|
|
262917
|
+
* @property {string|null} [fidelityTier] Data fidelity tier of the sleep source (e.g. high, medium, low).
|
|
262918
|
+
* @property {string|null} [scoreBand] Apple Sleep Score band (very_low, low, ok, high, very_high).
|
|
262919
|
+
* Only populated when source is apple_health.
|
|
262920
|
+
* @property {string|null} [coldStartStatus] Cold start status at time of assignment (e.g. cold_start_pending, established).
|
|
262921
|
+
* Only populated when source is apple_health.
|
|
262922
|
+
* @property {string|null} [bundleIdentifier] Bundle identifier of the HealthKit data source (e.g. com.apple.health, com.autosleep.app).
|
|
262923
|
+
* Only populated for apple_health push payloads.
|
|
262488
262924
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
262489
262925
|
*/
|
|
262490
262926
|
|
|
@@ -262556,6 +262992,41 @@ $root.PartnerSignalStateAssigned = (function() {
|
|
|
262556
262992
|
*/
|
|
262557
262993
|
PartnerSignalStateAssigned.prototype.createdAtTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
262558
262994
|
|
|
262995
|
+
/**
|
|
262996
|
+
* Data fidelity tier of the sleep source (e.g. high, medium, low).
|
|
262997
|
+
* @member {string} fidelityTier
|
|
262998
|
+
* @memberof PartnerSignalStateAssigned
|
|
262999
|
+
* @instance
|
|
263000
|
+
*/
|
|
263001
|
+
PartnerSignalStateAssigned.prototype.fidelityTier = "";
|
|
263002
|
+
|
|
263003
|
+
/**
|
|
263004
|
+
* Apple Sleep Score band (very_low, low, ok, high, very_high).
|
|
263005
|
+
* Only populated when source is apple_health.
|
|
263006
|
+
* @member {string|null|undefined} scoreBand
|
|
263007
|
+
* @memberof PartnerSignalStateAssigned
|
|
263008
|
+
* @instance
|
|
263009
|
+
*/
|
|
263010
|
+
PartnerSignalStateAssigned.prototype.scoreBand = null;
|
|
263011
|
+
|
|
263012
|
+
/**
|
|
263013
|
+
* Cold start status at time of assignment (e.g. cold_start_pending, established).
|
|
263014
|
+
* Only populated when source is apple_health.
|
|
263015
|
+
* @member {string|null|undefined} coldStartStatus
|
|
263016
|
+
* @memberof PartnerSignalStateAssigned
|
|
263017
|
+
* @instance
|
|
263018
|
+
*/
|
|
263019
|
+
PartnerSignalStateAssigned.prototype.coldStartStatus = null;
|
|
263020
|
+
|
|
263021
|
+
/**
|
|
263022
|
+
* Bundle identifier of the HealthKit data source (e.g. com.apple.health, com.autosleep.app).
|
|
263023
|
+
* Only populated for apple_health push payloads.
|
|
263024
|
+
* @member {string|null|undefined} bundleIdentifier
|
|
263025
|
+
* @memberof PartnerSignalStateAssigned
|
|
263026
|
+
* @instance
|
|
263027
|
+
*/
|
|
263028
|
+
PartnerSignalStateAssigned.prototype.bundleIdentifier = null;
|
|
263029
|
+
|
|
262559
263030
|
// OneOf field names bound to virtual getters and setters
|
|
262560
263031
|
var $oneOfFields;
|
|
262561
263032
|
|
|
@@ -262565,6 +263036,24 @@ $root.PartnerSignalStateAssigned = (function() {
|
|
|
262565
263036
|
set: $util.oneOfSetter($oneOfFields)
|
|
262566
263037
|
});
|
|
262567
263038
|
|
|
263039
|
+
// Virtual OneOf for proto3 optional field
|
|
263040
|
+
Object.defineProperty(PartnerSignalStateAssigned.prototype, "_scoreBand", {
|
|
263041
|
+
get: $util.oneOfGetter($oneOfFields = ["scoreBand"]),
|
|
263042
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
263043
|
+
});
|
|
263044
|
+
|
|
263045
|
+
// Virtual OneOf for proto3 optional field
|
|
263046
|
+
Object.defineProperty(PartnerSignalStateAssigned.prototype, "_coldStartStatus", {
|
|
263047
|
+
get: $util.oneOfGetter($oneOfFields = ["coldStartStatus"]),
|
|
263048
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
263049
|
+
});
|
|
263050
|
+
|
|
263051
|
+
// Virtual OneOf for proto3 optional field
|
|
263052
|
+
Object.defineProperty(PartnerSignalStateAssigned.prototype, "_bundleIdentifier", {
|
|
263053
|
+
get: $util.oneOfGetter($oneOfFields = ["bundleIdentifier"]),
|
|
263054
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
263055
|
+
});
|
|
263056
|
+
|
|
262568
263057
|
/**
|
|
262569
263058
|
* Creates a new PartnerSignalStateAssigned instance using the specified properties.
|
|
262570
263059
|
* @function create
|
|
@@ -262603,6 +263092,14 @@ $root.PartnerSignalStateAssigned = (function() {
|
|
|
262603
263092
|
writer.uint32(/* id 4, wireType 2 =*/34).string(message.hsUserId);
|
|
262604
263093
|
if (message.createdAtTimestamp != null && Object.hasOwnProperty.call(message, "createdAtTimestamp"))
|
|
262605
263094
|
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.createdAtTimestamp);
|
|
263095
|
+
if (message.fidelityTier != null && Object.hasOwnProperty.call(message, "fidelityTier"))
|
|
263096
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.fidelityTier);
|
|
263097
|
+
if (message.scoreBand != null && Object.hasOwnProperty.call(message, "scoreBand"))
|
|
263098
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.scoreBand);
|
|
263099
|
+
if (message.coldStartStatus != null && Object.hasOwnProperty.call(message, "coldStartStatus"))
|
|
263100
|
+
writer.uint32(/* id 8, wireType 2 =*/66).string(message.coldStartStatus);
|
|
263101
|
+
if (message.bundleIdentifier != null && Object.hasOwnProperty.call(message, "bundleIdentifier"))
|
|
263102
|
+
writer.uint32(/* id 9, wireType 2 =*/74).string(message.bundleIdentifier);
|
|
262606
263103
|
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
262607
263104
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
262608
263105
|
writer.raw(message.$unknowns[i]);
|
|
@@ -262693,6 +263190,36 @@ $root.PartnerSignalStateAssigned = (function() {
|
|
|
262693
263190
|
delete message.createdAtTimestamp;
|
|
262694
263191
|
continue;
|
|
262695
263192
|
}
|
|
263193
|
+
case 6: {
|
|
263194
|
+
if (wireType !== 2)
|
|
263195
|
+
break;
|
|
263196
|
+
if ((value = reader.string()).length)
|
|
263197
|
+
message.fidelityTier = value;
|
|
263198
|
+
else
|
|
263199
|
+
delete message.fidelityTier;
|
|
263200
|
+
continue;
|
|
263201
|
+
}
|
|
263202
|
+
case 7: {
|
|
263203
|
+
if (wireType !== 2)
|
|
263204
|
+
break;
|
|
263205
|
+
message.scoreBand = reader.string();
|
|
263206
|
+
message._scoreBand = "scoreBand";
|
|
263207
|
+
continue;
|
|
263208
|
+
}
|
|
263209
|
+
case 8: {
|
|
263210
|
+
if (wireType !== 2)
|
|
263211
|
+
break;
|
|
263212
|
+
message.coldStartStatus = reader.string();
|
|
263213
|
+
message._coldStartStatus = "coldStartStatus";
|
|
263214
|
+
continue;
|
|
263215
|
+
}
|
|
263216
|
+
case 9: {
|
|
263217
|
+
if (wireType !== 2)
|
|
263218
|
+
break;
|
|
263219
|
+
message.bundleIdentifier = reader.string();
|
|
263220
|
+
message._bundleIdentifier = "bundleIdentifier";
|
|
263221
|
+
continue;
|
|
263222
|
+
}
|
|
262696
263223
|
}
|
|
262697
263224
|
reader.skipType(wireType, _depth, tag);
|
|
262698
263225
|
$util.makeProp(message, "$unknowns", false);
|
|
@@ -262752,6 +263279,24 @@ $root.PartnerSignalStateAssigned = (function() {
|
|
|
262752
263279
|
if (message.createdAtTimestamp != null && message.hasOwnProperty("createdAtTimestamp"))
|
|
262753
263280
|
if (!$util.isInteger(message.createdAtTimestamp) && !(message.createdAtTimestamp && $util.isInteger(message.createdAtTimestamp.low) && $util.isInteger(message.createdAtTimestamp.high)))
|
|
262754
263281
|
return "createdAtTimestamp: integer|Long expected";
|
|
263282
|
+
if (message.fidelityTier != null && message.hasOwnProperty("fidelityTier"))
|
|
263283
|
+
if (!$util.isString(message.fidelityTier))
|
|
263284
|
+
return "fidelityTier: string expected";
|
|
263285
|
+
if (message.scoreBand != null && message.hasOwnProperty("scoreBand")) {
|
|
263286
|
+
properties._scoreBand = 1;
|
|
263287
|
+
if (!$util.isString(message.scoreBand))
|
|
263288
|
+
return "scoreBand: string expected";
|
|
263289
|
+
}
|
|
263290
|
+
if (message.coldStartStatus != null && message.hasOwnProperty("coldStartStatus")) {
|
|
263291
|
+
properties._coldStartStatus = 1;
|
|
263292
|
+
if (!$util.isString(message.coldStartStatus))
|
|
263293
|
+
return "coldStartStatus: string expected";
|
|
263294
|
+
}
|
|
263295
|
+
if (message.bundleIdentifier != null && message.hasOwnProperty("bundleIdentifier")) {
|
|
263296
|
+
properties._bundleIdentifier = 1;
|
|
263297
|
+
if (!$util.isString(message.bundleIdentifier))
|
|
263298
|
+
return "bundleIdentifier: string expected";
|
|
263299
|
+
}
|
|
262755
263300
|
return null;
|
|
262756
263301
|
};
|
|
262757
263302
|
|
|
@@ -262792,6 +263337,15 @@ $root.PartnerSignalStateAssigned = (function() {
|
|
|
262792
263337
|
message.createdAtTimestamp = object.createdAtTimestamp;
|
|
262793
263338
|
else if (typeof object.createdAtTimestamp === "object")
|
|
262794
263339
|
message.createdAtTimestamp = new $util.LongBits(object.createdAtTimestamp.low >>> 0, object.createdAtTimestamp.high >>> 0).toNumber(true);
|
|
263340
|
+
if (object.fidelityTier != null)
|
|
263341
|
+
if (typeof object.fidelityTier !== "string" || object.fidelityTier.length)
|
|
263342
|
+
message.fidelityTier = String(object.fidelityTier);
|
|
263343
|
+
if (object.scoreBand != null)
|
|
263344
|
+
message.scoreBand = String(object.scoreBand);
|
|
263345
|
+
if (object.coldStartStatus != null)
|
|
263346
|
+
message.coldStartStatus = String(object.coldStartStatus);
|
|
263347
|
+
if (object.bundleIdentifier != null)
|
|
263348
|
+
message.bundleIdentifier = String(object.bundleIdentifier);
|
|
262795
263349
|
return message;
|
|
262796
263350
|
};
|
|
262797
263351
|
|
|
@@ -262817,6 +263371,7 @@ $root.PartnerSignalStateAssigned = (function() {
|
|
|
262817
263371
|
object.createdAtTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
262818
263372
|
} else
|
|
262819
263373
|
object.createdAtTimestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
263374
|
+
object.fidelityTier = "";
|
|
262820
263375
|
}
|
|
262821
263376
|
if (message.partnerId != null && message.hasOwnProperty("partnerId")) {
|
|
262822
263377
|
object.partnerId = message.partnerId;
|
|
@@ -262836,6 +263391,23 @@ $root.PartnerSignalStateAssigned = (function() {
|
|
|
262836
263391
|
object.createdAtTimestamp = options.longs === String ? String(message.createdAtTimestamp) : message.createdAtTimestamp;
|
|
262837
263392
|
else
|
|
262838
263393
|
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;
|
|
263394
|
+
if (message.fidelityTier != null && message.hasOwnProperty("fidelityTier"))
|
|
263395
|
+
object.fidelityTier = message.fidelityTier;
|
|
263396
|
+
if (message.scoreBand != null && message.hasOwnProperty("scoreBand")) {
|
|
263397
|
+
object.scoreBand = message.scoreBand;
|
|
263398
|
+
if (options.oneofs)
|
|
263399
|
+
object._scoreBand = "scoreBand";
|
|
263400
|
+
}
|
|
263401
|
+
if (message.coldStartStatus != null && message.hasOwnProperty("coldStartStatus")) {
|
|
263402
|
+
object.coldStartStatus = message.coldStartStatus;
|
|
263403
|
+
if (options.oneofs)
|
|
263404
|
+
object._coldStartStatus = "coldStartStatus";
|
|
263405
|
+
}
|
|
263406
|
+
if (message.bundleIdentifier != null && message.hasOwnProperty("bundleIdentifier")) {
|
|
263407
|
+
object.bundleIdentifier = message.bundleIdentifier;
|
|
263408
|
+
if (options.oneofs)
|
|
263409
|
+
object._bundleIdentifier = "bundleIdentifier";
|
|
263410
|
+
}
|
|
262839
263411
|
return object;
|
|
262840
263412
|
};
|
|
262841
263413
|
|
package/package.json
CHANGED