@headspace/protos-events 1.599.0 → 1.601.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 +612 -0
- package/lib/index.js +1397 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -5856,6 +5856,216 @@ $root.clinical = (function() {
|
|
|
5856
5856
|
return values;
|
|
5857
5857
|
})();
|
|
5858
5858
|
|
|
5859
|
+
clinical.CoachRoleDisplay = (function() {
|
|
5860
|
+
|
|
5861
|
+
/**
|
|
5862
|
+
* Properties of a CoachRoleDisplay.
|
|
5863
|
+
* @memberof clinical
|
|
5864
|
+
* @interface ICoachRoleDisplay
|
|
5865
|
+
* @property {string|null} [roleFamily] CoachRoleDisplay roleFamily
|
|
5866
|
+
* @property {string|null} [roleModifier] CoachRoleDisplay roleModifier
|
|
5867
|
+
*/
|
|
5868
|
+
|
|
5869
|
+
/**
|
|
5870
|
+
* Constructs a new CoachRoleDisplay.
|
|
5871
|
+
* @memberof clinical
|
|
5872
|
+
* @classdesc Represents a CoachRoleDisplay.
|
|
5873
|
+
* @implements ICoachRoleDisplay
|
|
5874
|
+
* @constructor
|
|
5875
|
+
* @param {clinical.ICoachRoleDisplay=} [properties] Properties to set
|
|
5876
|
+
*/
|
|
5877
|
+
function CoachRoleDisplay(properties) {
|
|
5878
|
+
if (properties)
|
|
5879
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
5880
|
+
if (properties[keys[i]] != null)
|
|
5881
|
+
this[keys[i]] = properties[keys[i]];
|
|
5882
|
+
}
|
|
5883
|
+
|
|
5884
|
+
/**
|
|
5885
|
+
* CoachRoleDisplay roleFamily.
|
|
5886
|
+
* @member {string} roleFamily
|
|
5887
|
+
* @memberof clinical.CoachRoleDisplay
|
|
5888
|
+
* @instance
|
|
5889
|
+
*/
|
|
5890
|
+
CoachRoleDisplay.prototype.roleFamily = "";
|
|
5891
|
+
|
|
5892
|
+
/**
|
|
5893
|
+
* CoachRoleDisplay roleModifier.
|
|
5894
|
+
* @member {string} roleModifier
|
|
5895
|
+
* @memberof clinical.CoachRoleDisplay
|
|
5896
|
+
* @instance
|
|
5897
|
+
*/
|
|
5898
|
+
CoachRoleDisplay.prototype.roleModifier = "";
|
|
5899
|
+
|
|
5900
|
+
/**
|
|
5901
|
+
* Creates a new CoachRoleDisplay instance using the specified properties.
|
|
5902
|
+
* @function create
|
|
5903
|
+
* @memberof clinical.CoachRoleDisplay
|
|
5904
|
+
* @static
|
|
5905
|
+
* @param {clinical.ICoachRoleDisplay=} [properties] Properties to set
|
|
5906
|
+
* @returns {clinical.CoachRoleDisplay} CoachRoleDisplay instance
|
|
5907
|
+
*/
|
|
5908
|
+
CoachRoleDisplay.create = function create(properties) {
|
|
5909
|
+
return new CoachRoleDisplay(properties);
|
|
5910
|
+
};
|
|
5911
|
+
|
|
5912
|
+
/**
|
|
5913
|
+
* Encodes the specified CoachRoleDisplay message. Does not implicitly {@link clinical.CoachRoleDisplay.verify|verify} messages.
|
|
5914
|
+
* @function encode
|
|
5915
|
+
* @memberof clinical.CoachRoleDisplay
|
|
5916
|
+
* @static
|
|
5917
|
+
* @param {clinical.ICoachRoleDisplay} message CoachRoleDisplay message or plain object to encode
|
|
5918
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5919
|
+
* @returns {$protobuf.Writer} Writer
|
|
5920
|
+
*/
|
|
5921
|
+
CoachRoleDisplay.encode = function encode(message, writer) {
|
|
5922
|
+
if (!writer)
|
|
5923
|
+
writer = $Writer.create();
|
|
5924
|
+
if (message.roleFamily != null && message.hasOwnProperty("roleFamily"))
|
|
5925
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.roleFamily);
|
|
5926
|
+
if (message.roleModifier != null && message.hasOwnProperty("roleModifier"))
|
|
5927
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.roleModifier);
|
|
5928
|
+
return writer;
|
|
5929
|
+
};
|
|
5930
|
+
|
|
5931
|
+
/**
|
|
5932
|
+
* Encodes the specified CoachRoleDisplay message, length delimited. Does not implicitly {@link clinical.CoachRoleDisplay.verify|verify} messages.
|
|
5933
|
+
* @function encodeDelimited
|
|
5934
|
+
* @memberof clinical.CoachRoleDisplay
|
|
5935
|
+
* @static
|
|
5936
|
+
* @param {clinical.ICoachRoleDisplay} message CoachRoleDisplay message or plain object to encode
|
|
5937
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5938
|
+
* @returns {$protobuf.Writer} Writer
|
|
5939
|
+
*/
|
|
5940
|
+
CoachRoleDisplay.encodeDelimited = function encodeDelimited(message, writer) {
|
|
5941
|
+
return this.encode(message, writer).ldelim();
|
|
5942
|
+
};
|
|
5943
|
+
|
|
5944
|
+
/**
|
|
5945
|
+
* Decodes a CoachRoleDisplay message from the specified reader or buffer.
|
|
5946
|
+
* @function decode
|
|
5947
|
+
* @memberof clinical.CoachRoleDisplay
|
|
5948
|
+
* @static
|
|
5949
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5950
|
+
* @param {number} [length] Message length if known beforehand
|
|
5951
|
+
* @returns {clinical.CoachRoleDisplay} CoachRoleDisplay
|
|
5952
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5953
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5954
|
+
*/
|
|
5955
|
+
CoachRoleDisplay.decode = function decode(reader, length) {
|
|
5956
|
+
if (!(reader instanceof $Reader))
|
|
5957
|
+
reader = $Reader.create(reader);
|
|
5958
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.clinical.CoachRoleDisplay();
|
|
5959
|
+
while (reader.pos < end) {
|
|
5960
|
+
var tag = reader.uint32();
|
|
5961
|
+
switch (tag >>> 3) {
|
|
5962
|
+
case 1:
|
|
5963
|
+
message.roleFamily = reader.string();
|
|
5964
|
+
break;
|
|
5965
|
+
case 2:
|
|
5966
|
+
message.roleModifier = reader.string();
|
|
5967
|
+
break;
|
|
5968
|
+
default:
|
|
5969
|
+
reader.skipType(tag & 7);
|
|
5970
|
+
break;
|
|
5971
|
+
}
|
|
5972
|
+
}
|
|
5973
|
+
return message;
|
|
5974
|
+
};
|
|
5975
|
+
|
|
5976
|
+
/**
|
|
5977
|
+
* Decodes a CoachRoleDisplay message from the specified reader or buffer, length delimited.
|
|
5978
|
+
* @function decodeDelimited
|
|
5979
|
+
* @memberof clinical.CoachRoleDisplay
|
|
5980
|
+
* @static
|
|
5981
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5982
|
+
* @returns {clinical.CoachRoleDisplay} CoachRoleDisplay
|
|
5983
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5984
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5985
|
+
*/
|
|
5986
|
+
CoachRoleDisplay.decodeDelimited = function decodeDelimited(reader) {
|
|
5987
|
+
if (!(reader instanceof $Reader))
|
|
5988
|
+
reader = new $Reader(reader);
|
|
5989
|
+
return this.decode(reader, reader.uint32());
|
|
5990
|
+
};
|
|
5991
|
+
|
|
5992
|
+
/**
|
|
5993
|
+
* Verifies a CoachRoleDisplay message.
|
|
5994
|
+
* @function verify
|
|
5995
|
+
* @memberof clinical.CoachRoleDisplay
|
|
5996
|
+
* @static
|
|
5997
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
5998
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
5999
|
+
*/
|
|
6000
|
+
CoachRoleDisplay.verify = function verify(message) {
|
|
6001
|
+
if (typeof message !== "object" || message === null)
|
|
6002
|
+
return "object expected";
|
|
6003
|
+
if (message.roleFamily != null && message.hasOwnProperty("roleFamily"))
|
|
6004
|
+
if (!$util.isString(message.roleFamily))
|
|
6005
|
+
return "roleFamily: string expected";
|
|
6006
|
+
if (message.roleModifier != null && message.hasOwnProperty("roleModifier"))
|
|
6007
|
+
if (!$util.isString(message.roleModifier))
|
|
6008
|
+
return "roleModifier: string expected";
|
|
6009
|
+
return null;
|
|
6010
|
+
};
|
|
6011
|
+
|
|
6012
|
+
/**
|
|
6013
|
+
* Creates a CoachRoleDisplay message from a plain object. Also converts values to their respective internal types.
|
|
6014
|
+
* @function fromObject
|
|
6015
|
+
* @memberof clinical.CoachRoleDisplay
|
|
6016
|
+
* @static
|
|
6017
|
+
* @param {Object.<string,*>} object Plain object
|
|
6018
|
+
* @returns {clinical.CoachRoleDisplay} CoachRoleDisplay
|
|
6019
|
+
*/
|
|
6020
|
+
CoachRoleDisplay.fromObject = function fromObject(object) {
|
|
6021
|
+
if (object instanceof $root.clinical.CoachRoleDisplay)
|
|
6022
|
+
return object;
|
|
6023
|
+
var message = new $root.clinical.CoachRoleDisplay();
|
|
6024
|
+
if (object.roleFamily != null)
|
|
6025
|
+
message.roleFamily = String(object.roleFamily);
|
|
6026
|
+
if (object.roleModifier != null)
|
|
6027
|
+
message.roleModifier = String(object.roleModifier);
|
|
6028
|
+
return message;
|
|
6029
|
+
};
|
|
6030
|
+
|
|
6031
|
+
/**
|
|
6032
|
+
* Creates a plain object from a CoachRoleDisplay message. Also converts values to other types if specified.
|
|
6033
|
+
* @function toObject
|
|
6034
|
+
* @memberof clinical.CoachRoleDisplay
|
|
6035
|
+
* @static
|
|
6036
|
+
* @param {clinical.CoachRoleDisplay} message CoachRoleDisplay
|
|
6037
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
6038
|
+
* @returns {Object.<string,*>} Plain object
|
|
6039
|
+
*/
|
|
6040
|
+
CoachRoleDisplay.toObject = function toObject(message, options) {
|
|
6041
|
+
if (!options)
|
|
6042
|
+
options = {};
|
|
6043
|
+
var object = {};
|
|
6044
|
+
if (options.defaults) {
|
|
6045
|
+
object.roleFamily = "";
|
|
6046
|
+
object.roleModifier = "";
|
|
6047
|
+
}
|
|
6048
|
+
if (message.roleFamily != null && message.hasOwnProperty("roleFamily"))
|
|
6049
|
+
object.roleFamily = message.roleFamily;
|
|
6050
|
+
if (message.roleModifier != null && message.hasOwnProperty("roleModifier"))
|
|
6051
|
+
object.roleModifier = message.roleModifier;
|
|
6052
|
+
return object;
|
|
6053
|
+
};
|
|
6054
|
+
|
|
6055
|
+
/**
|
|
6056
|
+
* Converts this CoachRoleDisplay to JSON.
|
|
6057
|
+
* @function toJSON
|
|
6058
|
+
* @memberof clinical.CoachRoleDisplay
|
|
6059
|
+
* @instance
|
|
6060
|
+
* @returns {Object.<string,*>} JSON object
|
|
6061
|
+
*/
|
|
6062
|
+
CoachRoleDisplay.prototype.toJSON = function toJSON() {
|
|
6063
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
6064
|
+
};
|
|
6065
|
+
|
|
6066
|
+
return CoachRoleDisplay;
|
|
6067
|
+
})();
|
|
6068
|
+
|
|
5859
6069
|
clinical.CoachRole = (function() {
|
|
5860
6070
|
|
|
5861
6071
|
/**
|
|
@@ -5864,6 +6074,7 @@ $root.clinical = (function() {
|
|
|
5864
6074
|
* @interface ICoachRole
|
|
5865
6075
|
* @property {number|Long|null} [createdAt] CoachRole createdAt
|
|
5866
6076
|
* @property {clinical.CoachRoleType|null} [roleType] CoachRole roleType
|
|
6077
|
+
* @property {clinical.ICoachRoleDisplay|null} [roleDisplay] CoachRole roleDisplay
|
|
5867
6078
|
*/
|
|
5868
6079
|
|
|
5869
6080
|
/**
|
|
@@ -5897,6 +6108,14 @@ $root.clinical = (function() {
|
|
|
5897
6108
|
*/
|
|
5898
6109
|
CoachRole.prototype.roleType = 0;
|
|
5899
6110
|
|
|
6111
|
+
/**
|
|
6112
|
+
* CoachRole roleDisplay.
|
|
6113
|
+
* @member {clinical.ICoachRoleDisplay|null|undefined} roleDisplay
|
|
6114
|
+
* @memberof clinical.CoachRole
|
|
6115
|
+
* @instance
|
|
6116
|
+
*/
|
|
6117
|
+
CoachRole.prototype.roleDisplay = null;
|
|
6118
|
+
|
|
5900
6119
|
/**
|
|
5901
6120
|
* Creates a new CoachRole instance using the specified properties.
|
|
5902
6121
|
* @function create
|
|
@@ -5925,6 +6144,8 @@ $root.clinical = (function() {
|
|
|
5925
6144
|
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.createdAt);
|
|
5926
6145
|
if (message.roleType != null && message.hasOwnProperty("roleType"))
|
|
5927
6146
|
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.roleType);
|
|
6147
|
+
if (message.roleDisplay != null && message.hasOwnProperty("roleDisplay"))
|
|
6148
|
+
$root.clinical.CoachRoleDisplay.encode(message.roleDisplay, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
5928
6149
|
return writer;
|
|
5929
6150
|
};
|
|
5930
6151
|
|
|
@@ -5965,6 +6186,9 @@ $root.clinical = (function() {
|
|
|
5965
6186
|
case 2:
|
|
5966
6187
|
message.roleType = reader.int32();
|
|
5967
6188
|
break;
|
|
6189
|
+
case 3:
|
|
6190
|
+
message.roleDisplay = $root.clinical.CoachRoleDisplay.decode(reader, reader.uint32());
|
|
6191
|
+
break;
|
|
5968
6192
|
default:
|
|
5969
6193
|
reader.skipType(tag & 7);
|
|
5970
6194
|
break;
|
|
@@ -6101,6 +6325,11 @@ $root.clinical = (function() {
|
|
|
6101
6325
|
case 91:
|
|
6102
6326
|
break;
|
|
6103
6327
|
}
|
|
6328
|
+
if (message.roleDisplay != null && message.hasOwnProperty("roleDisplay")) {
|
|
6329
|
+
var error = $root.clinical.CoachRoleDisplay.verify(message.roleDisplay);
|
|
6330
|
+
if (error)
|
|
6331
|
+
return "roleDisplay." + error;
|
|
6332
|
+
}
|
|
6104
6333
|
return null;
|
|
6105
6334
|
};
|
|
6106
6335
|
|
|
@@ -6495,6 +6724,11 @@ $root.clinical = (function() {
|
|
|
6495
6724
|
message.roleType = 91;
|
|
6496
6725
|
break;
|
|
6497
6726
|
}
|
|
6727
|
+
if (object.roleDisplay != null) {
|
|
6728
|
+
if (typeof object.roleDisplay !== "object")
|
|
6729
|
+
throw TypeError(".clinical.CoachRole.roleDisplay: object expected");
|
|
6730
|
+
message.roleDisplay = $root.clinical.CoachRoleDisplay.fromObject(object.roleDisplay);
|
|
6731
|
+
}
|
|
6498
6732
|
return message;
|
|
6499
6733
|
};
|
|
6500
6734
|
|
|
@@ -6518,6 +6752,7 @@ $root.clinical = (function() {
|
|
|
6518
6752
|
} else
|
|
6519
6753
|
object.createdAt = options.longs === String ? "0" : 0;
|
|
6520
6754
|
object.roleType = options.enums === String ? "COACH_ROLE_TYPE_COACH_ROLE_UNKNOWN" : 0;
|
|
6755
|
+
object.roleDisplay = null;
|
|
6521
6756
|
}
|
|
6522
6757
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
6523
6758
|
if (typeof message.createdAt === "number")
|
|
@@ -6526,6 +6761,8 @@ $root.clinical = (function() {
|
|
|
6526
6761
|
object.createdAt = options.longs === String ? $util.Long.prototype.toString.call(message.createdAt) : options.longs === Number ? new $util.LongBits(message.createdAt.low >>> 0, message.createdAt.high >>> 0).toNumber(true) : message.createdAt;
|
|
6527
6762
|
if (message.roleType != null && message.hasOwnProperty("roleType"))
|
|
6528
6763
|
object.roleType = options.enums === String ? $root.clinical.CoachRoleType[message.roleType] : message.roleType;
|
|
6764
|
+
if (message.roleDisplay != null && message.hasOwnProperty("roleDisplay"))
|
|
6765
|
+
object.roleDisplay = $root.clinical.CoachRoleDisplay.toObject(message.roleDisplay, options);
|
|
6529
6766
|
return object;
|
|
6530
6767
|
};
|
|
6531
6768
|
|
|
@@ -129644,6 +129881,702 @@ $root.BrazeProxyChatMessageSent = (function() {
|
|
|
129644
129881
|
return BrazeProxyChatMessageSent;
|
|
129645
129882
|
})();
|
|
129646
129883
|
|
|
129884
|
+
$root.ClinicalIntakeAssigned = (function() {
|
|
129885
|
+
|
|
129886
|
+
/**
|
|
129887
|
+
* Properties of a ClinicalIntakeAssigned.
|
|
129888
|
+
* @name IClinicalIntakeAssigned
|
|
129889
|
+
* @interface IClinicalIntakeAssigned
|
|
129890
|
+
* @property {string|null} [hsUserId] ClinicalIntakeAssigned hsUserId
|
|
129891
|
+
* @property {number|null} [gingerUserId] ClinicalIntakeAssigned gingerUserId
|
|
129892
|
+
* @property {string|null} [assignedAtIsoDate] ClinicalIntakeAssigned assignedAtIsoDate
|
|
129893
|
+
*/
|
|
129894
|
+
|
|
129895
|
+
/**
|
|
129896
|
+
* Constructs a new ClinicalIntakeAssigned.
|
|
129897
|
+
* @name ClinicalIntakeAssigned
|
|
129898
|
+
* @classdesc Represents a ClinicalIntakeAssigned.
|
|
129899
|
+
* @implements IClinicalIntakeAssigned
|
|
129900
|
+
* @constructor
|
|
129901
|
+
* @param {IClinicalIntakeAssigned=} [properties] Properties to set
|
|
129902
|
+
*/
|
|
129903
|
+
function ClinicalIntakeAssigned(properties) {
|
|
129904
|
+
if (properties)
|
|
129905
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
129906
|
+
if (properties[keys[i]] != null)
|
|
129907
|
+
this[keys[i]] = properties[keys[i]];
|
|
129908
|
+
}
|
|
129909
|
+
|
|
129910
|
+
/**
|
|
129911
|
+
* ClinicalIntakeAssigned hsUserId.
|
|
129912
|
+
* @member {string} hsUserId
|
|
129913
|
+
* @memberof ClinicalIntakeAssigned
|
|
129914
|
+
* @instance
|
|
129915
|
+
*/
|
|
129916
|
+
ClinicalIntakeAssigned.prototype.hsUserId = "";
|
|
129917
|
+
|
|
129918
|
+
/**
|
|
129919
|
+
* ClinicalIntakeAssigned gingerUserId.
|
|
129920
|
+
* @member {number} gingerUserId
|
|
129921
|
+
* @memberof ClinicalIntakeAssigned
|
|
129922
|
+
* @instance
|
|
129923
|
+
*/
|
|
129924
|
+
ClinicalIntakeAssigned.prototype.gingerUserId = 0;
|
|
129925
|
+
|
|
129926
|
+
/**
|
|
129927
|
+
* ClinicalIntakeAssigned assignedAtIsoDate.
|
|
129928
|
+
* @member {string} assignedAtIsoDate
|
|
129929
|
+
* @memberof ClinicalIntakeAssigned
|
|
129930
|
+
* @instance
|
|
129931
|
+
*/
|
|
129932
|
+
ClinicalIntakeAssigned.prototype.assignedAtIsoDate = "";
|
|
129933
|
+
|
|
129934
|
+
/**
|
|
129935
|
+
* Creates a new ClinicalIntakeAssigned instance using the specified properties.
|
|
129936
|
+
* @function create
|
|
129937
|
+
* @memberof ClinicalIntakeAssigned
|
|
129938
|
+
* @static
|
|
129939
|
+
* @param {IClinicalIntakeAssigned=} [properties] Properties to set
|
|
129940
|
+
* @returns {ClinicalIntakeAssigned} ClinicalIntakeAssigned instance
|
|
129941
|
+
*/
|
|
129942
|
+
ClinicalIntakeAssigned.create = function create(properties) {
|
|
129943
|
+
return new ClinicalIntakeAssigned(properties);
|
|
129944
|
+
};
|
|
129945
|
+
|
|
129946
|
+
/**
|
|
129947
|
+
* Encodes the specified ClinicalIntakeAssigned message. Does not implicitly {@link ClinicalIntakeAssigned.verify|verify} messages.
|
|
129948
|
+
* @function encode
|
|
129949
|
+
* @memberof ClinicalIntakeAssigned
|
|
129950
|
+
* @static
|
|
129951
|
+
* @param {IClinicalIntakeAssigned} message ClinicalIntakeAssigned message or plain object to encode
|
|
129952
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
129953
|
+
* @returns {$protobuf.Writer} Writer
|
|
129954
|
+
*/
|
|
129955
|
+
ClinicalIntakeAssigned.encode = function encode(message, writer) {
|
|
129956
|
+
if (!writer)
|
|
129957
|
+
writer = $Writer.create();
|
|
129958
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
129959
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
|
|
129960
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
129961
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.gingerUserId);
|
|
129962
|
+
if (message.assignedAtIsoDate != null && message.hasOwnProperty("assignedAtIsoDate"))
|
|
129963
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.assignedAtIsoDate);
|
|
129964
|
+
return writer;
|
|
129965
|
+
};
|
|
129966
|
+
|
|
129967
|
+
/**
|
|
129968
|
+
* Encodes the specified ClinicalIntakeAssigned message, length delimited. Does not implicitly {@link ClinicalIntakeAssigned.verify|verify} messages.
|
|
129969
|
+
* @function encodeDelimited
|
|
129970
|
+
* @memberof ClinicalIntakeAssigned
|
|
129971
|
+
* @static
|
|
129972
|
+
* @param {IClinicalIntakeAssigned} message ClinicalIntakeAssigned message or plain object to encode
|
|
129973
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
129974
|
+
* @returns {$protobuf.Writer} Writer
|
|
129975
|
+
*/
|
|
129976
|
+
ClinicalIntakeAssigned.encodeDelimited = function encodeDelimited(message, writer) {
|
|
129977
|
+
return this.encode(message, writer).ldelim();
|
|
129978
|
+
};
|
|
129979
|
+
|
|
129980
|
+
/**
|
|
129981
|
+
* Decodes a ClinicalIntakeAssigned message from the specified reader or buffer.
|
|
129982
|
+
* @function decode
|
|
129983
|
+
* @memberof ClinicalIntakeAssigned
|
|
129984
|
+
* @static
|
|
129985
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
129986
|
+
* @param {number} [length] Message length if known beforehand
|
|
129987
|
+
* @returns {ClinicalIntakeAssigned} ClinicalIntakeAssigned
|
|
129988
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
129989
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
129990
|
+
*/
|
|
129991
|
+
ClinicalIntakeAssigned.decode = function decode(reader, length) {
|
|
129992
|
+
if (!(reader instanceof $Reader))
|
|
129993
|
+
reader = $Reader.create(reader);
|
|
129994
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ClinicalIntakeAssigned();
|
|
129995
|
+
while (reader.pos < end) {
|
|
129996
|
+
var tag = reader.uint32();
|
|
129997
|
+
switch (tag >>> 3) {
|
|
129998
|
+
case 1:
|
|
129999
|
+
message.hsUserId = reader.string();
|
|
130000
|
+
break;
|
|
130001
|
+
case 2:
|
|
130002
|
+
message.gingerUserId = reader.uint32();
|
|
130003
|
+
break;
|
|
130004
|
+
case 3:
|
|
130005
|
+
message.assignedAtIsoDate = reader.string();
|
|
130006
|
+
break;
|
|
130007
|
+
default:
|
|
130008
|
+
reader.skipType(tag & 7);
|
|
130009
|
+
break;
|
|
130010
|
+
}
|
|
130011
|
+
}
|
|
130012
|
+
return message;
|
|
130013
|
+
};
|
|
130014
|
+
|
|
130015
|
+
/**
|
|
130016
|
+
* Decodes a ClinicalIntakeAssigned message from the specified reader or buffer, length delimited.
|
|
130017
|
+
* @function decodeDelimited
|
|
130018
|
+
* @memberof ClinicalIntakeAssigned
|
|
130019
|
+
* @static
|
|
130020
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
130021
|
+
* @returns {ClinicalIntakeAssigned} ClinicalIntakeAssigned
|
|
130022
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
130023
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
130024
|
+
*/
|
|
130025
|
+
ClinicalIntakeAssigned.decodeDelimited = function decodeDelimited(reader) {
|
|
130026
|
+
if (!(reader instanceof $Reader))
|
|
130027
|
+
reader = new $Reader(reader);
|
|
130028
|
+
return this.decode(reader, reader.uint32());
|
|
130029
|
+
};
|
|
130030
|
+
|
|
130031
|
+
/**
|
|
130032
|
+
* Verifies a ClinicalIntakeAssigned message.
|
|
130033
|
+
* @function verify
|
|
130034
|
+
* @memberof ClinicalIntakeAssigned
|
|
130035
|
+
* @static
|
|
130036
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
130037
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
130038
|
+
*/
|
|
130039
|
+
ClinicalIntakeAssigned.verify = function verify(message) {
|
|
130040
|
+
if (typeof message !== "object" || message === null)
|
|
130041
|
+
return "object expected";
|
|
130042
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
130043
|
+
if (!$util.isString(message.hsUserId))
|
|
130044
|
+
return "hsUserId: string expected";
|
|
130045
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
130046
|
+
if (!$util.isInteger(message.gingerUserId))
|
|
130047
|
+
return "gingerUserId: integer expected";
|
|
130048
|
+
if (message.assignedAtIsoDate != null && message.hasOwnProperty("assignedAtIsoDate"))
|
|
130049
|
+
if (!$util.isString(message.assignedAtIsoDate))
|
|
130050
|
+
return "assignedAtIsoDate: string expected";
|
|
130051
|
+
return null;
|
|
130052
|
+
};
|
|
130053
|
+
|
|
130054
|
+
/**
|
|
130055
|
+
* Creates a ClinicalIntakeAssigned message from a plain object. Also converts values to their respective internal types.
|
|
130056
|
+
* @function fromObject
|
|
130057
|
+
* @memberof ClinicalIntakeAssigned
|
|
130058
|
+
* @static
|
|
130059
|
+
* @param {Object.<string,*>} object Plain object
|
|
130060
|
+
* @returns {ClinicalIntakeAssigned} ClinicalIntakeAssigned
|
|
130061
|
+
*/
|
|
130062
|
+
ClinicalIntakeAssigned.fromObject = function fromObject(object) {
|
|
130063
|
+
if (object instanceof $root.ClinicalIntakeAssigned)
|
|
130064
|
+
return object;
|
|
130065
|
+
var message = new $root.ClinicalIntakeAssigned();
|
|
130066
|
+
if (object.hsUserId != null)
|
|
130067
|
+
message.hsUserId = String(object.hsUserId);
|
|
130068
|
+
if (object.gingerUserId != null)
|
|
130069
|
+
message.gingerUserId = object.gingerUserId >>> 0;
|
|
130070
|
+
if (object.assignedAtIsoDate != null)
|
|
130071
|
+
message.assignedAtIsoDate = String(object.assignedAtIsoDate);
|
|
130072
|
+
return message;
|
|
130073
|
+
};
|
|
130074
|
+
|
|
130075
|
+
/**
|
|
130076
|
+
* Creates a plain object from a ClinicalIntakeAssigned message. Also converts values to other types if specified.
|
|
130077
|
+
* @function toObject
|
|
130078
|
+
* @memberof ClinicalIntakeAssigned
|
|
130079
|
+
* @static
|
|
130080
|
+
* @param {ClinicalIntakeAssigned} message ClinicalIntakeAssigned
|
|
130081
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
130082
|
+
* @returns {Object.<string,*>} Plain object
|
|
130083
|
+
*/
|
|
130084
|
+
ClinicalIntakeAssigned.toObject = function toObject(message, options) {
|
|
130085
|
+
if (!options)
|
|
130086
|
+
options = {};
|
|
130087
|
+
var object = {};
|
|
130088
|
+
if (options.defaults) {
|
|
130089
|
+
object.hsUserId = "";
|
|
130090
|
+
object.gingerUserId = 0;
|
|
130091
|
+
object.assignedAtIsoDate = "";
|
|
130092
|
+
}
|
|
130093
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
130094
|
+
object.hsUserId = message.hsUserId;
|
|
130095
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
130096
|
+
object.gingerUserId = message.gingerUserId;
|
|
130097
|
+
if (message.assignedAtIsoDate != null && message.hasOwnProperty("assignedAtIsoDate"))
|
|
130098
|
+
object.assignedAtIsoDate = message.assignedAtIsoDate;
|
|
130099
|
+
return object;
|
|
130100
|
+
};
|
|
130101
|
+
|
|
130102
|
+
/**
|
|
130103
|
+
* Converts this ClinicalIntakeAssigned to JSON.
|
|
130104
|
+
* @function toJSON
|
|
130105
|
+
* @memberof ClinicalIntakeAssigned
|
|
130106
|
+
* @instance
|
|
130107
|
+
* @returns {Object.<string,*>} JSON object
|
|
130108
|
+
*/
|
|
130109
|
+
ClinicalIntakeAssigned.prototype.toJSON = function toJSON() {
|
|
130110
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
130111
|
+
};
|
|
130112
|
+
|
|
130113
|
+
return ClinicalIntakeAssigned;
|
|
130114
|
+
})();
|
|
130115
|
+
|
|
130116
|
+
$root.ClinicalIntakeStarted = (function() {
|
|
130117
|
+
|
|
130118
|
+
/**
|
|
130119
|
+
* Properties of a ClinicalIntakeStarted.
|
|
130120
|
+
* @name IClinicalIntakeStarted
|
|
130121
|
+
* @interface IClinicalIntakeStarted
|
|
130122
|
+
* @property {string|null} [hsUserId] ClinicalIntakeStarted hsUserId
|
|
130123
|
+
* @property {number|null} [gingerUserId] ClinicalIntakeStarted gingerUserId
|
|
130124
|
+
* @property {string|null} [startedAtIsoDate] ClinicalIntakeStarted startedAtIsoDate
|
|
130125
|
+
*/
|
|
130126
|
+
|
|
130127
|
+
/**
|
|
130128
|
+
* Constructs a new ClinicalIntakeStarted.
|
|
130129
|
+
* @name ClinicalIntakeStarted
|
|
130130
|
+
* @classdesc Represents a ClinicalIntakeStarted.
|
|
130131
|
+
* @implements IClinicalIntakeStarted
|
|
130132
|
+
* @constructor
|
|
130133
|
+
* @param {IClinicalIntakeStarted=} [properties] Properties to set
|
|
130134
|
+
*/
|
|
130135
|
+
function ClinicalIntakeStarted(properties) {
|
|
130136
|
+
if (properties)
|
|
130137
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
130138
|
+
if (properties[keys[i]] != null)
|
|
130139
|
+
this[keys[i]] = properties[keys[i]];
|
|
130140
|
+
}
|
|
130141
|
+
|
|
130142
|
+
/**
|
|
130143
|
+
* ClinicalIntakeStarted hsUserId.
|
|
130144
|
+
* @member {string} hsUserId
|
|
130145
|
+
* @memberof ClinicalIntakeStarted
|
|
130146
|
+
* @instance
|
|
130147
|
+
*/
|
|
130148
|
+
ClinicalIntakeStarted.prototype.hsUserId = "";
|
|
130149
|
+
|
|
130150
|
+
/**
|
|
130151
|
+
* ClinicalIntakeStarted gingerUserId.
|
|
130152
|
+
* @member {number} gingerUserId
|
|
130153
|
+
* @memberof ClinicalIntakeStarted
|
|
130154
|
+
* @instance
|
|
130155
|
+
*/
|
|
130156
|
+
ClinicalIntakeStarted.prototype.gingerUserId = 0;
|
|
130157
|
+
|
|
130158
|
+
/**
|
|
130159
|
+
* ClinicalIntakeStarted startedAtIsoDate.
|
|
130160
|
+
* @member {string} startedAtIsoDate
|
|
130161
|
+
* @memberof ClinicalIntakeStarted
|
|
130162
|
+
* @instance
|
|
130163
|
+
*/
|
|
130164
|
+
ClinicalIntakeStarted.prototype.startedAtIsoDate = "";
|
|
130165
|
+
|
|
130166
|
+
/**
|
|
130167
|
+
* Creates a new ClinicalIntakeStarted instance using the specified properties.
|
|
130168
|
+
* @function create
|
|
130169
|
+
* @memberof ClinicalIntakeStarted
|
|
130170
|
+
* @static
|
|
130171
|
+
* @param {IClinicalIntakeStarted=} [properties] Properties to set
|
|
130172
|
+
* @returns {ClinicalIntakeStarted} ClinicalIntakeStarted instance
|
|
130173
|
+
*/
|
|
130174
|
+
ClinicalIntakeStarted.create = function create(properties) {
|
|
130175
|
+
return new ClinicalIntakeStarted(properties);
|
|
130176
|
+
};
|
|
130177
|
+
|
|
130178
|
+
/**
|
|
130179
|
+
* Encodes the specified ClinicalIntakeStarted message. Does not implicitly {@link ClinicalIntakeStarted.verify|verify} messages.
|
|
130180
|
+
* @function encode
|
|
130181
|
+
* @memberof ClinicalIntakeStarted
|
|
130182
|
+
* @static
|
|
130183
|
+
* @param {IClinicalIntakeStarted} message ClinicalIntakeStarted message or plain object to encode
|
|
130184
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
130185
|
+
* @returns {$protobuf.Writer} Writer
|
|
130186
|
+
*/
|
|
130187
|
+
ClinicalIntakeStarted.encode = function encode(message, writer) {
|
|
130188
|
+
if (!writer)
|
|
130189
|
+
writer = $Writer.create();
|
|
130190
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
130191
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
|
|
130192
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
130193
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.gingerUserId);
|
|
130194
|
+
if (message.startedAtIsoDate != null && message.hasOwnProperty("startedAtIsoDate"))
|
|
130195
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.startedAtIsoDate);
|
|
130196
|
+
return writer;
|
|
130197
|
+
};
|
|
130198
|
+
|
|
130199
|
+
/**
|
|
130200
|
+
* Encodes the specified ClinicalIntakeStarted message, length delimited. Does not implicitly {@link ClinicalIntakeStarted.verify|verify} messages.
|
|
130201
|
+
* @function encodeDelimited
|
|
130202
|
+
* @memberof ClinicalIntakeStarted
|
|
130203
|
+
* @static
|
|
130204
|
+
* @param {IClinicalIntakeStarted} message ClinicalIntakeStarted message or plain object to encode
|
|
130205
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
130206
|
+
* @returns {$protobuf.Writer} Writer
|
|
130207
|
+
*/
|
|
130208
|
+
ClinicalIntakeStarted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
130209
|
+
return this.encode(message, writer).ldelim();
|
|
130210
|
+
};
|
|
130211
|
+
|
|
130212
|
+
/**
|
|
130213
|
+
* Decodes a ClinicalIntakeStarted message from the specified reader or buffer.
|
|
130214
|
+
* @function decode
|
|
130215
|
+
* @memberof ClinicalIntakeStarted
|
|
130216
|
+
* @static
|
|
130217
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
130218
|
+
* @param {number} [length] Message length if known beforehand
|
|
130219
|
+
* @returns {ClinicalIntakeStarted} ClinicalIntakeStarted
|
|
130220
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
130221
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
130222
|
+
*/
|
|
130223
|
+
ClinicalIntakeStarted.decode = function decode(reader, length) {
|
|
130224
|
+
if (!(reader instanceof $Reader))
|
|
130225
|
+
reader = $Reader.create(reader);
|
|
130226
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ClinicalIntakeStarted();
|
|
130227
|
+
while (reader.pos < end) {
|
|
130228
|
+
var tag = reader.uint32();
|
|
130229
|
+
switch (tag >>> 3) {
|
|
130230
|
+
case 1:
|
|
130231
|
+
message.hsUserId = reader.string();
|
|
130232
|
+
break;
|
|
130233
|
+
case 2:
|
|
130234
|
+
message.gingerUserId = reader.uint32();
|
|
130235
|
+
break;
|
|
130236
|
+
case 3:
|
|
130237
|
+
message.startedAtIsoDate = reader.string();
|
|
130238
|
+
break;
|
|
130239
|
+
default:
|
|
130240
|
+
reader.skipType(tag & 7);
|
|
130241
|
+
break;
|
|
130242
|
+
}
|
|
130243
|
+
}
|
|
130244
|
+
return message;
|
|
130245
|
+
};
|
|
130246
|
+
|
|
130247
|
+
/**
|
|
130248
|
+
* Decodes a ClinicalIntakeStarted message from the specified reader or buffer, length delimited.
|
|
130249
|
+
* @function decodeDelimited
|
|
130250
|
+
* @memberof ClinicalIntakeStarted
|
|
130251
|
+
* @static
|
|
130252
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
130253
|
+
* @returns {ClinicalIntakeStarted} ClinicalIntakeStarted
|
|
130254
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
130255
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
130256
|
+
*/
|
|
130257
|
+
ClinicalIntakeStarted.decodeDelimited = function decodeDelimited(reader) {
|
|
130258
|
+
if (!(reader instanceof $Reader))
|
|
130259
|
+
reader = new $Reader(reader);
|
|
130260
|
+
return this.decode(reader, reader.uint32());
|
|
130261
|
+
};
|
|
130262
|
+
|
|
130263
|
+
/**
|
|
130264
|
+
* Verifies a ClinicalIntakeStarted message.
|
|
130265
|
+
* @function verify
|
|
130266
|
+
* @memberof ClinicalIntakeStarted
|
|
130267
|
+
* @static
|
|
130268
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
130269
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
130270
|
+
*/
|
|
130271
|
+
ClinicalIntakeStarted.verify = function verify(message) {
|
|
130272
|
+
if (typeof message !== "object" || message === null)
|
|
130273
|
+
return "object expected";
|
|
130274
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
130275
|
+
if (!$util.isString(message.hsUserId))
|
|
130276
|
+
return "hsUserId: string expected";
|
|
130277
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
130278
|
+
if (!$util.isInteger(message.gingerUserId))
|
|
130279
|
+
return "gingerUserId: integer expected";
|
|
130280
|
+
if (message.startedAtIsoDate != null && message.hasOwnProperty("startedAtIsoDate"))
|
|
130281
|
+
if (!$util.isString(message.startedAtIsoDate))
|
|
130282
|
+
return "startedAtIsoDate: string expected";
|
|
130283
|
+
return null;
|
|
130284
|
+
};
|
|
130285
|
+
|
|
130286
|
+
/**
|
|
130287
|
+
* Creates a ClinicalIntakeStarted message from a plain object. Also converts values to their respective internal types.
|
|
130288
|
+
* @function fromObject
|
|
130289
|
+
* @memberof ClinicalIntakeStarted
|
|
130290
|
+
* @static
|
|
130291
|
+
* @param {Object.<string,*>} object Plain object
|
|
130292
|
+
* @returns {ClinicalIntakeStarted} ClinicalIntakeStarted
|
|
130293
|
+
*/
|
|
130294
|
+
ClinicalIntakeStarted.fromObject = function fromObject(object) {
|
|
130295
|
+
if (object instanceof $root.ClinicalIntakeStarted)
|
|
130296
|
+
return object;
|
|
130297
|
+
var message = new $root.ClinicalIntakeStarted();
|
|
130298
|
+
if (object.hsUserId != null)
|
|
130299
|
+
message.hsUserId = String(object.hsUserId);
|
|
130300
|
+
if (object.gingerUserId != null)
|
|
130301
|
+
message.gingerUserId = object.gingerUserId >>> 0;
|
|
130302
|
+
if (object.startedAtIsoDate != null)
|
|
130303
|
+
message.startedAtIsoDate = String(object.startedAtIsoDate);
|
|
130304
|
+
return message;
|
|
130305
|
+
};
|
|
130306
|
+
|
|
130307
|
+
/**
|
|
130308
|
+
* Creates a plain object from a ClinicalIntakeStarted message. Also converts values to other types if specified.
|
|
130309
|
+
* @function toObject
|
|
130310
|
+
* @memberof ClinicalIntakeStarted
|
|
130311
|
+
* @static
|
|
130312
|
+
* @param {ClinicalIntakeStarted} message ClinicalIntakeStarted
|
|
130313
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
130314
|
+
* @returns {Object.<string,*>} Plain object
|
|
130315
|
+
*/
|
|
130316
|
+
ClinicalIntakeStarted.toObject = function toObject(message, options) {
|
|
130317
|
+
if (!options)
|
|
130318
|
+
options = {};
|
|
130319
|
+
var object = {};
|
|
130320
|
+
if (options.defaults) {
|
|
130321
|
+
object.hsUserId = "";
|
|
130322
|
+
object.gingerUserId = 0;
|
|
130323
|
+
object.startedAtIsoDate = "";
|
|
130324
|
+
}
|
|
130325
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
130326
|
+
object.hsUserId = message.hsUserId;
|
|
130327
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
130328
|
+
object.gingerUserId = message.gingerUserId;
|
|
130329
|
+
if (message.startedAtIsoDate != null && message.hasOwnProperty("startedAtIsoDate"))
|
|
130330
|
+
object.startedAtIsoDate = message.startedAtIsoDate;
|
|
130331
|
+
return object;
|
|
130332
|
+
};
|
|
130333
|
+
|
|
130334
|
+
/**
|
|
130335
|
+
* Converts this ClinicalIntakeStarted to JSON.
|
|
130336
|
+
* @function toJSON
|
|
130337
|
+
* @memberof ClinicalIntakeStarted
|
|
130338
|
+
* @instance
|
|
130339
|
+
* @returns {Object.<string,*>} JSON object
|
|
130340
|
+
*/
|
|
130341
|
+
ClinicalIntakeStarted.prototype.toJSON = function toJSON() {
|
|
130342
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
130343
|
+
};
|
|
130344
|
+
|
|
130345
|
+
return ClinicalIntakeStarted;
|
|
130346
|
+
})();
|
|
130347
|
+
|
|
130348
|
+
$root.ClinicalIntakeCompleted = (function() {
|
|
130349
|
+
|
|
130350
|
+
/**
|
|
130351
|
+
* Properties of a ClinicalIntakeCompleted.
|
|
130352
|
+
* @name IClinicalIntakeCompleted
|
|
130353
|
+
* @interface IClinicalIntakeCompleted
|
|
130354
|
+
* @property {string|null} [hsUserId] ClinicalIntakeCompleted hsUserId
|
|
130355
|
+
* @property {number|null} [gingerUserId] ClinicalIntakeCompleted gingerUserId
|
|
130356
|
+
* @property {string|null} [completedAtIsoDate] ClinicalIntakeCompleted completedAtIsoDate
|
|
130357
|
+
*/
|
|
130358
|
+
|
|
130359
|
+
/**
|
|
130360
|
+
* Constructs a new ClinicalIntakeCompleted.
|
|
130361
|
+
* @name ClinicalIntakeCompleted
|
|
130362
|
+
* @classdesc Represents a ClinicalIntakeCompleted.
|
|
130363
|
+
* @implements IClinicalIntakeCompleted
|
|
130364
|
+
* @constructor
|
|
130365
|
+
* @param {IClinicalIntakeCompleted=} [properties] Properties to set
|
|
130366
|
+
*/
|
|
130367
|
+
function ClinicalIntakeCompleted(properties) {
|
|
130368
|
+
if (properties)
|
|
130369
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
130370
|
+
if (properties[keys[i]] != null)
|
|
130371
|
+
this[keys[i]] = properties[keys[i]];
|
|
130372
|
+
}
|
|
130373
|
+
|
|
130374
|
+
/**
|
|
130375
|
+
* ClinicalIntakeCompleted hsUserId.
|
|
130376
|
+
* @member {string} hsUserId
|
|
130377
|
+
* @memberof ClinicalIntakeCompleted
|
|
130378
|
+
* @instance
|
|
130379
|
+
*/
|
|
130380
|
+
ClinicalIntakeCompleted.prototype.hsUserId = "";
|
|
130381
|
+
|
|
130382
|
+
/**
|
|
130383
|
+
* ClinicalIntakeCompleted gingerUserId.
|
|
130384
|
+
* @member {number} gingerUserId
|
|
130385
|
+
* @memberof ClinicalIntakeCompleted
|
|
130386
|
+
* @instance
|
|
130387
|
+
*/
|
|
130388
|
+
ClinicalIntakeCompleted.prototype.gingerUserId = 0;
|
|
130389
|
+
|
|
130390
|
+
/**
|
|
130391
|
+
* ClinicalIntakeCompleted completedAtIsoDate.
|
|
130392
|
+
* @member {string} completedAtIsoDate
|
|
130393
|
+
* @memberof ClinicalIntakeCompleted
|
|
130394
|
+
* @instance
|
|
130395
|
+
*/
|
|
130396
|
+
ClinicalIntakeCompleted.prototype.completedAtIsoDate = "";
|
|
130397
|
+
|
|
130398
|
+
/**
|
|
130399
|
+
* Creates a new ClinicalIntakeCompleted instance using the specified properties.
|
|
130400
|
+
* @function create
|
|
130401
|
+
* @memberof ClinicalIntakeCompleted
|
|
130402
|
+
* @static
|
|
130403
|
+
* @param {IClinicalIntakeCompleted=} [properties] Properties to set
|
|
130404
|
+
* @returns {ClinicalIntakeCompleted} ClinicalIntakeCompleted instance
|
|
130405
|
+
*/
|
|
130406
|
+
ClinicalIntakeCompleted.create = function create(properties) {
|
|
130407
|
+
return new ClinicalIntakeCompleted(properties);
|
|
130408
|
+
};
|
|
130409
|
+
|
|
130410
|
+
/**
|
|
130411
|
+
* Encodes the specified ClinicalIntakeCompleted message. Does not implicitly {@link ClinicalIntakeCompleted.verify|verify} messages.
|
|
130412
|
+
* @function encode
|
|
130413
|
+
* @memberof ClinicalIntakeCompleted
|
|
130414
|
+
* @static
|
|
130415
|
+
* @param {IClinicalIntakeCompleted} message ClinicalIntakeCompleted message or plain object to encode
|
|
130416
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
130417
|
+
* @returns {$protobuf.Writer} Writer
|
|
130418
|
+
*/
|
|
130419
|
+
ClinicalIntakeCompleted.encode = function encode(message, writer) {
|
|
130420
|
+
if (!writer)
|
|
130421
|
+
writer = $Writer.create();
|
|
130422
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
130423
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
|
|
130424
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
130425
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.gingerUserId);
|
|
130426
|
+
if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
|
|
130427
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.completedAtIsoDate);
|
|
130428
|
+
return writer;
|
|
130429
|
+
};
|
|
130430
|
+
|
|
130431
|
+
/**
|
|
130432
|
+
* Encodes the specified ClinicalIntakeCompleted message, length delimited. Does not implicitly {@link ClinicalIntakeCompleted.verify|verify} messages.
|
|
130433
|
+
* @function encodeDelimited
|
|
130434
|
+
* @memberof ClinicalIntakeCompleted
|
|
130435
|
+
* @static
|
|
130436
|
+
* @param {IClinicalIntakeCompleted} message ClinicalIntakeCompleted message or plain object to encode
|
|
130437
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
130438
|
+
* @returns {$protobuf.Writer} Writer
|
|
130439
|
+
*/
|
|
130440
|
+
ClinicalIntakeCompleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
130441
|
+
return this.encode(message, writer).ldelim();
|
|
130442
|
+
};
|
|
130443
|
+
|
|
130444
|
+
/**
|
|
130445
|
+
* Decodes a ClinicalIntakeCompleted message from the specified reader or buffer.
|
|
130446
|
+
* @function decode
|
|
130447
|
+
* @memberof ClinicalIntakeCompleted
|
|
130448
|
+
* @static
|
|
130449
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
130450
|
+
* @param {number} [length] Message length if known beforehand
|
|
130451
|
+
* @returns {ClinicalIntakeCompleted} ClinicalIntakeCompleted
|
|
130452
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
130453
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
130454
|
+
*/
|
|
130455
|
+
ClinicalIntakeCompleted.decode = function decode(reader, length) {
|
|
130456
|
+
if (!(reader instanceof $Reader))
|
|
130457
|
+
reader = $Reader.create(reader);
|
|
130458
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ClinicalIntakeCompleted();
|
|
130459
|
+
while (reader.pos < end) {
|
|
130460
|
+
var tag = reader.uint32();
|
|
130461
|
+
switch (tag >>> 3) {
|
|
130462
|
+
case 1:
|
|
130463
|
+
message.hsUserId = reader.string();
|
|
130464
|
+
break;
|
|
130465
|
+
case 2:
|
|
130466
|
+
message.gingerUserId = reader.uint32();
|
|
130467
|
+
break;
|
|
130468
|
+
case 3:
|
|
130469
|
+
message.completedAtIsoDate = reader.string();
|
|
130470
|
+
break;
|
|
130471
|
+
default:
|
|
130472
|
+
reader.skipType(tag & 7);
|
|
130473
|
+
break;
|
|
130474
|
+
}
|
|
130475
|
+
}
|
|
130476
|
+
return message;
|
|
130477
|
+
};
|
|
130478
|
+
|
|
130479
|
+
/**
|
|
130480
|
+
* Decodes a ClinicalIntakeCompleted message from the specified reader or buffer, length delimited.
|
|
130481
|
+
* @function decodeDelimited
|
|
130482
|
+
* @memberof ClinicalIntakeCompleted
|
|
130483
|
+
* @static
|
|
130484
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
130485
|
+
* @returns {ClinicalIntakeCompleted} ClinicalIntakeCompleted
|
|
130486
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
130487
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
130488
|
+
*/
|
|
130489
|
+
ClinicalIntakeCompleted.decodeDelimited = function decodeDelimited(reader) {
|
|
130490
|
+
if (!(reader instanceof $Reader))
|
|
130491
|
+
reader = new $Reader(reader);
|
|
130492
|
+
return this.decode(reader, reader.uint32());
|
|
130493
|
+
};
|
|
130494
|
+
|
|
130495
|
+
/**
|
|
130496
|
+
* Verifies a ClinicalIntakeCompleted message.
|
|
130497
|
+
* @function verify
|
|
130498
|
+
* @memberof ClinicalIntakeCompleted
|
|
130499
|
+
* @static
|
|
130500
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
130501
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
130502
|
+
*/
|
|
130503
|
+
ClinicalIntakeCompleted.verify = function verify(message) {
|
|
130504
|
+
if (typeof message !== "object" || message === null)
|
|
130505
|
+
return "object expected";
|
|
130506
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
130507
|
+
if (!$util.isString(message.hsUserId))
|
|
130508
|
+
return "hsUserId: string expected";
|
|
130509
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
130510
|
+
if (!$util.isInteger(message.gingerUserId))
|
|
130511
|
+
return "gingerUserId: integer expected";
|
|
130512
|
+
if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
|
|
130513
|
+
if (!$util.isString(message.completedAtIsoDate))
|
|
130514
|
+
return "completedAtIsoDate: string expected";
|
|
130515
|
+
return null;
|
|
130516
|
+
};
|
|
130517
|
+
|
|
130518
|
+
/**
|
|
130519
|
+
* Creates a ClinicalIntakeCompleted message from a plain object. Also converts values to their respective internal types.
|
|
130520
|
+
* @function fromObject
|
|
130521
|
+
* @memberof ClinicalIntakeCompleted
|
|
130522
|
+
* @static
|
|
130523
|
+
* @param {Object.<string,*>} object Plain object
|
|
130524
|
+
* @returns {ClinicalIntakeCompleted} ClinicalIntakeCompleted
|
|
130525
|
+
*/
|
|
130526
|
+
ClinicalIntakeCompleted.fromObject = function fromObject(object) {
|
|
130527
|
+
if (object instanceof $root.ClinicalIntakeCompleted)
|
|
130528
|
+
return object;
|
|
130529
|
+
var message = new $root.ClinicalIntakeCompleted();
|
|
130530
|
+
if (object.hsUserId != null)
|
|
130531
|
+
message.hsUserId = String(object.hsUserId);
|
|
130532
|
+
if (object.gingerUserId != null)
|
|
130533
|
+
message.gingerUserId = object.gingerUserId >>> 0;
|
|
130534
|
+
if (object.completedAtIsoDate != null)
|
|
130535
|
+
message.completedAtIsoDate = String(object.completedAtIsoDate);
|
|
130536
|
+
return message;
|
|
130537
|
+
};
|
|
130538
|
+
|
|
130539
|
+
/**
|
|
130540
|
+
* Creates a plain object from a ClinicalIntakeCompleted message. Also converts values to other types if specified.
|
|
130541
|
+
* @function toObject
|
|
130542
|
+
* @memberof ClinicalIntakeCompleted
|
|
130543
|
+
* @static
|
|
130544
|
+
* @param {ClinicalIntakeCompleted} message ClinicalIntakeCompleted
|
|
130545
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
130546
|
+
* @returns {Object.<string,*>} Plain object
|
|
130547
|
+
*/
|
|
130548
|
+
ClinicalIntakeCompleted.toObject = function toObject(message, options) {
|
|
130549
|
+
if (!options)
|
|
130550
|
+
options = {};
|
|
130551
|
+
var object = {};
|
|
130552
|
+
if (options.defaults) {
|
|
130553
|
+
object.hsUserId = "";
|
|
130554
|
+
object.gingerUserId = 0;
|
|
130555
|
+
object.completedAtIsoDate = "";
|
|
130556
|
+
}
|
|
130557
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
130558
|
+
object.hsUserId = message.hsUserId;
|
|
130559
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
130560
|
+
object.gingerUserId = message.gingerUserId;
|
|
130561
|
+
if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
|
|
130562
|
+
object.completedAtIsoDate = message.completedAtIsoDate;
|
|
130563
|
+
return object;
|
|
130564
|
+
};
|
|
130565
|
+
|
|
130566
|
+
/**
|
|
130567
|
+
* Converts this ClinicalIntakeCompleted to JSON.
|
|
130568
|
+
* @function toJSON
|
|
130569
|
+
* @memberof ClinicalIntakeCompleted
|
|
130570
|
+
* @instance
|
|
130571
|
+
* @returns {Object.<string,*>} JSON object
|
|
130572
|
+
*/
|
|
130573
|
+
ClinicalIntakeCompleted.prototype.toJSON = function toJSON() {
|
|
130574
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
130575
|
+
};
|
|
130576
|
+
|
|
130577
|
+
return ClinicalIntakeCompleted;
|
|
130578
|
+
})();
|
|
130579
|
+
|
|
129647
130580
|
/**
|
|
129648
130581
|
* GroupType enum.
|
|
129649
130582
|
* @name GroupType
|
|
@@ -158613,6 +159546,470 @@ $root.UserOnboardingTopicResponses = (function() {
|
|
|
158613
159546
|
return UserOnboardingTopicResponses;
|
|
158614
159547
|
})();
|
|
158615
159548
|
|
|
159549
|
+
$root.OnboardingAssigned = (function() {
|
|
159550
|
+
|
|
159551
|
+
/**
|
|
159552
|
+
* Properties of an OnboardingAssigned.
|
|
159553
|
+
* @name IOnboardingAssigned
|
|
159554
|
+
* @interface IOnboardingAssigned
|
|
159555
|
+
* @property {string|null} [hsUserId] OnboardingAssigned hsUserId
|
|
159556
|
+
* @property {number|null} [gingerUserId] OnboardingAssigned gingerUserId
|
|
159557
|
+
* @property {string|null} [assignedAtIsoDate] OnboardingAssigned assignedAtIsoDate
|
|
159558
|
+
*/
|
|
159559
|
+
|
|
159560
|
+
/**
|
|
159561
|
+
* Constructs a new OnboardingAssigned.
|
|
159562
|
+
* @name OnboardingAssigned
|
|
159563
|
+
* @classdesc Represents an OnboardingAssigned.
|
|
159564
|
+
* @implements IOnboardingAssigned
|
|
159565
|
+
* @constructor
|
|
159566
|
+
* @param {IOnboardingAssigned=} [properties] Properties to set
|
|
159567
|
+
*/
|
|
159568
|
+
function OnboardingAssigned(properties) {
|
|
159569
|
+
if (properties)
|
|
159570
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
159571
|
+
if (properties[keys[i]] != null)
|
|
159572
|
+
this[keys[i]] = properties[keys[i]];
|
|
159573
|
+
}
|
|
159574
|
+
|
|
159575
|
+
/**
|
|
159576
|
+
* OnboardingAssigned hsUserId.
|
|
159577
|
+
* @member {string} hsUserId
|
|
159578
|
+
* @memberof OnboardingAssigned
|
|
159579
|
+
* @instance
|
|
159580
|
+
*/
|
|
159581
|
+
OnboardingAssigned.prototype.hsUserId = "";
|
|
159582
|
+
|
|
159583
|
+
/**
|
|
159584
|
+
* OnboardingAssigned gingerUserId.
|
|
159585
|
+
* @member {number} gingerUserId
|
|
159586
|
+
* @memberof OnboardingAssigned
|
|
159587
|
+
* @instance
|
|
159588
|
+
*/
|
|
159589
|
+
OnboardingAssigned.prototype.gingerUserId = 0;
|
|
159590
|
+
|
|
159591
|
+
/**
|
|
159592
|
+
* OnboardingAssigned assignedAtIsoDate.
|
|
159593
|
+
* @member {string} assignedAtIsoDate
|
|
159594
|
+
* @memberof OnboardingAssigned
|
|
159595
|
+
* @instance
|
|
159596
|
+
*/
|
|
159597
|
+
OnboardingAssigned.prototype.assignedAtIsoDate = "";
|
|
159598
|
+
|
|
159599
|
+
/**
|
|
159600
|
+
* Creates a new OnboardingAssigned instance using the specified properties.
|
|
159601
|
+
* @function create
|
|
159602
|
+
* @memberof OnboardingAssigned
|
|
159603
|
+
* @static
|
|
159604
|
+
* @param {IOnboardingAssigned=} [properties] Properties to set
|
|
159605
|
+
* @returns {OnboardingAssigned} OnboardingAssigned instance
|
|
159606
|
+
*/
|
|
159607
|
+
OnboardingAssigned.create = function create(properties) {
|
|
159608
|
+
return new OnboardingAssigned(properties);
|
|
159609
|
+
};
|
|
159610
|
+
|
|
159611
|
+
/**
|
|
159612
|
+
* Encodes the specified OnboardingAssigned message. Does not implicitly {@link OnboardingAssigned.verify|verify} messages.
|
|
159613
|
+
* @function encode
|
|
159614
|
+
* @memberof OnboardingAssigned
|
|
159615
|
+
* @static
|
|
159616
|
+
* @param {IOnboardingAssigned} message OnboardingAssigned message or plain object to encode
|
|
159617
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
159618
|
+
* @returns {$protobuf.Writer} Writer
|
|
159619
|
+
*/
|
|
159620
|
+
OnboardingAssigned.encode = function encode(message, writer) {
|
|
159621
|
+
if (!writer)
|
|
159622
|
+
writer = $Writer.create();
|
|
159623
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
159624
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
|
|
159625
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
159626
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.gingerUserId);
|
|
159627
|
+
if (message.assignedAtIsoDate != null && message.hasOwnProperty("assignedAtIsoDate"))
|
|
159628
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.assignedAtIsoDate);
|
|
159629
|
+
return writer;
|
|
159630
|
+
};
|
|
159631
|
+
|
|
159632
|
+
/**
|
|
159633
|
+
* Encodes the specified OnboardingAssigned message, length delimited. Does not implicitly {@link OnboardingAssigned.verify|verify} messages.
|
|
159634
|
+
* @function encodeDelimited
|
|
159635
|
+
* @memberof OnboardingAssigned
|
|
159636
|
+
* @static
|
|
159637
|
+
* @param {IOnboardingAssigned} message OnboardingAssigned message or plain object to encode
|
|
159638
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
159639
|
+
* @returns {$protobuf.Writer} Writer
|
|
159640
|
+
*/
|
|
159641
|
+
OnboardingAssigned.encodeDelimited = function encodeDelimited(message, writer) {
|
|
159642
|
+
return this.encode(message, writer).ldelim();
|
|
159643
|
+
};
|
|
159644
|
+
|
|
159645
|
+
/**
|
|
159646
|
+
* Decodes an OnboardingAssigned message from the specified reader or buffer.
|
|
159647
|
+
* @function decode
|
|
159648
|
+
* @memberof OnboardingAssigned
|
|
159649
|
+
* @static
|
|
159650
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
159651
|
+
* @param {number} [length] Message length if known beforehand
|
|
159652
|
+
* @returns {OnboardingAssigned} OnboardingAssigned
|
|
159653
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
159654
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
159655
|
+
*/
|
|
159656
|
+
OnboardingAssigned.decode = function decode(reader, length) {
|
|
159657
|
+
if (!(reader instanceof $Reader))
|
|
159658
|
+
reader = $Reader.create(reader);
|
|
159659
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.OnboardingAssigned();
|
|
159660
|
+
while (reader.pos < end) {
|
|
159661
|
+
var tag = reader.uint32();
|
|
159662
|
+
switch (tag >>> 3) {
|
|
159663
|
+
case 1:
|
|
159664
|
+
message.hsUserId = reader.string();
|
|
159665
|
+
break;
|
|
159666
|
+
case 2:
|
|
159667
|
+
message.gingerUserId = reader.uint32();
|
|
159668
|
+
break;
|
|
159669
|
+
case 3:
|
|
159670
|
+
message.assignedAtIsoDate = reader.string();
|
|
159671
|
+
break;
|
|
159672
|
+
default:
|
|
159673
|
+
reader.skipType(tag & 7);
|
|
159674
|
+
break;
|
|
159675
|
+
}
|
|
159676
|
+
}
|
|
159677
|
+
return message;
|
|
159678
|
+
};
|
|
159679
|
+
|
|
159680
|
+
/**
|
|
159681
|
+
* Decodes an OnboardingAssigned message from the specified reader or buffer, length delimited.
|
|
159682
|
+
* @function decodeDelimited
|
|
159683
|
+
* @memberof OnboardingAssigned
|
|
159684
|
+
* @static
|
|
159685
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
159686
|
+
* @returns {OnboardingAssigned} OnboardingAssigned
|
|
159687
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
159688
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
159689
|
+
*/
|
|
159690
|
+
OnboardingAssigned.decodeDelimited = function decodeDelimited(reader) {
|
|
159691
|
+
if (!(reader instanceof $Reader))
|
|
159692
|
+
reader = new $Reader(reader);
|
|
159693
|
+
return this.decode(reader, reader.uint32());
|
|
159694
|
+
};
|
|
159695
|
+
|
|
159696
|
+
/**
|
|
159697
|
+
* Verifies an OnboardingAssigned message.
|
|
159698
|
+
* @function verify
|
|
159699
|
+
* @memberof OnboardingAssigned
|
|
159700
|
+
* @static
|
|
159701
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
159702
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
159703
|
+
*/
|
|
159704
|
+
OnboardingAssigned.verify = function verify(message) {
|
|
159705
|
+
if (typeof message !== "object" || message === null)
|
|
159706
|
+
return "object expected";
|
|
159707
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
159708
|
+
if (!$util.isString(message.hsUserId))
|
|
159709
|
+
return "hsUserId: string expected";
|
|
159710
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
159711
|
+
if (!$util.isInteger(message.gingerUserId))
|
|
159712
|
+
return "gingerUserId: integer expected";
|
|
159713
|
+
if (message.assignedAtIsoDate != null && message.hasOwnProperty("assignedAtIsoDate"))
|
|
159714
|
+
if (!$util.isString(message.assignedAtIsoDate))
|
|
159715
|
+
return "assignedAtIsoDate: string expected";
|
|
159716
|
+
return null;
|
|
159717
|
+
};
|
|
159718
|
+
|
|
159719
|
+
/**
|
|
159720
|
+
* Creates an OnboardingAssigned message from a plain object. Also converts values to their respective internal types.
|
|
159721
|
+
* @function fromObject
|
|
159722
|
+
* @memberof OnboardingAssigned
|
|
159723
|
+
* @static
|
|
159724
|
+
* @param {Object.<string,*>} object Plain object
|
|
159725
|
+
* @returns {OnboardingAssigned} OnboardingAssigned
|
|
159726
|
+
*/
|
|
159727
|
+
OnboardingAssigned.fromObject = function fromObject(object) {
|
|
159728
|
+
if (object instanceof $root.OnboardingAssigned)
|
|
159729
|
+
return object;
|
|
159730
|
+
var message = new $root.OnboardingAssigned();
|
|
159731
|
+
if (object.hsUserId != null)
|
|
159732
|
+
message.hsUserId = String(object.hsUserId);
|
|
159733
|
+
if (object.gingerUserId != null)
|
|
159734
|
+
message.gingerUserId = object.gingerUserId >>> 0;
|
|
159735
|
+
if (object.assignedAtIsoDate != null)
|
|
159736
|
+
message.assignedAtIsoDate = String(object.assignedAtIsoDate);
|
|
159737
|
+
return message;
|
|
159738
|
+
};
|
|
159739
|
+
|
|
159740
|
+
/**
|
|
159741
|
+
* Creates a plain object from an OnboardingAssigned message. Also converts values to other types if specified.
|
|
159742
|
+
* @function toObject
|
|
159743
|
+
* @memberof OnboardingAssigned
|
|
159744
|
+
* @static
|
|
159745
|
+
* @param {OnboardingAssigned} message OnboardingAssigned
|
|
159746
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
159747
|
+
* @returns {Object.<string,*>} Plain object
|
|
159748
|
+
*/
|
|
159749
|
+
OnboardingAssigned.toObject = function toObject(message, options) {
|
|
159750
|
+
if (!options)
|
|
159751
|
+
options = {};
|
|
159752
|
+
var object = {};
|
|
159753
|
+
if (options.defaults) {
|
|
159754
|
+
object.hsUserId = "";
|
|
159755
|
+
object.gingerUserId = 0;
|
|
159756
|
+
object.assignedAtIsoDate = "";
|
|
159757
|
+
}
|
|
159758
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
159759
|
+
object.hsUserId = message.hsUserId;
|
|
159760
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
159761
|
+
object.gingerUserId = message.gingerUserId;
|
|
159762
|
+
if (message.assignedAtIsoDate != null && message.hasOwnProperty("assignedAtIsoDate"))
|
|
159763
|
+
object.assignedAtIsoDate = message.assignedAtIsoDate;
|
|
159764
|
+
return object;
|
|
159765
|
+
};
|
|
159766
|
+
|
|
159767
|
+
/**
|
|
159768
|
+
* Converts this OnboardingAssigned to JSON.
|
|
159769
|
+
* @function toJSON
|
|
159770
|
+
* @memberof OnboardingAssigned
|
|
159771
|
+
* @instance
|
|
159772
|
+
* @returns {Object.<string,*>} JSON object
|
|
159773
|
+
*/
|
|
159774
|
+
OnboardingAssigned.prototype.toJSON = function toJSON() {
|
|
159775
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
159776
|
+
};
|
|
159777
|
+
|
|
159778
|
+
return OnboardingAssigned;
|
|
159779
|
+
})();
|
|
159780
|
+
|
|
159781
|
+
$root.OnboardingStarted = (function() {
|
|
159782
|
+
|
|
159783
|
+
/**
|
|
159784
|
+
* Properties of an OnboardingStarted.
|
|
159785
|
+
* @name IOnboardingStarted
|
|
159786
|
+
* @interface IOnboardingStarted
|
|
159787
|
+
* @property {string|null} [hsUserId] OnboardingStarted hsUserId
|
|
159788
|
+
* @property {number|null} [gingerUserId] OnboardingStarted gingerUserId
|
|
159789
|
+
* @property {string|null} [startedAtIsoDate] OnboardingStarted startedAtIsoDate
|
|
159790
|
+
*/
|
|
159791
|
+
|
|
159792
|
+
/**
|
|
159793
|
+
* Constructs a new OnboardingStarted.
|
|
159794
|
+
* @name OnboardingStarted
|
|
159795
|
+
* @classdesc Represents an OnboardingStarted.
|
|
159796
|
+
* @implements IOnboardingStarted
|
|
159797
|
+
* @constructor
|
|
159798
|
+
* @param {IOnboardingStarted=} [properties] Properties to set
|
|
159799
|
+
*/
|
|
159800
|
+
function OnboardingStarted(properties) {
|
|
159801
|
+
if (properties)
|
|
159802
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
159803
|
+
if (properties[keys[i]] != null)
|
|
159804
|
+
this[keys[i]] = properties[keys[i]];
|
|
159805
|
+
}
|
|
159806
|
+
|
|
159807
|
+
/**
|
|
159808
|
+
* OnboardingStarted hsUserId.
|
|
159809
|
+
* @member {string} hsUserId
|
|
159810
|
+
* @memberof OnboardingStarted
|
|
159811
|
+
* @instance
|
|
159812
|
+
*/
|
|
159813
|
+
OnboardingStarted.prototype.hsUserId = "";
|
|
159814
|
+
|
|
159815
|
+
/**
|
|
159816
|
+
* OnboardingStarted gingerUserId.
|
|
159817
|
+
* @member {number} gingerUserId
|
|
159818
|
+
* @memberof OnboardingStarted
|
|
159819
|
+
* @instance
|
|
159820
|
+
*/
|
|
159821
|
+
OnboardingStarted.prototype.gingerUserId = 0;
|
|
159822
|
+
|
|
159823
|
+
/**
|
|
159824
|
+
* OnboardingStarted startedAtIsoDate.
|
|
159825
|
+
* @member {string} startedAtIsoDate
|
|
159826
|
+
* @memberof OnboardingStarted
|
|
159827
|
+
* @instance
|
|
159828
|
+
*/
|
|
159829
|
+
OnboardingStarted.prototype.startedAtIsoDate = "";
|
|
159830
|
+
|
|
159831
|
+
/**
|
|
159832
|
+
* Creates a new OnboardingStarted instance using the specified properties.
|
|
159833
|
+
* @function create
|
|
159834
|
+
* @memberof OnboardingStarted
|
|
159835
|
+
* @static
|
|
159836
|
+
* @param {IOnboardingStarted=} [properties] Properties to set
|
|
159837
|
+
* @returns {OnboardingStarted} OnboardingStarted instance
|
|
159838
|
+
*/
|
|
159839
|
+
OnboardingStarted.create = function create(properties) {
|
|
159840
|
+
return new OnboardingStarted(properties);
|
|
159841
|
+
};
|
|
159842
|
+
|
|
159843
|
+
/**
|
|
159844
|
+
* Encodes the specified OnboardingStarted message. Does not implicitly {@link OnboardingStarted.verify|verify} messages.
|
|
159845
|
+
* @function encode
|
|
159846
|
+
* @memberof OnboardingStarted
|
|
159847
|
+
* @static
|
|
159848
|
+
* @param {IOnboardingStarted} message OnboardingStarted message or plain object to encode
|
|
159849
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
159850
|
+
* @returns {$protobuf.Writer} Writer
|
|
159851
|
+
*/
|
|
159852
|
+
OnboardingStarted.encode = function encode(message, writer) {
|
|
159853
|
+
if (!writer)
|
|
159854
|
+
writer = $Writer.create();
|
|
159855
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
159856
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
|
|
159857
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
159858
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.gingerUserId);
|
|
159859
|
+
if (message.startedAtIsoDate != null && message.hasOwnProperty("startedAtIsoDate"))
|
|
159860
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.startedAtIsoDate);
|
|
159861
|
+
return writer;
|
|
159862
|
+
};
|
|
159863
|
+
|
|
159864
|
+
/**
|
|
159865
|
+
* Encodes the specified OnboardingStarted message, length delimited. Does not implicitly {@link OnboardingStarted.verify|verify} messages.
|
|
159866
|
+
* @function encodeDelimited
|
|
159867
|
+
* @memberof OnboardingStarted
|
|
159868
|
+
* @static
|
|
159869
|
+
* @param {IOnboardingStarted} message OnboardingStarted message or plain object to encode
|
|
159870
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
159871
|
+
* @returns {$protobuf.Writer} Writer
|
|
159872
|
+
*/
|
|
159873
|
+
OnboardingStarted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
159874
|
+
return this.encode(message, writer).ldelim();
|
|
159875
|
+
};
|
|
159876
|
+
|
|
159877
|
+
/**
|
|
159878
|
+
* Decodes an OnboardingStarted message from the specified reader or buffer.
|
|
159879
|
+
* @function decode
|
|
159880
|
+
* @memberof OnboardingStarted
|
|
159881
|
+
* @static
|
|
159882
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
159883
|
+
* @param {number} [length] Message length if known beforehand
|
|
159884
|
+
* @returns {OnboardingStarted} OnboardingStarted
|
|
159885
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
159886
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
159887
|
+
*/
|
|
159888
|
+
OnboardingStarted.decode = function decode(reader, length) {
|
|
159889
|
+
if (!(reader instanceof $Reader))
|
|
159890
|
+
reader = $Reader.create(reader);
|
|
159891
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.OnboardingStarted();
|
|
159892
|
+
while (reader.pos < end) {
|
|
159893
|
+
var tag = reader.uint32();
|
|
159894
|
+
switch (tag >>> 3) {
|
|
159895
|
+
case 1:
|
|
159896
|
+
message.hsUserId = reader.string();
|
|
159897
|
+
break;
|
|
159898
|
+
case 2:
|
|
159899
|
+
message.gingerUserId = reader.uint32();
|
|
159900
|
+
break;
|
|
159901
|
+
case 3:
|
|
159902
|
+
message.startedAtIsoDate = reader.string();
|
|
159903
|
+
break;
|
|
159904
|
+
default:
|
|
159905
|
+
reader.skipType(tag & 7);
|
|
159906
|
+
break;
|
|
159907
|
+
}
|
|
159908
|
+
}
|
|
159909
|
+
return message;
|
|
159910
|
+
};
|
|
159911
|
+
|
|
159912
|
+
/**
|
|
159913
|
+
* Decodes an OnboardingStarted message from the specified reader or buffer, length delimited.
|
|
159914
|
+
* @function decodeDelimited
|
|
159915
|
+
* @memberof OnboardingStarted
|
|
159916
|
+
* @static
|
|
159917
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
159918
|
+
* @returns {OnboardingStarted} OnboardingStarted
|
|
159919
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
159920
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
159921
|
+
*/
|
|
159922
|
+
OnboardingStarted.decodeDelimited = function decodeDelimited(reader) {
|
|
159923
|
+
if (!(reader instanceof $Reader))
|
|
159924
|
+
reader = new $Reader(reader);
|
|
159925
|
+
return this.decode(reader, reader.uint32());
|
|
159926
|
+
};
|
|
159927
|
+
|
|
159928
|
+
/**
|
|
159929
|
+
* Verifies an OnboardingStarted message.
|
|
159930
|
+
* @function verify
|
|
159931
|
+
* @memberof OnboardingStarted
|
|
159932
|
+
* @static
|
|
159933
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
159934
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
159935
|
+
*/
|
|
159936
|
+
OnboardingStarted.verify = function verify(message) {
|
|
159937
|
+
if (typeof message !== "object" || message === null)
|
|
159938
|
+
return "object expected";
|
|
159939
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
159940
|
+
if (!$util.isString(message.hsUserId))
|
|
159941
|
+
return "hsUserId: string expected";
|
|
159942
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
159943
|
+
if (!$util.isInteger(message.gingerUserId))
|
|
159944
|
+
return "gingerUserId: integer expected";
|
|
159945
|
+
if (message.startedAtIsoDate != null && message.hasOwnProperty("startedAtIsoDate"))
|
|
159946
|
+
if (!$util.isString(message.startedAtIsoDate))
|
|
159947
|
+
return "startedAtIsoDate: string expected";
|
|
159948
|
+
return null;
|
|
159949
|
+
};
|
|
159950
|
+
|
|
159951
|
+
/**
|
|
159952
|
+
* Creates an OnboardingStarted message from a plain object. Also converts values to their respective internal types.
|
|
159953
|
+
* @function fromObject
|
|
159954
|
+
* @memberof OnboardingStarted
|
|
159955
|
+
* @static
|
|
159956
|
+
* @param {Object.<string,*>} object Plain object
|
|
159957
|
+
* @returns {OnboardingStarted} OnboardingStarted
|
|
159958
|
+
*/
|
|
159959
|
+
OnboardingStarted.fromObject = function fromObject(object) {
|
|
159960
|
+
if (object instanceof $root.OnboardingStarted)
|
|
159961
|
+
return object;
|
|
159962
|
+
var message = new $root.OnboardingStarted();
|
|
159963
|
+
if (object.hsUserId != null)
|
|
159964
|
+
message.hsUserId = String(object.hsUserId);
|
|
159965
|
+
if (object.gingerUserId != null)
|
|
159966
|
+
message.gingerUserId = object.gingerUserId >>> 0;
|
|
159967
|
+
if (object.startedAtIsoDate != null)
|
|
159968
|
+
message.startedAtIsoDate = String(object.startedAtIsoDate);
|
|
159969
|
+
return message;
|
|
159970
|
+
};
|
|
159971
|
+
|
|
159972
|
+
/**
|
|
159973
|
+
* Creates a plain object from an OnboardingStarted message. Also converts values to other types if specified.
|
|
159974
|
+
* @function toObject
|
|
159975
|
+
* @memberof OnboardingStarted
|
|
159976
|
+
* @static
|
|
159977
|
+
* @param {OnboardingStarted} message OnboardingStarted
|
|
159978
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
159979
|
+
* @returns {Object.<string,*>} Plain object
|
|
159980
|
+
*/
|
|
159981
|
+
OnboardingStarted.toObject = function toObject(message, options) {
|
|
159982
|
+
if (!options)
|
|
159983
|
+
options = {};
|
|
159984
|
+
var object = {};
|
|
159985
|
+
if (options.defaults) {
|
|
159986
|
+
object.hsUserId = "";
|
|
159987
|
+
object.gingerUserId = 0;
|
|
159988
|
+
object.startedAtIsoDate = "";
|
|
159989
|
+
}
|
|
159990
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
159991
|
+
object.hsUserId = message.hsUserId;
|
|
159992
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
159993
|
+
object.gingerUserId = message.gingerUserId;
|
|
159994
|
+
if (message.startedAtIsoDate != null && message.hasOwnProperty("startedAtIsoDate"))
|
|
159995
|
+
object.startedAtIsoDate = message.startedAtIsoDate;
|
|
159996
|
+
return object;
|
|
159997
|
+
};
|
|
159998
|
+
|
|
159999
|
+
/**
|
|
160000
|
+
* Converts this OnboardingStarted to JSON.
|
|
160001
|
+
* @function toJSON
|
|
160002
|
+
* @memberof OnboardingStarted
|
|
160003
|
+
* @instance
|
|
160004
|
+
* @returns {Object.<string,*>} JSON object
|
|
160005
|
+
*/
|
|
160006
|
+
OnboardingStarted.prototype.toJSON = function toJSON() {
|
|
160007
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
160008
|
+
};
|
|
160009
|
+
|
|
160010
|
+
return OnboardingStarted;
|
|
160011
|
+
})();
|
|
160012
|
+
|
|
158616
160013
|
$root.OnboardingCompleted = (function() {
|
|
158617
160014
|
|
|
158618
160015
|
/**
|