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