@headspace/protos-events 1.826.0 → 1.828.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 +212 -1
- package/lib/index.js +597 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -71025,7 +71025,16 @@ export enum CmsAccessFailureReason {
|
|
|
71025
71025
|
CMS_ACCESS_FAILURE_REASON_POLL_ERROR = 3,
|
|
71026
71026
|
|
|
71027
71027
|
/** CMS_ACCESS_FAILURE_REASON_INVALID_RESPONSE value */
|
|
71028
|
-
CMS_ACCESS_FAILURE_REASON_INVALID_RESPONSE = 4
|
|
71028
|
+
CMS_ACCESS_FAILURE_REASON_INVALID_RESPONSE = 4,
|
|
71029
|
+
|
|
71030
|
+
/** CMS_ACCESS_FAILURE_REASON_CONSENT_TIMEOUT value */
|
|
71031
|
+
CMS_ACCESS_FAILURE_REASON_CONSENT_TIMEOUT = 5,
|
|
71032
|
+
|
|
71033
|
+
/** CMS_ACCESS_FAILURE_REASON_ASSESSMENT_TIMEOUT value */
|
|
71034
|
+
CMS_ACCESS_FAILURE_REASON_ASSESSMENT_TIMEOUT = 6,
|
|
71035
|
+
|
|
71036
|
+
/** CMS_ACCESS_FAILURE_REASON_ASSESSMENT_AND_CONSENT_TIMEOUT value */
|
|
71037
|
+
CMS_ACCESS_FAILURE_REASON_ASSESSMENT_AND_CONSENT_TIMEOUT = 7
|
|
71029
71038
|
}
|
|
71030
71039
|
|
|
71031
71040
|
/** CmsAccessDisenrollmentReason enum. */
|
|
@@ -72130,6 +72139,208 @@ export namespace CmsAccessEnrollmentExcluded {
|
|
|
72130
72139
|
type $Shape = CmsAccessEnrollmentExcluded.$Properties;
|
|
72131
72140
|
}
|
|
72132
72141
|
|
|
72142
|
+
/** CmsAccessReportType enum. */
|
|
72143
|
+
export enum CmsAccessReportType {
|
|
72144
|
+
|
|
72145
|
+
/** CMS_ACCESS_REPORT_TYPE_UNKNOWN value */
|
|
72146
|
+
CMS_ACCESS_REPORT_TYPE_UNKNOWN = 0,
|
|
72147
|
+
|
|
72148
|
+
/** CMS_ACCESS_REPORT_TYPE_BASELINE value */
|
|
72149
|
+
CMS_ACCESS_REPORT_TYPE_BASELINE = 1,
|
|
72150
|
+
|
|
72151
|
+
/** CMS_ACCESS_REPORT_TYPE_QUARTERLY value */
|
|
72152
|
+
CMS_ACCESS_REPORT_TYPE_QUARTERLY = 2,
|
|
72153
|
+
|
|
72154
|
+
/** CMS_ACCESS_REPORT_TYPE_END_OF_PERIOD value */
|
|
72155
|
+
CMS_ACCESS_REPORT_TYPE_END_OF_PERIOD = 3
|
|
72156
|
+
}
|
|
72157
|
+
|
|
72158
|
+
/** CmsAccessDataReportResult enum. */
|
|
72159
|
+
export enum CmsAccessDataReportResult {
|
|
72160
|
+
|
|
72161
|
+
/** CMS_ACCESS_DATA_REPORT_RESULT_UNKNOWN value */
|
|
72162
|
+
CMS_ACCESS_DATA_REPORT_RESULT_UNKNOWN = 0,
|
|
72163
|
+
|
|
72164
|
+
/** CMS_ACCESS_DATA_REPORT_RESULT_SUCCESS value */
|
|
72165
|
+
CMS_ACCESS_DATA_REPORT_RESULT_SUCCESS = 1,
|
|
72166
|
+
|
|
72167
|
+
/** CMS_ACCESS_DATA_REPORT_RESULT_DUPLICATE value */
|
|
72168
|
+
CMS_ACCESS_DATA_REPORT_RESULT_DUPLICATE = 2,
|
|
72169
|
+
|
|
72170
|
+
/** CMS_ACCESS_DATA_REPORT_RESULT_BENEFICIARY_NOT_ALIGNED value */
|
|
72171
|
+
CMS_ACCESS_DATA_REPORT_RESULT_BENEFICIARY_NOT_ALIGNED = 3,
|
|
72172
|
+
|
|
72173
|
+
/** CMS_ACCESS_DATA_REPORT_RESULT_REPORTING_PERIOD_CLOSED value */
|
|
72174
|
+
CMS_ACCESS_DATA_REPORT_RESULT_REPORTING_PERIOD_CLOSED = 4,
|
|
72175
|
+
|
|
72176
|
+
/** CMS_ACCESS_DATA_REPORT_RESULT_INCOMPLETE_DATA value */
|
|
72177
|
+
CMS_ACCESS_DATA_REPORT_RESULT_INCOMPLETE_DATA = 5,
|
|
72178
|
+
|
|
72179
|
+
/** CMS_ACCESS_DATA_REPORT_RESULT_INCORRECT_TRACK value */
|
|
72180
|
+
CMS_ACCESS_DATA_REPORT_RESULT_INCORRECT_TRACK = 6
|
|
72181
|
+
}
|
|
72182
|
+
|
|
72183
|
+
/**
|
|
72184
|
+
* Properties of a CmsAccessDataReportCompleted.
|
|
72185
|
+
* @deprecated Use CmsAccessDataReportCompleted.$Properties instead.
|
|
72186
|
+
*/
|
|
72187
|
+
export interface ICmsAccessDataReportCompleted extends CmsAccessDataReportCompleted.$Properties {
|
|
72188
|
+
}
|
|
72189
|
+
|
|
72190
|
+
/**
|
|
72191
|
+
* Published when a CMS ACCESS $report-data (Outcome-Aligned Payment) submission
|
|
72192
|
+
* reaches a terminal state. Submits a beneficiary's BH clinical-instrument scores
|
|
72193
|
+
* to CMS as a FHIR Bundle across the care period (baseline, quarterly, end-of-period).
|
|
72194
|
+
* Used by Data Engineering for outcomes-reporting compliance KPIs
|
|
72195
|
+
* (ADR-004 §2, hs-cms-access-service docs/decisions/0004-event-coverage-for-analytics.md).
|
|
72196
|
+
* Fired by: hs-cms-access-service
|
|
72197
|
+
* Responsible team: Health Plans
|
|
72198
|
+
*/
|
|
72199
|
+
export class CmsAccessDataReportCompleted {
|
|
72200
|
+
|
|
72201
|
+
/**
|
|
72202
|
+
* Constructs a new CmsAccessDataReportCompleted.
|
|
72203
|
+
* @param [properties] Properties to set
|
|
72204
|
+
*/
|
|
72205
|
+
constructor(properties?: CmsAccessDataReportCompleted.$Properties);
|
|
72206
|
+
|
|
72207
|
+
/** Unknown fields preserved while decoding */
|
|
72208
|
+
$unknowns?: Uint8Array[];
|
|
72209
|
+
|
|
72210
|
+
/** CmsAccessDataReportCompleted timestamp. */
|
|
72211
|
+
timestamp: (number|Long);
|
|
72212
|
+
|
|
72213
|
+
/** CmsAccessDataReportCompleted hsUserId. */
|
|
72214
|
+
hsUserId: string;
|
|
72215
|
+
|
|
72216
|
+
/** CmsAccessDataReportCompleted trackingId. */
|
|
72217
|
+
trackingId: string;
|
|
72218
|
+
|
|
72219
|
+
/** CmsAccessDataReportCompleted cmsSubmissionId. */
|
|
72220
|
+
cmsSubmissionId: string;
|
|
72221
|
+
|
|
72222
|
+
/** CmsAccessDataReportCompleted reportType. */
|
|
72223
|
+
reportType: CmsAccessReportType;
|
|
72224
|
+
|
|
72225
|
+
/** CmsAccessDataReportCompleted result. */
|
|
72226
|
+
result: CmsAccessDataReportResult;
|
|
72227
|
+
|
|
72228
|
+
/** CmsAccessDataReportCompleted submittedAt. */
|
|
72229
|
+
submittedAt: (number|Long);
|
|
72230
|
+
|
|
72231
|
+
/**
|
|
72232
|
+
* Creates a new CmsAccessDataReportCompleted instance using the specified properties.
|
|
72233
|
+
* @param [properties] Properties to set
|
|
72234
|
+
* @returns CmsAccessDataReportCompleted instance
|
|
72235
|
+
*/
|
|
72236
|
+
static create(properties: CmsAccessDataReportCompleted.$Shape): CmsAccessDataReportCompleted & CmsAccessDataReportCompleted.$Shape;
|
|
72237
|
+
static create(properties?: CmsAccessDataReportCompleted.$Properties): CmsAccessDataReportCompleted;
|
|
72238
|
+
|
|
72239
|
+
/**
|
|
72240
|
+
* Encodes the specified CmsAccessDataReportCompleted message. Does not implicitly {@link CmsAccessDataReportCompleted.verify|verify} messages.
|
|
72241
|
+
* @param message CmsAccessDataReportCompleted message or plain object to encode
|
|
72242
|
+
* @param [writer] Writer to encode to
|
|
72243
|
+
* @returns Writer
|
|
72244
|
+
*/
|
|
72245
|
+
static encode(message: CmsAccessDataReportCompleted.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
72246
|
+
|
|
72247
|
+
/**
|
|
72248
|
+
* Encodes the specified CmsAccessDataReportCompleted message, length delimited. Does not implicitly {@link CmsAccessDataReportCompleted.verify|verify} messages.
|
|
72249
|
+
* @param message CmsAccessDataReportCompleted message or plain object to encode
|
|
72250
|
+
* @param [writer] Writer to encode to
|
|
72251
|
+
* @returns Writer
|
|
72252
|
+
*/
|
|
72253
|
+
static encodeDelimited(message: CmsAccessDataReportCompleted.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
72254
|
+
|
|
72255
|
+
/**
|
|
72256
|
+
* Decodes a CmsAccessDataReportCompleted message from the specified reader or buffer.
|
|
72257
|
+
* @param reader Reader or buffer to decode from
|
|
72258
|
+
* @param [length] Message length if known beforehand
|
|
72259
|
+
* @returns {CmsAccessDataReportCompleted & CmsAccessDataReportCompleted.$Shape} CmsAccessDataReportCompleted
|
|
72260
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
72261
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
72262
|
+
*/
|
|
72263
|
+
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CmsAccessDataReportCompleted & CmsAccessDataReportCompleted.$Shape;
|
|
72264
|
+
|
|
72265
|
+
/**
|
|
72266
|
+
* Decodes a CmsAccessDataReportCompleted message from the specified reader or buffer, length delimited.
|
|
72267
|
+
* @param reader Reader or buffer to decode from
|
|
72268
|
+
* @returns {CmsAccessDataReportCompleted & CmsAccessDataReportCompleted.$Shape} CmsAccessDataReportCompleted
|
|
72269
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
72270
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
72271
|
+
*/
|
|
72272
|
+
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CmsAccessDataReportCompleted & CmsAccessDataReportCompleted.$Shape;
|
|
72273
|
+
|
|
72274
|
+
/**
|
|
72275
|
+
* Verifies a CmsAccessDataReportCompleted message.
|
|
72276
|
+
* @param message Plain object to verify
|
|
72277
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
72278
|
+
*/
|
|
72279
|
+
static verify(message: { [k: string]: any }): (string|null);
|
|
72280
|
+
|
|
72281
|
+
/**
|
|
72282
|
+
* Creates a CmsAccessDataReportCompleted message from a plain object. Also converts values to their respective internal types.
|
|
72283
|
+
* @param object Plain object
|
|
72284
|
+
* @returns CmsAccessDataReportCompleted
|
|
72285
|
+
*/
|
|
72286
|
+
static fromObject(object: { [k: string]: any }): CmsAccessDataReportCompleted;
|
|
72287
|
+
|
|
72288
|
+
/**
|
|
72289
|
+
* Creates a plain object from a CmsAccessDataReportCompleted message. Also converts values to other types if specified.
|
|
72290
|
+
* @param message CmsAccessDataReportCompleted
|
|
72291
|
+
* @param [options] Conversion options
|
|
72292
|
+
* @returns Plain object
|
|
72293
|
+
*/
|
|
72294
|
+
static toObject(message: CmsAccessDataReportCompleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
72295
|
+
|
|
72296
|
+
/**
|
|
72297
|
+
* Converts this CmsAccessDataReportCompleted to JSON.
|
|
72298
|
+
* @returns JSON object
|
|
72299
|
+
*/
|
|
72300
|
+
toJSON(): { [k: string]: any };
|
|
72301
|
+
|
|
72302
|
+
/**
|
|
72303
|
+
* Gets the type url for CmsAccessDataReportCompleted
|
|
72304
|
+
* @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
72305
|
+
* @returns The type url
|
|
72306
|
+
*/
|
|
72307
|
+
static getTypeUrl(prefix?: string): string;
|
|
72308
|
+
}
|
|
72309
|
+
|
|
72310
|
+
export namespace CmsAccessDataReportCompleted {
|
|
72311
|
+
|
|
72312
|
+
/** Properties of a CmsAccessDataReportCompleted. */
|
|
72313
|
+
interface $Properties {
|
|
72314
|
+
|
|
72315
|
+
/** CmsAccessDataReportCompleted timestamp */
|
|
72316
|
+
timestamp?: (number|Long|null);
|
|
72317
|
+
|
|
72318
|
+
/** CmsAccessDataReportCompleted hsUserId */
|
|
72319
|
+
hsUserId?: (string|null);
|
|
72320
|
+
|
|
72321
|
+
/** CmsAccessDataReportCompleted trackingId */
|
|
72322
|
+
trackingId?: (string|null);
|
|
72323
|
+
|
|
72324
|
+
/** CmsAccessDataReportCompleted cmsSubmissionId */
|
|
72325
|
+
cmsSubmissionId?: (string|null);
|
|
72326
|
+
|
|
72327
|
+
/** CmsAccessDataReportCompleted reportType */
|
|
72328
|
+
reportType?: (CmsAccessReportType|null);
|
|
72329
|
+
|
|
72330
|
+
/** CmsAccessDataReportCompleted result */
|
|
72331
|
+
result?: (CmsAccessDataReportResult|null);
|
|
72332
|
+
|
|
72333
|
+
/** CmsAccessDataReportCompleted submittedAt */
|
|
72334
|
+
submittedAt?: (number|Long|null);
|
|
72335
|
+
|
|
72336
|
+
/** Unknown fields preserved while decoding */
|
|
72337
|
+
$unknowns?: Uint8Array[];
|
|
72338
|
+
}
|
|
72339
|
+
|
|
72340
|
+
/** Shape of a CmsAccessDataReportCompleted. */
|
|
72341
|
+
type $Shape = CmsAccessDataReportCompleted.$Properties;
|
|
72342
|
+
}
|
|
72343
|
+
|
|
72133
72344
|
/**
|
|
72134
72345
|
* Properties of a TaggedCustomField.
|
|
72135
72346
|
* @deprecated Use TaggedCustomField.$Properties instead.
|
package/lib/index.js
CHANGED
|
@@ -206111,6 +206111,9 @@ $root.CmsAccessUnalignmentResult = (function() {
|
|
|
206111
206111
|
* @property {number} CMS_ACCESS_FAILURE_REASON_POLL_TIMEOUT=2 CMS_ACCESS_FAILURE_REASON_POLL_TIMEOUT value
|
|
206112
206112
|
* @property {number} CMS_ACCESS_FAILURE_REASON_POLL_ERROR=3 CMS_ACCESS_FAILURE_REASON_POLL_ERROR value
|
|
206113
206113
|
* @property {number} CMS_ACCESS_FAILURE_REASON_INVALID_RESPONSE=4 CMS_ACCESS_FAILURE_REASON_INVALID_RESPONSE value
|
|
206114
|
+
* @property {number} CMS_ACCESS_FAILURE_REASON_CONSENT_TIMEOUT=5 CMS_ACCESS_FAILURE_REASON_CONSENT_TIMEOUT value
|
|
206115
|
+
* @property {number} CMS_ACCESS_FAILURE_REASON_ASSESSMENT_TIMEOUT=6 CMS_ACCESS_FAILURE_REASON_ASSESSMENT_TIMEOUT value
|
|
206116
|
+
* @property {number} CMS_ACCESS_FAILURE_REASON_ASSESSMENT_AND_CONSENT_TIMEOUT=7 CMS_ACCESS_FAILURE_REASON_ASSESSMENT_AND_CONSENT_TIMEOUT value
|
|
206114
206117
|
*/
|
|
206115
206118
|
$root.CmsAccessFailureReason = (function() {
|
|
206116
206119
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -206119,6 +206122,9 @@ $root.CmsAccessFailureReason = (function() {
|
|
|
206119
206122
|
values[valuesById[2] = "CMS_ACCESS_FAILURE_REASON_POLL_TIMEOUT"] = 2;
|
|
206120
206123
|
values[valuesById[3] = "CMS_ACCESS_FAILURE_REASON_POLL_ERROR"] = 3;
|
|
206121
206124
|
values[valuesById[4] = "CMS_ACCESS_FAILURE_REASON_INVALID_RESPONSE"] = 4;
|
|
206125
|
+
values[valuesById[5] = "CMS_ACCESS_FAILURE_REASON_CONSENT_TIMEOUT"] = 5;
|
|
206126
|
+
values[valuesById[6] = "CMS_ACCESS_FAILURE_REASON_ASSESSMENT_TIMEOUT"] = 6;
|
|
206127
|
+
values[valuesById[7] = "CMS_ACCESS_FAILURE_REASON_ASSESSMENT_AND_CONSENT_TIMEOUT"] = 7;
|
|
206122
206128
|
return values;
|
|
206123
206129
|
})();
|
|
206124
206130
|
|
|
@@ -207937,6 +207943,9 @@ $root.CmsAccessSubmissionFailed = (function() {
|
|
|
207937
207943
|
case 2:
|
|
207938
207944
|
case 3:
|
|
207939
207945
|
case 4:
|
|
207946
|
+
case 5:
|
|
207947
|
+
case 6:
|
|
207948
|
+
case 7:
|
|
207940
207949
|
break;
|
|
207941
207950
|
}
|
|
207942
207951
|
if (message.errorDetail != null && message.hasOwnProperty("errorDetail"))
|
|
@@ -208036,6 +208045,18 @@ $root.CmsAccessSubmissionFailed = (function() {
|
|
|
208036
208045
|
case 4:
|
|
208037
208046
|
message.failureReason = 4;
|
|
208038
208047
|
break;
|
|
208048
|
+
case "CMS_ACCESS_FAILURE_REASON_CONSENT_TIMEOUT":
|
|
208049
|
+
case 5:
|
|
208050
|
+
message.failureReason = 5;
|
|
208051
|
+
break;
|
|
208052
|
+
case "CMS_ACCESS_FAILURE_REASON_ASSESSMENT_TIMEOUT":
|
|
208053
|
+
case 6:
|
|
208054
|
+
message.failureReason = 6;
|
|
208055
|
+
break;
|
|
208056
|
+
case "CMS_ACCESS_FAILURE_REASON_ASSESSMENT_AND_CONSENT_TIMEOUT":
|
|
208057
|
+
case 7:
|
|
208058
|
+
message.failureReason = 7;
|
|
208059
|
+
break;
|
|
208039
208060
|
}
|
|
208040
208061
|
if (object.errorDetail != null)
|
|
208041
208062
|
if (typeof object.errorDetail !== "string" || object.errorDetail.length)
|
|
@@ -209381,6 +209402,582 @@ $root.CmsAccessEnrollmentExcluded = (function() {
|
|
|
209381
209402
|
return CmsAccessEnrollmentExcluded;
|
|
209382
209403
|
})();
|
|
209383
209404
|
|
|
209405
|
+
/**
|
|
209406
|
+
* CmsAccessReportType enum.
|
|
209407
|
+
* @name CmsAccessReportType
|
|
209408
|
+
* @enum {number}
|
|
209409
|
+
* @property {number} CMS_ACCESS_REPORT_TYPE_UNKNOWN=0 CMS_ACCESS_REPORT_TYPE_UNKNOWN value
|
|
209410
|
+
* @property {number} CMS_ACCESS_REPORT_TYPE_BASELINE=1 CMS_ACCESS_REPORT_TYPE_BASELINE value
|
|
209411
|
+
* @property {number} CMS_ACCESS_REPORT_TYPE_QUARTERLY=2 CMS_ACCESS_REPORT_TYPE_QUARTERLY value
|
|
209412
|
+
* @property {number} CMS_ACCESS_REPORT_TYPE_END_OF_PERIOD=3 CMS_ACCESS_REPORT_TYPE_END_OF_PERIOD value
|
|
209413
|
+
*/
|
|
209414
|
+
$root.CmsAccessReportType = (function() {
|
|
209415
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
209416
|
+
values[valuesById[0] = "CMS_ACCESS_REPORT_TYPE_UNKNOWN"] = 0;
|
|
209417
|
+
values[valuesById[1] = "CMS_ACCESS_REPORT_TYPE_BASELINE"] = 1;
|
|
209418
|
+
values[valuesById[2] = "CMS_ACCESS_REPORT_TYPE_QUARTERLY"] = 2;
|
|
209419
|
+
values[valuesById[3] = "CMS_ACCESS_REPORT_TYPE_END_OF_PERIOD"] = 3;
|
|
209420
|
+
return values;
|
|
209421
|
+
})();
|
|
209422
|
+
|
|
209423
|
+
/**
|
|
209424
|
+
* CmsAccessDataReportResult enum.
|
|
209425
|
+
* @name CmsAccessDataReportResult
|
|
209426
|
+
* @enum {number}
|
|
209427
|
+
* @property {number} CMS_ACCESS_DATA_REPORT_RESULT_UNKNOWN=0 CMS_ACCESS_DATA_REPORT_RESULT_UNKNOWN value
|
|
209428
|
+
* @property {number} CMS_ACCESS_DATA_REPORT_RESULT_SUCCESS=1 CMS_ACCESS_DATA_REPORT_RESULT_SUCCESS value
|
|
209429
|
+
* @property {number} CMS_ACCESS_DATA_REPORT_RESULT_DUPLICATE=2 CMS_ACCESS_DATA_REPORT_RESULT_DUPLICATE value
|
|
209430
|
+
* @property {number} CMS_ACCESS_DATA_REPORT_RESULT_BENEFICIARY_NOT_ALIGNED=3 CMS_ACCESS_DATA_REPORT_RESULT_BENEFICIARY_NOT_ALIGNED value
|
|
209431
|
+
* @property {number} CMS_ACCESS_DATA_REPORT_RESULT_REPORTING_PERIOD_CLOSED=4 CMS_ACCESS_DATA_REPORT_RESULT_REPORTING_PERIOD_CLOSED value
|
|
209432
|
+
* @property {number} CMS_ACCESS_DATA_REPORT_RESULT_INCOMPLETE_DATA=5 CMS_ACCESS_DATA_REPORT_RESULT_INCOMPLETE_DATA value
|
|
209433
|
+
* @property {number} CMS_ACCESS_DATA_REPORT_RESULT_INCORRECT_TRACK=6 CMS_ACCESS_DATA_REPORT_RESULT_INCORRECT_TRACK value
|
|
209434
|
+
*/
|
|
209435
|
+
$root.CmsAccessDataReportResult = (function() {
|
|
209436
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
209437
|
+
values[valuesById[0] = "CMS_ACCESS_DATA_REPORT_RESULT_UNKNOWN"] = 0;
|
|
209438
|
+
values[valuesById[1] = "CMS_ACCESS_DATA_REPORT_RESULT_SUCCESS"] = 1;
|
|
209439
|
+
values[valuesById[2] = "CMS_ACCESS_DATA_REPORT_RESULT_DUPLICATE"] = 2;
|
|
209440
|
+
values[valuesById[3] = "CMS_ACCESS_DATA_REPORT_RESULT_BENEFICIARY_NOT_ALIGNED"] = 3;
|
|
209441
|
+
values[valuesById[4] = "CMS_ACCESS_DATA_REPORT_RESULT_REPORTING_PERIOD_CLOSED"] = 4;
|
|
209442
|
+
values[valuesById[5] = "CMS_ACCESS_DATA_REPORT_RESULT_INCOMPLETE_DATA"] = 5;
|
|
209443
|
+
values[valuesById[6] = "CMS_ACCESS_DATA_REPORT_RESULT_INCORRECT_TRACK"] = 6;
|
|
209444
|
+
return values;
|
|
209445
|
+
})();
|
|
209446
|
+
|
|
209447
|
+
$root.CmsAccessDataReportCompleted = (function() {
|
|
209448
|
+
|
|
209449
|
+
/**
|
|
209450
|
+
* Properties of a CmsAccessDataReportCompleted.
|
|
209451
|
+
* @typedef {Object} CmsAccessDataReportCompleted.$Properties
|
|
209452
|
+
* @property {number|Long|null} [timestamp] CmsAccessDataReportCompleted timestamp
|
|
209453
|
+
* @property {string|null} [hsUserId] CmsAccessDataReportCompleted hsUserId
|
|
209454
|
+
* @property {string|null} [trackingId] CmsAccessDataReportCompleted trackingId
|
|
209455
|
+
* @property {string|null} [cmsSubmissionId] CmsAccessDataReportCompleted cmsSubmissionId
|
|
209456
|
+
* @property {CmsAccessReportType|null} [reportType] CmsAccessDataReportCompleted reportType
|
|
209457
|
+
* @property {CmsAccessDataReportResult|null} [result] CmsAccessDataReportCompleted result
|
|
209458
|
+
* @property {number|Long|null} [submittedAt] CmsAccessDataReportCompleted submittedAt
|
|
209459
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
209460
|
+
*/
|
|
209461
|
+
|
|
209462
|
+
/**
|
|
209463
|
+
* Properties of a CmsAccessDataReportCompleted.
|
|
209464
|
+
* @name ICmsAccessDataReportCompleted
|
|
209465
|
+
* @interface ICmsAccessDataReportCompleted
|
|
209466
|
+
* @augments CmsAccessDataReportCompleted.$Properties
|
|
209467
|
+
* @deprecated Use CmsAccessDataReportCompleted.$Properties instead.
|
|
209468
|
+
*/
|
|
209469
|
+
|
|
209470
|
+
/**
|
|
209471
|
+
* Shape of a CmsAccessDataReportCompleted.
|
|
209472
|
+
* @typedef {CmsAccessDataReportCompleted.$Properties} CmsAccessDataReportCompleted.$Shape
|
|
209473
|
+
*/
|
|
209474
|
+
|
|
209475
|
+
/**
|
|
209476
|
+
* Constructs a new CmsAccessDataReportCompleted.
|
|
209477
|
+
* @name CmsAccessDataReportCompleted
|
|
209478
|
+
* @classdesc Published when a CMS ACCESS $report-data (Outcome-Aligned Payment) submission
|
|
209479
|
+
* reaches a terminal state. Submits a beneficiary's BH clinical-instrument scores
|
|
209480
|
+
* to CMS as a FHIR Bundle across the care period (baseline, quarterly, end-of-period).
|
|
209481
|
+
* Used by Data Engineering for outcomes-reporting compliance KPIs
|
|
209482
|
+
* (ADR-004 §2, hs-cms-access-service docs/decisions/0004-event-coverage-for-analytics.md).
|
|
209483
|
+
* Fired by: hs-cms-access-service
|
|
209484
|
+
* Responsible team: Health Plans
|
|
209485
|
+
* @constructor
|
|
209486
|
+
* @param {CmsAccessDataReportCompleted.$Properties=} [properties] Properties to set
|
|
209487
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
209488
|
+
*/
|
|
209489
|
+
function CmsAccessDataReportCompleted(properties) {
|
|
209490
|
+
if (properties)
|
|
209491
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
209492
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
209493
|
+
this[keys[i]] = properties[keys[i]];
|
|
209494
|
+
}
|
|
209495
|
+
|
|
209496
|
+
/**
|
|
209497
|
+
* CmsAccessDataReportCompleted timestamp.
|
|
209498
|
+
* @member {number|Long} timestamp
|
|
209499
|
+
* @memberof CmsAccessDataReportCompleted
|
|
209500
|
+
* @instance
|
|
209501
|
+
*/
|
|
209502
|
+
CmsAccessDataReportCompleted.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
209503
|
+
|
|
209504
|
+
/**
|
|
209505
|
+
* CmsAccessDataReportCompleted hsUserId.
|
|
209506
|
+
* @member {string} hsUserId
|
|
209507
|
+
* @memberof CmsAccessDataReportCompleted
|
|
209508
|
+
* @instance
|
|
209509
|
+
*/
|
|
209510
|
+
CmsAccessDataReportCompleted.prototype.hsUserId = "";
|
|
209511
|
+
|
|
209512
|
+
/**
|
|
209513
|
+
* CmsAccessDataReportCompleted trackingId.
|
|
209514
|
+
* @member {string} trackingId
|
|
209515
|
+
* @memberof CmsAccessDataReportCompleted
|
|
209516
|
+
* @instance
|
|
209517
|
+
*/
|
|
209518
|
+
CmsAccessDataReportCompleted.prototype.trackingId = "";
|
|
209519
|
+
|
|
209520
|
+
/**
|
|
209521
|
+
* CmsAccessDataReportCompleted cmsSubmissionId.
|
|
209522
|
+
* @member {string} cmsSubmissionId
|
|
209523
|
+
* @memberof CmsAccessDataReportCompleted
|
|
209524
|
+
* @instance
|
|
209525
|
+
*/
|
|
209526
|
+
CmsAccessDataReportCompleted.prototype.cmsSubmissionId = "";
|
|
209527
|
+
|
|
209528
|
+
/**
|
|
209529
|
+
* CmsAccessDataReportCompleted reportType.
|
|
209530
|
+
* @member {CmsAccessReportType} reportType
|
|
209531
|
+
* @memberof CmsAccessDataReportCompleted
|
|
209532
|
+
* @instance
|
|
209533
|
+
*/
|
|
209534
|
+
CmsAccessDataReportCompleted.prototype.reportType = 0;
|
|
209535
|
+
|
|
209536
|
+
/**
|
|
209537
|
+
* CmsAccessDataReportCompleted result.
|
|
209538
|
+
* @member {CmsAccessDataReportResult} result
|
|
209539
|
+
* @memberof CmsAccessDataReportCompleted
|
|
209540
|
+
* @instance
|
|
209541
|
+
*/
|
|
209542
|
+
CmsAccessDataReportCompleted.prototype.result = 0;
|
|
209543
|
+
|
|
209544
|
+
/**
|
|
209545
|
+
* CmsAccessDataReportCompleted submittedAt.
|
|
209546
|
+
* @member {number|Long} submittedAt
|
|
209547
|
+
* @memberof CmsAccessDataReportCompleted
|
|
209548
|
+
* @instance
|
|
209549
|
+
*/
|
|
209550
|
+
CmsAccessDataReportCompleted.prototype.submittedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
209551
|
+
|
|
209552
|
+
/**
|
|
209553
|
+
* Creates a new CmsAccessDataReportCompleted instance using the specified properties.
|
|
209554
|
+
* @function create
|
|
209555
|
+
* @memberof CmsAccessDataReportCompleted
|
|
209556
|
+
* @static
|
|
209557
|
+
* @param {CmsAccessDataReportCompleted.$Properties=} [properties] Properties to set
|
|
209558
|
+
* @returns {CmsAccessDataReportCompleted} CmsAccessDataReportCompleted instance
|
|
209559
|
+
* @type {{
|
|
209560
|
+
* (properties: CmsAccessDataReportCompleted.$Shape): CmsAccessDataReportCompleted & CmsAccessDataReportCompleted.$Shape;
|
|
209561
|
+
* (properties?: CmsAccessDataReportCompleted.$Properties): CmsAccessDataReportCompleted;
|
|
209562
|
+
* }}
|
|
209563
|
+
*/
|
|
209564
|
+
CmsAccessDataReportCompleted.create = function create(properties) {
|
|
209565
|
+
return new CmsAccessDataReportCompleted(properties);
|
|
209566
|
+
};
|
|
209567
|
+
|
|
209568
|
+
/**
|
|
209569
|
+
* Encodes the specified CmsAccessDataReportCompleted message. Does not implicitly {@link CmsAccessDataReportCompleted.verify|verify} messages.
|
|
209570
|
+
* @function encode
|
|
209571
|
+
* @memberof CmsAccessDataReportCompleted
|
|
209572
|
+
* @static
|
|
209573
|
+
* @param {CmsAccessDataReportCompleted.$Properties} message CmsAccessDataReportCompleted message or plain object to encode
|
|
209574
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
209575
|
+
* @returns {$protobuf.Writer} Writer
|
|
209576
|
+
*/
|
|
209577
|
+
CmsAccessDataReportCompleted.encode = function encode(message, writer) {
|
|
209578
|
+
if (!writer)
|
|
209579
|
+
writer = $Writer.create();
|
|
209580
|
+
if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
|
|
209581
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
|
|
209582
|
+
if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
|
|
209583
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.hsUserId);
|
|
209584
|
+
if (message.trackingId != null && Object.hasOwnProperty.call(message, "trackingId"))
|
|
209585
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.trackingId);
|
|
209586
|
+
if (message.cmsSubmissionId != null && Object.hasOwnProperty.call(message, "cmsSubmissionId"))
|
|
209587
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.cmsSubmissionId);
|
|
209588
|
+
if (message.reportType != null && Object.hasOwnProperty.call(message, "reportType"))
|
|
209589
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.reportType);
|
|
209590
|
+
if (message.result != null && Object.hasOwnProperty.call(message, "result"))
|
|
209591
|
+
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.result);
|
|
209592
|
+
if (message.submittedAt != null && Object.hasOwnProperty.call(message, "submittedAt"))
|
|
209593
|
+
writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.submittedAt);
|
|
209594
|
+
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
209595
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
209596
|
+
writer.raw(message.$unknowns[i]);
|
|
209597
|
+
return writer;
|
|
209598
|
+
};
|
|
209599
|
+
|
|
209600
|
+
/**
|
|
209601
|
+
* Encodes the specified CmsAccessDataReportCompleted message, length delimited. Does not implicitly {@link CmsAccessDataReportCompleted.verify|verify} messages.
|
|
209602
|
+
* @function encodeDelimited
|
|
209603
|
+
* @memberof CmsAccessDataReportCompleted
|
|
209604
|
+
* @static
|
|
209605
|
+
* @param {CmsAccessDataReportCompleted.$Properties} message CmsAccessDataReportCompleted message or plain object to encode
|
|
209606
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
209607
|
+
* @returns {$protobuf.Writer} Writer
|
|
209608
|
+
*/
|
|
209609
|
+
CmsAccessDataReportCompleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
209610
|
+
return this.encode(message, writer).ldelim();
|
|
209611
|
+
};
|
|
209612
|
+
|
|
209613
|
+
/**
|
|
209614
|
+
* Decodes a CmsAccessDataReportCompleted message from the specified reader or buffer.
|
|
209615
|
+
* @function decode
|
|
209616
|
+
* @memberof CmsAccessDataReportCompleted
|
|
209617
|
+
* @static
|
|
209618
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
209619
|
+
* @param {number} [length] Message length if known beforehand
|
|
209620
|
+
* @returns {CmsAccessDataReportCompleted & CmsAccessDataReportCompleted.$Shape} CmsAccessDataReportCompleted
|
|
209621
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
209622
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
209623
|
+
*/
|
|
209624
|
+
CmsAccessDataReportCompleted.decode = function decode(reader, length, _end, _depth, _target) {
|
|
209625
|
+
if (!(reader instanceof $Reader))
|
|
209626
|
+
reader = $Reader.create(reader);
|
|
209627
|
+
if (_depth === undefined)
|
|
209628
|
+
_depth = 0;
|
|
209629
|
+
if (_depth > $Reader.recursionLimit)
|
|
209630
|
+
throw Error("max depth exceeded");
|
|
209631
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.CmsAccessDataReportCompleted(), value;
|
|
209632
|
+
while (reader.pos < end) {
|
|
209633
|
+
var start = reader.pos;
|
|
209634
|
+
var tag = reader.tag();
|
|
209635
|
+
if (tag === _end) {
|
|
209636
|
+
_end = undefined;
|
|
209637
|
+
break;
|
|
209638
|
+
}
|
|
209639
|
+
var wireType = tag & 7;
|
|
209640
|
+
switch (tag >>>= 3) {
|
|
209641
|
+
case 1: {
|
|
209642
|
+
if (wireType !== 0)
|
|
209643
|
+
break;
|
|
209644
|
+
if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
|
|
209645
|
+
message.timestamp = value;
|
|
209646
|
+
else
|
|
209647
|
+
delete message.timestamp;
|
|
209648
|
+
continue;
|
|
209649
|
+
}
|
|
209650
|
+
case 2: {
|
|
209651
|
+
if (wireType !== 2)
|
|
209652
|
+
break;
|
|
209653
|
+
if ((value = reader.string()).length)
|
|
209654
|
+
message.hsUserId = value;
|
|
209655
|
+
else
|
|
209656
|
+
delete message.hsUserId;
|
|
209657
|
+
continue;
|
|
209658
|
+
}
|
|
209659
|
+
case 3: {
|
|
209660
|
+
if (wireType !== 2)
|
|
209661
|
+
break;
|
|
209662
|
+
if ((value = reader.string()).length)
|
|
209663
|
+
message.trackingId = value;
|
|
209664
|
+
else
|
|
209665
|
+
delete message.trackingId;
|
|
209666
|
+
continue;
|
|
209667
|
+
}
|
|
209668
|
+
case 4: {
|
|
209669
|
+
if (wireType !== 2)
|
|
209670
|
+
break;
|
|
209671
|
+
if ((value = reader.string()).length)
|
|
209672
|
+
message.cmsSubmissionId = value;
|
|
209673
|
+
else
|
|
209674
|
+
delete message.cmsSubmissionId;
|
|
209675
|
+
continue;
|
|
209676
|
+
}
|
|
209677
|
+
case 5: {
|
|
209678
|
+
if (wireType !== 0)
|
|
209679
|
+
break;
|
|
209680
|
+
if (value = reader.int32())
|
|
209681
|
+
message.reportType = value;
|
|
209682
|
+
else
|
|
209683
|
+
delete message.reportType;
|
|
209684
|
+
continue;
|
|
209685
|
+
}
|
|
209686
|
+
case 6: {
|
|
209687
|
+
if (wireType !== 0)
|
|
209688
|
+
break;
|
|
209689
|
+
if (value = reader.int32())
|
|
209690
|
+
message.result = value;
|
|
209691
|
+
else
|
|
209692
|
+
delete message.result;
|
|
209693
|
+
continue;
|
|
209694
|
+
}
|
|
209695
|
+
case 7: {
|
|
209696
|
+
if (wireType !== 0)
|
|
209697
|
+
break;
|
|
209698
|
+
if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
|
|
209699
|
+
message.submittedAt = value;
|
|
209700
|
+
else
|
|
209701
|
+
delete message.submittedAt;
|
|
209702
|
+
continue;
|
|
209703
|
+
}
|
|
209704
|
+
}
|
|
209705
|
+
reader.skipType(wireType, _depth, tag);
|
|
209706
|
+
$util.makeProp(message, "$unknowns", false);
|
|
209707
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
209708
|
+
}
|
|
209709
|
+
if (_end !== undefined)
|
|
209710
|
+
throw Error("missing end group");
|
|
209711
|
+
return message;
|
|
209712
|
+
};
|
|
209713
|
+
|
|
209714
|
+
/**
|
|
209715
|
+
* Decodes a CmsAccessDataReportCompleted message from the specified reader or buffer, length delimited.
|
|
209716
|
+
* @function decodeDelimited
|
|
209717
|
+
* @memberof CmsAccessDataReportCompleted
|
|
209718
|
+
* @static
|
|
209719
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
209720
|
+
* @returns {CmsAccessDataReportCompleted & CmsAccessDataReportCompleted.$Shape} CmsAccessDataReportCompleted
|
|
209721
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
209722
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
209723
|
+
*/
|
|
209724
|
+
CmsAccessDataReportCompleted.decodeDelimited = function decodeDelimited(reader) {
|
|
209725
|
+
if (!(reader instanceof $Reader))
|
|
209726
|
+
reader = new $Reader(reader);
|
|
209727
|
+
return this.decode(reader, reader.uint32());
|
|
209728
|
+
};
|
|
209729
|
+
|
|
209730
|
+
/**
|
|
209731
|
+
* Verifies a CmsAccessDataReportCompleted message.
|
|
209732
|
+
* @function verify
|
|
209733
|
+
* @memberof CmsAccessDataReportCompleted
|
|
209734
|
+
* @static
|
|
209735
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
209736
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
209737
|
+
*/
|
|
209738
|
+
CmsAccessDataReportCompleted.verify = function verify(message, _depth) {
|
|
209739
|
+
if (typeof message !== "object" || message === null)
|
|
209740
|
+
return "object expected";
|
|
209741
|
+
if (_depth === undefined)
|
|
209742
|
+
_depth = 0;
|
|
209743
|
+
if (_depth > $util.recursionLimit)
|
|
209744
|
+
return "max depth exceeded";
|
|
209745
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
209746
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
209747
|
+
return "timestamp: integer|Long expected";
|
|
209748
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
209749
|
+
if (!$util.isString(message.hsUserId))
|
|
209750
|
+
return "hsUserId: string expected";
|
|
209751
|
+
if (message.trackingId != null && message.hasOwnProperty("trackingId"))
|
|
209752
|
+
if (!$util.isString(message.trackingId))
|
|
209753
|
+
return "trackingId: string expected";
|
|
209754
|
+
if (message.cmsSubmissionId != null && message.hasOwnProperty("cmsSubmissionId"))
|
|
209755
|
+
if (!$util.isString(message.cmsSubmissionId))
|
|
209756
|
+
return "cmsSubmissionId: string expected";
|
|
209757
|
+
if (message.reportType != null && message.hasOwnProperty("reportType"))
|
|
209758
|
+
switch (message.reportType) {
|
|
209759
|
+
default:
|
|
209760
|
+
return "reportType: enum value expected";
|
|
209761
|
+
case 0:
|
|
209762
|
+
case 1:
|
|
209763
|
+
case 2:
|
|
209764
|
+
case 3:
|
|
209765
|
+
break;
|
|
209766
|
+
}
|
|
209767
|
+
if (message.result != null && message.hasOwnProperty("result"))
|
|
209768
|
+
switch (message.result) {
|
|
209769
|
+
default:
|
|
209770
|
+
return "result: enum value expected";
|
|
209771
|
+
case 0:
|
|
209772
|
+
case 1:
|
|
209773
|
+
case 2:
|
|
209774
|
+
case 3:
|
|
209775
|
+
case 4:
|
|
209776
|
+
case 5:
|
|
209777
|
+
case 6:
|
|
209778
|
+
break;
|
|
209779
|
+
}
|
|
209780
|
+
if (message.submittedAt != null && message.hasOwnProperty("submittedAt"))
|
|
209781
|
+
if (!$util.isInteger(message.submittedAt) && !(message.submittedAt && $util.isInteger(message.submittedAt.low) && $util.isInteger(message.submittedAt.high)))
|
|
209782
|
+
return "submittedAt: integer|Long expected";
|
|
209783
|
+
return null;
|
|
209784
|
+
};
|
|
209785
|
+
|
|
209786
|
+
/**
|
|
209787
|
+
* Creates a CmsAccessDataReportCompleted message from a plain object. Also converts values to their respective internal types.
|
|
209788
|
+
* @function fromObject
|
|
209789
|
+
* @memberof CmsAccessDataReportCompleted
|
|
209790
|
+
* @static
|
|
209791
|
+
* @param {Object.<string,*>} object Plain object
|
|
209792
|
+
* @returns {CmsAccessDataReportCompleted} CmsAccessDataReportCompleted
|
|
209793
|
+
*/
|
|
209794
|
+
CmsAccessDataReportCompleted.fromObject = function fromObject(object, _depth) {
|
|
209795
|
+
if (object instanceof $root.CmsAccessDataReportCompleted)
|
|
209796
|
+
return object;
|
|
209797
|
+
if (_depth === undefined)
|
|
209798
|
+
_depth = 0;
|
|
209799
|
+
if (_depth > $util.recursionLimit)
|
|
209800
|
+
throw Error("max depth exceeded");
|
|
209801
|
+
var message = new $root.CmsAccessDataReportCompleted();
|
|
209802
|
+
if (object.timestamp != null)
|
|
209803
|
+
if (typeof object.timestamp === "object" ? object.timestamp.low || object.timestamp.high : Number(object.timestamp) !== 0)
|
|
209804
|
+
if ($util.Long)
|
|
209805
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
209806
|
+
else if (typeof object.timestamp === "string")
|
|
209807
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
209808
|
+
else if (typeof object.timestamp === "number")
|
|
209809
|
+
message.timestamp = object.timestamp;
|
|
209810
|
+
else if (typeof object.timestamp === "object")
|
|
209811
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
209812
|
+
if (object.hsUserId != null)
|
|
209813
|
+
if (typeof object.hsUserId !== "string" || object.hsUserId.length)
|
|
209814
|
+
message.hsUserId = String(object.hsUserId);
|
|
209815
|
+
if (object.trackingId != null)
|
|
209816
|
+
if (typeof object.trackingId !== "string" || object.trackingId.length)
|
|
209817
|
+
message.trackingId = String(object.trackingId);
|
|
209818
|
+
if (object.cmsSubmissionId != null)
|
|
209819
|
+
if (typeof object.cmsSubmissionId !== "string" || object.cmsSubmissionId.length)
|
|
209820
|
+
message.cmsSubmissionId = String(object.cmsSubmissionId);
|
|
209821
|
+
if (object.reportType !== 0 && (typeof object.reportType !== "string" || $root.CmsAccessReportType[object.reportType] !== 0))
|
|
209822
|
+
switch (object.reportType) {
|
|
209823
|
+
default:
|
|
209824
|
+
if (typeof object.reportType === "number") {
|
|
209825
|
+
message.reportType = object.reportType;
|
|
209826
|
+
break;
|
|
209827
|
+
}
|
|
209828
|
+
break;
|
|
209829
|
+
case "CMS_ACCESS_REPORT_TYPE_UNKNOWN":
|
|
209830
|
+
case 0:
|
|
209831
|
+
message.reportType = 0;
|
|
209832
|
+
break;
|
|
209833
|
+
case "CMS_ACCESS_REPORT_TYPE_BASELINE":
|
|
209834
|
+
case 1:
|
|
209835
|
+
message.reportType = 1;
|
|
209836
|
+
break;
|
|
209837
|
+
case "CMS_ACCESS_REPORT_TYPE_QUARTERLY":
|
|
209838
|
+
case 2:
|
|
209839
|
+
message.reportType = 2;
|
|
209840
|
+
break;
|
|
209841
|
+
case "CMS_ACCESS_REPORT_TYPE_END_OF_PERIOD":
|
|
209842
|
+
case 3:
|
|
209843
|
+
message.reportType = 3;
|
|
209844
|
+
break;
|
|
209845
|
+
}
|
|
209846
|
+
if (object.result !== 0 && (typeof object.result !== "string" || $root.CmsAccessDataReportResult[object.result] !== 0))
|
|
209847
|
+
switch (object.result) {
|
|
209848
|
+
default:
|
|
209849
|
+
if (typeof object.result === "number") {
|
|
209850
|
+
message.result = object.result;
|
|
209851
|
+
break;
|
|
209852
|
+
}
|
|
209853
|
+
break;
|
|
209854
|
+
case "CMS_ACCESS_DATA_REPORT_RESULT_UNKNOWN":
|
|
209855
|
+
case 0:
|
|
209856
|
+
message.result = 0;
|
|
209857
|
+
break;
|
|
209858
|
+
case "CMS_ACCESS_DATA_REPORT_RESULT_SUCCESS":
|
|
209859
|
+
case 1:
|
|
209860
|
+
message.result = 1;
|
|
209861
|
+
break;
|
|
209862
|
+
case "CMS_ACCESS_DATA_REPORT_RESULT_DUPLICATE":
|
|
209863
|
+
case 2:
|
|
209864
|
+
message.result = 2;
|
|
209865
|
+
break;
|
|
209866
|
+
case "CMS_ACCESS_DATA_REPORT_RESULT_BENEFICIARY_NOT_ALIGNED":
|
|
209867
|
+
case 3:
|
|
209868
|
+
message.result = 3;
|
|
209869
|
+
break;
|
|
209870
|
+
case "CMS_ACCESS_DATA_REPORT_RESULT_REPORTING_PERIOD_CLOSED":
|
|
209871
|
+
case 4:
|
|
209872
|
+
message.result = 4;
|
|
209873
|
+
break;
|
|
209874
|
+
case "CMS_ACCESS_DATA_REPORT_RESULT_INCOMPLETE_DATA":
|
|
209875
|
+
case 5:
|
|
209876
|
+
message.result = 5;
|
|
209877
|
+
break;
|
|
209878
|
+
case "CMS_ACCESS_DATA_REPORT_RESULT_INCORRECT_TRACK":
|
|
209879
|
+
case 6:
|
|
209880
|
+
message.result = 6;
|
|
209881
|
+
break;
|
|
209882
|
+
}
|
|
209883
|
+
if (object.submittedAt != null)
|
|
209884
|
+
if (typeof object.submittedAt === "object" ? object.submittedAt.low || object.submittedAt.high : Number(object.submittedAt) !== 0)
|
|
209885
|
+
if ($util.Long)
|
|
209886
|
+
(message.submittedAt = $util.Long.fromValue(object.submittedAt)).unsigned = true;
|
|
209887
|
+
else if (typeof object.submittedAt === "string")
|
|
209888
|
+
message.submittedAt = parseInt(object.submittedAt, 10);
|
|
209889
|
+
else if (typeof object.submittedAt === "number")
|
|
209890
|
+
message.submittedAt = object.submittedAt;
|
|
209891
|
+
else if (typeof object.submittedAt === "object")
|
|
209892
|
+
message.submittedAt = new $util.LongBits(object.submittedAt.low >>> 0, object.submittedAt.high >>> 0).toNumber(true);
|
|
209893
|
+
return message;
|
|
209894
|
+
};
|
|
209895
|
+
|
|
209896
|
+
/**
|
|
209897
|
+
* Creates a plain object from a CmsAccessDataReportCompleted message. Also converts values to other types if specified.
|
|
209898
|
+
* @function toObject
|
|
209899
|
+
* @memberof CmsAccessDataReportCompleted
|
|
209900
|
+
* @static
|
|
209901
|
+
* @param {CmsAccessDataReportCompleted} message CmsAccessDataReportCompleted
|
|
209902
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
209903
|
+
* @returns {Object.<string,*>} Plain object
|
|
209904
|
+
*/
|
|
209905
|
+
CmsAccessDataReportCompleted.toObject = function toObject(message, options) {
|
|
209906
|
+
if (!options)
|
|
209907
|
+
options = {};
|
|
209908
|
+
var object = {};
|
|
209909
|
+
if (options.defaults) {
|
|
209910
|
+
if ($util.Long) {
|
|
209911
|
+
var long = new $util.Long(0, 0, true);
|
|
209912
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
209913
|
+
} else
|
|
209914
|
+
object.timestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
209915
|
+
object.hsUserId = "";
|
|
209916
|
+
object.trackingId = "";
|
|
209917
|
+
object.cmsSubmissionId = "";
|
|
209918
|
+
object.reportType = options.enums === String ? "CMS_ACCESS_REPORT_TYPE_UNKNOWN" : 0;
|
|
209919
|
+
object.result = options.enums === String ? "CMS_ACCESS_DATA_REPORT_RESULT_UNKNOWN" : 0;
|
|
209920
|
+
if ($util.Long) {
|
|
209921
|
+
var long = new $util.Long(0, 0, true);
|
|
209922
|
+
object.submittedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
209923
|
+
} else
|
|
209924
|
+
object.submittedAt = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
209925
|
+
}
|
|
209926
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
209927
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
209928
|
+
object.timestamp = typeof message.timestamp === "number" ? BigInt(message.timestamp) : $util.Long.fromBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0, true).toBigInt();
|
|
209929
|
+
else if (typeof message.timestamp === "number")
|
|
209930
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
209931
|
+
else
|
|
209932
|
+
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
209933
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
209934
|
+
object.hsUserId = message.hsUserId;
|
|
209935
|
+
if (message.trackingId != null && message.hasOwnProperty("trackingId"))
|
|
209936
|
+
object.trackingId = message.trackingId;
|
|
209937
|
+
if (message.cmsSubmissionId != null && message.hasOwnProperty("cmsSubmissionId"))
|
|
209938
|
+
object.cmsSubmissionId = message.cmsSubmissionId;
|
|
209939
|
+
if (message.reportType != null && message.hasOwnProperty("reportType"))
|
|
209940
|
+
object.reportType = options.enums === String ? $root.CmsAccessReportType[message.reportType] === undefined ? message.reportType : $root.CmsAccessReportType[message.reportType] : message.reportType;
|
|
209941
|
+
if (message.result != null && message.hasOwnProperty("result"))
|
|
209942
|
+
object.result = options.enums === String ? $root.CmsAccessDataReportResult[message.result] === undefined ? message.result : $root.CmsAccessDataReportResult[message.result] : message.result;
|
|
209943
|
+
if (message.submittedAt != null && message.hasOwnProperty("submittedAt"))
|
|
209944
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
209945
|
+
object.submittedAt = typeof message.submittedAt === "number" ? BigInt(message.submittedAt) : $util.Long.fromBits(message.submittedAt.low >>> 0, message.submittedAt.high >>> 0, true).toBigInt();
|
|
209946
|
+
else if (typeof message.submittedAt === "number")
|
|
209947
|
+
object.submittedAt = options.longs === String ? String(message.submittedAt) : message.submittedAt;
|
|
209948
|
+
else
|
|
209949
|
+
object.submittedAt = options.longs === String ? $util.Long.prototype.toString.call(message.submittedAt) : options.longs === Number ? new $util.LongBits(message.submittedAt.low >>> 0, message.submittedAt.high >>> 0).toNumber(true) : message.submittedAt;
|
|
209950
|
+
return object;
|
|
209951
|
+
};
|
|
209952
|
+
|
|
209953
|
+
/**
|
|
209954
|
+
* Converts this CmsAccessDataReportCompleted to JSON.
|
|
209955
|
+
* @function toJSON
|
|
209956
|
+
* @memberof CmsAccessDataReportCompleted
|
|
209957
|
+
* @instance
|
|
209958
|
+
* @returns {Object.<string,*>} JSON object
|
|
209959
|
+
*/
|
|
209960
|
+
CmsAccessDataReportCompleted.prototype.toJSON = function toJSON() {
|
|
209961
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
209962
|
+
};
|
|
209963
|
+
|
|
209964
|
+
/**
|
|
209965
|
+
* Gets the type url for CmsAccessDataReportCompleted
|
|
209966
|
+
* @function getTypeUrl
|
|
209967
|
+
* @memberof CmsAccessDataReportCompleted
|
|
209968
|
+
* @static
|
|
209969
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
209970
|
+
* @returns {string} The type url
|
|
209971
|
+
*/
|
|
209972
|
+
CmsAccessDataReportCompleted.getTypeUrl = function getTypeUrl(prefix) {
|
|
209973
|
+
if (prefix === undefined)
|
|
209974
|
+
prefix = "type.googleapis.com";
|
|
209975
|
+
return prefix + "/CmsAccessDataReportCompleted";
|
|
209976
|
+
};
|
|
209977
|
+
|
|
209978
|
+
return CmsAccessDataReportCompleted;
|
|
209979
|
+
})();
|
|
209980
|
+
|
|
209384
209981
|
$root.TaggedCustomField = (function() {
|
|
209385
209982
|
|
|
209386
209983
|
/**
|
package/package.json
CHANGED