@headspace/protos-events 1.749.0 → 1.751.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 +24 -0
- package/lib/index.js +147 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -28101,6 +28101,9 @@ export interface ISurveyResponse {
|
|
|
28101
28101
|
|
|
28102
28102
|
/** SurveyResponse assignedAtIsoDate */
|
|
28103
28103
|
assignedAtIsoDate?: (string|null);
|
|
28104
|
+
|
|
28105
|
+
/** SurveyResponse assignmentId */
|
|
28106
|
+
assignmentId?: (number|Long|null);
|
|
28104
28107
|
}
|
|
28105
28108
|
|
|
28106
28109
|
/** Represents a SurveyResponse. */
|
|
@@ -28139,6 +28142,9 @@ export class SurveyResponse implements ISurveyResponse {
|
|
|
28139
28142
|
/** SurveyResponse assignedAtIsoDate. */
|
|
28140
28143
|
public assignedAtIsoDate: string;
|
|
28141
28144
|
|
|
28145
|
+
/** SurveyResponse assignmentId. */
|
|
28146
|
+
public assignmentId: (number|Long);
|
|
28147
|
+
|
|
28142
28148
|
/**
|
|
28143
28149
|
* Creates a new SurveyResponse instance using the specified properties.
|
|
28144
28150
|
* @param [properties] Properties to set
|
|
@@ -46924,6 +46930,9 @@ export interface IPHQAssessmentAssigned {
|
|
|
46924
46930
|
|
|
46925
46931
|
/** PHQAssessmentAssigned assignedAtIsoDate */
|
|
46926
46932
|
assignedAtIsoDate?: (string|null);
|
|
46933
|
+
|
|
46934
|
+
/** PHQAssessmentAssigned assignmentId */
|
|
46935
|
+
assignmentId?: (number|Long|null);
|
|
46927
46936
|
}
|
|
46928
46937
|
|
|
46929
46938
|
/** Represents a PHQAssessmentAssigned. */
|
|
@@ -46944,6 +46953,9 @@ export class PHQAssessmentAssigned implements IPHQAssessmentAssigned {
|
|
|
46944
46953
|
/** PHQAssessmentAssigned assignedAtIsoDate. */
|
|
46945
46954
|
public assignedAtIsoDate: string;
|
|
46946
46955
|
|
|
46956
|
+
/** PHQAssessmentAssigned assignmentId. */
|
|
46957
|
+
public assignmentId: (number|Long);
|
|
46958
|
+
|
|
46947
46959
|
/**
|
|
46948
46960
|
* Creates a new PHQAssessmentAssigned instance using the specified properties.
|
|
46949
46961
|
* @param [properties] Properties to set
|
|
@@ -50332,6 +50344,9 @@ export interface IPSSAssessmentStarted {
|
|
|
50332
50344
|
|
|
50333
50345
|
/** PSSAssessmentStarted startedAtIsoDate */
|
|
50334
50346
|
startedAtIsoDate?: (string|null);
|
|
50347
|
+
|
|
50348
|
+
/** PSSAssessmentStarted assignmentId */
|
|
50349
|
+
assignmentId?: (number|Long|null);
|
|
50335
50350
|
}
|
|
50336
50351
|
|
|
50337
50352
|
/** Represents a PSSAssessmentStarted. */
|
|
@@ -50352,6 +50367,9 @@ export class PSSAssessmentStarted implements IPSSAssessmentStarted {
|
|
|
50352
50367
|
/** PSSAssessmentStarted startedAtIsoDate. */
|
|
50353
50368
|
public startedAtIsoDate: string;
|
|
50354
50369
|
|
|
50370
|
+
/** PSSAssessmentStarted assignmentId. */
|
|
50371
|
+
public assignmentId: (number|Long);
|
|
50372
|
+
|
|
50355
50373
|
/**
|
|
50356
50374
|
* Creates a new PSSAssessmentStarted instance using the specified properties.
|
|
50357
50375
|
* @param [properties] Properties to set
|
|
@@ -58679,6 +58697,9 @@ export namespace clinical {
|
|
|
58679
58697
|
|
|
58680
58698
|
/** ClinicalOrganization futureEnrollmentFlowSubscriptionId */
|
|
58681
58699
|
futureEnrollmentFlowSubscriptionId?: (string|null);
|
|
58700
|
+
|
|
58701
|
+
/** ClinicalOrganization enabledProductFeatures */
|
|
58702
|
+
enabledProductFeatures?: (string[]|null);
|
|
58682
58703
|
}
|
|
58683
58704
|
|
|
58684
58705
|
/** Represents a ClinicalOrganization. */
|
|
@@ -58765,6 +58786,9 @@ export namespace clinical {
|
|
|
58765
58786
|
/** ClinicalOrganization futureEnrollmentFlowSubscriptionId. */
|
|
58766
58787
|
public futureEnrollmentFlowSubscriptionId: string;
|
|
58767
58788
|
|
|
58789
|
+
/** ClinicalOrganization enabledProductFeatures. */
|
|
58790
|
+
public enabledProductFeatures: string[];
|
|
58791
|
+
|
|
58768
58792
|
/**
|
|
58769
58793
|
* Creates a new ClinicalOrganization instance using the specified properties.
|
|
58770
58794
|
* @param [properties] Properties to set
|
package/lib/index.js
CHANGED
|
@@ -79739,6 +79739,7 @@ $root.SurveyResponse = (function() {
|
|
|
79739
79739
|
* @property {string|null} [id] SurveyResponse id
|
|
79740
79740
|
* @property {number|null} [gingerUserId] SurveyResponse gingerUserId
|
|
79741
79741
|
* @property {string|null} [assignedAtIsoDate] SurveyResponse assignedAtIsoDate
|
|
79742
|
+
* @property {number|Long|null} [assignmentId] SurveyResponse assignmentId
|
|
79742
79743
|
*/
|
|
79743
79744
|
|
|
79744
79745
|
/**
|
|
@@ -79829,6 +79830,14 @@ $root.SurveyResponse = (function() {
|
|
|
79829
79830
|
*/
|
|
79830
79831
|
SurveyResponse.prototype.assignedAtIsoDate = "";
|
|
79831
79832
|
|
|
79833
|
+
/**
|
|
79834
|
+
* SurveyResponse assignmentId.
|
|
79835
|
+
* @member {number|Long} assignmentId
|
|
79836
|
+
* @memberof SurveyResponse
|
|
79837
|
+
* @instance
|
|
79838
|
+
*/
|
|
79839
|
+
SurveyResponse.prototype.assignmentId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
79840
|
+
|
|
79832
79841
|
/**
|
|
79833
79842
|
* Creates a new SurveyResponse instance using the specified properties.
|
|
79834
79843
|
* @function create
|
|
@@ -79872,6 +79881,8 @@ $root.SurveyResponse = (function() {
|
|
|
79872
79881
|
writer.uint32(/* id 8, wireType 0 =*/64).uint32(message.gingerUserId);
|
|
79873
79882
|
if (message.assignedAtIsoDate != null && message.hasOwnProperty("assignedAtIsoDate"))
|
|
79874
79883
|
writer.uint32(/* id 9, wireType 2 =*/74).string(message.assignedAtIsoDate);
|
|
79884
|
+
if (message.assignmentId != null && message.hasOwnProperty("assignmentId"))
|
|
79885
|
+
writer.uint32(/* id 10, wireType 0 =*/80).int64(message.assignmentId);
|
|
79875
79886
|
return writer;
|
|
79876
79887
|
};
|
|
79877
79888
|
|
|
@@ -79935,6 +79946,9 @@ $root.SurveyResponse = (function() {
|
|
|
79935
79946
|
case 9:
|
|
79936
79947
|
message.assignedAtIsoDate = reader.string();
|
|
79937
79948
|
break;
|
|
79949
|
+
case 10:
|
|
79950
|
+
message.assignmentId = reader.int64();
|
|
79951
|
+
break;
|
|
79938
79952
|
default:
|
|
79939
79953
|
reader.skipType(tag & 7);
|
|
79940
79954
|
break;
|
|
@@ -80003,6 +80017,9 @@ $root.SurveyResponse = (function() {
|
|
|
80003
80017
|
if (message.assignedAtIsoDate != null && message.hasOwnProperty("assignedAtIsoDate"))
|
|
80004
80018
|
if (!$util.isString(message.assignedAtIsoDate))
|
|
80005
80019
|
return "assignedAtIsoDate: string expected";
|
|
80020
|
+
if (message.assignmentId != null && message.hasOwnProperty("assignmentId"))
|
|
80021
|
+
if (!$util.isInteger(message.assignmentId) && !(message.assignmentId && $util.isInteger(message.assignmentId.low) && $util.isInteger(message.assignmentId.high)))
|
|
80022
|
+
return "assignmentId: integer|Long expected";
|
|
80006
80023
|
return null;
|
|
80007
80024
|
};
|
|
80008
80025
|
|
|
@@ -80044,6 +80061,15 @@ $root.SurveyResponse = (function() {
|
|
|
80044
80061
|
message.gingerUserId = object.gingerUserId >>> 0;
|
|
80045
80062
|
if (object.assignedAtIsoDate != null)
|
|
80046
80063
|
message.assignedAtIsoDate = String(object.assignedAtIsoDate);
|
|
80064
|
+
if (object.assignmentId != null)
|
|
80065
|
+
if ($util.Long)
|
|
80066
|
+
(message.assignmentId = $util.Long.fromValue(object.assignmentId)).unsigned = false;
|
|
80067
|
+
else if (typeof object.assignmentId === "string")
|
|
80068
|
+
message.assignmentId = parseInt(object.assignmentId, 10);
|
|
80069
|
+
else if (typeof object.assignmentId === "number")
|
|
80070
|
+
message.assignmentId = object.assignmentId;
|
|
80071
|
+
else if (typeof object.assignmentId === "object")
|
|
80072
|
+
message.assignmentId = new $util.LongBits(object.assignmentId.low >>> 0, object.assignmentId.high >>> 0).toNumber();
|
|
80047
80073
|
return message;
|
|
80048
80074
|
};
|
|
80049
80075
|
|
|
@@ -80071,6 +80097,11 @@ $root.SurveyResponse = (function() {
|
|
|
80071
80097
|
object.id = "";
|
|
80072
80098
|
object.gingerUserId = 0;
|
|
80073
80099
|
object.assignedAtIsoDate = "";
|
|
80100
|
+
if ($util.Long) {
|
|
80101
|
+
var long = new $util.Long(0, 0, false);
|
|
80102
|
+
object.assignmentId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
80103
|
+
} else
|
|
80104
|
+
object.assignmentId = options.longs === String ? "0" : 0;
|
|
80074
80105
|
}
|
|
80075
80106
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
80076
80107
|
object.userId = message.userId;
|
|
@@ -80093,6 +80124,11 @@ $root.SurveyResponse = (function() {
|
|
|
80093
80124
|
object.gingerUserId = message.gingerUserId;
|
|
80094
80125
|
if (message.assignedAtIsoDate != null && message.hasOwnProperty("assignedAtIsoDate"))
|
|
80095
80126
|
object.assignedAtIsoDate = message.assignedAtIsoDate;
|
|
80127
|
+
if (message.assignmentId != null && message.hasOwnProperty("assignmentId"))
|
|
80128
|
+
if (typeof message.assignmentId === "number")
|
|
80129
|
+
object.assignmentId = options.longs === String ? String(message.assignmentId) : message.assignmentId;
|
|
80130
|
+
else
|
|
80131
|
+
object.assignmentId = options.longs === String ? $util.Long.prototype.toString.call(message.assignmentId) : options.longs === Number ? new $util.LongBits(message.assignmentId.low >>> 0, message.assignmentId.high >>> 0).toNumber() : message.assignmentId;
|
|
80096
80132
|
return object;
|
|
80097
80133
|
};
|
|
80098
80134
|
|
|
@@ -133714,6 +133750,7 @@ $root.PHQAssessmentAssigned = (function() {
|
|
|
133714
133750
|
* @property {string|null} [hsUserId] PHQAssessmentAssigned hsUserId
|
|
133715
133751
|
* @property {number|null} [gingerUserId] PHQAssessmentAssigned gingerUserId
|
|
133716
133752
|
* @property {string|null} [assignedAtIsoDate] PHQAssessmentAssigned assignedAtIsoDate
|
|
133753
|
+
* @property {number|Long|null} [assignmentId] PHQAssessmentAssigned assignmentId
|
|
133717
133754
|
*/
|
|
133718
133755
|
|
|
133719
133756
|
/**
|
|
@@ -133755,6 +133792,14 @@ $root.PHQAssessmentAssigned = (function() {
|
|
|
133755
133792
|
*/
|
|
133756
133793
|
PHQAssessmentAssigned.prototype.assignedAtIsoDate = "";
|
|
133757
133794
|
|
|
133795
|
+
/**
|
|
133796
|
+
* PHQAssessmentAssigned assignmentId.
|
|
133797
|
+
* @member {number|Long} assignmentId
|
|
133798
|
+
* @memberof PHQAssessmentAssigned
|
|
133799
|
+
* @instance
|
|
133800
|
+
*/
|
|
133801
|
+
PHQAssessmentAssigned.prototype.assignmentId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
133802
|
+
|
|
133758
133803
|
/**
|
|
133759
133804
|
* Creates a new PHQAssessmentAssigned instance using the specified properties.
|
|
133760
133805
|
* @function create
|
|
@@ -133785,6 +133830,8 @@ $root.PHQAssessmentAssigned = (function() {
|
|
|
133785
133830
|
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.gingerUserId);
|
|
133786
133831
|
if (message.assignedAtIsoDate != null && message.hasOwnProperty("assignedAtIsoDate"))
|
|
133787
133832
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.assignedAtIsoDate);
|
|
133833
|
+
if (message.assignmentId != null && message.hasOwnProperty("assignmentId"))
|
|
133834
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int64(message.assignmentId);
|
|
133788
133835
|
return writer;
|
|
133789
133836
|
};
|
|
133790
133837
|
|
|
@@ -133828,6 +133875,9 @@ $root.PHQAssessmentAssigned = (function() {
|
|
|
133828
133875
|
case 3:
|
|
133829
133876
|
message.assignedAtIsoDate = reader.string();
|
|
133830
133877
|
break;
|
|
133878
|
+
case 4:
|
|
133879
|
+
message.assignmentId = reader.int64();
|
|
133880
|
+
break;
|
|
133831
133881
|
default:
|
|
133832
133882
|
reader.skipType(tag & 7);
|
|
133833
133883
|
break;
|
|
@@ -133872,6 +133922,9 @@ $root.PHQAssessmentAssigned = (function() {
|
|
|
133872
133922
|
if (message.assignedAtIsoDate != null && message.hasOwnProperty("assignedAtIsoDate"))
|
|
133873
133923
|
if (!$util.isString(message.assignedAtIsoDate))
|
|
133874
133924
|
return "assignedAtIsoDate: string expected";
|
|
133925
|
+
if (message.assignmentId != null && message.hasOwnProperty("assignmentId"))
|
|
133926
|
+
if (!$util.isInteger(message.assignmentId) && !(message.assignmentId && $util.isInteger(message.assignmentId.low) && $util.isInteger(message.assignmentId.high)))
|
|
133927
|
+
return "assignmentId: integer|Long expected";
|
|
133875
133928
|
return null;
|
|
133876
133929
|
};
|
|
133877
133930
|
|
|
@@ -133893,6 +133946,15 @@ $root.PHQAssessmentAssigned = (function() {
|
|
|
133893
133946
|
message.gingerUserId = object.gingerUserId >>> 0;
|
|
133894
133947
|
if (object.assignedAtIsoDate != null)
|
|
133895
133948
|
message.assignedAtIsoDate = String(object.assignedAtIsoDate);
|
|
133949
|
+
if (object.assignmentId != null)
|
|
133950
|
+
if ($util.Long)
|
|
133951
|
+
(message.assignmentId = $util.Long.fromValue(object.assignmentId)).unsigned = false;
|
|
133952
|
+
else if (typeof object.assignmentId === "string")
|
|
133953
|
+
message.assignmentId = parseInt(object.assignmentId, 10);
|
|
133954
|
+
else if (typeof object.assignmentId === "number")
|
|
133955
|
+
message.assignmentId = object.assignmentId;
|
|
133956
|
+
else if (typeof object.assignmentId === "object")
|
|
133957
|
+
message.assignmentId = new $util.LongBits(object.assignmentId.low >>> 0, object.assignmentId.high >>> 0).toNumber();
|
|
133896
133958
|
return message;
|
|
133897
133959
|
};
|
|
133898
133960
|
|
|
@@ -133913,6 +133975,11 @@ $root.PHQAssessmentAssigned = (function() {
|
|
|
133913
133975
|
object.hsUserId = "";
|
|
133914
133976
|
object.gingerUserId = 0;
|
|
133915
133977
|
object.assignedAtIsoDate = "";
|
|
133978
|
+
if ($util.Long) {
|
|
133979
|
+
var long = new $util.Long(0, 0, false);
|
|
133980
|
+
object.assignmentId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
133981
|
+
} else
|
|
133982
|
+
object.assignmentId = options.longs === String ? "0" : 0;
|
|
133916
133983
|
}
|
|
133917
133984
|
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
133918
133985
|
object.hsUserId = message.hsUserId;
|
|
@@ -133920,6 +133987,11 @@ $root.PHQAssessmentAssigned = (function() {
|
|
|
133920
133987
|
object.gingerUserId = message.gingerUserId;
|
|
133921
133988
|
if (message.assignedAtIsoDate != null && message.hasOwnProperty("assignedAtIsoDate"))
|
|
133922
133989
|
object.assignedAtIsoDate = message.assignedAtIsoDate;
|
|
133990
|
+
if (message.assignmentId != null && message.hasOwnProperty("assignmentId"))
|
|
133991
|
+
if (typeof message.assignmentId === "number")
|
|
133992
|
+
object.assignmentId = options.longs === String ? String(message.assignmentId) : message.assignmentId;
|
|
133993
|
+
else
|
|
133994
|
+
object.assignmentId = options.longs === String ? $util.Long.prototype.toString.call(message.assignmentId) : options.longs === Number ? new $util.LongBits(message.assignmentId.low >>> 0, message.assignmentId.high >>> 0).toNumber() : message.assignmentId;
|
|
133923
133995
|
return object;
|
|
133924
133996
|
};
|
|
133925
133997
|
|
|
@@ -142634,6 +142706,7 @@ $root.PSSAssessmentStarted = (function() {
|
|
|
142634
142706
|
* @property {string|null} [hsUserId] PSSAssessmentStarted hsUserId
|
|
142635
142707
|
* @property {number|null} [gingerUserId] PSSAssessmentStarted gingerUserId
|
|
142636
142708
|
* @property {string|null} [startedAtIsoDate] PSSAssessmentStarted startedAtIsoDate
|
|
142709
|
+
* @property {number|Long|null} [assignmentId] PSSAssessmentStarted assignmentId
|
|
142637
142710
|
*/
|
|
142638
142711
|
|
|
142639
142712
|
/**
|
|
@@ -142675,6 +142748,14 @@ $root.PSSAssessmentStarted = (function() {
|
|
|
142675
142748
|
*/
|
|
142676
142749
|
PSSAssessmentStarted.prototype.startedAtIsoDate = "";
|
|
142677
142750
|
|
|
142751
|
+
/**
|
|
142752
|
+
* PSSAssessmentStarted assignmentId.
|
|
142753
|
+
* @member {number|Long} assignmentId
|
|
142754
|
+
* @memberof PSSAssessmentStarted
|
|
142755
|
+
* @instance
|
|
142756
|
+
*/
|
|
142757
|
+
PSSAssessmentStarted.prototype.assignmentId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
142758
|
+
|
|
142678
142759
|
/**
|
|
142679
142760
|
* Creates a new PSSAssessmentStarted instance using the specified properties.
|
|
142680
142761
|
* @function create
|
|
@@ -142705,6 +142786,8 @@ $root.PSSAssessmentStarted = (function() {
|
|
|
142705
142786
|
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.gingerUserId);
|
|
142706
142787
|
if (message.startedAtIsoDate != null && message.hasOwnProperty("startedAtIsoDate"))
|
|
142707
142788
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.startedAtIsoDate);
|
|
142789
|
+
if (message.assignmentId != null && message.hasOwnProperty("assignmentId"))
|
|
142790
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int64(message.assignmentId);
|
|
142708
142791
|
return writer;
|
|
142709
142792
|
};
|
|
142710
142793
|
|
|
@@ -142748,6 +142831,9 @@ $root.PSSAssessmentStarted = (function() {
|
|
|
142748
142831
|
case 3:
|
|
142749
142832
|
message.startedAtIsoDate = reader.string();
|
|
142750
142833
|
break;
|
|
142834
|
+
case 4:
|
|
142835
|
+
message.assignmentId = reader.int64();
|
|
142836
|
+
break;
|
|
142751
142837
|
default:
|
|
142752
142838
|
reader.skipType(tag & 7);
|
|
142753
142839
|
break;
|
|
@@ -142792,6 +142878,9 @@ $root.PSSAssessmentStarted = (function() {
|
|
|
142792
142878
|
if (message.startedAtIsoDate != null && message.hasOwnProperty("startedAtIsoDate"))
|
|
142793
142879
|
if (!$util.isString(message.startedAtIsoDate))
|
|
142794
142880
|
return "startedAtIsoDate: string expected";
|
|
142881
|
+
if (message.assignmentId != null && message.hasOwnProperty("assignmentId"))
|
|
142882
|
+
if (!$util.isInteger(message.assignmentId) && !(message.assignmentId && $util.isInteger(message.assignmentId.low) && $util.isInteger(message.assignmentId.high)))
|
|
142883
|
+
return "assignmentId: integer|Long expected";
|
|
142795
142884
|
return null;
|
|
142796
142885
|
};
|
|
142797
142886
|
|
|
@@ -142813,6 +142902,15 @@ $root.PSSAssessmentStarted = (function() {
|
|
|
142813
142902
|
message.gingerUserId = object.gingerUserId >>> 0;
|
|
142814
142903
|
if (object.startedAtIsoDate != null)
|
|
142815
142904
|
message.startedAtIsoDate = String(object.startedAtIsoDate);
|
|
142905
|
+
if (object.assignmentId != null)
|
|
142906
|
+
if ($util.Long)
|
|
142907
|
+
(message.assignmentId = $util.Long.fromValue(object.assignmentId)).unsigned = false;
|
|
142908
|
+
else if (typeof object.assignmentId === "string")
|
|
142909
|
+
message.assignmentId = parseInt(object.assignmentId, 10);
|
|
142910
|
+
else if (typeof object.assignmentId === "number")
|
|
142911
|
+
message.assignmentId = object.assignmentId;
|
|
142912
|
+
else if (typeof object.assignmentId === "object")
|
|
142913
|
+
message.assignmentId = new $util.LongBits(object.assignmentId.low >>> 0, object.assignmentId.high >>> 0).toNumber();
|
|
142816
142914
|
return message;
|
|
142817
142915
|
};
|
|
142818
142916
|
|
|
@@ -142833,6 +142931,11 @@ $root.PSSAssessmentStarted = (function() {
|
|
|
142833
142931
|
object.hsUserId = "";
|
|
142834
142932
|
object.gingerUserId = 0;
|
|
142835
142933
|
object.startedAtIsoDate = "";
|
|
142934
|
+
if ($util.Long) {
|
|
142935
|
+
var long = new $util.Long(0, 0, false);
|
|
142936
|
+
object.assignmentId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
142937
|
+
} else
|
|
142938
|
+
object.assignmentId = options.longs === String ? "0" : 0;
|
|
142836
142939
|
}
|
|
142837
142940
|
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
142838
142941
|
object.hsUserId = message.hsUserId;
|
|
@@ -142840,6 +142943,11 @@ $root.PSSAssessmentStarted = (function() {
|
|
|
142840
142943
|
object.gingerUserId = message.gingerUserId;
|
|
142841
142944
|
if (message.startedAtIsoDate != null && message.hasOwnProperty("startedAtIsoDate"))
|
|
142842
142945
|
object.startedAtIsoDate = message.startedAtIsoDate;
|
|
142946
|
+
if (message.assignmentId != null && message.hasOwnProperty("assignmentId"))
|
|
142947
|
+
if (typeof message.assignmentId === "number")
|
|
142948
|
+
object.assignmentId = options.longs === String ? String(message.assignmentId) : message.assignmentId;
|
|
142949
|
+
else
|
|
142950
|
+
object.assignmentId = options.longs === String ? $util.Long.prototype.toString.call(message.assignmentId) : options.longs === Number ? new $util.LongBits(message.assignmentId.low >>> 0, message.assignmentId.high >>> 0).toNumber() : message.assignmentId;
|
|
142843
142951
|
return object;
|
|
142844
142952
|
};
|
|
142845
142953
|
|
|
@@ -166885,6 +166993,7 @@ $root.clinical = (function() {
|
|
|
166885
166993
|
* @property {b2b.EnrollmentFlow|null} [currentEnrollmentFlowType] ClinicalOrganization currentEnrollmentFlowType
|
|
166886
166994
|
* @property {b2b.EnrollmentFlow|null} [futureEnrollmentFlowType] ClinicalOrganization futureEnrollmentFlowType
|
|
166887
166995
|
* @property {string|null} [futureEnrollmentFlowSubscriptionId] ClinicalOrganization futureEnrollmentFlowSubscriptionId
|
|
166996
|
+
* @property {Array.<string>|null} [enabledProductFeatures] ClinicalOrganization enabledProductFeatures
|
|
166888
166997
|
*/
|
|
166889
166998
|
|
|
166890
166999
|
/**
|
|
@@ -166896,6 +167005,7 @@ $root.clinical = (function() {
|
|
|
166896
167005
|
* @param {clinical.IClinicalOrganization=} [properties] Properties to set
|
|
166897
167006
|
*/
|
|
166898
167007
|
function ClinicalOrganization(properties) {
|
|
167008
|
+
this.enabledProductFeatures = [];
|
|
166899
167009
|
if (properties)
|
|
166900
167010
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
166901
167011
|
if (properties[keys[i]] != null)
|
|
@@ -167102,6 +167212,14 @@ $root.clinical = (function() {
|
|
|
167102
167212
|
*/
|
|
167103
167213
|
ClinicalOrganization.prototype.futureEnrollmentFlowSubscriptionId = "";
|
|
167104
167214
|
|
|
167215
|
+
/**
|
|
167216
|
+
* ClinicalOrganization enabledProductFeatures.
|
|
167217
|
+
* @member {Array.<string>} enabledProductFeatures
|
|
167218
|
+
* @memberof clinical.ClinicalOrganization
|
|
167219
|
+
* @instance
|
|
167220
|
+
*/
|
|
167221
|
+
ClinicalOrganization.prototype.enabledProductFeatures = $util.emptyArray;
|
|
167222
|
+
|
|
167105
167223
|
/**
|
|
167106
167224
|
* Creates a new ClinicalOrganization instance using the specified properties.
|
|
167107
167225
|
* @function create
|
|
@@ -167176,6 +167294,9 @@ $root.clinical = (function() {
|
|
|
167176
167294
|
writer.uint32(/* id 24, wireType 0 =*/192).int32(message.futureEnrollmentFlowType);
|
|
167177
167295
|
if (message.futureEnrollmentFlowSubscriptionId != null && message.hasOwnProperty("futureEnrollmentFlowSubscriptionId"))
|
|
167178
167296
|
writer.uint32(/* id 25, wireType 2 =*/202).string(message.futureEnrollmentFlowSubscriptionId);
|
|
167297
|
+
if (message.enabledProductFeatures != null && message.enabledProductFeatures.length)
|
|
167298
|
+
for (var i = 0; i < message.enabledProductFeatures.length; ++i)
|
|
167299
|
+
writer.uint32(/* id 26, wireType 2 =*/210).string(message.enabledProductFeatures[i]);
|
|
167179
167300
|
return writer;
|
|
167180
167301
|
};
|
|
167181
167302
|
|
|
@@ -167285,6 +167406,11 @@ $root.clinical = (function() {
|
|
|
167285
167406
|
case 25:
|
|
167286
167407
|
message.futureEnrollmentFlowSubscriptionId = reader.string();
|
|
167287
167408
|
break;
|
|
167409
|
+
case 26:
|
|
167410
|
+
if (!(message.enabledProductFeatures && message.enabledProductFeatures.length))
|
|
167411
|
+
message.enabledProductFeatures = [];
|
|
167412
|
+
message.enabledProductFeatures.push(reader.string());
|
|
167413
|
+
break;
|
|
167288
167414
|
default:
|
|
167289
167415
|
reader.skipType(tag & 7);
|
|
167290
167416
|
break;
|
|
@@ -167429,6 +167555,13 @@ $root.clinical = (function() {
|
|
|
167429
167555
|
if (message.futureEnrollmentFlowSubscriptionId != null && message.hasOwnProperty("futureEnrollmentFlowSubscriptionId"))
|
|
167430
167556
|
if (!$util.isString(message.futureEnrollmentFlowSubscriptionId))
|
|
167431
167557
|
return "futureEnrollmentFlowSubscriptionId: string expected";
|
|
167558
|
+
if (message.enabledProductFeatures != null && message.hasOwnProperty("enabledProductFeatures")) {
|
|
167559
|
+
if (!Array.isArray(message.enabledProductFeatures))
|
|
167560
|
+
return "enabledProductFeatures: array expected";
|
|
167561
|
+
for (var i = 0; i < message.enabledProductFeatures.length; ++i)
|
|
167562
|
+
if (!$util.isString(message.enabledProductFeatures[i]))
|
|
167563
|
+
return "enabledProductFeatures: string[] expected";
|
|
167564
|
+
}
|
|
167432
167565
|
return null;
|
|
167433
167566
|
};
|
|
167434
167567
|
|
|
@@ -167593,6 +167726,13 @@ $root.clinical = (function() {
|
|
|
167593
167726
|
}
|
|
167594
167727
|
if (object.futureEnrollmentFlowSubscriptionId != null)
|
|
167595
167728
|
message.futureEnrollmentFlowSubscriptionId = String(object.futureEnrollmentFlowSubscriptionId);
|
|
167729
|
+
if (object.enabledProductFeatures) {
|
|
167730
|
+
if (!Array.isArray(object.enabledProductFeatures))
|
|
167731
|
+
throw TypeError(".clinical.ClinicalOrganization.enabledProductFeatures: array expected");
|
|
167732
|
+
message.enabledProductFeatures = [];
|
|
167733
|
+
for (var i = 0; i < object.enabledProductFeatures.length; ++i)
|
|
167734
|
+
message.enabledProductFeatures[i] = String(object.enabledProductFeatures[i]);
|
|
167735
|
+
}
|
|
167596
167736
|
return message;
|
|
167597
167737
|
};
|
|
167598
167738
|
|
|
@@ -167609,6 +167749,8 @@ $root.clinical = (function() {
|
|
|
167609
167749
|
if (!options)
|
|
167610
167750
|
options = {};
|
|
167611
167751
|
var object = {};
|
|
167752
|
+
if (options.arrays || options.defaults)
|
|
167753
|
+
object.enabledProductFeatures = [];
|
|
167612
167754
|
if (options.defaults) {
|
|
167613
167755
|
object.id = 0;
|
|
167614
167756
|
object.parentId = 0;
|
|
@@ -167700,6 +167842,11 @@ $root.clinical = (function() {
|
|
|
167700
167842
|
object.futureEnrollmentFlowType = options.enums === String ? $root.b2b.EnrollmentFlow[message.futureEnrollmentFlowType] : message.futureEnrollmentFlowType;
|
|
167701
167843
|
if (message.futureEnrollmentFlowSubscriptionId != null && message.hasOwnProperty("futureEnrollmentFlowSubscriptionId"))
|
|
167702
167844
|
object.futureEnrollmentFlowSubscriptionId = message.futureEnrollmentFlowSubscriptionId;
|
|
167845
|
+
if (message.enabledProductFeatures && message.enabledProductFeatures.length) {
|
|
167846
|
+
object.enabledProductFeatures = [];
|
|
167847
|
+
for (var j = 0; j < message.enabledProductFeatures.length; ++j)
|
|
167848
|
+
object.enabledProductFeatures[j] = message.enabledProductFeatures[j];
|
|
167849
|
+
}
|
|
167703
167850
|
return object;
|
|
167704
167851
|
};
|
|
167705
167852
|
|
package/package.json
CHANGED