@headspace/protos-events 1.765.0 → 1.767.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 +219 -0
- package/lib/index.js +774 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -30980,6 +30980,15 @@ export class SleepcastDeleted implements ISleepcastDeleted {
|
|
|
30980
30980
|
public toJSON(): { [k: string]: any };
|
|
30981
30981
|
}
|
|
30982
30982
|
|
|
30983
|
+
/** CurrentAssessmentPath enum. */
|
|
30984
|
+
export enum CurrentAssessmentPath {
|
|
30985
|
+
CURRENT_ASSESSMENT_PATH_UNKNOWN = 0,
|
|
30986
|
+
CURRENT_ASSESSMENT_PATH_NONE = 1,
|
|
30987
|
+
CURRENT_ASSESSMENT_PATH_ACTIVE_CLINICAL = 2,
|
|
30988
|
+
CURRENT_ASSESSMENT_PATH_INACTIVE_CLINICAL = 3,
|
|
30989
|
+
CURRENT_ASSESSMENT_PATH_SUB_CLINICAL = 4
|
|
30990
|
+
}
|
|
30991
|
+
|
|
30983
30992
|
/** Properties of a SurveyResponse. */
|
|
30984
30993
|
export interface ISurveyResponse {
|
|
30985
30994
|
|
|
@@ -31015,6 +31024,9 @@ export interface ISurveyResponse {
|
|
|
31015
31024
|
|
|
31016
31025
|
/** SurveyResponse totalScore */
|
|
31017
31026
|
totalScore?: (number|null);
|
|
31027
|
+
|
|
31028
|
+
/** SurveyResponse path */
|
|
31029
|
+
path?: (CurrentAssessmentPath|null);
|
|
31018
31030
|
}
|
|
31019
31031
|
|
|
31020
31032
|
/** Represents a SurveyResponse. */
|
|
@@ -31059,6 +31071,9 @@ export class SurveyResponse implements ISurveyResponse {
|
|
|
31059
31071
|
/** SurveyResponse totalScore. */
|
|
31060
31072
|
public totalScore: number;
|
|
31061
31073
|
|
|
31074
|
+
/** SurveyResponse path. */
|
|
31075
|
+
public path: CurrentAssessmentPath;
|
|
31076
|
+
|
|
31062
31077
|
/**
|
|
31063
31078
|
* Creates a new SurveyResponse instance using the specified properties.
|
|
31064
31079
|
* @param [properties] Properties to set
|
|
@@ -47072,6 +47087,162 @@ export class GoogleSubscriptionExpired implements IGoogleSubscriptionExpired {
|
|
|
47072
47087
|
public toJSON(): { [k: string]: any };
|
|
47073
47088
|
}
|
|
47074
47089
|
|
|
47090
|
+
/** Properties of a GoogleSubscriptionRetentionOfferAccepted. */
|
|
47091
|
+
export interface IGoogleSubscriptionRetentionOfferAccepted {
|
|
47092
|
+
|
|
47093
|
+
/** GoogleSubscriptionRetentionOfferAccepted id */
|
|
47094
|
+
id?: (string|null);
|
|
47095
|
+
|
|
47096
|
+
/** GoogleSubscriptionRetentionOfferAccepted endsAt */
|
|
47097
|
+
endsAt?: (number|Long|null);
|
|
47098
|
+
|
|
47099
|
+
/** GoogleSubscriptionRetentionOfferAccepted startsAt */
|
|
47100
|
+
startsAt?: (number|Long|null);
|
|
47101
|
+
|
|
47102
|
+
/** GoogleSubscriptionRetentionOfferAccepted hsUserId */
|
|
47103
|
+
hsUserId?: (string|null);
|
|
47104
|
+
|
|
47105
|
+
/** GoogleSubscriptionRetentionOfferAccepted productId */
|
|
47106
|
+
productId?: (string|null);
|
|
47107
|
+
|
|
47108
|
+
/** GoogleSubscriptionRetentionOfferAccepted autoRenewalStatus */
|
|
47109
|
+
autoRenewalStatus?: (boolean|null);
|
|
47110
|
+
|
|
47111
|
+
/** GoogleSubscriptionRetentionOfferAccepted paymentState */
|
|
47112
|
+
paymentState?: (googlereceipt.GoogleSubscriptionPaymentState|null);
|
|
47113
|
+
|
|
47114
|
+
/** GoogleSubscriptionRetentionOfferAccepted freeTrialStartsAt */
|
|
47115
|
+
freeTrialStartsAt?: (number|Long|null);
|
|
47116
|
+
|
|
47117
|
+
/** GoogleSubscriptionRetentionOfferAccepted freeTrialEndsAt */
|
|
47118
|
+
freeTrialEndsAt?: (number|Long|null);
|
|
47119
|
+
|
|
47120
|
+
/** GoogleSubscriptionRetentionOfferAccepted retentionOfferId */
|
|
47121
|
+
retentionOfferId?: (string|null);
|
|
47122
|
+
|
|
47123
|
+
/** GoogleSubscriptionRetentionOfferAccepted transitionState */
|
|
47124
|
+
transitionState?: (string|null);
|
|
47125
|
+
|
|
47126
|
+
/** GoogleSubscriptionRetentionOfferAccepted transitionEffectiveTime */
|
|
47127
|
+
transitionEffectiveTime?: (number|Long|null);
|
|
47128
|
+
}
|
|
47129
|
+
|
|
47130
|
+
/** Represents a GoogleSubscriptionRetentionOfferAccepted. */
|
|
47131
|
+
export class GoogleSubscriptionRetentionOfferAccepted implements IGoogleSubscriptionRetentionOfferAccepted {
|
|
47132
|
+
|
|
47133
|
+
/**
|
|
47134
|
+
* Constructs a new GoogleSubscriptionRetentionOfferAccepted.
|
|
47135
|
+
* @param [properties] Properties to set
|
|
47136
|
+
*/
|
|
47137
|
+
constructor(properties?: IGoogleSubscriptionRetentionOfferAccepted);
|
|
47138
|
+
|
|
47139
|
+
/** GoogleSubscriptionRetentionOfferAccepted id. */
|
|
47140
|
+
public id: string;
|
|
47141
|
+
|
|
47142
|
+
/** GoogleSubscriptionRetentionOfferAccepted endsAt. */
|
|
47143
|
+
public endsAt: (number|Long);
|
|
47144
|
+
|
|
47145
|
+
/** GoogleSubscriptionRetentionOfferAccepted startsAt. */
|
|
47146
|
+
public startsAt: (number|Long);
|
|
47147
|
+
|
|
47148
|
+
/** GoogleSubscriptionRetentionOfferAccepted hsUserId. */
|
|
47149
|
+
public hsUserId: string;
|
|
47150
|
+
|
|
47151
|
+
/** GoogleSubscriptionRetentionOfferAccepted productId. */
|
|
47152
|
+
public productId: string;
|
|
47153
|
+
|
|
47154
|
+
/** GoogleSubscriptionRetentionOfferAccepted autoRenewalStatus. */
|
|
47155
|
+
public autoRenewalStatus: boolean;
|
|
47156
|
+
|
|
47157
|
+
/** GoogleSubscriptionRetentionOfferAccepted paymentState. */
|
|
47158
|
+
public paymentState: googlereceipt.GoogleSubscriptionPaymentState;
|
|
47159
|
+
|
|
47160
|
+
/** GoogleSubscriptionRetentionOfferAccepted freeTrialStartsAt. */
|
|
47161
|
+
public freeTrialStartsAt: (number|Long);
|
|
47162
|
+
|
|
47163
|
+
/** GoogleSubscriptionRetentionOfferAccepted freeTrialEndsAt. */
|
|
47164
|
+
public freeTrialEndsAt: (number|Long);
|
|
47165
|
+
|
|
47166
|
+
/** GoogleSubscriptionRetentionOfferAccepted retentionOfferId. */
|
|
47167
|
+
public retentionOfferId: string;
|
|
47168
|
+
|
|
47169
|
+
/** GoogleSubscriptionRetentionOfferAccepted transitionState. */
|
|
47170
|
+
public transitionState: string;
|
|
47171
|
+
|
|
47172
|
+
/** GoogleSubscriptionRetentionOfferAccepted transitionEffectiveTime. */
|
|
47173
|
+
public transitionEffectiveTime: (number|Long);
|
|
47174
|
+
|
|
47175
|
+
/**
|
|
47176
|
+
* Creates a new GoogleSubscriptionRetentionOfferAccepted instance using the specified properties.
|
|
47177
|
+
* @param [properties] Properties to set
|
|
47178
|
+
* @returns GoogleSubscriptionRetentionOfferAccepted instance
|
|
47179
|
+
*/
|
|
47180
|
+
public static create(properties?: IGoogleSubscriptionRetentionOfferAccepted): GoogleSubscriptionRetentionOfferAccepted;
|
|
47181
|
+
|
|
47182
|
+
/**
|
|
47183
|
+
* Encodes the specified GoogleSubscriptionRetentionOfferAccepted message. Does not implicitly {@link GoogleSubscriptionRetentionOfferAccepted.verify|verify} messages.
|
|
47184
|
+
* @param message GoogleSubscriptionRetentionOfferAccepted message or plain object to encode
|
|
47185
|
+
* @param [writer] Writer to encode to
|
|
47186
|
+
* @returns Writer
|
|
47187
|
+
*/
|
|
47188
|
+
public static encode(message: IGoogleSubscriptionRetentionOfferAccepted, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
47189
|
+
|
|
47190
|
+
/**
|
|
47191
|
+
* Encodes the specified GoogleSubscriptionRetentionOfferAccepted message, length delimited. Does not implicitly {@link GoogleSubscriptionRetentionOfferAccepted.verify|verify} messages.
|
|
47192
|
+
* @param message GoogleSubscriptionRetentionOfferAccepted message or plain object to encode
|
|
47193
|
+
* @param [writer] Writer to encode to
|
|
47194
|
+
* @returns Writer
|
|
47195
|
+
*/
|
|
47196
|
+
public static encodeDelimited(message: IGoogleSubscriptionRetentionOfferAccepted, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
47197
|
+
|
|
47198
|
+
/**
|
|
47199
|
+
* Decodes a GoogleSubscriptionRetentionOfferAccepted message from the specified reader or buffer.
|
|
47200
|
+
* @param reader Reader or buffer to decode from
|
|
47201
|
+
* @param [length] Message length if known beforehand
|
|
47202
|
+
* @returns GoogleSubscriptionRetentionOfferAccepted
|
|
47203
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
47204
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
47205
|
+
*/
|
|
47206
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GoogleSubscriptionRetentionOfferAccepted;
|
|
47207
|
+
|
|
47208
|
+
/**
|
|
47209
|
+
* Decodes a GoogleSubscriptionRetentionOfferAccepted message from the specified reader or buffer, length delimited.
|
|
47210
|
+
* @param reader Reader or buffer to decode from
|
|
47211
|
+
* @returns GoogleSubscriptionRetentionOfferAccepted
|
|
47212
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
47213
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
47214
|
+
*/
|
|
47215
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GoogleSubscriptionRetentionOfferAccepted;
|
|
47216
|
+
|
|
47217
|
+
/**
|
|
47218
|
+
* Verifies a GoogleSubscriptionRetentionOfferAccepted message.
|
|
47219
|
+
* @param message Plain object to verify
|
|
47220
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
47221
|
+
*/
|
|
47222
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
47223
|
+
|
|
47224
|
+
/**
|
|
47225
|
+
* Creates a GoogleSubscriptionRetentionOfferAccepted message from a plain object. Also converts values to their respective internal types.
|
|
47226
|
+
* @param object Plain object
|
|
47227
|
+
* @returns GoogleSubscriptionRetentionOfferAccepted
|
|
47228
|
+
*/
|
|
47229
|
+
public static fromObject(object: { [k: string]: any }): GoogleSubscriptionRetentionOfferAccepted;
|
|
47230
|
+
|
|
47231
|
+
/**
|
|
47232
|
+
* Creates a plain object from a GoogleSubscriptionRetentionOfferAccepted message. Also converts values to other types if specified.
|
|
47233
|
+
* @param message GoogleSubscriptionRetentionOfferAccepted
|
|
47234
|
+
* @param [options] Conversion options
|
|
47235
|
+
* @returns Plain object
|
|
47236
|
+
*/
|
|
47237
|
+
public static toObject(message: GoogleSubscriptionRetentionOfferAccepted, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
47238
|
+
|
|
47239
|
+
/**
|
|
47240
|
+
* Converts this GoogleSubscriptionRetentionOfferAccepted to JSON.
|
|
47241
|
+
* @returns JSON object
|
|
47242
|
+
*/
|
|
47243
|
+
public toJSON(): { [k: string]: any };
|
|
47244
|
+
}
|
|
47245
|
+
|
|
47075
47246
|
/** NoteType enum. */
|
|
47076
47247
|
export enum NoteType {
|
|
47077
47248
|
NOTE_TYPE_UNKNOWN = 0,
|
|
@@ -50016,6 +50187,18 @@ export interface IPHQAssessmentAssigned {
|
|
|
50016
50187
|
|
|
50017
50188
|
/** PHQAssessmentAssigned assignmentId */
|
|
50018
50189
|
assignmentId?: (number|Long|null);
|
|
50190
|
+
|
|
50191
|
+
/** PHQAssessmentAssigned activityId */
|
|
50192
|
+
activityId?: (string|null);
|
|
50193
|
+
|
|
50194
|
+
/** PHQAssessmentAssigned targetAssessment */
|
|
50195
|
+
targetAssessment?: (string|null);
|
|
50196
|
+
|
|
50197
|
+
/** PHQAssessmentAssigned sourceAssessment */
|
|
50198
|
+
sourceAssessment?: (string|null);
|
|
50199
|
+
|
|
50200
|
+
/** PHQAssessmentAssigned isFollowup */
|
|
50201
|
+
isFollowup?: (boolean|null);
|
|
50019
50202
|
}
|
|
50020
50203
|
|
|
50021
50204
|
/** Represents a PHQAssessmentAssigned. */
|
|
@@ -50039,6 +50222,18 @@ export class PHQAssessmentAssigned implements IPHQAssessmentAssigned {
|
|
|
50039
50222
|
/** PHQAssessmentAssigned assignmentId. */
|
|
50040
50223
|
public assignmentId: (number|Long);
|
|
50041
50224
|
|
|
50225
|
+
/** PHQAssessmentAssigned activityId. */
|
|
50226
|
+
public activityId: string;
|
|
50227
|
+
|
|
50228
|
+
/** PHQAssessmentAssigned targetAssessment. */
|
|
50229
|
+
public targetAssessment: string;
|
|
50230
|
+
|
|
50231
|
+
/** PHQAssessmentAssigned sourceAssessment. */
|
|
50232
|
+
public sourceAssessment: string;
|
|
50233
|
+
|
|
50234
|
+
/** PHQAssessmentAssigned isFollowup. */
|
|
50235
|
+
public isFollowup: boolean;
|
|
50236
|
+
|
|
50042
50237
|
/**
|
|
50043
50238
|
* Creates a new PHQAssessmentAssigned instance using the specified properties.
|
|
50044
50239
|
* @param [properties] Properties to set
|
|
@@ -53340,6 +53535,18 @@ export interface IPSSAssessmentAssigned {
|
|
|
53340
53535
|
|
|
53341
53536
|
/** PSSAssessmentAssigned assignmentId */
|
|
53342
53537
|
assignmentId?: (number|Long|null);
|
|
53538
|
+
|
|
53539
|
+
/** PSSAssessmentAssigned activityId */
|
|
53540
|
+
activityId?: (string|null);
|
|
53541
|
+
|
|
53542
|
+
/** PSSAssessmentAssigned targetAssessment */
|
|
53543
|
+
targetAssessment?: (string|null);
|
|
53544
|
+
|
|
53545
|
+
/** PSSAssessmentAssigned sourceAssessment */
|
|
53546
|
+
sourceAssessment?: (string|null);
|
|
53547
|
+
|
|
53548
|
+
/** PSSAssessmentAssigned isFollowup */
|
|
53549
|
+
isFollowup?: (boolean|null);
|
|
53343
53550
|
}
|
|
53344
53551
|
|
|
53345
53552
|
/** Represents a PSSAssessmentAssigned. */
|
|
@@ -53363,6 +53570,18 @@ export class PSSAssessmentAssigned implements IPSSAssessmentAssigned {
|
|
|
53363
53570
|
/** PSSAssessmentAssigned assignmentId. */
|
|
53364
53571
|
public assignmentId: (number|Long);
|
|
53365
53572
|
|
|
53573
|
+
/** PSSAssessmentAssigned activityId. */
|
|
53574
|
+
public activityId: string;
|
|
53575
|
+
|
|
53576
|
+
/** PSSAssessmentAssigned targetAssessment. */
|
|
53577
|
+
public targetAssessment: string;
|
|
53578
|
+
|
|
53579
|
+
/** PSSAssessmentAssigned sourceAssessment. */
|
|
53580
|
+
public sourceAssessment: string;
|
|
53581
|
+
|
|
53582
|
+
/** PSSAssessmentAssigned isFollowup. */
|
|
53583
|
+
public isFollowup: boolean;
|
|
53584
|
+
|
|
53366
53585
|
/**
|
|
53367
53586
|
* Creates a new PSSAssessmentAssigned instance using the specified properties.
|
|
53368
53587
|
* @param [properties] Properties to set
|
package/lib/index.js
CHANGED
|
@@ -87672,6 +87672,26 @@ $root.SleepcastDeleted = (function() {
|
|
|
87672
87672
|
return SleepcastDeleted;
|
|
87673
87673
|
})();
|
|
87674
87674
|
|
|
87675
|
+
/**
|
|
87676
|
+
* CurrentAssessmentPath enum.
|
|
87677
|
+
* @name CurrentAssessmentPath
|
|
87678
|
+
* @enum {string}
|
|
87679
|
+
* @property {number} CURRENT_ASSESSMENT_PATH_UNKNOWN=0 CURRENT_ASSESSMENT_PATH_UNKNOWN value
|
|
87680
|
+
* @property {number} CURRENT_ASSESSMENT_PATH_NONE=1 CURRENT_ASSESSMENT_PATH_NONE value
|
|
87681
|
+
* @property {number} CURRENT_ASSESSMENT_PATH_ACTIVE_CLINICAL=2 CURRENT_ASSESSMENT_PATH_ACTIVE_CLINICAL value
|
|
87682
|
+
* @property {number} CURRENT_ASSESSMENT_PATH_INACTIVE_CLINICAL=3 CURRENT_ASSESSMENT_PATH_INACTIVE_CLINICAL value
|
|
87683
|
+
* @property {number} CURRENT_ASSESSMENT_PATH_SUB_CLINICAL=4 CURRENT_ASSESSMENT_PATH_SUB_CLINICAL value
|
|
87684
|
+
*/
|
|
87685
|
+
$root.CurrentAssessmentPath = (function() {
|
|
87686
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
87687
|
+
values[valuesById[0] = "CURRENT_ASSESSMENT_PATH_UNKNOWN"] = 0;
|
|
87688
|
+
values[valuesById[1] = "CURRENT_ASSESSMENT_PATH_NONE"] = 1;
|
|
87689
|
+
values[valuesById[2] = "CURRENT_ASSESSMENT_PATH_ACTIVE_CLINICAL"] = 2;
|
|
87690
|
+
values[valuesById[3] = "CURRENT_ASSESSMENT_PATH_INACTIVE_CLINICAL"] = 3;
|
|
87691
|
+
values[valuesById[4] = "CURRENT_ASSESSMENT_PATH_SUB_CLINICAL"] = 4;
|
|
87692
|
+
return values;
|
|
87693
|
+
})();
|
|
87694
|
+
|
|
87675
87695
|
$root.SurveyResponse = (function() {
|
|
87676
87696
|
|
|
87677
87697
|
/**
|
|
@@ -87689,6 +87709,7 @@ $root.SurveyResponse = (function() {
|
|
|
87689
87709
|
* @property {string|null} [assignedAtIsoDate] SurveyResponse assignedAtIsoDate
|
|
87690
87710
|
* @property {number|Long|null} [assignmentId] SurveyResponse assignmentId
|
|
87691
87711
|
* @property {number|null} [totalScore] SurveyResponse totalScore
|
|
87712
|
+
* @property {CurrentAssessmentPath|null} [path] SurveyResponse path
|
|
87692
87713
|
*/
|
|
87693
87714
|
|
|
87694
87715
|
/**
|
|
@@ -87795,6 +87816,14 @@ $root.SurveyResponse = (function() {
|
|
|
87795
87816
|
*/
|
|
87796
87817
|
SurveyResponse.prototype.totalScore = 0;
|
|
87797
87818
|
|
|
87819
|
+
/**
|
|
87820
|
+
* SurveyResponse path.
|
|
87821
|
+
* @member {CurrentAssessmentPath} path
|
|
87822
|
+
* @memberof SurveyResponse
|
|
87823
|
+
* @instance
|
|
87824
|
+
*/
|
|
87825
|
+
SurveyResponse.prototype.path = 0;
|
|
87826
|
+
|
|
87798
87827
|
/**
|
|
87799
87828
|
* Creates a new SurveyResponse instance using the specified properties.
|
|
87800
87829
|
* @function create
|
|
@@ -87842,6 +87871,8 @@ $root.SurveyResponse = (function() {
|
|
|
87842
87871
|
writer.uint32(/* id 10, wireType 0 =*/80).int64(message.assignmentId);
|
|
87843
87872
|
if (message.totalScore != null && message.hasOwnProperty("totalScore"))
|
|
87844
87873
|
writer.uint32(/* id 11, wireType 0 =*/88).uint32(message.totalScore);
|
|
87874
|
+
if (message.path != null && message.hasOwnProperty("path"))
|
|
87875
|
+
writer.uint32(/* id 12, wireType 0 =*/96).int32(message.path);
|
|
87845
87876
|
return writer;
|
|
87846
87877
|
};
|
|
87847
87878
|
|
|
@@ -87911,6 +87942,9 @@ $root.SurveyResponse = (function() {
|
|
|
87911
87942
|
case 11:
|
|
87912
87943
|
message.totalScore = reader.uint32();
|
|
87913
87944
|
break;
|
|
87945
|
+
case 12:
|
|
87946
|
+
message.path = reader.int32();
|
|
87947
|
+
break;
|
|
87914
87948
|
default:
|
|
87915
87949
|
reader.skipType(tag & 7);
|
|
87916
87950
|
break;
|
|
@@ -87985,6 +88019,17 @@ $root.SurveyResponse = (function() {
|
|
|
87985
88019
|
if (message.totalScore != null && message.hasOwnProperty("totalScore"))
|
|
87986
88020
|
if (!$util.isInteger(message.totalScore))
|
|
87987
88021
|
return "totalScore: integer expected";
|
|
88022
|
+
if (message.path != null && message.hasOwnProperty("path"))
|
|
88023
|
+
switch (message.path) {
|
|
88024
|
+
default:
|
|
88025
|
+
return "path: enum value expected";
|
|
88026
|
+
case 0:
|
|
88027
|
+
case 1:
|
|
88028
|
+
case 2:
|
|
88029
|
+
case 3:
|
|
88030
|
+
case 4:
|
|
88031
|
+
break;
|
|
88032
|
+
}
|
|
87988
88033
|
return null;
|
|
87989
88034
|
};
|
|
87990
88035
|
|
|
@@ -88037,6 +88082,28 @@ $root.SurveyResponse = (function() {
|
|
|
88037
88082
|
message.assignmentId = new $util.LongBits(object.assignmentId.low >>> 0, object.assignmentId.high >>> 0).toNumber();
|
|
88038
88083
|
if (object.totalScore != null)
|
|
88039
88084
|
message.totalScore = object.totalScore >>> 0;
|
|
88085
|
+
switch (object.path) {
|
|
88086
|
+
case "CURRENT_ASSESSMENT_PATH_UNKNOWN":
|
|
88087
|
+
case 0:
|
|
88088
|
+
message.path = 0;
|
|
88089
|
+
break;
|
|
88090
|
+
case "CURRENT_ASSESSMENT_PATH_NONE":
|
|
88091
|
+
case 1:
|
|
88092
|
+
message.path = 1;
|
|
88093
|
+
break;
|
|
88094
|
+
case "CURRENT_ASSESSMENT_PATH_ACTIVE_CLINICAL":
|
|
88095
|
+
case 2:
|
|
88096
|
+
message.path = 2;
|
|
88097
|
+
break;
|
|
88098
|
+
case "CURRENT_ASSESSMENT_PATH_INACTIVE_CLINICAL":
|
|
88099
|
+
case 3:
|
|
88100
|
+
message.path = 3;
|
|
88101
|
+
break;
|
|
88102
|
+
case "CURRENT_ASSESSMENT_PATH_SUB_CLINICAL":
|
|
88103
|
+
case 4:
|
|
88104
|
+
message.path = 4;
|
|
88105
|
+
break;
|
|
88106
|
+
}
|
|
88040
88107
|
return message;
|
|
88041
88108
|
};
|
|
88042
88109
|
|
|
@@ -88070,6 +88137,7 @@ $root.SurveyResponse = (function() {
|
|
|
88070
88137
|
} else
|
|
88071
88138
|
object.assignmentId = options.longs === String ? "0" : 0;
|
|
88072
88139
|
object.totalScore = 0;
|
|
88140
|
+
object.path = options.enums === String ? "CURRENT_ASSESSMENT_PATH_UNKNOWN" : 0;
|
|
88073
88141
|
}
|
|
88074
88142
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
88075
88143
|
object.userId = message.userId;
|
|
@@ -88099,6 +88167,8 @@ $root.SurveyResponse = (function() {
|
|
|
88099
88167
|
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;
|
|
88100
88168
|
if (message.totalScore != null && message.hasOwnProperty("totalScore"))
|
|
88101
88169
|
object.totalScore = message.totalScore;
|
|
88170
|
+
if (message.path != null && message.hasOwnProperty("path"))
|
|
88171
|
+
object.path = options.enums === String ? $root.CurrentAssessmentPath[message.path] : message.path;
|
|
88102
88172
|
return object;
|
|
88103
88173
|
};
|
|
88104
88174
|
|
|
@@ -134644,6 +134714,534 @@ $root.GoogleSubscriptionExpired = (function() {
|
|
|
134644
134714
|
return GoogleSubscriptionExpired;
|
|
134645
134715
|
})();
|
|
134646
134716
|
|
|
134717
|
+
$root.GoogleSubscriptionRetentionOfferAccepted = (function() {
|
|
134718
|
+
|
|
134719
|
+
/**
|
|
134720
|
+
* Properties of a GoogleSubscriptionRetentionOfferAccepted.
|
|
134721
|
+
* @name IGoogleSubscriptionRetentionOfferAccepted
|
|
134722
|
+
* @interface IGoogleSubscriptionRetentionOfferAccepted
|
|
134723
|
+
* @property {string|null} [id] GoogleSubscriptionRetentionOfferAccepted id
|
|
134724
|
+
* @property {number|Long|null} [endsAt] GoogleSubscriptionRetentionOfferAccepted endsAt
|
|
134725
|
+
* @property {number|Long|null} [startsAt] GoogleSubscriptionRetentionOfferAccepted startsAt
|
|
134726
|
+
* @property {string|null} [hsUserId] GoogleSubscriptionRetentionOfferAccepted hsUserId
|
|
134727
|
+
* @property {string|null} [productId] GoogleSubscriptionRetentionOfferAccepted productId
|
|
134728
|
+
* @property {boolean|null} [autoRenewalStatus] GoogleSubscriptionRetentionOfferAccepted autoRenewalStatus
|
|
134729
|
+
* @property {googlereceipt.GoogleSubscriptionPaymentState|null} [paymentState] GoogleSubscriptionRetentionOfferAccepted paymentState
|
|
134730
|
+
* @property {number|Long|null} [freeTrialStartsAt] GoogleSubscriptionRetentionOfferAccepted freeTrialStartsAt
|
|
134731
|
+
* @property {number|Long|null} [freeTrialEndsAt] GoogleSubscriptionRetentionOfferAccepted freeTrialEndsAt
|
|
134732
|
+
* @property {string|null} [retentionOfferId] GoogleSubscriptionRetentionOfferAccepted retentionOfferId
|
|
134733
|
+
* @property {string|null} [transitionState] GoogleSubscriptionRetentionOfferAccepted transitionState
|
|
134734
|
+
* @property {number|Long|null} [transitionEffectiveTime] GoogleSubscriptionRetentionOfferAccepted transitionEffectiveTime
|
|
134735
|
+
*/
|
|
134736
|
+
|
|
134737
|
+
/**
|
|
134738
|
+
* Constructs a new GoogleSubscriptionRetentionOfferAccepted.
|
|
134739
|
+
* @name GoogleSubscriptionRetentionOfferAccepted
|
|
134740
|
+
* @classdesc Represents a GoogleSubscriptionRetentionOfferAccepted.
|
|
134741
|
+
* @implements IGoogleSubscriptionRetentionOfferAccepted
|
|
134742
|
+
* @constructor
|
|
134743
|
+
* @param {IGoogleSubscriptionRetentionOfferAccepted=} [properties] Properties to set
|
|
134744
|
+
*/
|
|
134745
|
+
function GoogleSubscriptionRetentionOfferAccepted(properties) {
|
|
134746
|
+
if (properties)
|
|
134747
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
134748
|
+
if (properties[keys[i]] != null)
|
|
134749
|
+
this[keys[i]] = properties[keys[i]];
|
|
134750
|
+
}
|
|
134751
|
+
|
|
134752
|
+
/**
|
|
134753
|
+
* GoogleSubscriptionRetentionOfferAccepted id.
|
|
134754
|
+
* @member {string} id
|
|
134755
|
+
* @memberof GoogleSubscriptionRetentionOfferAccepted
|
|
134756
|
+
* @instance
|
|
134757
|
+
*/
|
|
134758
|
+
GoogleSubscriptionRetentionOfferAccepted.prototype.id = "";
|
|
134759
|
+
|
|
134760
|
+
/**
|
|
134761
|
+
* GoogleSubscriptionRetentionOfferAccepted endsAt.
|
|
134762
|
+
* @member {number|Long} endsAt
|
|
134763
|
+
* @memberof GoogleSubscriptionRetentionOfferAccepted
|
|
134764
|
+
* @instance
|
|
134765
|
+
*/
|
|
134766
|
+
GoogleSubscriptionRetentionOfferAccepted.prototype.endsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
134767
|
+
|
|
134768
|
+
/**
|
|
134769
|
+
* GoogleSubscriptionRetentionOfferAccepted startsAt.
|
|
134770
|
+
* @member {number|Long} startsAt
|
|
134771
|
+
* @memberof GoogleSubscriptionRetentionOfferAccepted
|
|
134772
|
+
* @instance
|
|
134773
|
+
*/
|
|
134774
|
+
GoogleSubscriptionRetentionOfferAccepted.prototype.startsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
134775
|
+
|
|
134776
|
+
/**
|
|
134777
|
+
* GoogleSubscriptionRetentionOfferAccepted hsUserId.
|
|
134778
|
+
* @member {string} hsUserId
|
|
134779
|
+
* @memberof GoogleSubscriptionRetentionOfferAccepted
|
|
134780
|
+
* @instance
|
|
134781
|
+
*/
|
|
134782
|
+
GoogleSubscriptionRetentionOfferAccepted.prototype.hsUserId = "";
|
|
134783
|
+
|
|
134784
|
+
/**
|
|
134785
|
+
* GoogleSubscriptionRetentionOfferAccepted productId.
|
|
134786
|
+
* @member {string} productId
|
|
134787
|
+
* @memberof GoogleSubscriptionRetentionOfferAccepted
|
|
134788
|
+
* @instance
|
|
134789
|
+
*/
|
|
134790
|
+
GoogleSubscriptionRetentionOfferAccepted.prototype.productId = "";
|
|
134791
|
+
|
|
134792
|
+
/**
|
|
134793
|
+
* GoogleSubscriptionRetentionOfferAccepted autoRenewalStatus.
|
|
134794
|
+
* @member {boolean} autoRenewalStatus
|
|
134795
|
+
* @memberof GoogleSubscriptionRetentionOfferAccepted
|
|
134796
|
+
* @instance
|
|
134797
|
+
*/
|
|
134798
|
+
GoogleSubscriptionRetentionOfferAccepted.prototype.autoRenewalStatus = false;
|
|
134799
|
+
|
|
134800
|
+
/**
|
|
134801
|
+
* GoogleSubscriptionRetentionOfferAccepted paymentState.
|
|
134802
|
+
* @member {googlereceipt.GoogleSubscriptionPaymentState} paymentState
|
|
134803
|
+
* @memberof GoogleSubscriptionRetentionOfferAccepted
|
|
134804
|
+
* @instance
|
|
134805
|
+
*/
|
|
134806
|
+
GoogleSubscriptionRetentionOfferAccepted.prototype.paymentState = 0;
|
|
134807
|
+
|
|
134808
|
+
/**
|
|
134809
|
+
* GoogleSubscriptionRetentionOfferAccepted freeTrialStartsAt.
|
|
134810
|
+
* @member {number|Long} freeTrialStartsAt
|
|
134811
|
+
* @memberof GoogleSubscriptionRetentionOfferAccepted
|
|
134812
|
+
* @instance
|
|
134813
|
+
*/
|
|
134814
|
+
GoogleSubscriptionRetentionOfferAccepted.prototype.freeTrialStartsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
134815
|
+
|
|
134816
|
+
/**
|
|
134817
|
+
* GoogleSubscriptionRetentionOfferAccepted freeTrialEndsAt.
|
|
134818
|
+
* @member {number|Long} freeTrialEndsAt
|
|
134819
|
+
* @memberof GoogleSubscriptionRetentionOfferAccepted
|
|
134820
|
+
* @instance
|
|
134821
|
+
*/
|
|
134822
|
+
GoogleSubscriptionRetentionOfferAccepted.prototype.freeTrialEndsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
134823
|
+
|
|
134824
|
+
/**
|
|
134825
|
+
* GoogleSubscriptionRetentionOfferAccepted retentionOfferId.
|
|
134826
|
+
* @member {string} retentionOfferId
|
|
134827
|
+
* @memberof GoogleSubscriptionRetentionOfferAccepted
|
|
134828
|
+
* @instance
|
|
134829
|
+
*/
|
|
134830
|
+
GoogleSubscriptionRetentionOfferAccepted.prototype.retentionOfferId = "";
|
|
134831
|
+
|
|
134832
|
+
/**
|
|
134833
|
+
* GoogleSubscriptionRetentionOfferAccepted transitionState.
|
|
134834
|
+
* @member {string} transitionState
|
|
134835
|
+
* @memberof GoogleSubscriptionRetentionOfferAccepted
|
|
134836
|
+
* @instance
|
|
134837
|
+
*/
|
|
134838
|
+
GoogleSubscriptionRetentionOfferAccepted.prototype.transitionState = "";
|
|
134839
|
+
|
|
134840
|
+
/**
|
|
134841
|
+
* GoogleSubscriptionRetentionOfferAccepted transitionEffectiveTime.
|
|
134842
|
+
* @member {number|Long} transitionEffectiveTime
|
|
134843
|
+
* @memberof GoogleSubscriptionRetentionOfferAccepted
|
|
134844
|
+
* @instance
|
|
134845
|
+
*/
|
|
134846
|
+
GoogleSubscriptionRetentionOfferAccepted.prototype.transitionEffectiveTime = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
134847
|
+
|
|
134848
|
+
/**
|
|
134849
|
+
* Creates a new GoogleSubscriptionRetentionOfferAccepted instance using the specified properties.
|
|
134850
|
+
* @function create
|
|
134851
|
+
* @memberof GoogleSubscriptionRetentionOfferAccepted
|
|
134852
|
+
* @static
|
|
134853
|
+
* @param {IGoogleSubscriptionRetentionOfferAccepted=} [properties] Properties to set
|
|
134854
|
+
* @returns {GoogleSubscriptionRetentionOfferAccepted} GoogleSubscriptionRetentionOfferAccepted instance
|
|
134855
|
+
*/
|
|
134856
|
+
GoogleSubscriptionRetentionOfferAccepted.create = function create(properties) {
|
|
134857
|
+
return new GoogleSubscriptionRetentionOfferAccepted(properties);
|
|
134858
|
+
};
|
|
134859
|
+
|
|
134860
|
+
/**
|
|
134861
|
+
* Encodes the specified GoogleSubscriptionRetentionOfferAccepted message. Does not implicitly {@link GoogleSubscriptionRetentionOfferAccepted.verify|verify} messages.
|
|
134862
|
+
* @function encode
|
|
134863
|
+
* @memberof GoogleSubscriptionRetentionOfferAccepted
|
|
134864
|
+
* @static
|
|
134865
|
+
* @param {IGoogleSubscriptionRetentionOfferAccepted} message GoogleSubscriptionRetentionOfferAccepted message or plain object to encode
|
|
134866
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
134867
|
+
* @returns {$protobuf.Writer} Writer
|
|
134868
|
+
*/
|
|
134869
|
+
GoogleSubscriptionRetentionOfferAccepted.encode = function encode(message, writer) {
|
|
134870
|
+
if (!writer)
|
|
134871
|
+
writer = $Writer.create();
|
|
134872
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
134873
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
|
|
134874
|
+
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
134875
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.endsAt);
|
|
134876
|
+
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
134877
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.startsAt);
|
|
134878
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
134879
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.hsUserId);
|
|
134880
|
+
if (message.productId != null && message.hasOwnProperty("productId"))
|
|
134881
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.productId);
|
|
134882
|
+
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
134883
|
+
writer.uint32(/* id 6, wireType 0 =*/48).bool(message.autoRenewalStatus);
|
|
134884
|
+
if (message.paymentState != null && message.hasOwnProperty("paymentState"))
|
|
134885
|
+
writer.uint32(/* id 7, wireType 0 =*/56).int32(message.paymentState);
|
|
134886
|
+
if (message.freeTrialStartsAt != null && message.hasOwnProperty("freeTrialStartsAt"))
|
|
134887
|
+
writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.freeTrialStartsAt);
|
|
134888
|
+
if (message.freeTrialEndsAt != null && message.hasOwnProperty("freeTrialEndsAt"))
|
|
134889
|
+
writer.uint32(/* id 9, wireType 0 =*/72).uint64(message.freeTrialEndsAt);
|
|
134890
|
+
if (message.retentionOfferId != null && message.hasOwnProperty("retentionOfferId"))
|
|
134891
|
+
writer.uint32(/* id 10, wireType 2 =*/82).string(message.retentionOfferId);
|
|
134892
|
+
if (message.transitionState != null && message.hasOwnProperty("transitionState"))
|
|
134893
|
+
writer.uint32(/* id 11, wireType 2 =*/90).string(message.transitionState);
|
|
134894
|
+
if (message.transitionEffectiveTime != null && message.hasOwnProperty("transitionEffectiveTime"))
|
|
134895
|
+
writer.uint32(/* id 12, wireType 0 =*/96).uint64(message.transitionEffectiveTime);
|
|
134896
|
+
return writer;
|
|
134897
|
+
};
|
|
134898
|
+
|
|
134899
|
+
/**
|
|
134900
|
+
* Encodes the specified GoogleSubscriptionRetentionOfferAccepted message, length delimited. Does not implicitly {@link GoogleSubscriptionRetentionOfferAccepted.verify|verify} messages.
|
|
134901
|
+
* @function encodeDelimited
|
|
134902
|
+
* @memberof GoogleSubscriptionRetentionOfferAccepted
|
|
134903
|
+
* @static
|
|
134904
|
+
* @param {IGoogleSubscriptionRetentionOfferAccepted} message GoogleSubscriptionRetentionOfferAccepted message or plain object to encode
|
|
134905
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
134906
|
+
* @returns {$protobuf.Writer} Writer
|
|
134907
|
+
*/
|
|
134908
|
+
GoogleSubscriptionRetentionOfferAccepted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
134909
|
+
return this.encode(message, writer).ldelim();
|
|
134910
|
+
};
|
|
134911
|
+
|
|
134912
|
+
/**
|
|
134913
|
+
* Decodes a GoogleSubscriptionRetentionOfferAccepted message from the specified reader or buffer.
|
|
134914
|
+
* @function decode
|
|
134915
|
+
* @memberof GoogleSubscriptionRetentionOfferAccepted
|
|
134916
|
+
* @static
|
|
134917
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
134918
|
+
* @param {number} [length] Message length if known beforehand
|
|
134919
|
+
* @returns {GoogleSubscriptionRetentionOfferAccepted} GoogleSubscriptionRetentionOfferAccepted
|
|
134920
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
134921
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
134922
|
+
*/
|
|
134923
|
+
GoogleSubscriptionRetentionOfferAccepted.decode = function decode(reader, length) {
|
|
134924
|
+
if (!(reader instanceof $Reader))
|
|
134925
|
+
reader = $Reader.create(reader);
|
|
134926
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.GoogleSubscriptionRetentionOfferAccepted();
|
|
134927
|
+
while (reader.pos < end) {
|
|
134928
|
+
var tag = reader.uint32();
|
|
134929
|
+
switch (tag >>> 3) {
|
|
134930
|
+
case 1:
|
|
134931
|
+
message.id = reader.string();
|
|
134932
|
+
break;
|
|
134933
|
+
case 2:
|
|
134934
|
+
message.endsAt = reader.uint64();
|
|
134935
|
+
break;
|
|
134936
|
+
case 3:
|
|
134937
|
+
message.startsAt = reader.uint64();
|
|
134938
|
+
break;
|
|
134939
|
+
case 4:
|
|
134940
|
+
message.hsUserId = reader.string();
|
|
134941
|
+
break;
|
|
134942
|
+
case 5:
|
|
134943
|
+
message.productId = reader.string();
|
|
134944
|
+
break;
|
|
134945
|
+
case 6:
|
|
134946
|
+
message.autoRenewalStatus = reader.bool();
|
|
134947
|
+
break;
|
|
134948
|
+
case 7:
|
|
134949
|
+
message.paymentState = reader.int32();
|
|
134950
|
+
break;
|
|
134951
|
+
case 8:
|
|
134952
|
+
message.freeTrialStartsAt = reader.uint64();
|
|
134953
|
+
break;
|
|
134954
|
+
case 9:
|
|
134955
|
+
message.freeTrialEndsAt = reader.uint64();
|
|
134956
|
+
break;
|
|
134957
|
+
case 10:
|
|
134958
|
+
message.retentionOfferId = reader.string();
|
|
134959
|
+
break;
|
|
134960
|
+
case 11:
|
|
134961
|
+
message.transitionState = reader.string();
|
|
134962
|
+
break;
|
|
134963
|
+
case 12:
|
|
134964
|
+
message.transitionEffectiveTime = reader.uint64();
|
|
134965
|
+
break;
|
|
134966
|
+
default:
|
|
134967
|
+
reader.skipType(tag & 7);
|
|
134968
|
+
break;
|
|
134969
|
+
}
|
|
134970
|
+
}
|
|
134971
|
+
return message;
|
|
134972
|
+
};
|
|
134973
|
+
|
|
134974
|
+
/**
|
|
134975
|
+
* Decodes a GoogleSubscriptionRetentionOfferAccepted message from the specified reader or buffer, length delimited.
|
|
134976
|
+
* @function decodeDelimited
|
|
134977
|
+
* @memberof GoogleSubscriptionRetentionOfferAccepted
|
|
134978
|
+
* @static
|
|
134979
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
134980
|
+
* @returns {GoogleSubscriptionRetentionOfferAccepted} GoogleSubscriptionRetentionOfferAccepted
|
|
134981
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
134982
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
134983
|
+
*/
|
|
134984
|
+
GoogleSubscriptionRetentionOfferAccepted.decodeDelimited = function decodeDelimited(reader) {
|
|
134985
|
+
if (!(reader instanceof $Reader))
|
|
134986
|
+
reader = new $Reader(reader);
|
|
134987
|
+
return this.decode(reader, reader.uint32());
|
|
134988
|
+
};
|
|
134989
|
+
|
|
134990
|
+
/**
|
|
134991
|
+
* Verifies a GoogleSubscriptionRetentionOfferAccepted message.
|
|
134992
|
+
* @function verify
|
|
134993
|
+
* @memberof GoogleSubscriptionRetentionOfferAccepted
|
|
134994
|
+
* @static
|
|
134995
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
134996
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
134997
|
+
*/
|
|
134998
|
+
GoogleSubscriptionRetentionOfferAccepted.verify = function verify(message) {
|
|
134999
|
+
if (typeof message !== "object" || message === null)
|
|
135000
|
+
return "object expected";
|
|
135001
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
135002
|
+
if (!$util.isString(message.id))
|
|
135003
|
+
return "id: string expected";
|
|
135004
|
+
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
135005
|
+
if (!$util.isInteger(message.endsAt) && !(message.endsAt && $util.isInteger(message.endsAt.low) && $util.isInteger(message.endsAt.high)))
|
|
135006
|
+
return "endsAt: integer|Long expected";
|
|
135007
|
+
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
135008
|
+
if (!$util.isInteger(message.startsAt) && !(message.startsAt && $util.isInteger(message.startsAt.low) && $util.isInteger(message.startsAt.high)))
|
|
135009
|
+
return "startsAt: integer|Long expected";
|
|
135010
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
135011
|
+
if (!$util.isString(message.hsUserId))
|
|
135012
|
+
return "hsUserId: string expected";
|
|
135013
|
+
if (message.productId != null && message.hasOwnProperty("productId"))
|
|
135014
|
+
if (!$util.isString(message.productId))
|
|
135015
|
+
return "productId: string expected";
|
|
135016
|
+
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
135017
|
+
if (typeof message.autoRenewalStatus !== "boolean")
|
|
135018
|
+
return "autoRenewalStatus: boolean expected";
|
|
135019
|
+
if (message.paymentState != null && message.hasOwnProperty("paymentState"))
|
|
135020
|
+
switch (message.paymentState) {
|
|
135021
|
+
default:
|
|
135022
|
+
return "paymentState: enum value expected";
|
|
135023
|
+
case 0:
|
|
135024
|
+
case 1:
|
|
135025
|
+
case 2:
|
|
135026
|
+
case 3:
|
|
135027
|
+
case 4:
|
|
135028
|
+
break;
|
|
135029
|
+
}
|
|
135030
|
+
if (message.freeTrialStartsAt != null && message.hasOwnProperty("freeTrialStartsAt"))
|
|
135031
|
+
if (!$util.isInteger(message.freeTrialStartsAt) && !(message.freeTrialStartsAt && $util.isInteger(message.freeTrialStartsAt.low) && $util.isInteger(message.freeTrialStartsAt.high)))
|
|
135032
|
+
return "freeTrialStartsAt: integer|Long expected";
|
|
135033
|
+
if (message.freeTrialEndsAt != null && message.hasOwnProperty("freeTrialEndsAt"))
|
|
135034
|
+
if (!$util.isInteger(message.freeTrialEndsAt) && !(message.freeTrialEndsAt && $util.isInteger(message.freeTrialEndsAt.low) && $util.isInteger(message.freeTrialEndsAt.high)))
|
|
135035
|
+
return "freeTrialEndsAt: integer|Long expected";
|
|
135036
|
+
if (message.retentionOfferId != null && message.hasOwnProperty("retentionOfferId"))
|
|
135037
|
+
if (!$util.isString(message.retentionOfferId))
|
|
135038
|
+
return "retentionOfferId: string expected";
|
|
135039
|
+
if (message.transitionState != null && message.hasOwnProperty("transitionState"))
|
|
135040
|
+
if (!$util.isString(message.transitionState))
|
|
135041
|
+
return "transitionState: string expected";
|
|
135042
|
+
if (message.transitionEffectiveTime != null && message.hasOwnProperty("transitionEffectiveTime"))
|
|
135043
|
+
if (!$util.isInteger(message.transitionEffectiveTime) && !(message.transitionEffectiveTime && $util.isInteger(message.transitionEffectiveTime.low) && $util.isInteger(message.transitionEffectiveTime.high)))
|
|
135044
|
+
return "transitionEffectiveTime: integer|Long expected";
|
|
135045
|
+
return null;
|
|
135046
|
+
};
|
|
135047
|
+
|
|
135048
|
+
/**
|
|
135049
|
+
* Creates a GoogleSubscriptionRetentionOfferAccepted message from a plain object. Also converts values to their respective internal types.
|
|
135050
|
+
* @function fromObject
|
|
135051
|
+
* @memberof GoogleSubscriptionRetentionOfferAccepted
|
|
135052
|
+
* @static
|
|
135053
|
+
* @param {Object.<string,*>} object Plain object
|
|
135054
|
+
* @returns {GoogleSubscriptionRetentionOfferAccepted} GoogleSubscriptionRetentionOfferAccepted
|
|
135055
|
+
*/
|
|
135056
|
+
GoogleSubscriptionRetentionOfferAccepted.fromObject = function fromObject(object) {
|
|
135057
|
+
if (object instanceof $root.GoogleSubscriptionRetentionOfferAccepted)
|
|
135058
|
+
return object;
|
|
135059
|
+
var message = new $root.GoogleSubscriptionRetentionOfferAccepted();
|
|
135060
|
+
if (object.id != null)
|
|
135061
|
+
message.id = String(object.id);
|
|
135062
|
+
if (object.endsAt != null)
|
|
135063
|
+
if ($util.Long)
|
|
135064
|
+
(message.endsAt = $util.Long.fromValue(object.endsAt)).unsigned = true;
|
|
135065
|
+
else if (typeof object.endsAt === "string")
|
|
135066
|
+
message.endsAt = parseInt(object.endsAt, 10);
|
|
135067
|
+
else if (typeof object.endsAt === "number")
|
|
135068
|
+
message.endsAt = object.endsAt;
|
|
135069
|
+
else if (typeof object.endsAt === "object")
|
|
135070
|
+
message.endsAt = new $util.LongBits(object.endsAt.low >>> 0, object.endsAt.high >>> 0).toNumber(true);
|
|
135071
|
+
if (object.startsAt != null)
|
|
135072
|
+
if ($util.Long)
|
|
135073
|
+
(message.startsAt = $util.Long.fromValue(object.startsAt)).unsigned = true;
|
|
135074
|
+
else if (typeof object.startsAt === "string")
|
|
135075
|
+
message.startsAt = parseInt(object.startsAt, 10);
|
|
135076
|
+
else if (typeof object.startsAt === "number")
|
|
135077
|
+
message.startsAt = object.startsAt;
|
|
135078
|
+
else if (typeof object.startsAt === "object")
|
|
135079
|
+
message.startsAt = new $util.LongBits(object.startsAt.low >>> 0, object.startsAt.high >>> 0).toNumber(true);
|
|
135080
|
+
if (object.hsUserId != null)
|
|
135081
|
+
message.hsUserId = String(object.hsUserId);
|
|
135082
|
+
if (object.productId != null)
|
|
135083
|
+
message.productId = String(object.productId);
|
|
135084
|
+
if (object.autoRenewalStatus != null)
|
|
135085
|
+
message.autoRenewalStatus = Boolean(object.autoRenewalStatus);
|
|
135086
|
+
switch (object.paymentState) {
|
|
135087
|
+
case "GOOGLE_PAYMENT_STATE_UNKNOWN":
|
|
135088
|
+
case 0:
|
|
135089
|
+
message.paymentState = 0;
|
|
135090
|
+
break;
|
|
135091
|
+
case "GOOGLE_PAYMENT_PENDING":
|
|
135092
|
+
case 1:
|
|
135093
|
+
message.paymentState = 1;
|
|
135094
|
+
break;
|
|
135095
|
+
case "GOOGLE_PAYMENT_RECEIVED":
|
|
135096
|
+
case 2:
|
|
135097
|
+
message.paymentState = 2;
|
|
135098
|
+
break;
|
|
135099
|
+
case "GOOGLE_FREE_TRIAL":
|
|
135100
|
+
case 3:
|
|
135101
|
+
message.paymentState = 3;
|
|
135102
|
+
break;
|
|
135103
|
+
case "GOOGLE_PENDING_DEFERRED_UPGRADE_OR_DOWNGRADE":
|
|
135104
|
+
case 4:
|
|
135105
|
+
message.paymentState = 4;
|
|
135106
|
+
break;
|
|
135107
|
+
}
|
|
135108
|
+
if (object.freeTrialStartsAt != null)
|
|
135109
|
+
if ($util.Long)
|
|
135110
|
+
(message.freeTrialStartsAt = $util.Long.fromValue(object.freeTrialStartsAt)).unsigned = true;
|
|
135111
|
+
else if (typeof object.freeTrialStartsAt === "string")
|
|
135112
|
+
message.freeTrialStartsAt = parseInt(object.freeTrialStartsAt, 10);
|
|
135113
|
+
else if (typeof object.freeTrialStartsAt === "number")
|
|
135114
|
+
message.freeTrialStartsAt = object.freeTrialStartsAt;
|
|
135115
|
+
else if (typeof object.freeTrialStartsAt === "object")
|
|
135116
|
+
message.freeTrialStartsAt = new $util.LongBits(object.freeTrialStartsAt.low >>> 0, object.freeTrialStartsAt.high >>> 0).toNumber(true);
|
|
135117
|
+
if (object.freeTrialEndsAt != null)
|
|
135118
|
+
if ($util.Long)
|
|
135119
|
+
(message.freeTrialEndsAt = $util.Long.fromValue(object.freeTrialEndsAt)).unsigned = true;
|
|
135120
|
+
else if (typeof object.freeTrialEndsAt === "string")
|
|
135121
|
+
message.freeTrialEndsAt = parseInt(object.freeTrialEndsAt, 10);
|
|
135122
|
+
else if (typeof object.freeTrialEndsAt === "number")
|
|
135123
|
+
message.freeTrialEndsAt = object.freeTrialEndsAt;
|
|
135124
|
+
else if (typeof object.freeTrialEndsAt === "object")
|
|
135125
|
+
message.freeTrialEndsAt = new $util.LongBits(object.freeTrialEndsAt.low >>> 0, object.freeTrialEndsAt.high >>> 0).toNumber(true);
|
|
135126
|
+
if (object.retentionOfferId != null)
|
|
135127
|
+
message.retentionOfferId = String(object.retentionOfferId);
|
|
135128
|
+
if (object.transitionState != null)
|
|
135129
|
+
message.transitionState = String(object.transitionState);
|
|
135130
|
+
if (object.transitionEffectiveTime != null)
|
|
135131
|
+
if ($util.Long)
|
|
135132
|
+
(message.transitionEffectiveTime = $util.Long.fromValue(object.transitionEffectiveTime)).unsigned = true;
|
|
135133
|
+
else if (typeof object.transitionEffectiveTime === "string")
|
|
135134
|
+
message.transitionEffectiveTime = parseInt(object.transitionEffectiveTime, 10);
|
|
135135
|
+
else if (typeof object.transitionEffectiveTime === "number")
|
|
135136
|
+
message.transitionEffectiveTime = object.transitionEffectiveTime;
|
|
135137
|
+
else if (typeof object.transitionEffectiveTime === "object")
|
|
135138
|
+
message.transitionEffectiveTime = new $util.LongBits(object.transitionEffectiveTime.low >>> 0, object.transitionEffectiveTime.high >>> 0).toNumber(true);
|
|
135139
|
+
return message;
|
|
135140
|
+
};
|
|
135141
|
+
|
|
135142
|
+
/**
|
|
135143
|
+
* Creates a plain object from a GoogleSubscriptionRetentionOfferAccepted message. Also converts values to other types if specified.
|
|
135144
|
+
* @function toObject
|
|
135145
|
+
* @memberof GoogleSubscriptionRetentionOfferAccepted
|
|
135146
|
+
* @static
|
|
135147
|
+
* @param {GoogleSubscriptionRetentionOfferAccepted} message GoogleSubscriptionRetentionOfferAccepted
|
|
135148
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
135149
|
+
* @returns {Object.<string,*>} Plain object
|
|
135150
|
+
*/
|
|
135151
|
+
GoogleSubscriptionRetentionOfferAccepted.toObject = function toObject(message, options) {
|
|
135152
|
+
if (!options)
|
|
135153
|
+
options = {};
|
|
135154
|
+
var object = {};
|
|
135155
|
+
if (options.defaults) {
|
|
135156
|
+
object.id = "";
|
|
135157
|
+
if ($util.Long) {
|
|
135158
|
+
var long = new $util.Long(0, 0, true);
|
|
135159
|
+
object.endsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
135160
|
+
} else
|
|
135161
|
+
object.endsAt = options.longs === String ? "0" : 0;
|
|
135162
|
+
if ($util.Long) {
|
|
135163
|
+
var long = new $util.Long(0, 0, true);
|
|
135164
|
+
object.startsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
135165
|
+
} else
|
|
135166
|
+
object.startsAt = options.longs === String ? "0" : 0;
|
|
135167
|
+
object.hsUserId = "";
|
|
135168
|
+
object.productId = "";
|
|
135169
|
+
object.autoRenewalStatus = false;
|
|
135170
|
+
object.paymentState = options.enums === String ? "GOOGLE_PAYMENT_STATE_UNKNOWN" : 0;
|
|
135171
|
+
if ($util.Long) {
|
|
135172
|
+
var long = new $util.Long(0, 0, true);
|
|
135173
|
+
object.freeTrialStartsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
135174
|
+
} else
|
|
135175
|
+
object.freeTrialStartsAt = options.longs === String ? "0" : 0;
|
|
135176
|
+
if ($util.Long) {
|
|
135177
|
+
var long = new $util.Long(0, 0, true);
|
|
135178
|
+
object.freeTrialEndsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
135179
|
+
} else
|
|
135180
|
+
object.freeTrialEndsAt = options.longs === String ? "0" : 0;
|
|
135181
|
+
object.retentionOfferId = "";
|
|
135182
|
+
object.transitionState = "";
|
|
135183
|
+
if ($util.Long) {
|
|
135184
|
+
var long = new $util.Long(0, 0, true);
|
|
135185
|
+
object.transitionEffectiveTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
135186
|
+
} else
|
|
135187
|
+
object.transitionEffectiveTime = options.longs === String ? "0" : 0;
|
|
135188
|
+
}
|
|
135189
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
135190
|
+
object.id = message.id;
|
|
135191
|
+
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
135192
|
+
if (typeof message.endsAt === "number")
|
|
135193
|
+
object.endsAt = options.longs === String ? String(message.endsAt) : message.endsAt;
|
|
135194
|
+
else
|
|
135195
|
+
object.endsAt = options.longs === String ? $util.Long.prototype.toString.call(message.endsAt) : options.longs === Number ? new $util.LongBits(message.endsAt.low >>> 0, message.endsAt.high >>> 0).toNumber(true) : message.endsAt;
|
|
135196
|
+
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
135197
|
+
if (typeof message.startsAt === "number")
|
|
135198
|
+
object.startsAt = options.longs === String ? String(message.startsAt) : message.startsAt;
|
|
135199
|
+
else
|
|
135200
|
+
object.startsAt = options.longs === String ? $util.Long.prototype.toString.call(message.startsAt) : options.longs === Number ? new $util.LongBits(message.startsAt.low >>> 0, message.startsAt.high >>> 0).toNumber(true) : message.startsAt;
|
|
135201
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
135202
|
+
object.hsUserId = message.hsUserId;
|
|
135203
|
+
if (message.productId != null && message.hasOwnProperty("productId"))
|
|
135204
|
+
object.productId = message.productId;
|
|
135205
|
+
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
135206
|
+
object.autoRenewalStatus = message.autoRenewalStatus;
|
|
135207
|
+
if (message.paymentState != null && message.hasOwnProperty("paymentState"))
|
|
135208
|
+
object.paymentState = options.enums === String ? $root.googlereceipt.GoogleSubscriptionPaymentState[message.paymentState] : message.paymentState;
|
|
135209
|
+
if (message.freeTrialStartsAt != null && message.hasOwnProperty("freeTrialStartsAt"))
|
|
135210
|
+
if (typeof message.freeTrialStartsAt === "number")
|
|
135211
|
+
object.freeTrialStartsAt = options.longs === String ? String(message.freeTrialStartsAt) : message.freeTrialStartsAt;
|
|
135212
|
+
else
|
|
135213
|
+
object.freeTrialStartsAt = options.longs === String ? $util.Long.prototype.toString.call(message.freeTrialStartsAt) : options.longs === Number ? new $util.LongBits(message.freeTrialStartsAt.low >>> 0, message.freeTrialStartsAt.high >>> 0).toNumber(true) : message.freeTrialStartsAt;
|
|
135214
|
+
if (message.freeTrialEndsAt != null && message.hasOwnProperty("freeTrialEndsAt"))
|
|
135215
|
+
if (typeof message.freeTrialEndsAt === "number")
|
|
135216
|
+
object.freeTrialEndsAt = options.longs === String ? String(message.freeTrialEndsAt) : message.freeTrialEndsAt;
|
|
135217
|
+
else
|
|
135218
|
+
object.freeTrialEndsAt = options.longs === String ? $util.Long.prototype.toString.call(message.freeTrialEndsAt) : options.longs === Number ? new $util.LongBits(message.freeTrialEndsAt.low >>> 0, message.freeTrialEndsAt.high >>> 0).toNumber(true) : message.freeTrialEndsAt;
|
|
135219
|
+
if (message.retentionOfferId != null && message.hasOwnProperty("retentionOfferId"))
|
|
135220
|
+
object.retentionOfferId = message.retentionOfferId;
|
|
135221
|
+
if (message.transitionState != null && message.hasOwnProperty("transitionState"))
|
|
135222
|
+
object.transitionState = message.transitionState;
|
|
135223
|
+
if (message.transitionEffectiveTime != null && message.hasOwnProperty("transitionEffectiveTime"))
|
|
135224
|
+
if (typeof message.transitionEffectiveTime === "number")
|
|
135225
|
+
object.transitionEffectiveTime = options.longs === String ? String(message.transitionEffectiveTime) : message.transitionEffectiveTime;
|
|
135226
|
+
else
|
|
135227
|
+
object.transitionEffectiveTime = options.longs === String ? $util.Long.prototype.toString.call(message.transitionEffectiveTime) : options.longs === Number ? new $util.LongBits(message.transitionEffectiveTime.low >>> 0, message.transitionEffectiveTime.high >>> 0).toNumber(true) : message.transitionEffectiveTime;
|
|
135228
|
+
return object;
|
|
135229
|
+
};
|
|
135230
|
+
|
|
135231
|
+
/**
|
|
135232
|
+
* Converts this GoogleSubscriptionRetentionOfferAccepted to JSON.
|
|
135233
|
+
* @function toJSON
|
|
135234
|
+
* @memberof GoogleSubscriptionRetentionOfferAccepted
|
|
135235
|
+
* @instance
|
|
135236
|
+
* @returns {Object.<string,*>} JSON object
|
|
135237
|
+
*/
|
|
135238
|
+
GoogleSubscriptionRetentionOfferAccepted.prototype.toJSON = function toJSON() {
|
|
135239
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
135240
|
+
};
|
|
135241
|
+
|
|
135242
|
+
return GoogleSubscriptionRetentionOfferAccepted;
|
|
135243
|
+
})();
|
|
135244
|
+
|
|
134647
135245
|
/**
|
|
134648
135246
|
* NoteType enum.
|
|
134649
135247
|
* @name NoteType
|
|
@@ -142289,6 +142887,10 @@ $root.PHQAssessmentAssigned = (function() {
|
|
|
142289
142887
|
* @property {number|null} [gingerUserId] PHQAssessmentAssigned gingerUserId
|
|
142290
142888
|
* @property {string|null} [assignedAtIsoDate] PHQAssessmentAssigned assignedAtIsoDate
|
|
142291
142889
|
* @property {number|Long|null} [assignmentId] PHQAssessmentAssigned assignmentId
|
|
142890
|
+
* @property {string|null} [activityId] PHQAssessmentAssigned activityId
|
|
142891
|
+
* @property {string|null} [targetAssessment] PHQAssessmentAssigned targetAssessment
|
|
142892
|
+
* @property {string|null} [sourceAssessment] PHQAssessmentAssigned sourceAssessment
|
|
142893
|
+
* @property {boolean|null} [isFollowup] PHQAssessmentAssigned isFollowup
|
|
142292
142894
|
*/
|
|
142293
142895
|
|
|
142294
142896
|
/**
|
|
@@ -142338,6 +142940,38 @@ $root.PHQAssessmentAssigned = (function() {
|
|
|
142338
142940
|
*/
|
|
142339
142941
|
PHQAssessmentAssigned.prototype.assignmentId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
142340
142942
|
|
|
142943
|
+
/**
|
|
142944
|
+
* PHQAssessmentAssigned activityId.
|
|
142945
|
+
* @member {string} activityId
|
|
142946
|
+
* @memberof PHQAssessmentAssigned
|
|
142947
|
+
* @instance
|
|
142948
|
+
*/
|
|
142949
|
+
PHQAssessmentAssigned.prototype.activityId = "";
|
|
142950
|
+
|
|
142951
|
+
/**
|
|
142952
|
+
* PHQAssessmentAssigned targetAssessment.
|
|
142953
|
+
* @member {string} targetAssessment
|
|
142954
|
+
* @memberof PHQAssessmentAssigned
|
|
142955
|
+
* @instance
|
|
142956
|
+
*/
|
|
142957
|
+
PHQAssessmentAssigned.prototype.targetAssessment = "";
|
|
142958
|
+
|
|
142959
|
+
/**
|
|
142960
|
+
* PHQAssessmentAssigned sourceAssessment.
|
|
142961
|
+
* @member {string} sourceAssessment
|
|
142962
|
+
* @memberof PHQAssessmentAssigned
|
|
142963
|
+
* @instance
|
|
142964
|
+
*/
|
|
142965
|
+
PHQAssessmentAssigned.prototype.sourceAssessment = "";
|
|
142966
|
+
|
|
142967
|
+
/**
|
|
142968
|
+
* PHQAssessmentAssigned isFollowup.
|
|
142969
|
+
* @member {boolean} isFollowup
|
|
142970
|
+
* @memberof PHQAssessmentAssigned
|
|
142971
|
+
* @instance
|
|
142972
|
+
*/
|
|
142973
|
+
PHQAssessmentAssigned.prototype.isFollowup = false;
|
|
142974
|
+
|
|
142341
142975
|
/**
|
|
142342
142976
|
* Creates a new PHQAssessmentAssigned instance using the specified properties.
|
|
142343
142977
|
* @function create
|
|
@@ -142370,6 +143004,14 @@ $root.PHQAssessmentAssigned = (function() {
|
|
|
142370
143004
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.assignedAtIsoDate);
|
|
142371
143005
|
if (message.assignmentId != null && message.hasOwnProperty("assignmentId"))
|
|
142372
143006
|
writer.uint32(/* id 4, wireType 0 =*/32).int64(message.assignmentId);
|
|
143007
|
+
if (message.activityId != null && message.hasOwnProperty("activityId"))
|
|
143008
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.activityId);
|
|
143009
|
+
if (message.targetAssessment != null && message.hasOwnProperty("targetAssessment"))
|
|
143010
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.targetAssessment);
|
|
143011
|
+
if (message.sourceAssessment != null && message.hasOwnProperty("sourceAssessment"))
|
|
143012
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.sourceAssessment);
|
|
143013
|
+
if (message.isFollowup != null && message.hasOwnProperty("isFollowup"))
|
|
143014
|
+
writer.uint32(/* id 8, wireType 0 =*/64).bool(message.isFollowup);
|
|
142373
143015
|
return writer;
|
|
142374
143016
|
};
|
|
142375
143017
|
|
|
@@ -142416,6 +143058,18 @@ $root.PHQAssessmentAssigned = (function() {
|
|
|
142416
143058
|
case 4:
|
|
142417
143059
|
message.assignmentId = reader.int64();
|
|
142418
143060
|
break;
|
|
143061
|
+
case 5:
|
|
143062
|
+
message.activityId = reader.string();
|
|
143063
|
+
break;
|
|
143064
|
+
case 6:
|
|
143065
|
+
message.targetAssessment = reader.string();
|
|
143066
|
+
break;
|
|
143067
|
+
case 7:
|
|
143068
|
+
message.sourceAssessment = reader.string();
|
|
143069
|
+
break;
|
|
143070
|
+
case 8:
|
|
143071
|
+
message.isFollowup = reader.bool();
|
|
143072
|
+
break;
|
|
142419
143073
|
default:
|
|
142420
143074
|
reader.skipType(tag & 7);
|
|
142421
143075
|
break;
|
|
@@ -142463,6 +143117,18 @@ $root.PHQAssessmentAssigned = (function() {
|
|
|
142463
143117
|
if (message.assignmentId != null && message.hasOwnProperty("assignmentId"))
|
|
142464
143118
|
if (!$util.isInteger(message.assignmentId) && !(message.assignmentId && $util.isInteger(message.assignmentId.low) && $util.isInteger(message.assignmentId.high)))
|
|
142465
143119
|
return "assignmentId: integer|Long expected";
|
|
143120
|
+
if (message.activityId != null && message.hasOwnProperty("activityId"))
|
|
143121
|
+
if (!$util.isString(message.activityId))
|
|
143122
|
+
return "activityId: string expected";
|
|
143123
|
+
if (message.targetAssessment != null && message.hasOwnProperty("targetAssessment"))
|
|
143124
|
+
if (!$util.isString(message.targetAssessment))
|
|
143125
|
+
return "targetAssessment: string expected";
|
|
143126
|
+
if (message.sourceAssessment != null && message.hasOwnProperty("sourceAssessment"))
|
|
143127
|
+
if (!$util.isString(message.sourceAssessment))
|
|
143128
|
+
return "sourceAssessment: string expected";
|
|
143129
|
+
if (message.isFollowup != null && message.hasOwnProperty("isFollowup"))
|
|
143130
|
+
if (typeof message.isFollowup !== "boolean")
|
|
143131
|
+
return "isFollowup: boolean expected";
|
|
142466
143132
|
return null;
|
|
142467
143133
|
};
|
|
142468
143134
|
|
|
@@ -142493,6 +143159,14 @@ $root.PHQAssessmentAssigned = (function() {
|
|
|
142493
143159
|
message.assignmentId = object.assignmentId;
|
|
142494
143160
|
else if (typeof object.assignmentId === "object")
|
|
142495
143161
|
message.assignmentId = new $util.LongBits(object.assignmentId.low >>> 0, object.assignmentId.high >>> 0).toNumber();
|
|
143162
|
+
if (object.activityId != null)
|
|
143163
|
+
message.activityId = String(object.activityId);
|
|
143164
|
+
if (object.targetAssessment != null)
|
|
143165
|
+
message.targetAssessment = String(object.targetAssessment);
|
|
143166
|
+
if (object.sourceAssessment != null)
|
|
143167
|
+
message.sourceAssessment = String(object.sourceAssessment);
|
|
143168
|
+
if (object.isFollowup != null)
|
|
143169
|
+
message.isFollowup = Boolean(object.isFollowup);
|
|
142496
143170
|
return message;
|
|
142497
143171
|
};
|
|
142498
143172
|
|
|
@@ -142518,6 +143192,10 @@ $root.PHQAssessmentAssigned = (function() {
|
|
|
142518
143192
|
object.assignmentId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
142519
143193
|
} else
|
|
142520
143194
|
object.assignmentId = options.longs === String ? "0" : 0;
|
|
143195
|
+
object.activityId = "";
|
|
143196
|
+
object.targetAssessment = "";
|
|
143197
|
+
object.sourceAssessment = "";
|
|
143198
|
+
object.isFollowup = false;
|
|
142521
143199
|
}
|
|
142522
143200
|
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
142523
143201
|
object.hsUserId = message.hsUserId;
|
|
@@ -142530,6 +143208,14 @@ $root.PHQAssessmentAssigned = (function() {
|
|
|
142530
143208
|
object.assignmentId = options.longs === String ? String(message.assignmentId) : message.assignmentId;
|
|
142531
143209
|
else
|
|
142532
143210
|
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;
|
|
143211
|
+
if (message.activityId != null && message.hasOwnProperty("activityId"))
|
|
143212
|
+
object.activityId = message.activityId;
|
|
143213
|
+
if (message.targetAssessment != null && message.hasOwnProperty("targetAssessment"))
|
|
143214
|
+
object.targetAssessment = message.targetAssessment;
|
|
143215
|
+
if (message.sourceAssessment != null && message.hasOwnProperty("sourceAssessment"))
|
|
143216
|
+
object.sourceAssessment = message.sourceAssessment;
|
|
143217
|
+
if (message.isFollowup != null && message.hasOwnProperty("isFollowup"))
|
|
143218
|
+
object.isFollowup = message.isFollowup;
|
|
142533
143219
|
return object;
|
|
142534
143220
|
};
|
|
142535
143221
|
|
|
@@ -151085,6 +151771,10 @@ $root.PSSAssessmentAssigned = (function() {
|
|
|
151085
151771
|
* @property {number|null} [gingerUserId] PSSAssessmentAssigned gingerUserId
|
|
151086
151772
|
* @property {string|null} [assignedAtIsoDate] PSSAssessmentAssigned assignedAtIsoDate
|
|
151087
151773
|
* @property {number|Long|null} [assignmentId] PSSAssessmentAssigned assignmentId
|
|
151774
|
+
* @property {string|null} [activityId] PSSAssessmentAssigned activityId
|
|
151775
|
+
* @property {string|null} [targetAssessment] PSSAssessmentAssigned targetAssessment
|
|
151776
|
+
* @property {string|null} [sourceAssessment] PSSAssessmentAssigned sourceAssessment
|
|
151777
|
+
* @property {boolean|null} [isFollowup] PSSAssessmentAssigned isFollowup
|
|
151088
151778
|
*/
|
|
151089
151779
|
|
|
151090
151780
|
/**
|
|
@@ -151134,6 +151824,38 @@ $root.PSSAssessmentAssigned = (function() {
|
|
|
151134
151824
|
*/
|
|
151135
151825
|
PSSAssessmentAssigned.prototype.assignmentId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
151136
151826
|
|
|
151827
|
+
/**
|
|
151828
|
+
* PSSAssessmentAssigned activityId.
|
|
151829
|
+
* @member {string} activityId
|
|
151830
|
+
* @memberof PSSAssessmentAssigned
|
|
151831
|
+
* @instance
|
|
151832
|
+
*/
|
|
151833
|
+
PSSAssessmentAssigned.prototype.activityId = "";
|
|
151834
|
+
|
|
151835
|
+
/**
|
|
151836
|
+
* PSSAssessmentAssigned targetAssessment.
|
|
151837
|
+
* @member {string} targetAssessment
|
|
151838
|
+
* @memberof PSSAssessmentAssigned
|
|
151839
|
+
* @instance
|
|
151840
|
+
*/
|
|
151841
|
+
PSSAssessmentAssigned.prototype.targetAssessment = "";
|
|
151842
|
+
|
|
151843
|
+
/**
|
|
151844
|
+
* PSSAssessmentAssigned sourceAssessment.
|
|
151845
|
+
* @member {string} sourceAssessment
|
|
151846
|
+
* @memberof PSSAssessmentAssigned
|
|
151847
|
+
* @instance
|
|
151848
|
+
*/
|
|
151849
|
+
PSSAssessmentAssigned.prototype.sourceAssessment = "";
|
|
151850
|
+
|
|
151851
|
+
/**
|
|
151852
|
+
* PSSAssessmentAssigned isFollowup.
|
|
151853
|
+
* @member {boolean} isFollowup
|
|
151854
|
+
* @memberof PSSAssessmentAssigned
|
|
151855
|
+
* @instance
|
|
151856
|
+
*/
|
|
151857
|
+
PSSAssessmentAssigned.prototype.isFollowup = false;
|
|
151858
|
+
|
|
151137
151859
|
/**
|
|
151138
151860
|
* Creates a new PSSAssessmentAssigned instance using the specified properties.
|
|
151139
151861
|
* @function create
|
|
@@ -151166,6 +151888,14 @@ $root.PSSAssessmentAssigned = (function() {
|
|
|
151166
151888
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.assignedAtIsoDate);
|
|
151167
151889
|
if (message.assignmentId != null && message.hasOwnProperty("assignmentId"))
|
|
151168
151890
|
writer.uint32(/* id 4, wireType 0 =*/32).int64(message.assignmentId);
|
|
151891
|
+
if (message.activityId != null && message.hasOwnProperty("activityId"))
|
|
151892
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.activityId);
|
|
151893
|
+
if (message.targetAssessment != null && message.hasOwnProperty("targetAssessment"))
|
|
151894
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.targetAssessment);
|
|
151895
|
+
if (message.sourceAssessment != null && message.hasOwnProperty("sourceAssessment"))
|
|
151896
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.sourceAssessment);
|
|
151897
|
+
if (message.isFollowup != null && message.hasOwnProperty("isFollowup"))
|
|
151898
|
+
writer.uint32(/* id 8, wireType 0 =*/64).bool(message.isFollowup);
|
|
151169
151899
|
return writer;
|
|
151170
151900
|
};
|
|
151171
151901
|
|
|
@@ -151212,6 +151942,18 @@ $root.PSSAssessmentAssigned = (function() {
|
|
|
151212
151942
|
case 4:
|
|
151213
151943
|
message.assignmentId = reader.int64();
|
|
151214
151944
|
break;
|
|
151945
|
+
case 5:
|
|
151946
|
+
message.activityId = reader.string();
|
|
151947
|
+
break;
|
|
151948
|
+
case 6:
|
|
151949
|
+
message.targetAssessment = reader.string();
|
|
151950
|
+
break;
|
|
151951
|
+
case 7:
|
|
151952
|
+
message.sourceAssessment = reader.string();
|
|
151953
|
+
break;
|
|
151954
|
+
case 8:
|
|
151955
|
+
message.isFollowup = reader.bool();
|
|
151956
|
+
break;
|
|
151215
151957
|
default:
|
|
151216
151958
|
reader.skipType(tag & 7);
|
|
151217
151959
|
break;
|
|
@@ -151259,6 +152001,18 @@ $root.PSSAssessmentAssigned = (function() {
|
|
|
151259
152001
|
if (message.assignmentId != null && message.hasOwnProperty("assignmentId"))
|
|
151260
152002
|
if (!$util.isInteger(message.assignmentId) && !(message.assignmentId && $util.isInteger(message.assignmentId.low) && $util.isInteger(message.assignmentId.high)))
|
|
151261
152003
|
return "assignmentId: integer|Long expected";
|
|
152004
|
+
if (message.activityId != null && message.hasOwnProperty("activityId"))
|
|
152005
|
+
if (!$util.isString(message.activityId))
|
|
152006
|
+
return "activityId: string expected";
|
|
152007
|
+
if (message.targetAssessment != null && message.hasOwnProperty("targetAssessment"))
|
|
152008
|
+
if (!$util.isString(message.targetAssessment))
|
|
152009
|
+
return "targetAssessment: string expected";
|
|
152010
|
+
if (message.sourceAssessment != null && message.hasOwnProperty("sourceAssessment"))
|
|
152011
|
+
if (!$util.isString(message.sourceAssessment))
|
|
152012
|
+
return "sourceAssessment: string expected";
|
|
152013
|
+
if (message.isFollowup != null && message.hasOwnProperty("isFollowup"))
|
|
152014
|
+
if (typeof message.isFollowup !== "boolean")
|
|
152015
|
+
return "isFollowup: boolean expected";
|
|
151262
152016
|
return null;
|
|
151263
152017
|
};
|
|
151264
152018
|
|
|
@@ -151289,6 +152043,14 @@ $root.PSSAssessmentAssigned = (function() {
|
|
|
151289
152043
|
message.assignmentId = object.assignmentId;
|
|
151290
152044
|
else if (typeof object.assignmentId === "object")
|
|
151291
152045
|
message.assignmentId = new $util.LongBits(object.assignmentId.low >>> 0, object.assignmentId.high >>> 0).toNumber();
|
|
152046
|
+
if (object.activityId != null)
|
|
152047
|
+
message.activityId = String(object.activityId);
|
|
152048
|
+
if (object.targetAssessment != null)
|
|
152049
|
+
message.targetAssessment = String(object.targetAssessment);
|
|
152050
|
+
if (object.sourceAssessment != null)
|
|
152051
|
+
message.sourceAssessment = String(object.sourceAssessment);
|
|
152052
|
+
if (object.isFollowup != null)
|
|
152053
|
+
message.isFollowup = Boolean(object.isFollowup);
|
|
151292
152054
|
return message;
|
|
151293
152055
|
};
|
|
151294
152056
|
|
|
@@ -151314,6 +152076,10 @@ $root.PSSAssessmentAssigned = (function() {
|
|
|
151314
152076
|
object.assignmentId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
151315
152077
|
} else
|
|
151316
152078
|
object.assignmentId = options.longs === String ? "0" : 0;
|
|
152079
|
+
object.activityId = "";
|
|
152080
|
+
object.targetAssessment = "";
|
|
152081
|
+
object.sourceAssessment = "";
|
|
152082
|
+
object.isFollowup = false;
|
|
151317
152083
|
}
|
|
151318
152084
|
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
151319
152085
|
object.hsUserId = message.hsUserId;
|
|
@@ -151326,6 +152092,14 @@ $root.PSSAssessmentAssigned = (function() {
|
|
|
151326
152092
|
object.assignmentId = options.longs === String ? String(message.assignmentId) : message.assignmentId;
|
|
151327
152093
|
else
|
|
151328
152094
|
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;
|
|
152095
|
+
if (message.activityId != null && message.hasOwnProperty("activityId"))
|
|
152096
|
+
object.activityId = message.activityId;
|
|
152097
|
+
if (message.targetAssessment != null && message.hasOwnProperty("targetAssessment"))
|
|
152098
|
+
object.targetAssessment = message.targetAssessment;
|
|
152099
|
+
if (message.sourceAssessment != null && message.hasOwnProperty("sourceAssessment"))
|
|
152100
|
+
object.sourceAssessment = message.sourceAssessment;
|
|
152101
|
+
if (message.isFollowup != null && message.hasOwnProperty("isFollowup"))
|
|
152102
|
+
object.isFollowup = message.isFollowup;
|
|
151329
152103
|
return object;
|
|
151330
152104
|
};
|
|
151331
152105
|
|
package/package.json
CHANGED