@headspace/protos-events 1.738.0 → 1.740.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 +386 -0
- package/lib/index.js +1369 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -8165,6 +8165,7 @@ $root.EligibleUserAdded = (function() {
|
|
|
8165
8165
|
* @property {boolean|null} [b2bAreMemberCommsEnabled] EligibleUserAdded b2bAreMemberCommsEnabled
|
|
8166
8166
|
* @property {boolean|null} [b2bAreNonmemberCommsEnabled] EligibleUserAdded b2bAreNonmemberCommsEnabled
|
|
8167
8167
|
* @property {boolean|null} [b2bAreEnrollmentCommsEnabled] EligibleUserAdded b2bAreEnrollmentCommsEnabled
|
|
8168
|
+
* @property {boolean|null} [suppressCoachingCommunications] EligibleUserAdded suppressCoachingCommunications
|
|
8168
8169
|
*/
|
|
8169
8170
|
|
|
8170
8171
|
/**
|
|
@@ -8374,6 +8375,14 @@ $root.EligibleUserAdded = (function() {
|
|
|
8374
8375
|
*/
|
|
8375
8376
|
EligibleUserAdded.prototype.b2bAreEnrollmentCommsEnabled = false;
|
|
8376
8377
|
|
|
8378
|
+
/**
|
|
8379
|
+
* EligibleUserAdded suppressCoachingCommunications.
|
|
8380
|
+
* @member {boolean} suppressCoachingCommunications
|
|
8381
|
+
* @memberof EligibleUserAdded
|
|
8382
|
+
* @instance
|
|
8383
|
+
*/
|
|
8384
|
+
EligibleUserAdded.prototype.suppressCoachingCommunications = false;
|
|
8385
|
+
|
|
8377
8386
|
/**
|
|
8378
8387
|
* Creates a new EligibleUserAdded instance using the specified properties.
|
|
8379
8388
|
* @function create
|
|
@@ -8446,6 +8455,8 @@ $root.EligibleUserAdded = (function() {
|
|
|
8446
8455
|
writer.uint32(/* id 23, wireType 0 =*/184).bool(message.b2bAreNonmemberCommsEnabled);
|
|
8447
8456
|
if (message.b2bAreEnrollmentCommsEnabled != null && message.hasOwnProperty("b2bAreEnrollmentCommsEnabled"))
|
|
8448
8457
|
writer.uint32(/* id 24, wireType 0 =*/192).bool(message.b2bAreEnrollmentCommsEnabled);
|
|
8458
|
+
if (message.suppressCoachingCommunications != null && message.hasOwnProperty("suppressCoachingCommunications"))
|
|
8459
|
+
writer.uint32(/* id 25, wireType 0 =*/200).bool(message.suppressCoachingCommunications);
|
|
8449
8460
|
return writer;
|
|
8450
8461
|
};
|
|
8451
8462
|
|
|
@@ -8552,6 +8563,9 @@ $root.EligibleUserAdded = (function() {
|
|
|
8552
8563
|
case 24:
|
|
8553
8564
|
message.b2bAreEnrollmentCommsEnabled = reader.bool();
|
|
8554
8565
|
break;
|
|
8566
|
+
case 25:
|
|
8567
|
+
message.suppressCoachingCommunications = reader.bool();
|
|
8568
|
+
break;
|
|
8555
8569
|
default:
|
|
8556
8570
|
reader.skipType(tag & 7);
|
|
8557
8571
|
break;
|
|
@@ -8684,6 +8698,9 @@ $root.EligibleUserAdded = (function() {
|
|
|
8684
8698
|
if (message.b2bAreEnrollmentCommsEnabled != null && message.hasOwnProperty("b2bAreEnrollmentCommsEnabled"))
|
|
8685
8699
|
if (typeof message.b2bAreEnrollmentCommsEnabled !== "boolean")
|
|
8686
8700
|
return "b2bAreEnrollmentCommsEnabled: boolean expected";
|
|
8701
|
+
if (message.suppressCoachingCommunications != null && message.hasOwnProperty("suppressCoachingCommunications"))
|
|
8702
|
+
if (typeof message.suppressCoachingCommunications !== "boolean")
|
|
8703
|
+
return "suppressCoachingCommunications: boolean expected";
|
|
8687
8704
|
return null;
|
|
8688
8705
|
};
|
|
8689
8706
|
|
|
@@ -8825,6 +8842,8 @@ $root.EligibleUserAdded = (function() {
|
|
|
8825
8842
|
message.b2bAreNonmemberCommsEnabled = Boolean(object.b2bAreNonmemberCommsEnabled);
|
|
8826
8843
|
if (object.b2bAreEnrollmentCommsEnabled != null)
|
|
8827
8844
|
message.b2bAreEnrollmentCommsEnabled = Boolean(object.b2bAreEnrollmentCommsEnabled);
|
|
8845
|
+
if (object.suppressCoachingCommunications != null)
|
|
8846
|
+
message.suppressCoachingCommunications = Boolean(object.suppressCoachingCommunications);
|
|
8828
8847
|
return message;
|
|
8829
8848
|
};
|
|
8830
8849
|
|
|
@@ -8874,6 +8893,7 @@ $root.EligibleUserAdded = (function() {
|
|
|
8874
8893
|
object.b2bAreMemberCommsEnabled = false;
|
|
8875
8894
|
object.b2bAreNonmemberCommsEnabled = false;
|
|
8876
8895
|
object.b2bAreEnrollmentCommsEnabled = false;
|
|
8896
|
+
object.suppressCoachingCommunications = false;
|
|
8877
8897
|
}
|
|
8878
8898
|
if (message.workEmail != null && message.hasOwnProperty("workEmail"))
|
|
8879
8899
|
object.workEmail = message.workEmail;
|
|
@@ -8929,6 +8949,8 @@ $root.EligibleUserAdded = (function() {
|
|
|
8929
8949
|
object.b2bAreNonmemberCommsEnabled = message.b2bAreNonmemberCommsEnabled;
|
|
8930
8950
|
if (message.b2bAreEnrollmentCommsEnabled != null && message.hasOwnProperty("b2bAreEnrollmentCommsEnabled"))
|
|
8931
8951
|
object.b2bAreEnrollmentCommsEnabled = message.b2bAreEnrollmentCommsEnabled;
|
|
8952
|
+
if (message.suppressCoachingCommunications != null && message.hasOwnProperty("suppressCoachingCommunications"))
|
|
8953
|
+
object.suppressCoachingCommunications = message.suppressCoachingCommunications;
|
|
8932
8954
|
return object;
|
|
8933
8955
|
};
|
|
8934
8956
|
|
|
@@ -9511,6 +9533,7 @@ $root.EligibleUserAmended = (function() {
|
|
|
9511
9533
|
* @property {boolean|null} [b2bAreMemberCommsEnabled] EligibleUserAmended b2bAreMemberCommsEnabled
|
|
9512
9534
|
* @property {boolean|null} [b2bAreNonmemberCommsEnabled] EligibleUserAmended b2bAreNonmemberCommsEnabled
|
|
9513
9535
|
* @property {boolean|null} [b2bAreEnrollmentCommsEnabled] EligibleUserAmended b2bAreEnrollmentCommsEnabled
|
|
9536
|
+
* @property {boolean|null} [suppressCoachingCommunications] EligibleUserAmended suppressCoachingCommunications
|
|
9514
9537
|
*/
|
|
9515
9538
|
|
|
9516
9539
|
/**
|
|
@@ -9712,6 +9735,14 @@ $root.EligibleUserAmended = (function() {
|
|
|
9712
9735
|
*/
|
|
9713
9736
|
EligibleUserAmended.prototype.b2bAreEnrollmentCommsEnabled = false;
|
|
9714
9737
|
|
|
9738
|
+
/**
|
|
9739
|
+
* EligibleUserAmended suppressCoachingCommunications.
|
|
9740
|
+
* @member {boolean} suppressCoachingCommunications
|
|
9741
|
+
* @memberof EligibleUserAmended
|
|
9742
|
+
* @instance
|
|
9743
|
+
*/
|
|
9744
|
+
EligibleUserAmended.prototype.suppressCoachingCommunications = false;
|
|
9745
|
+
|
|
9715
9746
|
/**
|
|
9716
9747
|
* Creates a new EligibleUserAmended instance using the specified properties.
|
|
9717
9748
|
* @function create
|
|
@@ -9782,6 +9813,8 @@ $root.EligibleUserAmended = (function() {
|
|
|
9782
9813
|
writer.uint32(/* id 22, wireType 0 =*/176).bool(message.b2bAreNonmemberCommsEnabled);
|
|
9783
9814
|
if (message.b2bAreEnrollmentCommsEnabled != null && message.hasOwnProperty("b2bAreEnrollmentCommsEnabled"))
|
|
9784
9815
|
writer.uint32(/* id 23, wireType 0 =*/184).bool(message.b2bAreEnrollmentCommsEnabled);
|
|
9816
|
+
if (message.suppressCoachingCommunications != null && message.hasOwnProperty("suppressCoachingCommunications"))
|
|
9817
|
+
writer.uint32(/* id 24, wireType 0 =*/192).bool(message.suppressCoachingCommunications);
|
|
9785
9818
|
return writer;
|
|
9786
9819
|
};
|
|
9787
9820
|
|
|
@@ -9885,6 +9918,9 @@ $root.EligibleUserAmended = (function() {
|
|
|
9885
9918
|
case 23:
|
|
9886
9919
|
message.b2bAreEnrollmentCommsEnabled = reader.bool();
|
|
9887
9920
|
break;
|
|
9921
|
+
case 24:
|
|
9922
|
+
message.suppressCoachingCommunications = reader.bool();
|
|
9923
|
+
break;
|
|
9888
9924
|
default:
|
|
9889
9925
|
reader.skipType(tag & 7);
|
|
9890
9926
|
break;
|
|
@@ -10014,6 +10050,9 @@ $root.EligibleUserAmended = (function() {
|
|
|
10014
10050
|
if (message.b2bAreEnrollmentCommsEnabled != null && message.hasOwnProperty("b2bAreEnrollmentCommsEnabled"))
|
|
10015
10051
|
if (typeof message.b2bAreEnrollmentCommsEnabled !== "boolean")
|
|
10016
10052
|
return "b2bAreEnrollmentCommsEnabled: boolean expected";
|
|
10053
|
+
if (message.suppressCoachingCommunications != null && message.hasOwnProperty("suppressCoachingCommunications"))
|
|
10054
|
+
if (typeof message.suppressCoachingCommunications !== "boolean")
|
|
10055
|
+
return "suppressCoachingCommunications: boolean expected";
|
|
10017
10056
|
return null;
|
|
10018
10057
|
};
|
|
10019
10058
|
|
|
@@ -10153,6 +10192,8 @@ $root.EligibleUserAmended = (function() {
|
|
|
10153
10192
|
message.b2bAreNonmemberCommsEnabled = Boolean(object.b2bAreNonmemberCommsEnabled);
|
|
10154
10193
|
if (object.b2bAreEnrollmentCommsEnabled != null)
|
|
10155
10194
|
message.b2bAreEnrollmentCommsEnabled = Boolean(object.b2bAreEnrollmentCommsEnabled);
|
|
10195
|
+
if (object.suppressCoachingCommunications != null)
|
|
10196
|
+
message.suppressCoachingCommunications = Boolean(object.suppressCoachingCommunications);
|
|
10156
10197
|
return message;
|
|
10157
10198
|
};
|
|
10158
10199
|
|
|
@@ -10201,6 +10242,7 @@ $root.EligibleUserAmended = (function() {
|
|
|
10201
10242
|
object.b2bAreMemberCommsEnabled = false;
|
|
10202
10243
|
object.b2bAreNonmemberCommsEnabled = false;
|
|
10203
10244
|
object.b2bAreEnrollmentCommsEnabled = false;
|
|
10245
|
+
object.suppressCoachingCommunications = false;
|
|
10204
10246
|
}
|
|
10205
10247
|
if (message.workEmail != null && message.hasOwnProperty("workEmail"))
|
|
10206
10248
|
object.workEmail = message.workEmail;
|
|
@@ -10254,6 +10296,8 @@ $root.EligibleUserAmended = (function() {
|
|
|
10254
10296
|
object.b2bAreNonmemberCommsEnabled = message.b2bAreNonmemberCommsEnabled;
|
|
10255
10297
|
if (message.b2bAreEnrollmentCommsEnabled != null && message.hasOwnProperty("b2bAreEnrollmentCommsEnabled"))
|
|
10256
10298
|
object.b2bAreEnrollmentCommsEnabled = message.b2bAreEnrollmentCommsEnabled;
|
|
10299
|
+
if (message.suppressCoachingCommunications != null && message.hasOwnProperty("suppressCoachingCommunications"))
|
|
10300
|
+
object.suppressCoachingCommunications = message.suppressCoachingCommunications;
|
|
10257
10301
|
return object;
|
|
10258
10302
|
};
|
|
10259
10303
|
|
|
@@ -108587,6 +108631,7 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
108587
108631
|
* @property {boolean|null} [b2bAreEnrollmentCommsEnabled] EnterpriseUserEnrollmentCreated b2bAreEnrollmentCommsEnabled
|
|
108588
108632
|
* @property {b2b.PrimaryProduct|null} [primaryProduct] EnterpriseUserEnrollmentCreated primaryProduct
|
|
108589
108633
|
* @property {string|null} [eligibilityRecordUuid] EnterpriseUserEnrollmentCreated eligibilityRecordUuid
|
|
108634
|
+
* @property {boolean|null} [suppressCoachingCommunications] EnterpriseUserEnrollmentCreated suppressCoachingCommunications
|
|
108590
108635
|
*/
|
|
108591
108636
|
|
|
108592
108637
|
/**
|
|
@@ -108996,6 +109041,14 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
108996
109041
|
*/
|
|
108997
109042
|
EnterpriseUserEnrollmentCreated.prototype.eligibilityRecordUuid = "";
|
|
108998
109043
|
|
|
109044
|
+
/**
|
|
109045
|
+
* EnterpriseUserEnrollmentCreated suppressCoachingCommunications.
|
|
109046
|
+
* @member {boolean} suppressCoachingCommunications
|
|
109047
|
+
* @memberof EnterpriseUserEnrollmentCreated
|
|
109048
|
+
* @instance
|
|
109049
|
+
*/
|
|
109050
|
+
EnterpriseUserEnrollmentCreated.prototype.suppressCoachingCommunications = false;
|
|
109051
|
+
|
|
108999
109052
|
/**
|
|
109000
109053
|
* Creates a new EnterpriseUserEnrollmentCreated instance using the specified properties.
|
|
109001
109054
|
* @function create
|
|
@@ -109118,6 +109171,8 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
109118
109171
|
writer.uint32(/* id 53, wireType 0 =*/424).int32(message.primaryProduct);
|
|
109119
109172
|
if (message.eligibilityRecordUuid != null && message.hasOwnProperty("eligibilityRecordUuid"))
|
|
109120
109173
|
writer.uint32(/* id 54, wireType 2 =*/434).string(message.eligibilityRecordUuid);
|
|
109174
|
+
if (message.suppressCoachingCommunications != null && message.hasOwnProperty("suppressCoachingCommunications"))
|
|
109175
|
+
writer.uint32(/* id 55, wireType 0 =*/440).bool(message.suppressCoachingCommunications);
|
|
109121
109176
|
return writer;
|
|
109122
109177
|
};
|
|
109123
109178
|
|
|
@@ -109299,6 +109354,9 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
109299
109354
|
case 54:
|
|
109300
109355
|
message.eligibilityRecordUuid = reader.string();
|
|
109301
109356
|
break;
|
|
109357
|
+
case 55:
|
|
109358
|
+
message.suppressCoachingCommunications = reader.bool();
|
|
109359
|
+
break;
|
|
109302
109360
|
default:
|
|
109303
109361
|
reader.skipType(tag & 7);
|
|
109304
109362
|
break;
|
|
@@ -109556,6 +109614,9 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
109556
109614
|
if (message.eligibilityRecordUuid != null && message.hasOwnProperty("eligibilityRecordUuid"))
|
|
109557
109615
|
if (!$util.isString(message.eligibilityRecordUuid))
|
|
109558
109616
|
return "eligibilityRecordUuid: string expected";
|
|
109617
|
+
if (message.suppressCoachingCommunications != null && message.hasOwnProperty("suppressCoachingCommunications"))
|
|
109618
|
+
if (typeof message.suppressCoachingCommunications !== "boolean")
|
|
109619
|
+
return "suppressCoachingCommunications: boolean expected";
|
|
109559
109620
|
return null;
|
|
109560
109621
|
};
|
|
109561
109622
|
|
|
@@ -109884,6 +109945,8 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
109884
109945
|
}
|
|
109885
109946
|
if (object.eligibilityRecordUuid != null)
|
|
109886
109947
|
message.eligibilityRecordUuid = String(object.eligibilityRecordUuid);
|
|
109948
|
+
if (object.suppressCoachingCommunications != null)
|
|
109949
|
+
message.suppressCoachingCommunications = Boolean(object.suppressCoachingCommunications);
|
|
109887
109950
|
return message;
|
|
109888
109951
|
};
|
|
109889
109952
|
|
|
@@ -109970,6 +110033,7 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
109970
110033
|
object.b2bAreEnrollmentCommsEnabled = false;
|
|
109971
110034
|
object.primaryProduct = options.enums === String ? "PRIMARY_PRODUCT_UNKNOWN" : 0;
|
|
109972
110035
|
object.eligibilityRecordUuid = "";
|
|
110036
|
+
object.suppressCoachingCommunications = false;
|
|
109973
110037
|
}
|
|
109974
110038
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
109975
110039
|
object.userId = message.userId;
|
|
@@ -110084,6 +110148,8 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
110084
110148
|
object.primaryProduct = options.enums === String ? $root.b2b.PrimaryProduct[message.primaryProduct] : message.primaryProduct;
|
|
110085
110149
|
if (message.eligibilityRecordUuid != null && message.hasOwnProperty("eligibilityRecordUuid"))
|
|
110086
110150
|
object.eligibilityRecordUuid = message.eligibilityRecordUuid;
|
|
110151
|
+
if (message.suppressCoachingCommunications != null && message.hasOwnProperty("suppressCoachingCommunications"))
|
|
110152
|
+
object.suppressCoachingCommunications = message.suppressCoachingCommunications;
|
|
110087
110153
|
return object;
|
|
110088
110154
|
};
|
|
110089
110155
|
|
|
@@ -111554,6 +111620,7 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
111554
111620
|
* @property {boolean|null} [b2bAreMemberCommsEnabled] EnterpriseUserEnrollmentAmended b2bAreMemberCommsEnabled
|
|
111555
111621
|
* @property {boolean|null} [b2bAreNonmemberCommsEnabled] EnterpriseUserEnrollmentAmended b2bAreNonmemberCommsEnabled
|
|
111556
111622
|
* @property {boolean|null} [b2bAreEnrollmentCommsEnabled] EnterpriseUserEnrollmentAmended b2bAreEnrollmentCommsEnabled
|
|
111623
|
+
* @property {boolean|null} [suppressCoachingCommunications] EnterpriseUserEnrollmentAmended suppressCoachingCommunications
|
|
111557
111624
|
*/
|
|
111558
111625
|
|
|
111559
111626
|
/**
|
|
@@ -111939,6 +112006,14 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
111939
112006
|
*/
|
|
111940
112007
|
EnterpriseUserEnrollmentAmended.prototype.b2bAreEnrollmentCommsEnabled = false;
|
|
111941
112008
|
|
|
112009
|
+
/**
|
|
112010
|
+
* EnterpriseUserEnrollmentAmended suppressCoachingCommunications.
|
|
112011
|
+
* @member {boolean} suppressCoachingCommunications
|
|
112012
|
+
* @memberof EnterpriseUserEnrollmentAmended
|
|
112013
|
+
* @instance
|
|
112014
|
+
*/
|
|
112015
|
+
EnterpriseUserEnrollmentAmended.prototype.suppressCoachingCommunications = false;
|
|
112016
|
+
|
|
111942
112017
|
/**
|
|
111943
112018
|
* Creates a new EnterpriseUserEnrollmentAmended instance using the specified properties.
|
|
111944
112019
|
* @function create
|
|
@@ -112055,6 +112130,8 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
112055
112130
|
writer.uint32(/* id 51, wireType 0 =*/408).bool(message.b2bAreNonmemberCommsEnabled);
|
|
112056
112131
|
if (message.b2bAreEnrollmentCommsEnabled != null && message.hasOwnProperty("b2bAreEnrollmentCommsEnabled"))
|
|
112057
112132
|
writer.uint32(/* id 52, wireType 0 =*/416).bool(message.b2bAreEnrollmentCommsEnabled);
|
|
112133
|
+
if (message.suppressCoachingCommunications != null && message.hasOwnProperty("suppressCoachingCommunications"))
|
|
112134
|
+
writer.uint32(/* id 53, wireType 0 =*/424).bool(message.suppressCoachingCommunications);
|
|
112058
112135
|
return writer;
|
|
112059
112136
|
};
|
|
112060
112137
|
|
|
@@ -112227,6 +112304,9 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
112227
112304
|
case 52:
|
|
112228
112305
|
message.b2bAreEnrollmentCommsEnabled = reader.bool();
|
|
112229
112306
|
break;
|
|
112307
|
+
case 53:
|
|
112308
|
+
message.suppressCoachingCommunications = reader.bool();
|
|
112309
|
+
break;
|
|
112230
112310
|
default:
|
|
112231
112311
|
reader.skipType(tag & 7);
|
|
112232
112312
|
break;
|
|
@@ -112466,6 +112546,9 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
112466
112546
|
if (message.b2bAreEnrollmentCommsEnabled != null && message.hasOwnProperty("b2bAreEnrollmentCommsEnabled"))
|
|
112467
112547
|
if (typeof message.b2bAreEnrollmentCommsEnabled !== "boolean")
|
|
112468
112548
|
return "b2bAreEnrollmentCommsEnabled: boolean expected";
|
|
112549
|
+
if (message.suppressCoachingCommunications != null && message.hasOwnProperty("suppressCoachingCommunications"))
|
|
112550
|
+
if (typeof message.suppressCoachingCommunications !== "boolean")
|
|
112551
|
+
return "suppressCoachingCommunications: boolean expected";
|
|
112469
112552
|
return null;
|
|
112470
112553
|
};
|
|
112471
112554
|
|
|
@@ -112764,6 +112847,8 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
112764
112847
|
message.b2bAreNonmemberCommsEnabled = Boolean(object.b2bAreNonmemberCommsEnabled);
|
|
112765
112848
|
if (object.b2bAreEnrollmentCommsEnabled != null)
|
|
112766
112849
|
message.b2bAreEnrollmentCommsEnabled = Boolean(object.b2bAreEnrollmentCommsEnabled);
|
|
112850
|
+
if (object.suppressCoachingCommunications != null)
|
|
112851
|
+
message.suppressCoachingCommunications = Boolean(object.suppressCoachingCommunications);
|
|
112767
112852
|
return message;
|
|
112768
112853
|
};
|
|
112769
112854
|
|
|
@@ -112847,6 +112932,7 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
112847
112932
|
object.b2bAreMemberCommsEnabled = false;
|
|
112848
112933
|
object.b2bAreNonmemberCommsEnabled = false;
|
|
112849
112934
|
object.b2bAreEnrollmentCommsEnabled = false;
|
|
112935
|
+
object.suppressCoachingCommunications = false;
|
|
112850
112936
|
}
|
|
112851
112937
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
112852
112938
|
object.userId = message.userId;
|
|
@@ -112955,6 +113041,8 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
112955
113041
|
object.b2bAreNonmemberCommsEnabled = message.b2bAreNonmemberCommsEnabled;
|
|
112956
113042
|
if (message.b2bAreEnrollmentCommsEnabled != null && message.hasOwnProperty("b2bAreEnrollmentCommsEnabled"))
|
|
112957
113043
|
object.b2bAreEnrollmentCommsEnabled = message.b2bAreEnrollmentCommsEnabled;
|
|
113044
|
+
if (message.suppressCoachingCommunications != null && message.hasOwnProperty("suppressCoachingCommunications"))
|
|
113045
|
+
object.suppressCoachingCommunications = message.suppressCoachingCommunications;
|
|
112958
113046
|
return object;
|
|
112959
113047
|
};
|
|
112960
113048
|
|
|
@@ -112993,6 +113081,7 @@ $root.EnterpriseUserEnrollmentInitiated = (function() {
|
|
|
112993
113081
|
* @property {boolean|null} [b2bAreMemberCommsEnabled] EnterpriseUserEnrollmentInitiated b2bAreMemberCommsEnabled
|
|
112994
113082
|
* @property {boolean|null} [b2bAreNonmemberCommsEnabled] EnterpriseUserEnrollmentInitiated b2bAreNonmemberCommsEnabled
|
|
112995
113083
|
* @property {boolean|null} [b2bAreEnrollmentCommsEnabled] EnterpriseUserEnrollmentInitiated b2bAreEnrollmentCommsEnabled
|
|
113084
|
+
* @property {boolean|null} [suppressCoachingCommunications] EnterpriseUserEnrollmentInitiated suppressCoachingCommunications
|
|
112996
113085
|
*/
|
|
112997
113086
|
|
|
112998
113087
|
/**
|
|
@@ -113130,6 +113219,14 @@ $root.EnterpriseUserEnrollmentInitiated = (function() {
|
|
|
113130
113219
|
*/
|
|
113131
113220
|
EnterpriseUserEnrollmentInitiated.prototype.b2bAreEnrollmentCommsEnabled = false;
|
|
113132
113221
|
|
|
113222
|
+
/**
|
|
113223
|
+
* EnterpriseUserEnrollmentInitiated suppressCoachingCommunications.
|
|
113224
|
+
* @member {boolean} suppressCoachingCommunications
|
|
113225
|
+
* @memberof EnterpriseUserEnrollmentInitiated
|
|
113226
|
+
* @instance
|
|
113227
|
+
*/
|
|
113228
|
+
EnterpriseUserEnrollmentInitiated.prototype.suppressCoachingCommunications = false;
|
|
113229
|
+
|
|
113133
113230
|
/**
|
|
113134
113231
|
* Creates a new EnterpriseUserEnrollmentInitiated instance using the specified properties.
|
|
113135
113232
|
* @function create
|
|
@@ -113184,6 +113281,8 @@ $root.EnterpriseUserEnrollmentInitiated = (function() {
|
|
|
113184
113281
|
writer.uint32(/* id 14, wireType 0 =*/112).bool(message.b2bAreNonmemberCommsEnabled);
|
|
113185
113282
|
if (message.b2bAreEnrollmentCommsEnabled != null && message.hasOwnProperty("b2bAreEnrollmentCommsEnabled"))
|
|
113186
113283
|
writer.uint32(/* id 15, wireType 0 =*/120).bool(message.b2bAreEnrollmentCommsEnabled);
|
|
113284
|
+
if (message.suppressCoachingCommunications != null && message.hasOwnProperty("suppressCoachingCommunications"))
|
|
113285
|
+
writer.uint32(/* id 16, wireType 0 =*/128).bool(message.suppressCoachingCommunications);
|
|
113187
113286
|
return writer;
|
|
113188
113287
|
};
|
|
113189
113288
|
|
|
@@ -113263,6 +113362,9 @@ $root.EnterpriseUserEnrollmentInitiated = (function() {
|
|
|
113263
113362
|
case 15:
|
|
113264
113363
|
message.b2bAreEnrollmentCommsEnabled = reader.bool();
|
|
113265
113364
|
break;
|
|
113365
|
+
case 16:
|
|
113366
|
+
message.suppressCoachingCommunications = reader.bool();
|
|
113367
|
+
break;
|
|
113266
113368
|
default:
|
|
113267
113369
|
reader.skipType(tag & 7);
|
|
113268
113370
|
break;
|
|
@@ -113343,6 +113445,9 @@ $root.EnterpriseUserEnrollmentInitiated = (function() {
|
|
|
113343
113445
|
if (message.b2bAreEnrollmentCommsEnabled != null && message.hasOwnProperty("b2bAreEnrollmentCommsEnabled"))
|
|
113344
113446
|
if (typeof message.b2bAreEnrollmentCommsEnabled !== "boolean")
|
|
113345
113447
|
return "b2bAreEnrollmentCommsEnabled: boolean expected";
|
|
113448
|
+
if (message.suppressCoachingCommunications != null && message.hasOwnProperty("suppressCoachingCommunications"))
|
|
113449
|
+
if (typeof message.suppressCoachingCommunications !== "boolean")
|
|
113450
|
+
return "suppressCoachingCommunications: boolean expected";
|
|
113346
113451
|
return null;
|
|
113347
113452
|
};
|
|
113348
113453
|
|
|
@@ -113395,6 +113500,8 @@ $root.EnterpriseUserEnrollmentInitiated = (function() {
|
|
|
113395
113500
|
message.b2bAreNonmemberCommsEnabled = Boolean(object.b2bAreNonmemberCommsEnabled);
|
|
113396
113501
|
if (object.b2bAreEnrollmentCommsEnabled != null)
|
|
113397
113502
|
message.b2bAreEnrollmentCommsEnabled = Boolean(object.b2bAreEnrollmentCommsEnabled);
|
|
113503
|
+
if (object.suppressCoachingCommunications != null)
|
|
113504
|
+
message.suppressCoachingCommunications = Boolean(object.suppressCoachingCommunications);
|
|
113398
113505
|
return message;
|
|
113399
113506
|
};
|
|
113400
113507
|
|
|
@@ -113431,6 +113538,7 @@ $root.EnterpriseUserEnrollmentInitiated = (function() {
|
|
|
113431
113538
|
object.b2bAreMemberCommsEnabled = false;
|
|
113432
113539
|
object.b2bAreNonmemberCommsEnabled = false;
|
|
113433
113540
|
object.b2bAreEnrollmentCommsEnabled = false;
|
|
113541
|
+
object.suppressCoachingCommunications = false;
|
|
113434
113542
|
}
|
|
113435
113543
|
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
113436
113544
|
object.hsUserId = message.hsUserId;
|
|
@@ -113465,6 +113573,8 @@ $root.EnterpriseUserEnrollmentInitiated = (function() {
|
|
|
113465
113573
|
object.b2bAreNonmemberCommsEnabled = message.b2bAreNonmemberCommsEnabled;
|
|
113466
113574
|
if (message.b2bAreEnrollmentCommsEnabled != null && message.hasOwnProperty("b2bAreEnrollmentCommsEnabled"))
|
|
113467
113575
|
object.b2bAreEnrollmentCommsEnabled = message.b2bAreEnrollmentCommsEnabled;
|
|
113576
|
+
if (message.suppressCoachingCommunications != null && message.hasOwnProperty("suppressCoachingCommunications"))
|
|
113577
|
+
object.suppressCoachingCommunications = message.suppressCoachingCommunications;
|
|
113468
113578
|
return object;
|
|
113469
113579
|
};
|
|
113470
113580
|
|
|
@@ -171611,6 +171721,90 @@ $root.clinical = (function() {
|
|
|
171611
171721
|
return values;
|
|
171612
171722
|
})();
|
|
171613
171723
|
|
|
171724
|
+
/**
|
|
171725
|
+
* SyncStatus enum.
|
|
171726
|
+
* @name clinical.SyncStatus
|
|
171727
|
+
* @enum {string}
|
|
171728
|
+
* @property {number} SYNC_STATUS__UNKNOWN=0 SYNC_STATUS__UNKNOWN value
|
|
171729
|
+
* @property {number} SYNC_STATUS_SYNCED=1 SYNC_STATUS_SYNCED value
|
|
171730
|
+
* @property {number} SYNC_STATUS_PENDING=2 SYNC_STATUS_PENDING value
|
|
171731
|
+
* @property {number} SYNC_STATUS_FAILED=3 SYNC_STATUS_FAILED value
|
|
171732
|
+
*/
|
|
171733
|
+
clinical.SyncStatus = (function() {
|
|
171734
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
171735
|
+
values[valuesById[0] = "SYNC_STATUS__UNKNOWN"] = 0;
|
|
171736
|
+
values[valuesById[1] = "SYNC_STATUS_SYNCED"] = 1;
|
|
171737
|
+
values[valuesById[2] = "SYNC_STATUS_PENDING"] = 2;
|
|
171738
|
+
values[valuesById[3] = "SYNC_STATUS_FAILED"] = 3;
|
|
171739
|
+
return values;
|
|
171740
|
+
})();
|
|
171741
|
+
|
|
171742
|
+
/**
|
|
171743
|
+
* ClinicalPartnerAppointmentStatus enum.
|
|
171744
|
+
* @name clinical.ClinicalPartnerAppointmentStatus
|
|
171745
|
+
* @enum {string}
|
|
171746
|
+
* @property {number} CLINICAL_PARTNER_APPOINTMENT_STATUS_UNKNOWN=0 CLINICAL_PARTNER_APPOINTMENT_STATUS_UNKNOWN value
|
|
171747
|
+
* @property {number} CLINICAL_PARTNER_APPOINTMENT_STATUS_TENTATIVE=1 CLINICAL_PARTNER_APPOINTMENT_STATUS_TENTATIVE value
|
|
171748
|
+
* @property {number} CLINICAL_PARTNER_APPOINTMENT_STATUS_SCHEDULED=2 CLINICAL_PARTNER_APPOINTMENT_STATUS_SCHEDULED value
|
|
171749
|
+
* @property {number} CLINICAL_PARTNER_APPOINTMENT_STATUS_COMPLETED=3 CLINICAL_PARTNER_APPOINTMENT_STATUS_COMPLETED value
|
|
171750
|
+
* @property {number} CLINICAL_PARTNER_APPOINTMENT_STATUS_CANCELLED=4 CLINICAL_PARTNER_APPOINTMENT_STATUS_CANCELLED value
|
|
171751
|
+
* @property {number} CLINICAL_PARTNER_APPOINTMENT_STATUS_RESCHEDULED=5 CLINICAL_PARTNER_APPOINTMENT_STATUS_RESCHEDULED value
|
|
171752
|
+
* @property {number} CLINICAL_PARTNER_APPOINTMENT_STATUS_MEMBER_NO_SHOW=6 CLINICAL_PARTNER_APPOINTMENT_STATUS_MEMBER_NO_SHOW value
|
|
171753
|
+
* @property {number} CLINICAL_PARTNER_APPOINTMENT_STATUS_LATE_CANCELLED=7 CLINICAL_PARTNER_APPOINTMENT_STATUS_LATE_CANCELLED value
|
|
171754
|
+
* @property {number} CLINICAL_PARTNER_APPOINTMENT_STATUS_PROVIDER_RESCHEDULED=8 CLINICAL_PARTNER_APPOINTMENT_STATUS_PROVIDER_RESCHEDULED value
|
|
171755
|
+
* @property {number} CLINICAL_PARTNER_APPOINTMENT_STATUS_PROVIDER_NO_SHOW=9 CLINICAL_PARTNER_APPOINTMENT_STATUS_PROVIDER_NO_SHOW value
|
|
171756
|
+
* @property {number} CLINICAL_PARTNER_APPOINTMENT_STATUS_PROVIDER_CANCELLED=10 CLINICAL_PARTNER_APPOINTMENT_STATUS_PROVIDER_CANCELLED value
|
|
171757
|
+
* @property {number} CLINICAL_PARTNER_APPOINTMENT_STATUS_PENDING=11 CLINICAL_PARTNER_APPOINTMENT_STATUS_PENDING value
|
|
171758
|
+
*/
|
|
171759
|
+
clinical.ClinicalPartnerAppointmentStatus = (function() {
|
|
171760
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
171761
|
+
values[valuesById[0] = "CLINICAL_PARTNER_APPOINTMENT_STATUS_UNKNOWN"] = 0;
|
|
171762
|
+
values[valuesById[1] = "CLINICAL_PARTNER_APPOINTMENT_STATUS_TENTATIVE"] = 1;
|
|
171763
|
+
values[valuesById[2] = "CLINICAL_PARTNER_APPOINTMENT_STATUS_SCHEDULED"] = 2;
|
|
171764
|
+
values[valuesById[3] = "CLINICAL_PARTNER_APPOINTMENT_STATUS_COMPLETED"] = 3;
|
|
171765
|
+
values[valuesById[4] = "CLINICAL_PARTNER_APPOINTMENT_STATUS_CANCELLED"] = 4;
|
|
171766
|
+
values[valuesById[5] = "CLINICAL_PARTNER_APPOINTMENT_STATUS_RESCHEDULED"] = 5;
|
|
171767
|
+
values[valuesById[6] = "CLINICAL_PARTNER_APPOINTMENT_STATUS_MEMBER_NO_SHOW"] = 6;
|
|
171768
|
+
values[valuesById[7] = "CLINICAL_PARTNER_APPOINTMENT_STATUS_LATE_CANCELLED"] = 7;
|
|
171769
|
+
values[valuesById[8] = "CLINICAL_PARTNER_APPOINTMENT_STATUS_PROVIDER_RESCHEDULED"] = 8;
|
|
171770
|
+
values[valuesById[9] = "CLINICAL_PARTNER_APPOINTMENT_STATUS_PROVIDER_NO_SHOW"] = 9;
|
|
171771
|
+
values[valuesById[10] = "CLINICAL_PARTNER_APPOINTMENT_STATUS_PROVIDER_CANCELLED"] = 10;
|
|
171772
|
+
values[valuesById[11] = "CLINICAL_PARTNER_APPOINTMENT_STATUS_PENDING"] = 11;
|
|
171773
|
+
return values;
|
|
171774
|
+
})();
|
|
171775
|
+
|
|
171776
|
+
/**
|
|
171777
|
+
* ClinicalPartnerAppointmentType enum.
|
|
171778
|
+
* @name clinical.ClinicalPartnerAppointmentType
|
|
171779
|
+
* @enum {string}
|
|
171780
|
+
* @property {number} CLINICAL_PARTNER_APPOINTMENT_TYPE_UNKNOWN=0 CLINICAL_PARTNER_APPOINTMENT_TYPE_UNKNOWN value
|
|
171781
|
+
* @property {number} CLINICAL_PARTNER_APPOINTMENT_TYPE_THERAPY=1 CLINICAL_PARTNER_APPOINTMENT_TYPE_THERAPY value
|
|
171782
|
+
* @property {number} CLINICAL_PARTNER_APPOINTMENT_TYPE_PSYCHIATRY=2 CLINICAL_PARTNER_APPOINTMENT_TYPE_PSYCHIATRY value
|
|
171783
|
+
*/
|
|
171784
|
+
clinical.ClinicalPartnerAppointmentType = (function() {
|
|
171785
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
171786
|
+
values[valuesById[0] = "CLINICAL_PARTNER_APPOINTMENT_TYPE_UNKNOWN"] = 0;
|
|
171787
|
+
values[valuesById[1] = "CLINICAL_PARTNER_APPOINTMENT_TYPE_THERAPY"] = 1;
|
|
171788
|
+
values[valuesById[2] = "CLINICAL_PARTNER_APPOINTMENT_TYPE_PSYCHIATRY"] = 2;
|
|
171789
|
+
return values;
|
|
171790
|
+
})();
|
|
171791
|
+
|
|
171792
|
+
/**
|
|
171793
|
+
* ClinicalPartnerAppointmentSessionType enum.
|
|
171794
|
+
* @name clinical.ClinicalPartnerAppointmentSessionType
|
|
171795
|
+
* @enum {string}
|
|
171796
|
+
* @property {number} CLINICAL_PARTNER_APPOINTMENT_SESSION_TYPE_UNKNOWN=0 CLINICAL_PARTNER_APPOINTMENT_SESSION_TYPE_UNKNOWN value
|
|
171797
|
+
* @property {number} CLINICAL_PARTNER_APPOINTMENT_SESSION_TYPE_INTAKE=1 CLINICAL_PARTNER_APPOINTMENT_SESSION_TYPE_INTAKE value
|
|
171798
|
+
* @property {number} CLINICAL_PARTNER_APPOINTMENT_SESSION_TYPE_PROGRESS=2 CLINICAL_PARTNER_APPOINTMENT_SESSION_TYPE_PROGRESS value
|
|
171799
|
+
*/
|
|
171800
|
+
clinical.ClinicalPartnerAppointmentSessionType = (function() {
|
|
171801
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
171802
|
+
values[valuesById[0] = "CLINICAL_PARTNER_APPOINTMENT_SESSION_TYPE_UNKNOWN"] = 0;
|
|
171803
|
+
values[valuesById[1] = "CLINICAL_PARTNER_APPOINTMENT_SESSION_TYPE_INTAKE"] = 1;
|
|
171804
|
+
values[valuesById[2] = "CLINICAL_PARTNER_APPOINTMENT_SESSION_TYPE_PROGRESS"] = 2;
|
|
171805
|
+
return values;
|
|
171806
|
+
})();
|
|
171807
|
+
|
|
171614
171808
|
clinical.GuardianRelationship = (function() {
|
|
171615
171809
|
|
|
171616
171810
|
/**
|
|
@@ -171915,6 +172109,702 @@ $root.clinical = (function() {
|
|
|
171915
172109
|
return GuardianRelationship;
|
|
171916
172110
|
})();
|
|
171917
172111
|
|
|
172112
|
+
clinical.PartnerAppointmentCreated = (function() {
|
|
172113
|
+
|
|
172114
|
+
/**
|
|
172115
|
+
* Properties of a PartnerAppointmentCreated.
|
|
172116
|
+
* @memberof clinical
|
|
172117
|
+
* @interface IPartnerAppointmentCreated
|
|
172118
|
+
* @property {string|null} [id] PartnerAppointmentCreated id
|
|
172119
|
+
* @property {clinical.ClinicalPartnerSource|null} [partnerSource] PartnerAppointmentCreated partnerSource
|
|
172120
|
+
* @property {string|null} [externalId] PartnerAppointmentCreated externalId
|
|
172121
|
+
* @property {string|null} [partnerProviderId] PartnerAppointmentCreated partnerProviderId
|
|
172122
|
+
* @property {number|Long|null} [gingerMemberId] PartnerAppointmentCreated gingerMemberId
|
|
172123
|
+
* @property {clinical.ClinicalPartnerAppointmentStatus|null} [appointmentStatus] PartnerAppointmentCreated appointmentStatus
|
|
172124
|
+
* @property {number|Long|null} [appointmentStartTime] PartnerAppointmentCreated appointmentStartTime
|
|
172125
|
+
* @property {number|Long|null} [appointmentEndTime] PartnerAppointmentCreated appointmentEndTime
|
|
172126
|
+
* @property {number|null} [durationMinutes] PartnerAppointmentCreated durationMinutes
|
|
172127
|
+
* @property {clinical.ClinicalPartnerAppointmentLocationType|null} [locationType] PartnerAppointmentCreated locationType
|
|
172128
|
+
* @property {clinical.ClinicalPartnerAppointmentType|null} [appointmentType] PartnerAppointmentCreated appointmentType
|
|
172129
|
+
* @property {clinical.ClinicalPartnerAppointmentSessionType|null} [sessionType] PartnerAppointmentCreated sessionType
|
|
172130
|
+
* @property {boolean|null} [covered] PartnerAppointmentCreated covered
|
|
172131
|
+
* @property {number|Long|null} [timeCreated] PartnerAppointmentCreated timeCreated
|
|
172132
|
+
* @property {number|Long|null} [timeUpdated] PartnerAppointmentCreated timeUpdated
|
|
172133
|
+
*/
|
|
172134
|
+
|
|
172135
|
+
/**
|
|
172136
|
+
* Constructs a new PartnerAppointmentCreated.
|
|
172137
|
+
* @memberof clinical
|
|
172138
|
+
* @classdesc Represents a PartnerAppointmentCreated.
|
|
172139
|
+
* @implements IPartnerAppointmentCreated
|
|
172140
|
+
* @constructor
|
|
172141
|
+
* @param {clinical.IPartnerAppointmentCreated=} [properties] Properties to set
|
|
172142
|
+
*/
|
|
172143
|
+
function PartnerAppointmentCreated(properties) {
|
|
172144
|
+
if (properties)
|
|
172145
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
172146
|
+
if (properties[keys[i]] != null)
|
|
172147
|
+
this[keys[i]] = properties[keys[i]];
|
|
172148
|
+
}
|
|
172149
|
+
|
|
172150
|
+
/**
|
|
172151
|
+
* PartnerAppointmentCreated id.
|
|
172152
|
+
* @member {string} id
|
|
172153
|
+
* @memberof clinical.PartnerAppointmentCreated
|
|
172154
|
+
* @instance
|
|
172155
|
+
*/
|
|
172156
|
+
PartnerAppointmentCreated.prototype.id = "";
|
|
172157
|
+
|
|
172158
|
+
/**
|
|
172159
|
+
* PartnerAppointmentCreated partnerSource.
|
|
172160
|
+
* @member {clinical.ClinicalPartnerSource} partnerSource
|
|
172161
|
+
* @memberof clinical.PartnerAppointmentCreated
|
|
172162
|
+
* @instance
|
|
172163
|
+
*/
|
|
172164
|
+
PartnerAppointmentCreated.prototype.partnerSource = 0;
|
|
172165
|
+
|
|
172166
|
+
/**
|
|
172167
|
+
* PartnerAppointmentCreated externalId.
|
|
172168
|
+
* @member {string} externalId
|
|
172169
|
+
* @memberof clinical.PartnerAppointmentCreated
|
|
172170
|
+
* @instance
|
|
172171
|
+
*/
|
|
172172
|
+
PartnerAppointmentCreated.prototype.externalId = "";
|
|
172173
|
+
|
|
172174
|
+
/**
|
|
172175
|
+
* PartnerAppointmentCreated partnerProviderId.
|
|
172176
|
+
* @member {string} partnerProviderId
|
|
172177
|
+
* @memberof clinical.PartnerAppointmentCreated
|
|
172178
|
+
* @instance
|
|
172179
|
+
*/
|
|
172180
|
+
PartnerAppointmentCreated.prototype.partnerProviderId = "";
|
|
172181
|
+
|
|
172182
|
+
/**
|
|
172183
|
+
* PartnerAppointmentCreated gingerMemberId.
|
|
172184
|
+
* @member {number|Long} gingerMemberId
|
|
172185
|
+
* @memberof clinical.PartnerAppointmentCreated
|
|
172186
|
+
* @instance
|
|
172187
|
+
*/
|
|
172188
|
+
PartnerAppointmentCreated.prototype.gingerMemberId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
172189
|
+
|
|
172190
|
+
/**
|
|
172191
|
+
* PartnerAppointmentCreated appointmentStatus.
|
|
172192
|
+
* @member {clinical.ClinicalPartnerAppointmentStatus} appointmentStatus
|
|
172193
|
+
* @memberof clinical.PartnerAppointmentCreated
|
|
172194
|
+
* @instance
|
|
172195
|
+
*/
|
|
172196
|
+
PartnerAppointmentCreated.prototype.appointmentStatus = 0;
|
|
172197
|
+
|
|
172198
|
+
/**
|
|
172199
|
+
* PartnerAppointmentCreated appointmentStartTime.
|
|
172200
|
+
* @member {number|Long} appointmentStartTime
|
|
172201
|
+
* @memberof clinical.PartnerAppointmentCreated
|
|
172202
|
+
* @instance
|
|
172203
|
+
*/
|
|
172204
|
+
PartnerAppointmentCreated.prototype.appointmentStartTime = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
172205
|
+
|
|
172206
|
+
/**
|
|
172207
|
+
* PartnerAppointmentCreated appointmentEndTime.
|
|
172208
|
+
* @member {number|Long} appointmentEndTime
|
|
172209
|
+
* @memberof clinical.PartnerAppointmentCreated
|
|
172210
|
+
* @instance
|
|
172211
|
+
*/
|
|
172212
|
+
PartnerAppointmentCreated.prototype.appointmentEndTime = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
172213
|
+
|
|
172214
|
+
/**
|
|
172215
|
+
* PartnerAppointmentCreated durationMinutes.
|
|
172216
|
+
* @member {number} durationMinutes
|
|
172217
|
+
* @memberof clinical.PartnerAppointmentCreated
|
|
172218
|
+
* @instance
|
|
172219
|
+
*/
|
|
172220
|
+
PartnerAppointmentCreated.prototype.durationMinutes = 0;
|
|
172221
|
+
|
|
172222
|
+
/**
|
|
172223
|
+
* PartnerAppointmentCreated locationType.
|
|
172224
|
+
* @member {clinical.ClinicalPartnerAppointmentLocationType} locationType
|
|
172225
|
+
* @memberof clinical.PartnerAppointmentCreated
|
|
172226
|
+
* @instance
|
|
172227
|
+
*/
|
|
172228
|
+
PartnerAppointmentCreated.prototype.locationType = 0;
|
|
172229
|
+
|
|
172230
|
+
/**
|
|
172231
|
+
* PartnerAppointmentCreated appointmentType.
|
|
172232
|
+
* @member {clinical.ClinicalPartnerAppointmentType} appointmentType
|
|
172233
|
+
* @memberof clinical.PartnerAppointmentCreated
|
|
172234
|
+
* @instance
|
|
172235
|
+
*/
|
|
172236
|
+
PartnerAppointmentCreated.prototype.appointmentType = 0;
|
|
172237
|
+
|
|
172238
|
+
/**
|
|
172239
|
+
* PartnerAppointmentCreated sessionType.
|
|
172240
|
+
* @member {clinical.ClinicalPartnerAppointmentSessionType} sessionType
|
|
172241
|
+
* @memberof clinical.PartnerAppointmentCreated
|
|
172242
|
+
* @instance
|
|
172243
|
+
*/
|
|
172244
|
+
PartnerAppointmentCreated.prototype.sessionType = 0;
|
|
172245
|
+
|
|
172246
|
+
/**
|
|
172247
|
+
* PartnerAppointmentCreated covered.
|
|
172248
|
+
* @member {boolean} covered
|
|
172249
|
+
* @memberof clinical.PartnerAppointmentCreated
|
|
172250
|
+
* @instance
|
|
172251
|
+
*/
|
|
172252
|
+
PartnerAppointmentCreated.prototype.covered = false;
|
|
172253
|
+
|
|
172254
|
+
/**
|
|
172255
|
+
* PartnerAppointmentCreated timeCreated.
|
|
172256
|
+
* @member {number|Long} timeCreated
|
|
172257
|
+
* @memberof clinical.PartnerAppointmentCreated
|
|
172258
|
+
* @instance
|
|
172259
|
+
*/
|
|
172260
|
+
PartnerAppointmentCreated.prototype.timeCreated = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
172261
|
+
|
|
172262
|
+
/**
|
|
172263
|
+
* PartnerAppointmentCreated timeUpdated.
|
|
172264
|
+
* @member {number|Long} timeUpdated
|
|
172265
|
+
* @memberof clinical.PartnerAppointmentCreated
|
|
172266
|
+
* @instance
|
|
172267
|
+
*/
|
|
172268
|
+
PartnerAppointmentCreated.prototype.timeUpdated = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
172269
|
+
|
|
172270
|
+
/**
|
|
172271
|
+
* Creates a new PartnerAppointmentCreated instance using the specified properties.
|
|
172272
|
+
* @function create
|
|
172273
|
+
* @memberof clinical.PartnerAppointmentCreated
|
|
172274
|
+
* @static
|
|
172275
|
+
* @param {clinical.IPartnerAppointmentCreated=} [properties] Properties to set
|
|
172276
|
+
* @returns {clinical.PartnerAppointmentCreated} PartnerAppointmentCreated instance
|
|
172277
|
+
*/
|
|
172278
|
+
PartnerAppointmentCreated.create = function create(properties) {
|
|
172279
|
+
return new PartnerAppointmentCreated(properties);
|
|
172280
|
+
};
|
|
172281
|
+
|
|
172282
|
+
/**
|
|
172283
|
+
* Encodes the specified PartnerAppointmentCreated message. Does not implicitly {@link clinical.PartnerAppointmentCreated.verify|verify} messages.
|
|
172284
|
+
* @function encode
|
|
172285
|
+
* @memberof clinical.PartnerAppointmentCreated
|
|
172286
|
+
* @static
|
|
172287
|
+
* @param {clinical.IPartnerAppointmentCreated} message PartnerAppointmentCreated message or plain object to encode
|
|
172288
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
172289
|
+
* @returns {$protobuf.Writer} Writer
|
|
172290
|
+
*/
|
|
172291
|
+
PartnerAppointmentCreated.encode = function encode(message, writer) {
|
|
172292
|
+
if (!writer)
|
|
172293
|
+
writer = $Writer.create();
|
|
172294
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
172295
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
|
|
172296
|
+
if (message.partnerSource != null && message.hasOwnProperty("partnerSource"))
|
|
172297
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.partnerSource);
|
|
172298
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
172299
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.externalId);
|
|
172300
|
+
if (message.partnerProviderId != null && message.hasOwnProperty("partnerProviderId"))
|
|
172301
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.partnerProviderId);
|
|
172302
|
+
if (message.gingerMemberId != null && message.hasOwnProperty("gingerMemberId"))
|
|
172303
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int64(message.gingerMemberId);
|
|
172304
|
+
if (message.appointmentStatus != null && message.hasOwnProperty("appointmentStatus"))
|
|
172305
|
+
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.appointmentStatus);
|
|
172306
|
+
if (message.appointmentStartTime != null && message.hasOwnProperty("appointmentStartTime"))
|
|
172307
|
+
writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.appointmentStartTime);
|
|
172308
|
+
if (message.appointmentEndTime != null && message.hasOwnProperty("appointmentEndTime"))
|
|
172309
|
+
writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.appointmentEndTime);
|
|
172310
|
+
if (message.durationMinutes != null && message.hasOwnProperty("durationMinutes"))
|
|
172311
|
+
writer.uint32(/* id 9, wireType 0 =*/72).int32(message.durationMinutes);
|
|
172312
|
+
if (message.locationType != null && message.hasOwnProperty("locationType"))
|
|
172313
|
+
writer.uint32(/* id 10, wireType 0 =*/80).int32(message.locationType);
|
|
172314
|
+
if (message.appointmentType != null && message.hasOwnProperty("appointmentType"))
|
|
172315
|
+
writer.uint32(/* id 11, wireType 0 =*/88).int32(message.appointmentType);
|
|
172316
|
+
if (message.sessionType != null && message.hasOwnProperty("sessionType"))
|
|
172317
|
+
writer.uint32(/* id 12, wireType 0 =*/96).int32(message.sessionType);
|
|
172318
|
+
if (message.covered != null && message.hasOwnProperty("covered"))
|
|
172319
|
+
writer.uint32(/* id 13, wireType 0 =*/104).bool(message.covered);
|
|
172320
|
+
if (message.timeCreated != null && message.hasOwnProperty("timeCreated"))
|
|
172321
|
+
writer.uint32(/* id 14, wireType 0 =*/112).uint64(message.timeCreated);
|
|
172322
|
+
if (message.timeUpdated != null && message.hasOwnProperty("timeUpdated"))
|
|
172323
|
+
writer.uint32(/* id 15, wireType 0 =*/120).uint64(message.timeUpdated);
|
|
172324
|
+
return writer;
|
|
172325
|
+
};
|
|
172326
|
+
|
|
172327
|
+
/**
|
|
172328
|
+
* Encodes the specified PartnerAppointmentCreated message, length delimited. Does not implicitly {@link clinical.PartnerAppointmentCreated.verify|verify} messages.
|
|
172329
|
+
* @function encodeDelimited
|
|
172330
|
+
* @memberof clinical.PartnerAppointmentCreated
|
|
172331
|
+
* @static
|
|
172332
|
+
* @param {clinical.IPartnerAppointmentCreated} message PartnerAppointmentCreated message or plain object to encode
|
|
172333
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
172334
|
+
* @returns {$protobuf.Writer} Writer
|
|
172335
|
+
*/
|
|
172336
|
+
PartnerAppointmentCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
172337
|
+
return this.encode(message, writer).ldelim();
|
|
172338
|
+
};
|
|
172339
|
+
|
|
172340
|
+
/**
|
|
172341
|
+
* Decodes a PartnerAppointmentCreated message from the specified reader or buffer.
|
|
172342
|
+
* @function decode
|
|
172343
|
+
* @memberof clinical.PartnerAppointmentCreated
|
|
172344
|
+
* @static
|
|
172345
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
172346
|
+
* @param {number} [length] Message length if known beforehand
|
|
172347
|
+
* @returns {clinical.PartnerAppointmentCreated} PartnerAppointmentCreated
|
|
172348
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
172349
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
172350
|
+
*/
|
|
172351
|
+
PartnerAppointmentCreated.decode = function decode(reader, length) {
|
|
172352
|
+
if (!(reader instanceof $Reader))
|
|
172353
|
+
reader = $Reader.create(reader);
|
|
172354
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.clinical.PartnerAppointmentCreated();
|
|
172355
|
+
while (reader.pos < end) {
|
|
172356
|
+
var tag = reader.uint32();
|
|
172357
|
+
switch (tag >>> 3) {
|
|
172358
|
+
case 1:
|
|
172359
|
+
message.id = reader.string();
|
|
172360
|
+
break;
|
|
172361
|
+
case 2:
|
|
172362
|
+
message.partnerSource = reader.int32();
|
|
172363
|
+
break;
|
|
172364
|
+
case 3:
|
|
172365
|
+
message.externalId = reader.string();
|
|
172366
|
+
break;
|
|
172367
|
+
case 4:
|
|
172368
|
+
message.partnerProviderId = reader.string();
|
|
172369
|
+
break;
|
|
172370
|
+
case 5:
|
|
172371
|
+
message.gingerMemberId = reader.int64();
|
|
172372
|
+
break;
|
|
172373
|
+
case 6:
|
|
172374
|
+
message.appointmentStatus = reader.int32();
|
|
172375
|
+
break;
|
|
172376
|
+
case 7:
|
|
172377
|
+
message.appointmentStartTime = reader.uint64();
|
|
172378
|
+
break;
|
|
172379
|
+
case 8:
|
|
172380
|
+
message.appointmentEndTime = reader.uint64();
|
|
172381
|
+
break;
|
|
172382
|
+
case 9:
|
|
172383
|
+
message.durationMinutes = reader.int32();
|
|
172384
|
+
break;
|
|
172385
|
+
case 10:
|
|
172386
|
+
message.locationType = reader.int32();
|
|
172387
|
+
break;
|
|
172388
|
+
case 11:
|
|
172389
|
+
message.appointmentType = reader.int32();
|
|
172390
|
+
break;
|
|
172391
|
+
case 12:
|
|
172392
|
+
message.sessionType = reader.int32();
|
|
172393
|
+
break;
|
|
172394
|
+
case 13:
|
|
172395
|
+
message.covered = reader.bool();
|
|
172396
|
+
break;
|
|
172397
|
+
case 14:
|
|
172398
|
+
message.timeCreated = reader.uint64();
|
|
172399
|
+
break;
|
|
172400
|
+
case 15:
|
|
172401
|
+
message.timeUpdated = reader.uint64();
|
|
172402
|
+
break;
|
|
172403
|
+
default:
|
|
172404
|
+
reader.skipType(tag & 7);
|
|
172405
|
+
break;
|
|
172406
|
+
}
|
|
172407
|
+
}
|
|
172408
|
+
return message;
|
|
172409
|
+
};
|
|
172410
|
+
|
|
172411
|
+
/**
|
|
172412
|
+
* Decodes a PartnerAppointmentCreated message from the specified reader or buffer, length delimited.
|
|
172413
|
+
* @function decodeDelimited
|
|
172414
|
+
* @memberof clinical.PartnerAppointmentCreated
|
|
172415
|
+
* @static
|
|
172416
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
172417
|
+
* @returns {clinical.PartnerAppointmentCreated} PartnerAppointmentCreated
|
|
172418
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
172419
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
172420
|
+
*/
|
|
172421
|
+
PartnerAppointmentCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
172422
|
+
if (!(reader instanceof $Reader))
|
|
172423
|
+
reader = new $Reader(reader);
|
|
172424
|
+
return this.decode(reader, reader.uint32());
|
|
172425
|
+
};
|
|
172426
|
+
|
|
172427
|
+
/**
|
|
172428
|
+
* Verifies a PartnerAppointmentCreated message.
|
|
172429
|
+
* @function verify
|
|
172430
|
+
* @memberof clinical.PartnerAppointmentCreated
|
|
172431
|
+
* @static
|
|
172432
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
172433
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
172434
|
+
*/
|
|
172435
|
+
PartnerAppointmentCreated.verify = function verify(message) {
|
|
172436
|
+
if (typeof message !== "object" || message === null)
|
|
172437
|
+
return "object expected";
|
|
172438
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
172439
|
+
if (!$util.isString(message.id))
|
|
172440
|
+
return "id: string expected";
|
|
172441
|
+
if (message.partnerSource != null && message.hasOwnProperty("partnerSource"))
|
|
172442
|
+
switch (message.partnerSource) {
|
|
172443
|
+
default:
|
|
172444
|
+
return "partnerSource: enum value expected";
|
|
172445
|
+
case 0:
|
|
172446
|
+
case 1:
|
|
172447
|
+
break;
|
|
172448
|
+
}
|
|
172449
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
172450
|
+
if (!$util.isString(message.externalId))
|
|
172451
|
+
return "externalId: string expected";
|
|
172452
|
+
if (message.partnerProviderId != null && message.hasOwnProperty("partnerProviderId"))
|
|
172453
|
+
if (!$util.isString(message.partnerProviderId))
|
|
172454
|
+
return "partnerProviderId: string expected";
|
|
172455
|
+
if (message.gingerMemberId != null && message.hasOwnProperty("gingerMemberId"))
|
|
172456
|
+
if (!$util.isInteger(message.gingerMemberId) && !(message.gingerMemberId && $util.isInteger(message.gingerMemberId.low) && $util.isInteger(message.gingerMemberId.high)))
|
|
172457
|
+
return "gingerMemberId: integer|Long expected";
|
|
172458
|
+
if (message.appointmentStatus != null && message.hasOwnProperty("appointmentStatus"))
|
|
172459
|
+
switch (message.appointmentStatus) {
|
|
172460
|
+
default:
|
|
172461
|
+
return "appointmentStatus: enum value expected";
|
|
172462
|
+
case 0:
|
|
172463
|
+
case 1:
|
|
172464
|
+
case 2:
|
|
172465
|
+
case 3:
|
|
172466
|
+
case 4:
|
|
172467
|
+
case 5:
|
|
172468
|
+
case 6:
|
|
172469
|
+
case 7:
|
|
172470
|
+
case 8:
|
|
172471
|
+
case 9:
|
|
172472
|
+
case 10:
|
|
172473
|
+
case 11:
|
|
172474
|
+
break;
|
|
172475
|
+
}
|
|
172476
|
+
if (message.appointmentStartTime != null && message.hasOwnProperty("appointmentStartTime"))
|
|
172477
|
+
if (!$util.isInteger(message.appointmentStartTime) && !(message.appointmentStartTime && $util.isInteger(message.appointmentStartTime.low) && $util.isInteger(message.appointmentStartTime.high)))
|
|
172478
|
+
return "appointmentStartTime: integer|Long expected";
|
|
172479
|
+
if (message.appointmentEndTime != null && message.hasOwnProperty("appointmentEndTime"))
|
|
172480
|
+
if (!$util.isInteger(message.appointmentEndTime) && !(message.appointmentEndTime && $util.isInteger(message.appointmentEndTime.low) && $util.isInteger(message.appointmentEndTime.high)))
|
|
172481
|
+
return "appointmentEndTime: integer|Long expected";
|
|
172482
|
+
if (message.durationMinutes != null && message.hasOwnProperty("durationMinutes"))
|
|
172483
|
+
if (!$util.isInteger(message.durationMinutes))
|
|
172484
|
+
return "durationMinutes: integer expected";
|
|
172485
|
+
if (message.locationType != null && message.hasOwnProperty("locationType"))
|
|
172486
|
+
switch (message.locationType) {
|
|
172487
|
+
default:
|
|
172488
|
+
return "locationType: enum value expected";
|
|
172489
|
+
case 0:
|
|
172490
|
+
case 1:
|
|
172491
|
+
case 2:
|
|
172492
|
+
break;
|
|
172493
|
+
}
|
|
172494
|
+
if (message.appointmentType != null && message.hasOwnProperty("appointmentType"))
|
|
172495
|
+
switch (message.appointmentType) {
|
|
172496
|
+
default:
|
|
172497
|
+
return "appointmentType: enum value expected";
|
|
172498
|
+
case 0:
|
|
172499
|
+
case 1:
|
|
172500
|
+
case 2:
|
|
172501
|
+
break;
|
|
172502
|
+
}
|
|
172503
|
+
if (message.sessionType != null && message.hasOwnProperty("sessionType"))
|
|
172504
|
+
switch (message.sessionType) {
|
|
172505
|
+
default:
|
|
172506
|
+
return "sessionType: enum value expected";
|
|
172507
|
+
case 0:
|
|
172508
|
+
case 1:
|
|
172509
|
+
case 2:
|
|
172510
|
+
break;
|
|
172511
|
+
}
|
|
172512
|
+
if (message.covered != null && message.hasOwnProperty("covered"))
|
|
172513
|
+
if (typeof message.covered !== "boolean")
|
|
172514
|
+
return "covered: boolean expected";
|
|
172515
|
+
if (message.timeCreated != null && message.hasOwnProperty("timeCreated"))
|
|
172516
|
+
if (!$util.isInteger(message.timeCreated) && !(message.timeCreated && $util.isInteger(message.timeCreated.low) && $util.isInteger(message.timeCreated.high)))
|
|
172517
|
+
return "timeCreated: integer|Long expected";
|
|
172518
|
+
if (message.timeUpdated != null && message.hasOwnProperty("timeUpdated"))
|
|
172519
|
+
if (!$util.isInteger(message.timeUpdated) && !(message.timeUpdated && $util.isInteger(message.timeUpdated.low) && $util.isInteger(message.timeUpdated.high)))
|
|
172520
|
+
return "timeUpdated: integer|Long expected";
|
|
172521
|
+
return null;
|
|
172522
|
+
};
|
|
172523
|
+
|
|
172524
|
+
/**
|
|
172525
|
+
* Creates a PartnerAppointmentCreated message from a plain object. Also converts values to their respective internal types.
|
|
172526
|
+
* @function fromObject
|
|
172527
|
+
* @memberof clinical.PartnerAppointmentCreated
|
|
172528
|
+
* @static
|
|
172529
|
+
* @param {Object.<string,*>} object Plain object
|
|
172530
|
+
* @returns {clinical.PartnerAppointmentCreated} PartnerAppointmentCreated
|
|
172531
|
+
*/
|
|
172532
|
+
PartnerAppointmentCreated.fromObject = function fromObject(object) {
|
|
172533
|
+
if (object instanceof $root.clinical.PartnerAppointmentCreated)
|
|
172534
|
+
return object;
|
|
172535
|
+
var message = new $root.clinical.PartnerAppointmentCreated();
|
|
172536
|
+
if (object.id != null)
|
|
172537
|
+
message.id = String(object.id);
|
|
172538
|
+
switch (object.partnerSource) {
|
|
172539
|
+
case "CLINICAL_PARTNER_SOURCE_UNKNOWN":
|
|
172540
|
+
case 0:
|
|
172541
|
+
message.partnerSource = 0;
|
|
172542
|
+
break;
|
|
172543
|
+
case "CLINICAL_PARTNER_SOURCE_SONDERMIND":
|
|
172544
|
+
case 1:
|
|
172545
|
+
message.partnerSource = 1;
|
|
172546
|
+
break;
|
|
172547
|
+
}
|
|
172548
|
+
if (object.externalId != null)
|
|
172549
|
+
message.externalId = String(object.externalId);
|
|
172550
|
+
if (object.partnerProviderId != null)
|
|
172551
|
+
message.partnerProviderId = String(object.partnerProviderId);
|
|
172552
|
+
if (object.gingerMemberId != null)
|
|
172553
|
+
if ($util.Long)
|
|
172554
|
+
(message.gingerMemberId = $util.Long.fromValue(object.gingerMemberId)).unsigned = false;
|
|
172555
|
+
else if (typeof object.gingerMemberId === "string")
|
|
172556
|
+
message.gingerMemberId = parseInt(object.gingerMemberId, 10);
|
|
172557
|
+
else if (typeof object.gingerMemberId === "number")
|
|
172558
|
+
message.gingerMemberId = object.gingerMemberId;
|
|
172559
|
+
else if (typeof object.gingerMemberId === "object")
|
|
172560
|
+
message.gingerMemberId = new $util.LongBits(object.gingerMemberId.low >>> 0, object.gingerMemberId.high >>> 0).toNumber();
|
|
172561
|
+
switch (object.appointmentStatus) {
|
|
172562
|
+
case "CLINICAL_PARTNER_APPOINTMENT_STATUS_UNKNOWN":
|
|
172563
|
+
case 0:
|
|
172564
|
+
message.appointmentStatus = 0;
|
|
172565
|
+
break;
|
|
172566
|
+
case "CLINICAL_PARTNER_APPOINTMENT_STATUS_TENTATIVE":
|
|
172567
|
+
case 1:
|
|
172568
|
+
message.appointmentStatus = 1;
|
|
172569
|
+
break;
|
|
172570
|
+
case "CLINICAL_PARTNER_APPOINTMENT_STATUS_SCHEDULED":
|
|
172571
|
+
case 2:
|
|
172572
|
+
message.appointmentStatus = 2;
|
|
172573
|
+
break;
|
|
172574
|
+
case "CLINICAL_PARTNER_APPOINTMENT_STATUS_COMPLETED":
|
|
172575
|
+
case 3:
|
|
172576
|
+
message.appointmentStatus = 3;
|
|
172577
|
+
break;
|
|
172578
|
+
case "CLINICAL_PARTNER_APPOINTMENT_STATUS_CANCELLED":
|
|
172579
|
+
case 4:
|
|
172580
|
+
message.appointmentStatus = 4;
|
|
172581
|
+
break;
|
|
172582
|
+
case "CLINICAL_PARTNER_APPOINTMENT_STATUS_RESCHEDULED":
|
|
172583
|
+
case 5:
|
|
172584
|
+
message.appointmentStatus = 5;
|
|
172585
|
+
break;
|
|
172586
|
+
case "CLINICAL_PARTNER_APPOINTMENT_STATUS_MEMBER_NO_SHOW":
|
|
172587
|
+
case 6:
|
|
172588
|
+
message.appointmentStatus = 6;
|
|
172589
|
+
break;
|
|
172590
|
+
case "CLINICAL_PARTNER_APPOINTMENT_STATUS_LATE_CANCELLED":
|
|
172591
|
+
case 7:
|
|
172592
|
+
message.appointmentStatus = 7;
|
|
172593
|
+
break;
|
|
172594
|
+
case "CLINICAL_PARTNER_APPOINTMENT_STATUS_PROVIDER_RESCHEDULED":
|
|
172595
|
+
case 8:
|
|
172596
|
+
message.appointmentStatus = 8;
|
|
172597
|
+
break;
|
|
172598
|
+
case "CLINICAL_PARTNER_APPOINTMENT_STATUS_PROVIDER_NO_SHOW":
|
|
172599
|
+
case 9:
|
|
172600
|
+
message.appointmentStatus = 9;
|
|
172601
|
+
break;
|
|
172602
|
+
case "CLINICAL_PARTNER_APPOINTMENT_STATUS_PROVIDER_CANCELLED":
|
|
172603
|
+
case 10:
|
|
172604
|
+
message.appointmentStatus = 10;
|
|
172605
|
+
break;
|
|
172606
|
+
case "CLINICAL_PARTNER_APPOINTMENT_STATUS_PENDING":
|
|
172607
|
+
case 11:
|
|
172608
|
+
message.appointmentStatus = 11;
|
|
172609
|
+
break;
|
|
172610
|
+
}
|
|
172611
|
+
if (object.appointmentStartTime != null)
|
|
172612
|
+
if ($util.Long)
|
|
172613
|
+
(message.appointmentStartTime = $util.Long.fromValue(object.appointmentStartTime)).unsigned = true;
|
|
172614
|
+
else if (typeof object.appointmentStartTime === "string")
|
|
172615
|
+
message.appointmentStartTime = parseInt(object.appointmentStartTime, 10);
|
|
172616
|
+
else if (typeof object.appointmentStartTime === "number")
|
|
172617
|
+
message.appointmentStartTime = object.appointmentStartTime;
|
|
172618
|
+
else if (typeof object.appointmentStartTime === "object")
|
|
172619
|
+
message.appointmentStartTime = new $util.LongBits(object.appointmentStartTime.low >>> 0, object.appointmentStartTime.high >>> 0).toNumber(true);
|
|
172620
|
+
if (object.appointmentEndTime != null)
|
|
172621
|
+
if ($util.Long)
|
|
172622
|
+
(message.appointmentEndTime = $util.Long.fromValue(object.appointmentEndTime)).unsigned = true;
|
|
172623
|
+
else if (typeof object.appointmentEndTime === "string")
|
|
172624
|
+
message.appointmentEndTime = parseInt(object.appointmentEndTime, 10);
|
|
172625
|
+
else if (typeof object.appointmentEndTime === "number")
|
|
172626
|
+
message.appointmentEndTime = object.appointmentEndTime;
|
|
172627
|
+
else if (typeof object.appointmentEndTime === "object")
|
|
172628
|
+
message.appointmentEndTime = new $util.LongBits(object.appointmentEndTime.low >>> 0, object.appointmentEndTime.high >>> 0).toNumber(true);
|
|
172629
|
+
if (object.durationMinutes != null)
|
|
172630
|
+
message.durationMinutes = object.durationMinutes | 0;
|
|
172631
|
+
switch (object.locationType) {
|
|
172632
|
+
case "CLINICAL_PARTNER_APPOINTMENT_LOCATION_TYPE_UNKNOWN":
|
|
172633
|
+
case 0:
|
|
172634
|
+
message.locationType = 0;
|
|
172635
|
+
break;
|
|
172636
|
+
case "CLINICAL_PARTNER_APPOINTMENT_LOCATION_TYPE_TELEMEDICINE":
|
|
172637
|
+
case 1:
|
|
172638
|
+
message.locationType = 1;
|
|
172639
|
+
break;
|
|
172640
|
+
case "CLINICAL_PARTNER_APPOINTMENT_LOCATION_TYPE_IN_PERSON":
|
|
172641
|
+
case 2:
|
|
172642
|
+
message.locationType = 2;
|
|
172643
|
+
break;
|
|
172644
|
+
}
|
|
172645
|
+
switch (object.appointmentType) {
|
|
172646
|
+
case "CLINICAL_PARTNER_APPOINTMENT_TYPE_UNKNOWN":
|
|
172647
|
+
case 0:
|
|
172648
|
+
message.appointmentType = 0;
|
|
172649
|
+
break;
|
|
172650
|
+
case "CLINICAL_PARTNER_APPOINTMENT_TYPE_THERAPY":
|
|
172651
|
+
case 1:
|
|
172652
|
+
message.appointmentType = 1;
|
|
172653
|
+
break;
|
|
172654
|
+
case "CLINICAL_PARTNER_APPOINTMENT_TYPE_PSYCHIATRY":
|
|
172655
|
+
case 2:
|
|
172656
|
+
message.appointmentType = 2;
|
|
172657
|
+
break;
|
|
172658
|
+
}
|
|
172659
|
+
switch (object.sessionType) {
|
|
172660
|
+
case "CLINICAL_PARTNER_APPOINTMENT_SESSION_TYPE_UNKNOWN":
|
|
172661
|
+
case 0:
|
|
172662
|
+
message.sessionType = 0;
|
|
172663
|
+
break;
|
|
172664
|
+
case "CLINICAL_PARTNER_APPOINTMENT_SESSION_TYPE_INTAKE":
|
|
172665
|
+
case 1:
|
|
172666
|
+
message.sessionType = 1;
|
|
172667
|
+
break;
|
|
172668
|
+
case "CLINICAL_PARTNER_APPOINTMENT_SESSION_TYPE_PROGRESS":
|
|
172669
|
+
case 2:
|
|
172670
|
+
message.sessionType = 2;
|
|
172671
|
+
break;
|
|
172672
|
+
}
|
|
172673
|
+
if (object.covered != null)
|
|
172674
|
+
message.covered = Boolean(object.covered);
|
|
172675
|
+
if (object.timeCreated != null)
|
|
172676
|
+
if ($util.Long)
|
|
172677
|
+
(message.timeCreated = $util.Long.fromValue(object.timeCreated)).unsigned = true;
|
|
172678
|
+
else if (typeof object.timeCreated === "string")
|
|
172679
|
+
message.timeCreated = parseInt(object.timeCreated, 10);
|
|
172680
|
+
else if (typeof object.timeCreated === "number")
|
|
172681
|
+
message.timeCreated = object.timeCreated;
|
|
172682
|
+
else if (typeof object.timeCreated === "object")
|
|
172683
|
+
message.timeCreated = new $util.LongBits(object.timeCreated.low >>> 0, object.timeCreated.high >>> 0).toNumber(true);
|
|
172684
|
+
if (object.timeUpdated != null)
|
|
172685
|
+
if ($util.Long)
|
|
172686
|
+
(message.timeUpdated = $util.Long.fromValue(object.timeUpdated)).unsigned = true;
|
|
172687
|
+
else if (typeof object.timeUpdated === "string")
|
|
172688
|
+
message.timeUpdated = parseInt(object.timeUpdated, 10);
|
|
172689
|
+
else if (typeof object.timeUpdated === "number")
|
|
172690
|
+
message.timeUpdated = object.timeUpdated;
|
|
172691
|
+
else if (typeof object.timeUpdated === "object")
|
|
172692
|
+
message.timeUpdated = new $util.LongBits(object.timeUpdated.low >>> 0, object.timeUpdated.high >>> 0).toNumber(true);
|
|
172693
|
+
return message;
|
|
172694
|
+
};
|
|
172695
|
+
|
|
172696
|
+
/**
|
|
172697
|
+
* Creates a plain object from a PartnerAppointmentCreated message. Also converts values to other types if specified.
|
|
172698
|
+
* @function toObject
|
|
172699
|
+
* @memberof clinical.PartnerAppointmentCreated
|
|
172700
|
+
* @static
|
|
172701
|
+
* @param {clinical.PartnerAppointmentCreated} message PartnerAppointmentCreated
|
|
172702
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
172703
|
+
* @returns {Object.<string,*>} Plain object
|
|
172704
|
+
*/
|
|
172705
|
+
PartnerAppointmentCreated.toObject = function toObject(message, options) {
|
|
172706
|
+
if (!options)
|
|
172707
|
+
options = {};
|
|
172708
|
+
var object = {};
|
|
172709
|
+
if (options.defaults) {
|
|
172710
|
+
object.id = "";
|
|
172711
|
+
object.partnerSource = options.enums === String ? "CLINICAL_PARTNER_SOURCE_UNKNOWN" : 0;
|
|
172712
|
+
object.externalId = "";
|
|
172713
|
+
object.partnerProviderId = "";
|
|
172714
|
+
if ($util.Long) {
|
|
172715
|
+
var long = new $util.Long(0, 0, false);
|
|
172716
|
+
object.gingerMemberId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
172717
|
+
} else
|
|
172718
|
+
object.gingerMemberId = options.longs === String ? "0" : 0;
|
|
172719
|
+
object.appointmentStatus = options.enums === String ? "CLINICAL_PARTNER_APPOINTMENT_STATUS_UNKNOWN" : 0;
|
|
172720
|
+
if ($util.Long) {
|
|
172721
|
+
var long = new $util.Long(0, 0, true);
|
|
172722
|
+
object.appointmentStartTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
172723
|
+
} else
|
|
172724
|
+
object.appointmentStartTime = options.longs === String ? "0" : 0;
|
|
172725
|
+
if ($util.Long) {
|
|
172726
|
+
var long = new $util.Long(0, 0, true);
|
|
172727
|
+
object.appointmentEndTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
172728
|
+
} else
|
|
172729
|
+
object.appointmentEndTime = options.longs === String ? "0" : 0;
|
|
172730
|
+
object.durationMinutes = 0;
|
|
172731
|
+
object.locationType = options.enums === String ? "CLINICAL_PARTNER_APPOINTMENT_LOCATION_TYPE_UNKNOWN" : 0;
|
|
172732
|
+
object.appointmentType = options.enums === String ? "CLINICAL_PARTNER_APPOINTMENT_TYPE_UNKNOWN" : 0;
|
|
172733
|
+
object.sessionType = options.enums === String ? "CLINICAL_PARTNER_APPOINTMENT_SESSION_TYPE_UNKNOWN" : 0;
|
|
172734
|
+
object.covered = false;
|
|
172735
|
+
if ($util.Long) {
|
|
172736
|
+
var long = new $util.Long(0, 0, true);
|
|
172737
|
+
object.timeCreated = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
172738
|
+
} else
|
|
172739
|
+
object.timeCreated = options.longs === String ? "0" : 0;
|
|
172740
|
+
if ($util.Long) {
|
|
172741
|
+
var long = new $util.Long(0, 0, true);
|
|
172742
|
+
object.timeUpdated = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
172743
|
+
} else
|
|
172744
|
+
object.timeUpdated = options.longs === String ? "0" : 0;
|
|
172745
|
+
}
|
|
172746
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
172747
|
+
object.id = message.id;
|
|
172748
|
+
if (message.partnerSource != null && message.hasOwnProperty("partnerSource"))
|
|
172749
|
+
object.partnerSource = options.enums === String ? $root.clinical.ClinicalPartnerSource[message.partnerSource] : message.partnerSource;
|
|
172750
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
172751
|
+
object.externalId = message.externalId;
|
|
172752
|
+
if (message.partnerProviderId != null && message.hasOwnProperty("partnerProviderId"))
|
|
172753
|
+
object.partnerProviderId = message.partnerProviderId;
|
|
172754
|
+
if (message.gingerMemberId != null && message.hasOwnProperty("gingerMemberId"))
|
|
172755
|
+
if (typeof message.gingerMemberId === "number")
|
|
172756
|
+
object.gingerMemberId = options.longs === String ? String(message.gingerMemberId) : message.gingerMemberId;
|
|
172757
|
+
else
|
|
172758
|
+
object.gingerMemberId = options.longs === String ? $util.Long.prototype.toString.call(message.gingerMemberId) : options.longs === Number ? new $util.LongBits(message.gingerMemberId.low >>> 0, message.gingerMemberId.high >>> 0).toNumber() : message.gingerMemberId;
|
|
172759
|
+
if (message.appointmentStatus != null && message.hasOwnProperty("appointmentStatus"))
|
|
172760
|
+
object.appointmentStatus = options.enums === String ? $root.clinical.ClinicalPartnerAppointmentStatus[message.appointmentStatus] : message.appointmentStatus;
|
|
172761
|
+
if (message.appointmentStartTime != null && message.hasOwnProperty("appointmentStartTime"))
|
|
172762
|
+
if (typeof message.appointmentStartTime === "number")
|
|
172763
|
+
object.appointmentStartTime = options.longs === String ? String(message.appointmentStartTime) : message.appointmentStartTime;
|
|
172764
|
+
else
|
|
172765
|
+
object.appointmentStartTime = options.longs === String ? $util.Long.prototype.toString.call(message.appointmentStartTime) : options.longs === Number ? new $util.LongBits(message.appointmentStartTime.low >>> 0, message.appointmentStartTime.high >>> 0).toNumber(true) : message.appointmentStartTime;
|
|
172766
|
+
if (message.appointmentEndTime != null && message.hasOwnProperty("appointmentEndTime"))
|
|
172767
|
+
if (typeof message.appointmentEndTime === "number")
|
|
172768
|
+
object.appointmentEndTime = options.longs === String ? String(message.appointmentEndTime) : message.appointmentEndTime;
|
|
172769
|
+
else
|
|
172770
|
+
object.appointmentEndTime = options.longs === String ? $util.Long.prototype.toString.call(message.appointmentEndTime) : options.longs === Number ? new $util.LongBits(message.appointmentEndTime.low >>> 0, message.appointmentEndTime.high >>> 0).toNumber(true) : message.appointmentEndTime;
|
|
172771
|
+
if (message.durationMinutes != null && message.hasOwnProperty("durationMinutes"))
|
|
172772
|
+
object.durationMinutes = message.durationMinutes;
|
|
172773
|
+
if (message.locationType != null && message.hasOwnProperty("locationType"))
|
|
172774
|
+
object.locationType = options.enums === String ? $root.clinical.ClinicalPartnerAppointmentLocationType[message.locationType] : message.locationType;
|
|
172775
|
+
if (message.appointmentType != null && message.hasOwnProperty("appointmentType"))
|
|
172776
|
+
object.appointmentType = options.enums === String ? $root.clinical.ClinicalPartnerAppointmentType[message.appointmentType] : message.appointmentType;
|
|
172777
|
+
if (message.sessionType != null && message.hasOwnProperty("sessionType"))
|
|
172778
|
+
object.sessionType = options.enums === String ? $root.clinical.ClinicalPartnerAppointmentSessionType[message.sessionType] : message.sessionType;
|
|
172779
|
+
if (message.covered != null && message.hasOwnProperty("covered"))
|
|
172780
|
+
object.covered = message.covered;
|
|
172781
|
+
if (message.timeCreated != null && message.hasOwnProperty("timeCreated"))
|
|
172782
|
+
if (typeof message.timeCreated === "number")
|
|
172783
|
+
object.timeCreated = options.longs === String ? String(message.timeCreated) : message.timeCreated;
|
|
172784
|
+
else
|
|
172785
|
+
object.timeCreated = options.longs === String ? $util.Long.prototype.toString.call(message.timeCreated) : options.longs === Number ? new $util.LongBits(message.timeCreated.low >>> 0, message.timeCreated.high >>> 0).toNumber(true) : message.timeCreated;
|
|
172786
|
+
if (message.timeUpdated != null && message.hasOwnProperty("timeUpdated"))
|
|
172787
|
+
if (typeof message.timeUpdated === "number")
|
|
172788
|
+
object.timeUpdated = options.longs === String ? String(message.timeUpdated) : message.timeUpdated;
|
|
172789
|
+
else
|
|
172790
|
+
object.timeUpdated = options.longs === String ? $util.Long.prototype.toString.call(message.timeUpdated) : options.longs === Number ? new $util.LongBits(message.timeUpdated.low >>> 0, message.timeUpdated.high >>> 0).toNumber(true) : message.timeUpdated;
|
|
172791
|
+
return object;
|
|
172792
|
+
};
|
|
172793
|
+
|
|
172794
|
+
/**
|
|
172795
|
+
* Converts this PartnerAppointmentCreated to JSON.
|
|
172796
|
+
* @function toJSON
|
|
172797
|
+
* @memberof clinical.PartnerAppointmentCreated
|
|
172798
|
+
* @instance
|
|
172799
|
+
* @returns {Object.<string,*>} JSON object
|
|
172800
|
+
*/
|
|
172801
|
+
PartnerAppointmentCreated.prototype.toJSON = function toJSON() {
|
|
172802
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
172803
|
+
};
|
|
172804
|
+
|
|
172805
|
+
return PartnerAppointmentCreated;
|
|
172806
|
+
})();
|
|
172807
|
+
|
|
171918
172808
|
clinical.PartnerClinicianExported = (function() {
|
|
171919
172809
|
|
|
171920
172810
|
/**
|
|
@@ -172568,6 +173458,485 @@ $root.clinical = (function() {
|
|
|
172568
173458
|
return PartnerClinicianExported;
|
|
172569
173459
|
})();
|
|
172570
173460
|
|
|
173461
|
+
clinical.PartnerPatientLinkExported = (function() {
|
|
173462
|
+
|
|
173463
|
+
/**
|
|
173464
|
+
* Properties of a PartnerPatientLinkExported.
|
|
173465
|
+
* @memberof clinical
|
|
173466
|
+
* @interface IPartnerPatientLinkExported
|
|
173467
|
+
* @property {string|null} [id] PartnerPatientLinkExported id
|
|
173468
|
+
* @property {string|null} [partnerSlug] PartnerPatientLinkExported partnerSlug
|
|
173469
|
+
* @property {number|Long|null} [memberId] PartnerPatientLinkExported memberId
|
|
173470
|
+
* @property {string|null} [memberSharedId] PartnerPatientLinkExported memberSharedId
|
|
173471
|
+
* @property {string|null} [externalId] PartnerPatientLinkExported externalId
|
|
173472
|
+
* @property {number|Long|null} [timeReferred] PartnerPatientLinkExported timeReferred
|
|
173473
|
+
* @property {number|Long|null} [timeLastSynced] PartnerPatientLinkExported timeLastSynced
|
|
173474
|
+
* @property {clinical.SyncStatus|null} [syncStatus] PartnerPatientLinkExported syncStatus
|
|
173475
|
+
* @property {number|Long|null} [timeCreated] PartnerPatientLinkExported timeCreated
|
|
173476
|
+
* @property {number|Long|null} [timeUpdated] PartnerPatientLinkExported timeUpdated
|
|
173477
|
+
*/
|
|
173478
|
+
|
|
173479
|
+
/**
|
|
173480
|
+
* Constructs a new PartnerPatientLinkExported.
|
|
173481
|
+
* @memberof clinical
|
|
173482
|
+
* @classdesc Represents a PartnerPatientLinkExported.
|
|
173483
|
+
* @implements IPartnerPatientLinkExported
|
|
173484
|
+
* @constructor
|
|
173485
|
+
* @param {clinical.IPartnerPatientLinkExported=} [properties] Properties to set
|
|
173486
|
+
*/
|
|
173487
|
+
function PartnerPatientLinkExported(properties) {
|
|
173488
|
+
if (properties)
|
|
173489
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
173490
|
+
if (properties[keys[i]] != null)
|
|
173491
|
+
this[keys[i]] = properties[keys[i]];
|
|
173492
|
+
}
|
|
173493
|
+
|
|
173494
|
+
/**
|
|
173495
|
+
* PartnerPatientLinkExported id.
|
|
173496
|
+
* @member {string} id
|
|
173497
|
+
* @memberof clinical.PartnerPatientLinkExported
|
|
173498
|
+
* @instance
|
|
173499
|
+
*/
|
|
173500
|
+
PartnerPatientLinkExported.prototype.id = "";
|
|
173501
|
+
|
|
173502
|
+
/**
|
|
173503
|
+
* PartnerPatientLinkExported partnerSlug.
|
|
173504
|
+
* @member {string} partnerSlug
|
|
173505
|
+
* @memberof clinical.PartnerPatientLinkExported
|
|
173506
|
+
* @instance
|
|
173507
|
+
*/
|
|
173508
|
+
PartnerPatientLinkExported.prototype.partnerSlug = "";
|
|
173509
|
+
|
|
173510
|
+
/**
|
|
173511
|
+
* PartnerPatientLinkExported memberId.
|
|
173512
|
+
* @member {number|Long} memberId
|
|
173513
|
+
* @memberof clinical.PartnerPatientLinkExported
|
|
173514
|
+
* @instance
|
|
173515
|
+
*/
|
|
173516
|
+
PartnerPatientLinkExported.prototype.memberId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
173517
|
+
|
|
173518
|
+
/**
|
|
173519
|
+
* PartnerPatientLinkExported memberSharedId.
|
|
173520
|
+
* @member {string} memberSharedId
|
|
173521
|
+
* @memberof clinical.PartnerPatientLinkExported
|
|
173522
|
+
* @instance
|
|
173523
|
+
*/
|
|
173524
|
+
PartnerPatientLinkExported.prototype.memberSharedId = "";
|
|
173525
|
+
|
|
173526
|
+
/**
|
|
173527
|
+
* PartnerPatientLinkExported externalId.
|
|
173528
|
+
* @member {string} externalId
|
|
173529
|
+
* @memberof clinical.PartnerPatientLinkExported
|
|
173530
|
+
* @instance
|
|
173531
|
+
*/
|
|
173532
|
+
PartnerPatientLinkExported.prototype.externalId = "";
|
|
173533
|
+
|
|
173534
|
+
/**
|
|
173535
|
+
* PartnerPatientLinkExported timeReferred.
|
|
173536
|
+
* @member {number|Long} timeReferred
|
|
173537
|
+
* @memberof clinical.PartnerPatientLinkExported
|
|
173538
|
+
* @instance
|
|
173539
|
+
*/
|
|
173540
|
+
PartnerPatientLinkExported.prototype.timeReferred = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
173541
|
+
|
|
173542
|
+
/**
|
|
173543
|
+
* PartnerPatientLinkExported timeLastSynced.
|
|
173544
|
+
* @member {number|Long} timeLastSynced
|
|
173545
|
+
* @memberof clinical.PartnerPatientLinkExported
|
|
173546
|
+
* @instance
|
|
173547
|
+
*/
|
|
173548
|
+
PartnerPatientLinkExported.prototype.timeLastSynced = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
173549
|
+
|
|
173550
|
+
/**
|
|
173551
|
+
* PartnerPatientLinkExported syncStatus.
|
|
173552
|
+
* @member {clinical.SyncStatus} syncStatus
|
|
173553
|
+
* @memberof clinical.PartnerPatientLinkExported
|
|
173554
|
+
* @instance
|
|
173555
|
+
*/
|
|
173556
|
+
PartnerPatientLinkExported.prototype.syncStatus = 0;
|
|
173557
|
+
|
|
173558
|
+
/**
|
|
173559
|
+
* PartnerPatientLinkExported timeCreated.
|
|
173560
|
+
* @member {number|Long} timeCreated
|
|
173561
|
+
* @memberof clinical.PartnerPatientLinkExported
|
|
173562
|
+
* @instance
|
|
173563
|
+
*/
|
|
173564
|
+
PartnerPatientLinkExported.prototype.timeCreated = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
173565
|
+
|
|
173566
|
+
/**
|
|
173567
|
+
* PartnerPatientLinkExported timeUpdated.
|
|
173568
|
+
* @member {number|Long} timeUpdated
|
|
173569
|
+
* @memberof clinical.PartnerPatientLinkExported
|
|
173570
|
+
* @instance
|
|
173571
|
+
*/
|
|
173572
|
+
PartnerPatientLinkExported.prototype.timeUpdated = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
173573
|
+
|
|
173574
|
+
/**
|
|
173575
|
+
* Creates a new PartnerPatientLinkExported instance using the specified properties.
|
|
173576
|
+
* @function create
|
|
173577
|
+
* @memberof clinical.PartnerPatientLinkExported
|
|
173578
|
+
* @static
|
|
173579
|
+
* @param {clinical.IPartnerPatientLinkExported=} [properties] Properties to set
|
|
173580
|
+
* @returns {clinical.PartnerPatientLinkExported} PartnerPatientLinkExported instance
|
|
173581
|
+
*/
|
|
173582
|
+
PartnerPatientLinkExported.create = function create(properties) {
|
|
173583
|
+
return new PartnerPatientLinkExported(properties);
|
|
173584
|
+
};
|
|
173585
|
+
|
|
173586
|
+
/**
|
|
173587
|
+
* Encodes the specified PartnerPatientLinkExported message. Does not implicitly {@link clinical.PartnerPatientLinkExported.verify|verify} messages.
|
|
173588
|
+
* @function encode
|
|
173589
|
+
* @memberof clinical.PartnerPatientLinkExported
|
|
173590
|
+
* @static
|
|
173591
|
+
* @param {clinical.IPartnerPatientLinkExported} message PartnerPatientLinkExported message or plain object to encode
|
|
173592
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
173593
|
+
* @returns {$protobuf.Writer} Writer
|
|
173594
|
+
*/
|
|
173595
|
+
PartnerPatientLinkExported.encode = function encode(message, writer) {
|
|
173596
|
+
if (!writer)
|
|
173597
|
+
writer = $Writer.create();
|
|
173598
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
173599
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
|
|
173600
|
+
if (message.partnerSlug != null && message.hasOwnProperty("partnerSlug"))
|
|
173601
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.partnerSlug);
|
|
173602
|
+
if (message.memberId != null && message.hasOwnProperty("memberId"))
|
|
173603
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int64(message.memberId);
|
|
173604
|
+
if (message.memberSharedId != null && message.hasOwnProperty("memberSharedId"))
|
|
173605
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.memberSharedId);
|
|
173606
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
173607
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.externalId);
|
|
173608
|
+
if (message.timeReferred != null && message.hasOwnProperty("timeReferred"))
|
|
173609
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.timeReferred);
|
|
173610
|
+
if (message.timeLastSynced != null && message.hasOwnProperty("timeLastSynced"))
|
|
173611
|
+
writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.timeLastSynced);
|
|
173612
|
+
if (message.syncStatus != null && message.hasOwnProperty("syncStatus"))
|
|
173613
|
+
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.syncStatus);
|
|
173614
|
+
if (message.timeCreated != null && message.hasOwnProperty("timeCreated"))
|
|
173615
|
+
writer.uint32(/* id 9, wireType 0 =*/72).uint64(message.timeCreated);
|
|
173616
|
+
if (message.timeUpdated != null && message.hasOwnProperty("timeUpdated"))
|
|
173617
|
+
writer.uint32(/* id 10, wireType 0 =*/80).uint64(message.timeUpdated);
|
|
173618
|
+
return writer;
|
|
173619
|
+
};
|
|
173620
|
+
|
|
173621
|
+
/**
|
|
173622
|
+
* Encodes the specified PartnerPatientLinkExported message, length delimited. Does not implicitly {@link clinical.PartnerPatientLinkExported.verify|verify} messages.
|
|
173623
|
+
* @function encodeDelimited
|
|
173624
|
+
* @memberof clinical.PartnerPatientLinkExported
|
|
173625
|
+
* @static
|
|
173626
|
+
* @param {clinical.IPartnerPatientLinkExported} message PartnerPatientLinkExported message or plain object to encode
|
|
173627
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
173628
|
+
* @returns {$protobuf.Writer} Writer
|
|
173629
|
+
*/
|
|
173630
|
+
PartnerPatientLinkExported.encodeDelimited = function encodeDelimited(message, writer) {
|
|
173631
|
+
return this.encode(message, writer).ldelim();
|
|
173632
|
+
};
|
|
173633
|
+
|
|
173634
|
+
/**
|
|
173635
|
+
* Decodes a PartnerPatientLinkExported message from the specified reader or buffer.
|
|
173636
|
+
* @function decode
|
|
173637
|
+
* @memberof clinical.PartnerPatientLinkExported
|
|
173638
|
+
* @static
|
|
173639
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
173640
|
+
* @param {number} [length] Message length if known beforehand
|
|
173641
|
+
* @returns {clinical.PartnerPatientLinkExported} PartnerPatientLinkExported
|
|
173642
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
173643
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
173644
|
+
*/
|
|
173645
|
+
PartnerPatientLinkExported.decode = function decode(reader, length) {
|
|
173646
|
+
if (!(reader instanceof $Reader))
|
|
173647
|
+
reader = $Reader.create(reader);
|
|
173648
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.clinical.PartnerPatientLinkExported();
|
|
173649
|
+
while (reader.pos < end) {
|
|
173650
|
+
var tag = reader.uint32();
|
|
173651
|
+
switch (tag >>> 3) {
|
|
173652
|
+
case 1:
|
|
173653
|
+
message.id = reader.string();
|
|
173654
|
+
break;
|
|
173655
|
+
case 2:
|
|
173656
|
+
message.partnerSlug = reader.string();
|
|
173657
|
+
break;
|
|
173658
|
+
case 3:
|
|
173659
|
+
message.memberId = reader.int64();
|
|
173660
|
+
break;
|
|
173661
|
+
case 4:
|
|
173662
|
+
message.memberSharedId = reader.string();
|
|
173663
|
+
break;
|
|
173664
|
+
case 5:
|
|
173665
|
+
message.externalId = reader.string();
|
|
173666
|
+
break;
|
|
173667
|
+
case 6:
|
|
173668
|
+
message.timeReferred = reader.uint64();
|
|
173669
|
+
break;
|
|
173670
|
+
case 7:
|
|
173671
|
+
message.timeLastSynced = reader.uint64();
|
|
173672
|
+
break;
|
|
173673
|
+
case 8:
|
|
173674
|
+
message.syncStatus = reader.int32();
|
|
173675
|
+
break;
|
|
173676
|
+
case 9:
|
|
173677
|
+
message.timeCreated = reader.uint64();
|
|
173678
|
+
break;
|
|
173679
|
+
case 10:
|
|
173680
|
+
message.timeUpdated = reader.uint64();
|
|
173681
|
+
break;
|
|
173682
|
+
default:
|
|
173683
|
+
reader.skipType(tag & 7);
|
|
173684
|
+
break;
|
|
173685
|
+
}
|
|
173686
|
+
}
|
|
173687
|
+
return message;
|
|
173688
|
+
};
|
|
173689
|
+
|
|
173690
|
+
/**
|
|
173691
|
+
* Decodes a PartnerPatientLinkExported message from the specified reader or buffer, length delimited.
|
|
173692
|
+
* @function decodeDelimited
|
|
173693
|
+
* @memberof clinical.PartnerPatientLinkExported
|
|
173694
|
+
* @static
|
|
173695
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
173696
|
+
* @returns {clinical.PartnerPatientLinkExported} PartnerPatientLinkExported
|
|
173697
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
173698
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
173699
|
+
*/
|
|
173700
|
+
PartnerPatientLinkExported.decodeDelimited = function decodeDelimited(reader) {
|
|
173701
|
+
if (!(reader instanceof $Reader))
|
|
173702
|
+
reader = new $Reader(reader);
|
|
173703
|
+
return this.decode(reader, reader.uint32());
|
|
173704
|
+
};
|
|
173705
|
+
|
|
173706
|
+
/**
|
|
173707
|
+
* Verifies a PartnerPatientLinkExported message.
|
|
173708
|
+
* @function verify
|
|
173709
|
+
* @memberof clinical.PartnerPatientLinkExported
|
|
173710
|
+
* @static
|
|
173711
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
173712
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
173713
|
+
*/
|
|
173714
|
+
PartnerPatientLinkExported.verify = function verify(message) {
|
|
173715
|
+
if (typeof message !== "object" || message === null)
|
|
173716
|
+
return "object expected";
|
|
173717
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
173718
|
+
if (!$util.isString(message.id))
|
|
173719
|
+
return "id: string expected";
|
|
173720
|
+
if (message.partnerSlug != null && message.hasOwnProperty("partnerSlug"))
|
|
173721
|
+
if (!$util.isString(message.partnerSlug))
|
|
173722
|
+
return "partnerSlug: string expected";
|
|
173723
|
+
if (message.memberId != null && message.hasOwnProperty("memberId"))
|
|
173724
|
+
if (!$util.isInteger(message.memberId) && !(message.memberId && $util.isInteger(message.memberId.low) && $util.isInteger(message.memberId.high)))
|
|
173725
|
+
return "memberId: integer|Long expected";
|
|
173726
|
+
if (message.memberSharedId != null && message.hasOwnProperty("memberSharedId"))
|
|
173727
|
+
if (!$util.isString(message.memberSharedId))
|
|
173728
|
+
return "memberSharedId: string expected";
|
|
173729
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
173730
|
+
if (!$util.isString(message.externalId))
|
|
173731
|
+
return "externalId: string expected";
|
|
173732
|
+
if (message.timeReferred != null && message.hasOwnProperty("timeReferred"))
|
|
173733
|
+
if (!$util.isInteger(message.timeReferred) && !(message.timeReferred && $util.isInteger(message.timeReferred.low) && $util.isInteger(message.timeReferred.high)))
|
|
173734
|
+
return "timeReferred: integer|Long expected";
|
|
173735
|
+
if (message.timeLastSynced != null && message.hasOwnProperty("timeLastSynced"))
|
|
173736
|
+
if (!$util.isInteger(message.timeLastSynced) && !(message.timeLastSynced && $util.isInteger(message.timeLastSynced.low) && $util.isInteger(message.timeLastSynced.high)))
|
|
173737
|
+
return "timeLastSynced: integer|Long expected";
|
|
173738
|
+
if (message.syncStatus != null && message.hasOwnProperty("syncStatus"))
|
|
173739
|
+
switch (message.syncStatus) {
|
|
173740
|
+
default:
|
|
173741
|
+
return "syncStatus: enum value expected";
|
|
173742
|
+
case 0:
|
|
173743
|
+
case 1:
|
|
173744
|
+
case 2:
|
|
173745
|
+
case 3:
|
|
173746
|
+
break;
|
|
173747
|
+
}
|
|
173748
|
+
if (message.timeCreated != null && message.hasOwnProperty("timeCreated"))
|
|
173749
|
+
if (!$util.isInteger(message.timeCreated) && !(message.timeCreated && $util.isInteger(message.timeCreated.low) && $util.isInteger(message.timeCreated.high)))
|
|
173750
|
+
return "timeCreated: integer|Long expected";
|
|
173751
|
+
if (message.timeUpdated != null && message.hasOwnProperty("timeUpdated"))
|
|
173752
|
+
if (!$util.isInteger(message.timeUpdated) && !(message.timeUpdated && $util.isInteger(message.timeUpdated.low) && $util.isInteger(message.timeUpdated.high)))
|
|
173753
|
+
return "timeUpdated: integer|Long expected";
|
|
173754
|
+
return null;
|
|
173755
|
+
};
|
|
173756
|
+
|
|
173757
|
+
/**
|
|
173758
|
+
* Creates a PartnerPatientLinkExported message from a plain object. Also converts values to their respective internal types.
|
|
173759
|
+
* @function fromObject
|
|
173760
|
+
* @memberof clinical.PartnerPatientLinkExported
|
|
173761
|
+
* @static
|
|
173762
|
+
* @param {Object.<string,*>} object Plain object
|
|
173763
|
+
* @returns {clinical.PartnerPatientLinkExported} PartnerPatientLinkExported
|
|
173764
|
+
*/
|
|
173765
|
+
PartnerPatientLinkExported.fromObject = function fromObject(object) {
|
|
173766
|
+
if (object instanceof $root.clinical.PartnerPatientLinkExported)
|
|
173767
|
+
return object;
|
|
173768
|
+
var message = new $root.clinical.PartnerPatientLinkExported();
|
|
173769
|
+
if (object.id != null)
|
|
173770
|
+
message.id = String(object.id);
|
|
173771
|
+
if (object.partnerSlug != null)
|
|
173772
|
+
message.partnerSlug = String(object.partnerSlug);
|
|
173773
|
+
if (object.memberId != null)
|
|
173774
|
+
if ($util.Long)
|
|
173775
|
+
(message.memberId = $util.Long.fromValue(object.memberId)).unsigned = false;
|
|
173776
|
+
else if (typeof object.memberId === "string")
|
|
173777
|
+
message.memberId = parseInt(object.memberId, 10);
|
|
173778
|
+
else if (typeof object.memberId === "number")
|
|
173779
|
+
message.memberId = object.memberId;
|
|
173780
|
+
else if (typeof object.memberId === "object")
|
|
173781
|
+
message.memberId = new $util.LongBits(object.memberId.low >>> 0, object.memberId.high >>> 0).toNumber();
|
|
173782
|
+
if (object.memberSharedId != null)
|
|
173783
|
+
message.memberSharedId = String(object.memberSharedId);
|
|
173784
|
+
if (object.externalId != null)
|
|
173785
|
+
message.externalId = String(object.externalId);
|
|
173786
|
+
if (object.timeReferred != null)
|
|
173787
|
+
if ($util.Long)
|
|
173788
|
+
(message.timeReferred = $util.Long.fromValue(object.timeReferred)).unsigned = true;
|
|
173789
|
+
else if (typeof object.timeReferred === "string")
|
|
173790
|
+
message.timeReferred = parseInt(object.timeReferred, 10);
|
|
173791
|
+
else if (typeof object.timeReferred === "number")
|
|
173792
|
+
message.timeReferred = object.timeReferred;
|
|
173793
|
+
else if (typeof object.timeReferred === "object")
|
|
173794
|
+
message.timeReferred = new $util.LongBits(object.timeReferred.low >>> 0, object.timeReferred.high >>> 0).toNumber(true);
|
|
173795
|
+
if (object.timeLastSynced != null)
|
|
173796
|
+
if ($util.Long)
|
|
173797
|
+
(message.timeLastSynced = $util.Long.fromValue(object.timeLastSynced)).unsigned = true;
|
|
173798
|
+
else if (typeof object.timeLastSynced === "string")
|
|
173799
|
+
message.timeLastSynced = parseInt(object.timeLastSynced, 10);
|
|
173800
|
+
else if (typeof object.timeLastSynced === "number")
|
|
173801
|
+
message.timeLastSynced = object.timeLastSynced;
|
|
173802
|
+
else if (typeof object.timeLastSynced === "object")
|
|
173803
|
+
message.timeLastSynced = new $util.LongBits(object.timeLastSynced.low >>> 0, object.timeLastSynced.high >>> 0).toNumber(true);
|
|
173804
|
+
switch (object.syncStatus) {
|
|
173805
|
+
case "SYNC_STATUS__UNKNOWN":
|
|
173806
|
+
case 0:
|
|
173807
|
+
message.syncStatus = 0;
|
|
173808
|
+
break;
|
|
173809
|
+
case "SYNC_STATUS_SYNCED":
|
|
173810
|
+
case 1:
|
|
173811
|
+
message.syncStatus = 1;
|
|
173812
|
+
break;
|
|
173813
|
+
case "SYNC_STATUS_PENDING":
|
|
173814
|
+
case 2:
|
|
173815
|
+
message.syncStatus = 2;
|
|
173816
|
+
break;
|
|
173817
|
+
case "SYNC_STATUS_FAILED":
|
|
173818
|
+
case 3:
|
|
173819
|
+
message.syncStatus = 3;
|
|
173820
|
+
break;
|
|
173821
|
+
}
|
|
173822
|
+
if (object.timeCreated != null)
|
|
173823
|
+
if ($util.Long)
|
|
173824
|
+
(message.timeCreated = $util.Long.fromValue(object.timeCreated)).unsigned = true;
|
|
173825
|
+
else if (typeof object.timeCreated === "string")
|
|
173826
|
+
message.timeCreated = parseInt(object.timeCreated, 10);
|
|
173827
|
+
else if (typeof object.timeCreated === "number")
|
|
173828
|
+
message.timeCreated = object.timeCreated;
|
|
173829
|
+
else if (typeof object.timeCreated === "object")
|
|
173830
|
+
message.timeCreated = new $util.LongBits(object.timeCreated.low >>> 0, object.timeCreated.high >>> 0).toNumber(true);
|
|
173831
|
+
if (object.timeUpdated != null)
|
|
173832
|
+
if ($util.Long)
|
|
173833
|
+
(message.timeUpdated = $util.Long.fromValue(object.timeUpdated)).unsigned = true;
|
|
173834
|
+
else if (typeof object.timeUpdated === "string")
|
|
173835
|
+
message.timeUpdated = parseInt(object.timeUpdated, 10);
|
|
173836
|
+
else if (typeof object.timeUpdated === "number")
|
|
173837
|
+
message.timeUpdated = object.timeUpdated;
|
|
173838
|
+
else if (typeof object.timeUpdated === "object")
|
|
173839
|
+
message.timeUpdated = new $util.LongBits(object.timeUpdated.low >>> 0, object.timeUpdated.high >>> 0).toNumber(true);
|
|
173840
|
+
return message;
|
|
173841
|
+
};
|
|
173842
|
+
|
|
173843
|
+
/**
|
|
173844
|
+
* Creates a plain object from a PartnerPatientLinkExported message. Also converts values to other types if specified.
|
|
173845
|
+
* @function toObject
|
|
173846
|
+
* @memberof clinical.PartnerPatientLinkExported
|
|
173847
|
+
* @static
|
|
173848
|
+
* @param {clinical.PartnerPatientLinkExported} message PartnerPatientLinkExported
|
|
173849
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
173850
|
+
* @returns {Object.<string,*>} Plain object
|
|
173851
|
+
*/
|
|
173852
|
+
PartnerPatientLinkExported.toObject = function toObject(message, options) {
|
|
173853
|
+
if (!options)
|
|
173854
|
+
options = {};
|
|
173855
|
+
var object = {};
|
|
173856
|
+
if (options.defaults) {
|
|
173857
|
+
object.id = "";
|
|
173858
|
+
object.partnerSlug = "";
|
|
173859
|
+
if ($util.Long) {
|
|
173860
|
+
var long = new $util.Long(0, 0, false);
|
|
173861
|
+
object.memberId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
173862
|
+
} else
|
|
173863
|
+
object.memberId = options.longs === String ? "0" : 0;
|
|
173864
|
+
object.memberSharedId = "";
|
|
173865
|
+
object.externalId = "";
|
|
173866
|
+
if ($util.Long) {
|
|
173867
|
+
var long = new $util.Long(0, 0, true);
|
|
173868
|
+
object.timeReferred = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
173869
|
+
} else
|
|
173870
|
+
object.timeReferred = options.longs === String ? "0" : 0;
|
|
173871
|
+
if ($util.Long) {
|
|
173872
|
+
var long = new $util.Long(0, 0, true);
|
|
173873
|
+
object.timeLastSynced = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
173874
|
+
} else
|
|
173875
|
+
object.timeLastSynced = options.longs === String ? "0" : 0;
|
|
173876
|
+
object.syncStatus = options.enums === String ? "SYNC_STATUS__UNKNOWN" : 0;
|
|
173877
|
+
if ($util.Long) {
|
|
173878
|
+
var long = new $util.Long(0, 0, true);
|
|
173879
|
+
object.timeCreated = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
173880
|
+
} else
|
|
173881
|
+
object.timeCreated = options.longs === String ? "0" : 0;
|
|
173882
|
+
if ($util.Long) {
|
|
173883
|
+
var long = new $util.Long(0, 0, true);
|
|
173884
|
+
object.timeUpdated = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
173885
|
+
} else
|
|
173886
|
+
object.timeUpdated = options.longs === String ? "0" : 0;
|
|
173887
|
+
}
|
|
173888
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
173889
|
+
object.id = message.id;
|
|
173890
|
+
if (message.partnerSlug != null && message.hasOwnProperty("partnerSlug"))
|
|
173891
|
+
object.partnerSlug = message.partnerSlug;
|
|
173892
|
+
if (message.memberId != null && message.hasOwnProperty("memberId"))
|
|
173893
|
+
if (typeof message.memberId === "number")
|
|
173894
|
+
object.memberId = options.longs === String ? String(message.memberId) : message.memberId;
|
|
173895
|
+
else
|
|
173896
|
+
object.memberId = options.longs === String ? $util.Long.prototype.toString.call(message.memberId) : options.longs === Number ? new $util.LongBits(message.memberId.low >>> 0, message.memberId.high >>> 0).toNumber() : message.memberId;
|
|
173897
|
+
if (message.memberSharedId != null && message.hasOwnProperty("memberSharedId"))
|
|
173898
|
+
object.memberSharedId = message.memberSharedId;
|
|
173899
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
173900
|
+
object.externalId = message.externalId;
|
|
173901
|
+
if (message.timeReferred != null && message.hasOwnProperty("timeReferred"))
|
|
173902
|
+
if (typeof message.timeReferred === "number")
|
|
173903
|
+
object.timeReferred = options.longs === String ? String(message.timeReferred) : message.timeReferred;
|
|
173904
|
+
else
|
|
173905
|
+
object.timeReferred = options.longs === String ? $util.Long.prototype.toString.call(message.timeReferred) : options.longs === Number ? new $util.LongBits(message.timeReferred.low >>> 0, message.timeReferred.high >>> 0).toNumber(true) : message.timeReferred;
|
|
173906
|
+
if (message.timeLastSynced != null && message.hasOwnProperty("timeLastSynced"))
|
|
173907
|
+
if (typeof message.timeLastSynced === "number")
|
|
173908
|
+
object.timeLastSynced = options.longs === String ? String(message.timeLastSynced) : message.timeLastSynced;
|
|
173909
|
+
else
|
|
173910
|
+
object.timeLastSynced = options.longs === String ? $util.Long.prototype.toString.call(message.timeLastSynced) : options.longs === Number ? new $util.LongBits(message.timeLastSynced.low >>> 0, message.timeLastSynced.high >>> 0).toNumber(true) : message.timeLastSynced;
|
|
173911
|
+
if (message.syncStatus != null && message.hasOwnProperty("syncStatus"))
|
|
173912
|
+
object.syncStatus = options.enums === String ? $root.clinical.SyncStatus[message.syncStatus] : message.syncStatus;
|
|
173913
|
+
if (message.timeCreated != null && message.hasOwnProperty("timeCreated"))
|
|
173914
|
+
if (typeof message.timeCreated === "number")
|
|
173915
|
+
object.timeCreated = options.longs === String ? String(message.timeCreated) : message.timeCreated;
|
|
173916
|
+
else
|
|
173917
|
+
object.timeCreated = options.longs === String ? $util.Long.prototype.toString.call(message.timeCreated) : options.longs === Number ? new $util.LongBits(message.timeCreated.low >>> 0, message.timeCreated.high >>> 0).toNumber(true) : message.timeCreated;
|
|
173918
|
+
if (message.timeUpdated != null && message.hasOwnProperty("timeUpdated"))
|
|
173919
|
+
if (typeof message.timeUpdated === "number")
|
|
173920
|
+
object.timeUpdated = options.longs === String ? String(message.timeUpdated) : message.timeUpdated;
|
|
173921
|
+
else
|
|
173922
|
+
object.timeUpdated = options.longs === String ? $util.Long.prototype.toString.call(message.timeUpdated) : options.longs === Number ? new $util.LongBits(message.timeUpdated.low >>> 0, message.timeUpdated.high >>> 0).toNumber(true) : message.timeUpdated;
|
|
173923
|
+
return object;
|
|
173924
|
+
};
|
|
173925
|
+
|
|
173926
|
+
/**
|
|
173927
|
+
* Converts this PartnerPatientLinkExported to JSON.
|
|
173928
|
+
* @function toJSON
|
|
173929
|
+
* @memberof clinical.PartnerPatientLinkExported
|
|
173930
|
+
* @instance
|
|
173931
|
+
* @returns {Object.<string,*>} JSON object
|
|
173932
|
+
*/
|
|
173933
|
+
PartnerPatientLinkExported.prototype.toJSON = function toJSON() {
|
|
173934
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
173935
|
+
};
|
|
173936
|
+
|
|
173937
|
+
return PartnerPatientLinkExported;
|
|
173938
|
+
})();
|
|
173939
|
+
|
|
172571
173940
|
clinical.UnifiedAvailabilityOffered = (function() {
|
|
172572
173941
|
|
|
172573
173942
|
/**
|