@headspace/protos-events 1.600.0 → 1.602.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 +516 -6
- package/lib/index.js +1187 -27
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -4479,6 +4479,7 @@ $root.clinical = (function() {
|
|
|
4479
4479
|
* Default is 0.5.
|
|
4480
4480
|
* @property {string|null} [fullName] Coach fullName
|
|
4481
4481
|
* @property {string|null} [email] Coach email
|
|
4482
|
+
* @property {clinical.ICoachRoleDisplay|null} [roleDisplay] Coach roleDisplay
|
|
4482
4483
|
*/
|
|
4483
4484
|
|
|
4484
4485
|
/**
|
|
@@ -4602,6 +4603,14 @@ $root.clinical = (function() {
|
|
|
4602
4603
|
*/
|
|
4603
4604
|
Coach.prototype.email = "";
|
|
4604
4605
|
|
|
4606
|
+
/**
|
|
4607
|
+
* Coach roleDisplay.
|
|
4608
|
+
* @member {clinical.ICoachRoleDisplay|null|undefined} roleDisplay
|
|
4609
|
+
* @memberof clinical.Coach
|
|
4610
|
+
* @instance
|
|
4611
|
+
*/
|
|
4612
|
+
Coach.prototype.roleDisplay = null;
|
|
4613
|
+
|
|
4605
4614
|
/**
|
|
4606
4615
|
* Creates a new Coach instance using the specified properties.
|
|
4607
4616
|
* @function create
|
|
@@ -4660,6 +4669,8 @@ $root.clinical = (function() {
|
|
|
4660
4669
|
$root.clinical.CoachSpecialization.encode(message.deprecatedSpecializations[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
|
|
4661
4670
|
if (message.email != null && message.hasOwnProperty("email"))
|
|
4662
4671
|
writer.uint32(/* id 12, wireType 2 =*/98).string(message.email);
|
|
4672
|
+
if (message.roleDisplay != null && message.hasOwnProperty("roleDisplay"))
|
|
4673
|
+
$root.clinical.CoachRoleDisplay.encode(message.roleDisplay, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
|
|
4663
4674
|
return writer;
|
|
4664
4675
|
};
|
|
4665
4676
|
|
|
@@ -4748,6 +4759,9 @@ $root.clinical = (function() {
|
|
|
4748
4759
|
case 12:
|
|
4749
4760
|
message.email = reader.string();
|
|
4750
4761
|
break;
|
|
4762
|
+
case 13:
|
|
4763
|
+
message.roleDisplay = $root.clinical.CoachRoleDisplay.decode(reader, reader.uint32());
|
|
4764
|
+
break;
|
|
4751
4765
|
default:
|
|
4752
4766
|
reader.skipType(tag & 7);
|
|
4753
4767
|
break;
|
|
@@ -4948,6 +4962,11 @@ $root.clinical = (function() {
|
|
|
4948
4962
|
if (message.email != null && message.hasOwnProperty("email"))
|
|
4949
4963
|
if (!$util.isString(message.email))
|
|
4950
4964
|
return "email: string expected";
|
|
4965
|
+
if (message.roleDisplay != null && message.hasOwnProperty("roleDisplay")) {
|
|
4966
|
+
var error = $root.clinical.CoachRoleDisplay.verify(message.roleDisplay);
|
|
4967
|
+
if (error)
|
|
4968
|
+
return "roleDisplay." + error;
|
|
4969
|
+
}
|
|
4951
4970
|
return null;
|
|
4952
4971
|
};
|
|
4953
4972
|
|
|
@@ -5443,6 +5462,11 @@ $root.clinical = (function() {
|
|
|
5443
5462
|
message.fullName = String(object.fullName);
|
|
5444
5463
|
if (object.email != null)
|
|
5445
5464
|
message.email = String(object.email);
|
|
5465
|
+
if (object.roleDisplay != null) {
|
|
5466
|
+
if (typeof object.roleDisplay !== "object")
|
|
5467
|
+
throw TypeError(".clinical.Coach.roleDisplay: object expected");
|
|
5468
|
+
message.roleDisplay = $root.clinical.CoachRoleDisplay.fromObject(object.roleDisplay);
|
|
5469
|
+
}
|
|
5446
5470
|
return message;
|
|
5447
5471
|
};
|
|
5448
5472
|
|
|
@@ -5482,6 +5506,7 @@ $root.clinical = (function() {
|
|
|
5482
5506
|
object.capacity = 0;
|
|
5483
5507
|
object.fullName = "";
|
|
5484
5508
|
object.email = "";
|
|
5509
|
+
object.roleDisplay = null;
|
|
5485
5510
|
}
|
|
5486
5511
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
5487
5512
|
object.id = message.id;
|
|
@@ -5525,6 +5550,8 @@ $root.clinical = (function() {
|
|
|
5525
5550
|
}
|
|
5526
5551
|
if (message.email != null && message.hasOwnProperty("email"))
|
|
5527
5552
|
object.email = message.email;
|
|
5553
|
+
if (message.roleDisplay != null && message.hasOwnProperty("roleDisplay"))
|
|
5554
|
+
object.roleDisplay = $root.clinical.CoachRoleDisplay.toObject(message.roleDisplay, options);
|
|
5528
5555
|
return object;
|
|
5529
5556
|
};
|
|
5530
5557
|
|
|
@@ -6074,7 +6101,6 @@ $root.clinical = (function() {
|
|
|
6074
6101
|
* @interface ICoachRole
|
|
6075
6102
|
* @property {number|Long|null} [createdAt] CoachRole createdAt
|
|
6076
6103
|
* @property {clinical.CoachRoleType|null} [roleType] CoachRole roleType
|
|
6077
|
-
* @property {clinical.ICoachRoleDisplay|null} [roleDisplay] CoachRole roleDisplay
|
|
6078
6104
|
*/
|
|
6079
6105
|
|
|
6080
6106
|
/**
|
|
@@ -6108,14 +6134,6 @@ $root.clinical = (function() {
|
|
|
6108
6134
|
*/
|
|
6109
6135
|
CoachRole.prototype.roleType = 0;
|
|
6110
6136
|
|
|
6111
|
-
/**
|
|
6112
|
-
* CoachRole roleDisplay.
|
|
6113
|
-
* @member {clinical.ICoachRoleDisplay|null|undefined} roleDisplay
|
|
6114
|
-
* @memberof clinical.CoachRole
|
|
6115
|
-
* @instance
|
|
6116
|
-
*/
|
|
6117
|
-
CoachRole.prototype.roleDisplay = null;
|
|
6118
|
-
|
|
6119
6137
|
/**
|
|
6120
6138
|
* Creates a new CoachRole instance using the specified properties.
|
|
6121
6139
|
* @function create
|
|
@@ -6144,8 +6162,6 @@ $root.clinical = (function() {
|
|
|
6144
6162
|
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.createdAt);
|
|
6145
6163
|
if (message.roleType != null && message.hasOwnProperty("roleType"))
|
|
6146
6164
|
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();
|
|
6149
6165
|
return writer;
|
|
6150
6166
|
};
|
|
6151
6167
|
|
|
@@ -6186,9 +6202,6 @@ $root.clinical = (function() {
|
|
|
6186
6202
|
case 2:
|
|
6187
6203
|
message.roleType = reader.int32();
|
|
6188
6204
|
break;
|
|
6189
|
-
case 3:
|
|
6190
|
-
message.roleDisplay = $root.clinical.CoachRoleDisplay.decode(reader, reader.uint32());
|
|
6191
|
-
break;
|
|
6192
6205
|
default:
|
|
6193
6206
|
reader.skipType(tag & 7);
|
|
6194
6207
|
break;
|
|
@@ -6325,11 +6338,6 @@ $root.clinical = (function() {
|
|
|
6325
6338
|
case 91:
|
|
6326
6339
|
break;
|
|
6327
6340
|
}
|
|
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
|
-
}
|
|
6333
6341
|
return null;
|
|
6334
6342
|
};
|
|
6335
6343
|
|
|
@@ -6724,11 +6732,6 @@ $root.clinical = (function() {
|
|
|
6724
6732
|
message.roleType = 91;
|
|
6725
6733
|
break;
|
|
6726
6734
|
}
|
|
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
|
-
}
|
|
6732
6735
|
return message;
|
|
6733
6736
|
};
|
|
6734
6737
|
|
|
@@ -6752,7 +6755,6 @@ $root.clinical = (function() {
|
|
|
6752
6755
|
} else
|
|
6753
6756
|
object.createdAt = options.longs === String ? "0" : 0;
|
|
6754
6757
|
object.roleType = options.enums === String ? "COACH_ROLE_TYPE_COACH_ROLE_UNKNOWN" : 0;
|
|
6755
|
-
object.roleDisplay = null;
|
|
6756
6758
|
}
|
|
6757
6759
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
6758
6760
|
if (typeof message.createdAt === "number")
|
|
@@ -6761,8 +6763,6 @@ $root.clinical = (function() {
|
|
|
6761
6763
|
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;
|
|
6762
6764
|
if (message.roleType != null && message.hasOwnProperty("roleType"))
|
|
6763
6765
|
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);
|
|
6766
6766
|
return object;
|
|
6767
6767
|
};
|
|
6768
6768
|
|
|
@@ -129881,6 +129881,702 @@ $root.BrazeProxyChatMessageSent = (function() {
|
|
|
129881
129881
|
return BrazeProxyChatMessageSent;
|
|
129882
129882
|
})();
|
|
129883
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
|
+
|
|
129884
130580
|
/**
|
|
129885
130581
|
* GroupType enum.
|
|
129886
130582
|
* @name GroupType
|
|
@@ -158850,6 +159546,470 @@ $root.UserOnboardingTopicResponses = (function() {
|
|
|
158850
159546
|
return UserOnboardingTopicResponses;
|
|
158851
159547
|
})();
|
|
158852
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
|
+
|
|
158853
160013
|
$root.OnboardingCompleted = (function() {
|
|
158854
160014
|
|
|
158855
160015
|
/**
|