@headspace/protos-events 1.608.0 → 1.609.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 +241 -0
- package/lib/index.js +690 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -58112,6 +58112,247 @@ export class OnboardingCompleted implements IOnboardingCompleted {
|
|
|
58112
58112
|
public toJSON(): { [k: string]: any };
|
|
58113
58113
|
}
|
|
58114
58114
|
|
|
58115
|
+
/** Properties of an OrgCoverageProfile. */
|
|
58116
|
+
export interface IOrgCoverageProfile {
|
|
58117
|
+
|
|
58118
|
+
/** OrgCoverageProfile orgId */
|
|
58119
|
+
orgId?: (number|Long|null);
|
|
58120
|
+
|
|
58121
|
+
/** OrgCoverageProfile type */
|
|
58122
|
+
type?: (OrgCoverageType|null);
|
|
58123
|
+
|
|
58124
|
+
/** OrgCoverageProfile servicesCovered */
|
|
58125
|
+
servicesCovered?: (OrgCoverageServicesCovered|null);
|
|
58126
|
+
|
|
58127
|
+
/** OrgCoverageProfile coverageTotal */
|
|
58128
|
+
coverageTotal?: (number|Long|null);
|
|
58129
|
+
|
|
58130
|
+
/** OrgCoverageProfile eapCarrier */
|
|
58131
|
+
eapCarrier?: (OrgCoverageEapCarrier|null);
|
|
58132
|
+
}
|
|
58133
|
+
|
|
58134
|
+
/** Represents an OrgCoverageProfile. */
|
|
58135
|
+
export class OrgCoverageProfile implements IOrgCoverageProfile {
|
|
58136
|
+
|
|
58137
|
+
/**
|
|
58138
|
+
* Constructs a new OrgCoverageProfile.
|
|
58139
|
+
* @param [properties] Properties to set
|
|
58140
|
+
*/
|
|
58141
|
+
constructor(properties?: IOrgCoverageProfile);
|
|
58142
|
+
|
|
58143
|
+
/** OrgCoverageProfile orgId. */
|
|
58144
|
+
public orgId: (number|Long);
|
|
58145
|
+
|
|
58146
|
+
/** OrgCoverageProfile type. */
|
|
58147
|
+
public type: OrgCoverageType;
|
|
58148
|
+
|
|
58149
|
+
/** OrgCoverageProfile servicesCovered. */
|
|
58150
|
+
public servicesCovered: OrgCoverageServicesCovered;
|
|
58151
|
+
|
|
58152
|
+
/** OrgCoverageProfile coverageTotal. */
|
|
58153
|
+
public coverageTotal: (number|Long);
|
|
58154
|
+
|
|
58155
|
+
/** OrgCoverageProfile eapCarrier. */
|
|
58156
|
+
public eapCarrier: OrgCoverageEapCarrier;
|
|
58157
|
+
|
|
58158
|
+
/**
|
|
58159
|
+
* Creates a new OrgCoverageProfile instance using the specified properties.
|
|
58160
|
+
* @param [properties] Properties to set
|
|
58161
|
+
* @returns OrgCoverageProfile instance
|
|
58162
|
+
*/
|
|
58163
|
+
public static create(properties?: IOrgCoverageProfile): OrgCoverageProfile;
|
|
58164
|
+
|
|
58165
|
+
/**
|
|
58166
|
+
* Encodes the specified OrgCoverageProfile message. Does not implicitly {@link OrgCoverageProfile.verify|verify} messages.
|
|
58167
|
+
* @param message OrgCoverageProfile message or plain object to encode
|
|
58168
|
+
* @param [writer] Writer to encode to
|
|
58169
|
+
* @returns Writer
|
|
58170
|
+
*/
|
|
58171
|
+
public static encode(message: IOrgCoverageProfile, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
58172
|
+
|
|
58173
|
+
/**
|
|
58174
|
+
* Encodes the specified OrgCoverageProfile message, length delimited. Does not implicitly {@link OrgCoverageProfile.verify|verify} messages.
|
|
58175
|
+
* @param message OrgCoverageProfile message or plain object to encode
|
|
58176
|
+
* @param [writer] Writer to encode to
|
|
58177
|
+
* @returns Writer
|
|
58178
|
+
*/
|
|
58179
|
+
public static encodeDelimited(message: IOrgCoverageProfile, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
58180
|
+
|
|
58181
|
+
/**
|
|
58182
|
+
* Decodes an OrgCoverageProfile message from the specified reader or buffer.
|
|
58183
|
+
* @param reader Reader or buffer to decode from
|
|
58184
|
+
* @param [length] Message length if known beforehand
|
|
58185
|
+
* @returns OrgCoverageProfile
|
|
58186
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58187
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58188
|
+
*/
|
|
58189
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): OrgCoverageProfile;
|
|
58190
|
+
|
|
58191
|
+
/**
|
|
58192
|
+
* Decodes an OrgCoverageProfile message from the specified reader or buffer, length delimited.
|
|
58193
|
+
* @param reader Reader or buffer to decode from
|
|
58194
|
+
* @returns OrgCoverageProfile
|
|
58195
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58196
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58197
|
+
*/
|
|
58198
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): OrgCoverageProfile;
|
|
58199
|
+
|
|
58200
|
+
/**
|
|
58201
|
+
* Verifies an OrgCoverageProfile message.
|
|
58202
|
+
* @param message Plain object to verify
|
|
58203
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
58204
|
+
*/
|
|
58205
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
58206
|
+
|
|
58207
|
+
/**
|
|
58208
|
+
* Creates an OrgCoverageProfile message from a plain object. Also converts values to their respective internal types.
|
|
58209
|
+
* @param object Plain object
|
|
58210
|
+
* @returns OrgCoverageProfile
|
|
58211
|
+
*/
|
|
58212
|
+
public static fromObject(object: { [k: string]: any }): OrgCoverageProfile;
|
|
58213
|
+
|
|
58214
|
+
/**
|
|
58215
|
+
* Creates a plain object from an OrgCoverageProfile message. Also converts values to other types if specified.
|
|
58216
|
+
* @param message OrgCoverageProfile
|
|
58217
|
+
* @param [options] Conversion options
|
|
58218
|
+
* @returns Plain object
|
|
58219
|
+
*/
|
|
58220
|
+
public static toObject(message: OrgCoverageProfile, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
58221
|
+
|
|
58222
|
+
/**
|
|
58223
|
+
* Converts this OrgCoverageProfile to JSON.
|
|
58224
|
+
* @returns JSON object
|
|
58225
|
+
*/
|
|
58226
|
+
public toJSON(): { [k: string]: any };
|
|
58227
|
+
}
|
|
58228
|
+
|
|
58229
|
+
/** Properties of an OrgCoverageProfileUpdated. */
|
|
58230
|
+
export interface IOrgCoverageProfileUpdated {
|
|
58231
|
+
|
|
58232
|
+
/** OrgCoverageProfileUpdated timestamp */
|
|
58233
|
+
timestamp?: (number|Long|null);
|
|
58234
|
+
|
|
58235
|
+
/** OrgCoverageProfileUpdated previous */
|
|
58236
|
+
previous?: (IOrgCoverageProfile|null);
|
|
58237
|
+
|
|
58238
|
+
/** OrgCoverageProfileUpdated current */
|
|
58239
|
+
current?: (IOrgCoverageProfile|null);
|
|
58240
|
+
}
|
|
58241
|
+
|
|
58242
|
+
/** Represents an OrgCoverageProfileUpdated. */
|
|
58243
|
+
export class OrgCoverageProfileUpdated implements IOrgCoverageProfileUpdated {
|
|
58244
|
+
|
|
58245
|
+
/**
|
|
58246
|
+
* Constructs a new OrgCoverageProfileUpdated.
|
|
58247
|
+
* @param [properties] Properties to set
|
|
58248
|
+
*/
|
|
58249
|
+
constructor(properties?: IOrgCoverageProfileUpdated);
|
|
58250
|
+
|
|
58251
|
+
/** OrgCoverageProfileUpdated timestamp. */
|
|
58252
|
+
public timestamp: (number|Long);
|
|
58253
|
+
|
|
58254
|
+
/** OrgCoverageProfileUpdated previous. */
|
|
58255
|
+
public previous?: (IOrgCoverageProfile|null);
|
|
58256
|
+
|
|
58257
|
+
/** OrgCoverageProfileUpdated current. */
|
|
58258
|
+
public current?: (IOrgCoverageProfile|null);
|
|
58259
|
+
|
|
58260
|
+
/**
|
|
58261
|
+
* Creates a new OrgCoverageProfileUpdated instance using the specified properties.
|
|
58262
|
+
* @param [properties] Properties to set
|
|
58263
|
+
* @returns OrgCoverageProfileUpdated instance
|
|
58264
|
+
*/
|
|
58265
|
+
public static create(properties?: IOrgCoverageProfileUpdated): OrgCoverageProfileUpdated;
|
|
58266
|
+
|
|
58267
|
+
/**
|
|
58268
|
+
* Encodes the specified OrgCoverageProfileUpdated message. Does not implicitly {@link OrgCoverageProfileUpdated.verify|verify} messages.
|
|
58269
|
+
* @param message OrgCoverageProfileUpdated message or plain object to encode
|
|
58270
|
+
* @param [writer] Writer to encode to
|
|
58271
|
+
* @returns Writer
|
|
58272
|
+
*/
|
|
58273
|
+
public static encode(message: IOrgCoverageProfileUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
58274
|
+
|
|
58275
|
+
/**
|
|
58276
|
+
* Encodes the specified OrgCoverageProfileUpdated message, length delimited. Does not implicitly {@link OrgCoverageProfileUpdated.verify|verify} messages.
|
|
58277
|
+
* @param message OrgCoverageProfileUpdated message or plain object to encode
|
|
58278
|
+
* @param [writer] Writer to encode to
|
|
58279
|
+
* @returns Writer
|
|
58280
|
+
*/
|
|
58281
|
+
public static encodeDelimited(message: IOrgCoverageProfileUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
58282
|
+
|
|
58283
|
+
/**
|
|
58284
|
+
* Decodes an OrgCoverageProfileUpdated message from the specified reader or buffer.
|
|
58285
|
+
* @param reader Reader or buffer to decode from
|
|
58286
|
+
* @param [length] Message length if known beforehand
|
|
58287
|
+
* @returns OrgCoverageProfileUpdated
|
|
58288
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58289
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58290
|
+
*/
|
|
58291
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): OrgCoverageProfileUpdated;
|
|
58292
|
+
|
|
58293
|
+
/**
|
|
58294
|
+
* Decodes an OrgCoverageProfileUpdated message from the specified reader or buffer, length delimited.
|
|
58295
|
+
* @param reader Reader or buffer to decode from
|
|
58296
|
+
* @returns OrgCoverageProfileUpdated
|
|
58297
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58298
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58299
|
+
*/
|
|
58300
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): OrgCoverageProfileUpdated;
|
|
58301
|
+
|
|
58302
|
+
/**
|
|
58303
|
+
* Verifies an OrgCoverageProfileUpdated message.
|
|
58304
|
+
* @param message Plain object to verify
|
|
58305
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
58306
|
+
*/
|
|
58307
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
58308
|
+
|
|
58309
|
+
/**
|
|
58310
|
+
* Creates an OrgCoverageProfileUpdated message from a plain object. Also converts values to their respective internal types.
|
|
58311
|
+
* @param object Plain object
|
|
58312
|
+
* @returns OrgCoverageProfileUpdated
|
|
58313
|
+
*/
|
|
58314
|
+
public static fromObject(object: { [k: string]: any }): OrgCoverageProfileUpdated;
|
|
58315
|
+
|
|
58316
|
+
/**
|
|
58317
|
+
* Creates a plain object from an OrgCoverageProfileUpdated message. Also converts values to other types if specified.
|
|
58318
|
+
* @param message OrgCoverageProfileUpdated
|
|
58319
|
+
* @param [options] Conversion options
|
|
58320
|
+
* @returns Plain object
|
|
58321
|
+
*/
|
|
58322
|
+
public static toObject(message: OrgCoverageProfileUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
58323
|
+
|
|
58324
|
+
/**
|
|
58325
|
+
* Converts this OrgCoverageProfileUpdated to JSON.
|
|
58326
|
+
* @returns JSON object
|
|
58327
|
+
*/
|
|
58328
|
+
public toJSON(): { [k: string]: any };
|
|
58329
|
+
}
|
|
58330
|
+
|
|
58331
|
+
/** OrgCoverageType enum. */
|
|
58332
|
+
export enum OrgCoverageType {
|
|
58333
|
+
ORG_COVERAGE_TYPE_UNKNOWN = 0,
|
|
58334
|
+
ORG_COVERAGE_TYPE_EAP = 1,
|
|
58335
|
+
ORG_COVERAGE_TYPE_SINGLE_FEE = 2,
|
|
58336
|
+
ORG_COVERAGE_TYPE_CLINICAL_PRE_PURCHASE = 3
|
|
58337
|
+
}
|
|
58338
|
+
|
|
58339
|
+
/** OrgCoverageServicesCovered enum. */
|
|
58340
|
+
export enum OrgCoverageServicesCovered {
|
|
58341
|
+
ORG_COVERAGE_SERVICES_COVERED_UNKNOWN = 0,
|
|
58342
|
+
ORG_COVERAGE_SERVICES_COVERED_PSYCHIATRY = 1,
|
|
58343
|
+
ORG_COVERAGE_SERVICES_COVERED_THERAPY = 2,
|
|
58344
|
+
ORG_COVERAGE_SERVICES_COVERED_BOTH = 3
|
|
58345
|
+
}
|
|
58346
|
+
|
|
58347
|
+
/** OrgCoverageEapCarrier enum. */
|
|
58348
|
+
export enum OrgCoverageEapCarrier {
|
|
58349
|
+
ORG_COVERAGE_EAP_CARRIER_UNKNOWN = 0,
|
|
58350
|
+
ORG_COVERAGE_EAP_CARRIER_CCA = 1,
|
|
58351
|
+
ORG_COVERAGE_EAP_CARRIER_WPO = 2,
|
|
58352
|
+
ORG_COVERAGE_EAP_CARRIER_OTHER = 3,
|
|
58353
|
+
ORG_COVERAGE_EAP_CARRIER_NONE = 4
|
|
58354
|
+
}
|
|
58355
|
+
|
|
58115
58356
|
/** Properties of a WakeupPlaylistCreated. */
|
|
58116
58357
|
export interface IWakeupPlaylistCreated {
|
|
58117
58358
|
|
package/lib/index.js
CHANGED
|
@@ -162346,6 +162346,696 @@ $root.OnboardingCompleted = (function() {
|
|
|
162346
162346
|
return OnboardingCompleted;
|
|
162347
162347
|
})();
|
|
162348
162348
|
|
|
162349
|
+
$root.OrgCoverageProfile = (function() {
|
|
162350
|
+
|
|
162351
|
+
/**
|
|
162352
|
+
* Properties of an OrgCoverageProfile.
|
|
162353
|
+
* @name IOrgCoverageProfile
|
|
162354
|
+
* @interface IOrgCoverageProfile
|
|
162355
|
+
* @property {number|Long|null} [orgId] OrgCoverageProfile orgId
|
|
162356
|
+
* @property {OrgCoverageType|null} [type] OrgCoverageProfile type
|
|
162357
|
+
* @property {OrgCoverageServicesCovered|null} [servicesCovered] OrgCoverageProfile servicesCovered
|
|
162358
|
+
* @property {number|Long|null} [coverageTotal] OrgCoverageProfile coverageTotal
|
|
162359
|
+
* @property {OrgCoverageEapCarrier|null} [eapCarrier] OrgCoverageProfile eapCarrier
|
|
162360
|
+
*/
|
|
162361
|
+
|
|
162362
|
+
/**
|
|
162363
|
+
* Constructs a new OrgCoverageProfile.
|
|
162364
|
+
* @name OrgCoverageProfile
|
|
162365
|
+
* @classdesc Represents an OrgCoverageProfile.
|
|
162366
|
+
* @implements IOrgCoverageProfile
|
|
162367
|
+
* @constructor
|
|
162368
|
+
* @param {IOrgCoverageProfile=} [properties] Properties to set
|
|
162369
|
+
*/
|
|
162370
|
+
function OrgCoverageProfile(properties) {
|
|
162371
|
+
if (properties)
|
|
162372
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
162373
|
+
if (properties[keys[i]] != null)
|
|
162374
|
+
this[keys[i]] = properties[keys[i]];
|
|
162375
|
+
}
|
|
162376
|
+
|
|
162377
|
+
/**
|
|
162378
|
+
* OrgCoverageProfile orgId.
|
|
162379
|
+
* @member {number|Long} orgId
|
|
162380
|
+
* @memberof OrgCoverageProfile
|
|
162381
|
+
* @instance
|
|
162382
|
+
*/
|
|
162383
|
+
OrgCoverageProfile.prototype.orgId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
162384
|
+
|
|
162385
|
+
/**
|
|
162386
|
+
* OrgCoverageProfile type.
|
|
162387
|
+
* @member {OrgCoverageType} type
|
|
162388
|
+
* @memberof OrgCoverageProfile
|
|
162389
|
+
* @instance
|
|
162390
|
+
*/
|
|
162391
|
+
OrgCoverageProfile.prototype.type = 0;
|
|
162392
|
+
|
|
162393
|
+
/**
|
|
162394
|
+
* OrgCoverageProfile servicesCovered.
|
|
162395
|
+
* @member {OrgCoverageServicesCovered} servicesCovered
|
|
162396
|
+
* @memberof OrgCoverageProfile
|
|
162397
|
+
* @instance
|
|
162398
|
+
*/
|
|
162399
|
+
OrgCoverageProfile.prototype.servicesCovered = 0;
|
|
162400
|
+
|
|
162401
|
+
/**
|
|
162402
|
+
* OrgCoverageProfile coverageTotal.
|
|
162403
|
+
* @member {number|Long} coverageTotal
|
|
162404
|
+
* @memberof OrgCoverageProfile
|
|
162405
|
+
* @instance
|
|
162406
|
+
*/
|
|
162407
|
+
OrgCoverageProfile.prototype.coverageTotal = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
162408
|
+
|
|
162409
|
+
/**
|
|
162410
|
+
* OrgCoverageProfile eapCarrier.
|
|
162411
|
+
* @member {OrgCoverageEapCarrier} eapCarrier
|
|
162412
|
+
* @memberof OrgCoverageProfile
|
|
162413
|
+
* @instance
|
|
162414
|
+
*/
|
|
162415
|
+
OrgCoverageProfile.prototype.eapCarrier = 0;
|
|
162416
|
+
|
|
162417
|
+
/**
|
|
162418
|
+
* Creates a new OrgCoverageProfile instance using the specified properties.
|
|
162419
|
+
* @function create
|
|
162420
|
+
* @memberof OrgCoverageProfile
|
|
162421
|
+
* @static
|
|
162422
|
+
* @param {IOrgCoverageProfile=} [properties] Properties to set
|
|
162423
|
+
* @returns {OrgCoverageProfile} OrgCoverageProfile instance
|
|
162424
|
+
*/
|
|
162425
|
+
OrgCoverageProfile.create = function create(properties) {
|
|
162426
|
+
return new OrgCoverageProfile(properties);
|
|
162427
|
+
};
|
|
162428
|
+
|
|
162429
|
+
/**
|
|
162430
|
+
* Encodes the specified OrgCoverageProfile message. Does not implicitly {@link OrgCoverageProfile.verify|verify} messages.
|
|
162431
|
+
* @function encode
|
|
162432
|
+
* @memberof OrgCoverageProfile
|
|
162433
|
+
* @static
|
|
162434
|
+
* @param {IOrgCoverageProfile} message OrgCoverageProfile message or plain object to encode
|
|
162435
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
162436
|
+
* @returns {$protobuf.Writer} Writer
|
|
162437
|
+
*/
|
|
162438
|
+
OrgCoverageProfile.encode = function encode(message, writer) {
|
|
162439
|
+
if (!writer)
|
|
162440
|
+
writer = $Writer.create();
|
|
162441
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
162442
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.orgId);
|
|
162443
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
162444
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type);
|
|
162445
|
+
if (message.servicesCovered != null && message.hasOwnProperty("servicesCovered"))
|
|
162446
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.servicesCovered);
|
|
162447
|
+
if (message.coverageTotal != null && message.hasOwnProperty("coverageTotal"))
|
|
162448
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.coverageTotal);
|
|
162449
|
+
if (message.eapCarrier != null && message.hasOwnProperty("eapCarrier"))
|
|
162450
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.eapCarrier);
|
|
162451
|
+
return writer;
|
|
162452
|
+
};
|
|
162453
|
+
|
|
162454
|
+
/**
|
|
162455
|
+
* Encodes the specified OrgCoverageProfile message, length delimited. Does not implicitly {@link OrgCoverageProfile.verify|verify} messages.
|
|
162456
|
+
* @function encodeDelimited
|
|
162457
|
+
* @memberof OrgCoverageProfile
|
|
162458
|
+
* @static
|
|
162459
|
+
* @param {IOrgCoverageProfile} message OrgCoverageProfile message or plain object to encode
|
|
162460
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
162461
|
+
* @returns {$protobuf.Writer} Writer
|
|
162462
|
+
*/
|
|
162463
|
+
OrgCoverageProfile.encodeDelimited = function encodeDelimited(message, writer) {
|
|
162464
|
+
return this.encode(message, writer).ldelim();
|
|
162465
|
+
};
|
|
162466
|
+
|
|
162467
|
+
/**
|
|
162468
|
+
* Decodes an OrgCoverageProfile message from the specified reader or buffer.
|
|
162469
|
+
* @function decode
|
|
162470
|
+
* @memberof OrgCoverageProfile
|
|
162471
|
+
* @static
|
|
162472
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
162473
|
+
* @param {number} [length] Message length if known beforehand
|
|
162474
|
+
* @returns {OrgCoverageProfile} OrgCoverageProfile
|
|
162475
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
162476
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
162477
|
+
*/
|
|
162478
|
+
OrgCoverageProfile.decode = function decode(reader, length) {
|
|
162479
|
+
if (!(reader instanceof $Reader))
|
|
162480
|
+
reader = $Reader.create(reader);
|
|
162481
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.OrgCoverageProfile();
|
|
162482
|
+
while (reader.pos < end) {
|
|
162483
|
+
var tag = reader.uint32();
|
|
162484
|
+
switch (tag >>> 3) {
|
|
162485
|
+
case 1:
|
|
162486
|
+
message.orgId = reader.uint64();
|
|
162487
|
+
break;
|
|
162488
|
+
case 2:
|
|
162489
|
+
message.type = reader.int32();
|
|
162490
|
+
break;
|
|
162491
|
+
case 3:
|
|
162492
|
+
message.servicesCovered = reader.int32();
|
|
162493
|
+
break;
|
|
162494
|
+
case 4:
|
|
162495
|
+
message.coverageTotal = reader.uint64();
|
|
162496
|
+
break;
|
|
162497
|
+
case 5:
|
|
162498
|
+
message.eapCarrier = reader.int32();
|
|
162499
|
+
break;
|
|
162500
|
+
default:
|
|
162501
|
+
reader.skipType(tag & 7);
|
|
162502
|
+
break;
|
|
162503
|
+
}
|
|
162504
|
+
}
|
|
162505
|
+
return message;
|
|
162506
|
+
};
|
|
162507
|
+
|
|
162508
|
+
/**
|
|
162509
|
+
* Decodes an OrgCoverageProfile message from the specified reader or buffer, length delimited.
|
|
162510
|
+
* @function decodeDelimited
|
|
162511
|
+
* @memberof OrgCoverageProfile
|
|
162512
|
+
* @static
|
|
162513
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
162514
|
+
* @returns {OrgCoverageProfile} OrgCoverageProfile
|
|
162515
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
162516
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
162517
|
+
*/
|
|
162518
|
+
OrgCoverageProfile.decodeDelimited = function decodeDelimited(reader) {
|
|
162519
|
+
if (!(reader instanceof $Reader))
|
|
162520
|
+
reader = new $Reader(reader);
|
|
162521
|
+
return this.decode(reader, reader.uint32());
|
|
162522
|
+
};
|
|
162523
|
+
|
|
162524
|
+
/**
|
|
162525
|
+
* Verifies an OrgCoverageProfile message.
|
|
162526
|
+
* @function verify
|
|
162527
|
+
* @memberof OrgCoverageProfile
|
|
162528
|
+
* @static
|
|
162529
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
162530
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
162531
|
+
*/
|
|
162532
|
+
OrgCoverageProfile.verify = function verify(message) {
|
|
162533
|
+
if (typeof message !== "object" || message === null)
|
|
162534
|
+
return "object expected";
|
|
162535
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
162536
|
+
if (!$util.isInteger(message.orgId) && !(message.orgId && $util.isInteger(message.orgId.low) && $util.isInteger(message.orgId.high)))
|
|
162537
|
+
return "orgId: integer|Long expected";
|
|
162538
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
162539
|
+
switch (message.type) {
|
|
162540
|
+
default:
|
|
162541
|
+
return "type: enum value expected";
|
|
162542
|
+
case 0:
|
|
162543
|
+
case 1:
|
|
162544
|
+
case 2:
|
|
162545
|
+
case 3:
|
|
162546
|
+
break;
|
|
162547
|
+
}
|
|
162548
|
+
if (message.servicesCovered != null && message.hasOwnProperty("servicesCovered"))
|
|
162549
|
+
switch (message.servicesCovered) {
|
|
162550
|
+
default:
|
|
162551
|
+
return "servicesCovered: enum value expected";
|
|
162552
|
+
case 0:
|
|
162553
|
+
case 1:
|
|
162554
|
+
case 2:
|
|
162555
|
+
case 3:
|
|
162556
|
+
break;
|
|
162557
|
+
}
|
|
162558
|
+
if (message.coverageTotal != null && message.hasOwnProperty("coverageTotal"))
|
|
162559
|
+
if (!$util.isInteger(message.coverageTotal) && !(message.coverageTotal && $util.isInteger(message.coverageTotal.low) && $util.isInteger(message.coverageTotal.high)))
|
|
162560
|
+
return "coverageTotal: integer|Long expected";
|
|
162561
|
+
if (message.eapCarrier != null && message.hasOwnProperty("eapCarrier"))
|
|
162562
|
+
switch (message.eapCarrier) {
|
|
162563
|
+
default:
|
|
162564
|
+
return "eapCarrier: enum value expected";
|
|
162565
|
+
case 0:
|
|
162566
|
+
case 1:
|
|
162567
|
+
case 2:
|
|
162568
|
+
case 3:
|
|
162569
|
+
case 4:
|
|
162570
|
+
break;
|
|
162571
|
+
}
|
|
162572
|
+
return null;
|
|
162573
|
+
};
|
|
162574
|
+
|
|
162575
|
+
/**
|
|
162576
|
+
* Creates an OrgCoverageProfile message from a plain object. Also converts values to their respective internal types.
|
|
162577
|
+
* @function fromObject
|
|
162578
|
+
* @memberof OrgCoverageProfile
|
|
162579
|
+
* @static
|
|
162580
|
+
* @param {Object.<string,*>} object Plain object
|
|
162581
|
+
* @returns {OrgCoverageProfile} OrgCoverageProfile
|
|
162582
|
+
*/
|
|
162583
|
+
OrgCoverageProfile.fromObject = function fromObject(object) {
|
|
162584
|
+
if (object instanceof $root.OrgCoverageProfile)
|
|
162585
|
+
return object;
|
|
162586
|
+
var message = new $root.OrgCoverageProfile();
|
|
162587
|
+
if (object.orgId != null)
|
|
162588
|
+
if ($util.Long)
|
|
162589
|
+
(message.orgId = $util.Long.fromValue(object.orgId)).unsigned = true;
|
|
162590
|
+
else if (typeof object.orgId === "string")
|
|
162591
|
+
message.orgId = parseInt(object.orgId, 10);
|
|
162592
|
+
else if (typeof object.orgId === "number")
|
|
162593
|
+
message.orgId = object.orgId;
|
|
162594
|
+
else if (typeof object.orgId === "object")
|
|
162595
|
+
message.orgId = new $util.LongBits(object.orgId.low >>> 0, object.orgId.high >>> 0).toNumber(true);
|
|
162596
|
+
switch (object.type) {
|
|
162597
|
+
case "ORG_COVERAGE_TYPE_UNKNOWN":
|
|
162598
|
+
case 0:
|
|
162599
|
+
message.type = 0;
|
|
162600
|
+
break;
|
|
162601
|
+
case "ORG_COVERAGE_TYPE_EAP":
|
|
162602
|
+
case 1:
|
|
162603
|
+
message.type = 1;
|
|
162604
|
+
break;
|
|
162605
|
+
case "ORG_COVERAGE_TYPE_SINGLE_FEE":
|
|
162606
|
+
case 2:
|
|
162607
|
+
message.type = 2;
|
|
162608
|
+
break;
|
|
162609
|
+
case "ORG_COVERAGE_TYPE_CLINICAL_PRE_PURCHASE":
|
|
162610
|
+
case 3:
|
|
162611
|
+
message.type = 3;
|
|
162612
|
+
break;
|
|
162613
|
+
}
|
|
162614
|
+
switch (object.servicesCovered) {
|
|
162615
|
+
case "ORG_COVERAGE_SERVICES_COVERED_UNKNOWN":
|
|
162616
|
+
case 0:
|
|
162617
|
+
message.servicesCovered = 0;
|
|
162618
|
+
break;
|
|
162619
|
+
case "ORG_COVERAGE_SERVICES_COVERED_PSYCHIATRY":
|
|
162620
|
+
case 1:
|
|
162621
|
+
message.servicesCovered = 1;
|
|
162622
|
+
break;
|
|
162623
|
+
case "ORG_COVERAGE_SERVICES_COVERED_THERAPY":
|
|
162624
|
+
case 2:
|
|
162625
|
+
message.servicesCovered = 2;
|
|
162626
|
+
break;
|
|
162627
|
+
case "ORG_COVERAGE_SERVICES_COVERED_BOTH":
|
|
162628
|
+
case 3:
|
|
162629
|
+
message.servicesCovered = 3;
|
|
162630
|
+
break;
|
|
162631
|
+
}
|
|
162632
|
+
if (object.coverageTotal != null)
|
|
162633
|
+
if ($util.Long)
|
|
162634
|
+
(message.coverageTotal = $util.Long.fromValue(object.coverageTotal)).unsigned = true;
|
|
162635
|
+
else if (typeof object.coverageTotal === "string")
|
|
162636
|
+
message.coverageTotal = parseInt(object.coverageTotal, 10);
|
|
162637
|
+
else if (typeof object.coverageTotal === "number")
|
|
162638
|
+
message.coverageTotal = object.coverageTotal;
|
|
162639
|
+
else if (typeof object.coverageTotal === "object")
|
|
162640
|
+
message.coverageTotal = new $util.LongBits(object.coverageTotal.low >>> 0, object.coverageTotal.high >>> 0).toNumber(true);
|
|
162641
|
+
switch (object.eapCarrier) {
|
|
162642
|
+
case "ORG_COVERAGE_EAP_CARRIER_UNKNOWN":
|
|
162643
|
+
case 0:
|
|
162644
|
+
message.eapCarrier = 0;
|
|
162645
|
+
break;
|
|
162646
|
+
case "ORG_COVERAGE_EAP_CARRIER_CCA":
|
|
162647
|
+
case 1:
|
|
162648
|
+
message.eapCarrier = 1;
|
|
162649
|
+
break;
|
|
162650
|
+
case "ORG_COVERAGE_EAP_CARRIER_WPO":
|
|
162651
|
+
case 2:
|
|
162652
|
+
message.eapCarrier = 2;
|
|
162653
|
+
break;
|
|
162654
|
+
case "ORG_COVERAGE_EAP_CARRIER_OTHER":
|
|
162655
|
+
case 3:
|
|
162656
|
+
message.eapCarrier = 3;
|
|
162657
|
+
break;
|
|
162658
|
+
case "ORG_COVERAGE_EAP_CARRIER_NONE":
|
|
162659
|
+
case 4:
|
|
162660
|
+
message.eapCarrier = 4;
|
|
162661
|
+
break;
|
|
162662
|
+
}
|
|
162663
|
+
return message;
|
|
162664
|
+
};
|
|
162665
|
+
|
|
162666
|
+
/**
|
|
162667
|
+
* Creates a plain object from an OrgCoverageProfile message. Also converts values to other types if specified.
|
|
162668
|
+
* @function toObject
|
|
162669
|
+
* @memberof OrgCoverageProfile
|
|
162670
|
+
* @static
|
|
162671
|
+
* @param {OrgCoverageProfile} message OrgCoverageProfile
|
|
162672
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
162673
|
+
* @returns {Object.<string,*>} Plain object
|
|
162674
|
+
*/
|
|
162675
|
+
OrgCoverageProfile.toObject = function toObject(message, options) {
|
|
162676
|
+
if (!options)
|
|
162677
|
+
options = {};
|
|
162678
|
+
var object = {};
|
|
162679
|
+
if (options.defaults) {
|
|
162680
|
+
if ($util.Long) {
|
|
162681
|
+
var long = new $util.Long(0, 0, true);
|
|
162682
|
+
object.orgId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
162683
|
+
} else
|
|
162684
|
+
object.orgId = options.longs === String ? "0" : 0;
|
|
162685
|
+
object.type = options.enums === String ? "ORG_COVERAGE_TYPE_UNKNOWN" : 0;
|
|
162686
|
+
object.servicesCovered = options.enums === String ? "ORG_COVERAGE_SERVICES_COVERED_UNKNOWN" : 0;
|
|
162687
|
+
if ($util.Long) {
|
|
162688
|
+
var long = new $util.Long(0, 0, true);
|
|
162689
|
+
object.coverageTotal = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
162690
|
+
} else
|
|
162691
|
+
object.coverageTotal = options.longs === String ? "0" : 0;
|
|
162692
|
+
object.eapCarrier = options.enums === String ? "ORG_COVERAGE_EAP_CARRIER_UNKNOWN" : 0;
|
|
162693
|
+
}
|
|
162694
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
162695
|
+
if (typeof message.orgId === "number")
|
|
162696
|
+
object.orgId = options.longs === String ? String(message.orgId) : message.orgId;
|
|
162697
|
+
else
|
|
162698
|
+
object.orgId = options.longs === String ? $util.Long.prototype.toString.call(message.orgId) : options.longs === Number ? new $util.LongBits(message.orgId.low >>> 0, message.orgId.high >>> 0).toNumber(true) : message.orgId;
|
|
162699
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
162700
|
+
object.type = options.enums === String ? $root.OrgCoverageType[message.type] : message.type;
|
|
162701
|
+
if (message.servicesCovered != null && message.hasOwnProperty("servicesCovered"))
|
|
162702
|
+
object.servicesCovered = options.enums === String ? $root.OrgCoverageServicesCovered[message.servicesCovered] : message.servicesCovered;
|
|
162703
|
+
if (message.coverageTotal != null && message.hasOwnProperty("coverageTotal"))
|
|
162704
|
+
if (typeof message.coverageTotal === "number")
|
|
162705
|
+
object.coverageTotal = options.longs === String ? String(message.coverageTotal) : message.coverageTotal;
|
|
162706
|
+
else
|
|
162707
|
+
object.coverageTotal = options.longs === String ? $util.Long.prototype.toString.call(message.coverageTotal) : options.longs === Number ? new $util.LongBits(message.coverageTotal.low >>> 0, message.coverageTotal.high >>> 0).toNumber(true) : message.coverageTotal;
|
|
162708
|
+
if (message.eapCarrier != null && message.hasOwnProperty("eapCarrier"))
|
|
162709
|
+
object.eapCarrier = options.enums === String ? $root.OrgCoverageEapCarrier[message.eapCarrier] : message.eapCarrier;
|
|
162710
|
+
return object;
|
|
162711
|
+
};
|
|
162712
|
+
|
|
162713
|
+
/**
|
|
162714
|
+
* Converts this OrgCoverageProfile to JSON.
|
|
162715
|
+
* @function toJSON
|
|
162716
|
+
* @memberof OrgCoverageProfile
|
|
162717
|
+
* @instance
|
|
162718
|
+
* @returns {Object.<string,*>} JSON object
|
|
162719
|
+
*/
|
|
162720
|
+
OrgCoverageProfile.prototype.toJSON = function toJSON() {
|
|
162721
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
162722
|
+
};
|
|
162723
|
+
|
|
162724
|
+
return OrgCoverageProfile;
|
|
162725
|
+
})();
|
|
162726
|
+
|
|
162727
|
+
$root.OrgCoverageProfileUpdated = (function() {
|
|
162728
|
+
|
|
162729
|
+
/**
|
|
162730
|
+
* Properties of an OrgCoverageProfileUpdated.
|
|
162731
|
+
* @name IOrgCoverageProfileUpdated
|
|
162732
|
+
* @interface IOrgCoverageProfileUpdated
|
|
162733
|
+
* @property {number|Long|null} [timestamp] OrgCoverageProfileUpdated timestamp
|
|
162734
|
+
* @property {IOrgCoverageProfile|null} [previous] OrgCoverageProfileUpdated previous
|
|
162735
|
+
* @property {IOrgCoverageProfile|null} [current] OrgCoverageProfileUpdated current
|
|
162736
|
+
*/
|
|
162737
|
+
|
|
162738
|
+
/**
|
|
162739
|
+
* Constructs a new OrgCoverageProfileUpdated.
|
|
162740
|
+
* @name OrgCoverageProfileUpdated
|
|
162741
|
+
* @classdesc Represents an OrgCoverageProfileUpdated.
|
|
162742
|
+
* @implements IOrgCoverageProfileUpdated
|
|
162743
|
+
* @constructor
|
|
162744
|
+
* @param {IOrgCoverageProfileUpdated=} [properties] Properties to set
|
|
162745
|
+
*/
|
|
162746
|
+
function OrgCoverageProfileUpdated(properties) {
|
|
162747
|
+
if (properties)
|
|
162748
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
162749
|
+
if (properties[keys[i]] != null)
|
|
162750
|
+
this[keys[i]] = properties[keys[i]];
|
|
162751
|
+
}
|
|
162752
|
+
|
|
162753
|
+
/**
|
|
162754
|
+
* OrgCoverageProfileUpdated timestamp.
|
|
162755
|
+
* @member {number|Long} timestamp
|
|
162756
|
+
* @memberof OrgCoverageProfileUpdated
|
|
162757
|
+
* @instance
|
|
162758
|
+
*/
|
|
162759
|
+
OrgCoverageProfileUpdated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
162760
|
+
|
|
162761
|
+
/**
|
|
162762
|
+
* OrgCoverageProfileUpdated previous.
|
|
162763
|
+
* @member {IOrgCoverageProfile|null|undefined} previous
|
|
162764
|
+
* @memberof OrgCoverageProfileUpdated
|
|
162765
|
+
* @instance
|
|
162766
|
+
*/
|
|
162767
|
+
OrgCoverageProfileUpdated.prototype.previous = null;
|
|
162768
|
+
|
|
162769
|
+
/**
|
|
162770
|
+
* OrgCoverageProfileUpdated current.
|
|
162771
|
+
* @member {IOrgCoverageProfile|null|undefined} current
|
|
162772
|
+
* @memberof OrgCoverageProfileUpdated
|
|
162773
|
+
* @instance
|
|
162774
|
+
*/
|
|
162775
|
+
OrgCoverageProfileUpdated.prototype.current = null;
|
|
162776
|
+
|
|
162777
|
+
/**
|
|
162778
|
+
* Creates a new OrgCoverageProfileUpdated instance using the specified properties.
|
|
162779
|
+
* @function create
|
|
162780
|
+
* @memberof OrgCoverageProfileUpdated
|
|
162781
|
+
* @static
|
|
162782
|
+
* @param {IOrgCoverageProfileUpdated=} [properties] Properties to set
|
|
162783
|
+
* @returns {OrgCoverageProfileUpdated} OrgCoverageProfileUpdated instance
|
|
162784
|
+
*/
|
|
162785
|
+
OrgCoverageProfileUpdated.create = function create(properties) {
|
|
162786
|
+
return new OrgCoverageProfileUpdated(properties);
|
|
162787
|
+
};
|
|
162788
|
+
|
|
162789
|
+
/**
|
|
162790
|
+
* Encodes the specified OrgCoverageProfileUpdated message. Does not implicitly {@link OrgCoverageProfileUpdated.verify|verify} messages.
|
|
162791
|
+
* @function encode
|
|
162792
|
+
* @memberof OrgCoverageProfileUpdated
|
|
162793
|
+
* @static
|
|
162794
|
+
* @param {IOrgCoverageProfileUpdated} message OrgCoverageProfileUpdated message or plain object to encode
|
|
162795
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
162796
|
+
* @returns {$protobuf.Writer} Writer
|
|
162797
|
+
*/
|
|
162798
|
+
OrgCoverageProfileUpdated.encode = function encode(message, writer) {
|
|
162799
|
+
if (!writer)
|
|
162800
|
+
writer = $Writer.create();
|
|
162801
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
162802
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
|
|
162803
|
+
if (message.previous != null && message.hasOwnProperty("previous"))
|
|
162804
|
+
$root.OrgCoverageProfile.encode(message.previous, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
162805
|
+
if (message.current != null && message.hasOwnProperty("current"))
|
|
162806
|
+
$root.OrgCoverageProfile.encode(message.current, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
162807
|
+
return writer;
|
|
162808
|
+
};
|
|
162809
|
+
|
|
162810
|
+
/**
|
|
162811
|
+
* Encodes the specified OrgCoverageProfileUpdated message, length delimited. Does not implicitly {@link OrgCoverageProfileUpdated.verify|verify} messages.
|
|
162812
|
+
* @function encodeDelimited
|
|
162813
|
+
* @memberof OrgCoverageProfileUpdated
|
|
162814
|
+
* @static
|
|
162815
|
+
* @param {IOrgCoverageProfileUpdated} message OrgCoverageProfileUpdated message or plain object to encode
|
|
162816
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
162817
|
+
* @returns {$protobuf.Writer} Writer
|
|
162818
|
+
*/
|
|
162819
|
+
OrgCoverageProfileUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
162820
|
+
return this.encode(message, writer).ldelim();
|
|
162821
|
+
};
|
|
162822
|
+
|
|
162823
|
+
/**
|
|
162824
|
+
* Decodes an OrgCoverageProfileUpdated message from the specified reader or buffer.
|
|
162825
|
+
* @function decode
|
|
162826
|
+
* @memberof OrgCoverageProfileUpdated
|
|
162827
|
+
* @static
|
|
162828
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
162829
|
+
* @param {number} [length] Message length if known beforehand
|
|
162830
|
+
* @returns {OrgCoverageProfileUpdated} OrgCoverageProfileUpdated
|
|
162831
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
162832
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
162833
|
+
*/
|
|
162834
|
+
OrgCoverageProfileUpdated.decode = function decode(reader, length) {
|
|
162835
|
+
if (!(reader instanceof $Reader))
|
|
162836
|
+
reader = $Reader.create(reader);
|
|
162837
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.OrgCoverageProfileUpdated();
|
|
162838
|
+
while (reader.pos < end) {
|
|
162839
|
+
var tag = reader.uint32();
|
|
162840
|
+
switch (tag >>> 3) {
|
|
162841
|
+
case 1:
|
|
162842
|
+
message.timestamp = reader.uint64();
|
|
162843
|
+
break;
|
|
162844
|
+
case 2:
|
|
162845
|
+
message.previous = $root.OrgCoverageProfile.decode(reader, reader.uint32());
|
|
162846
|
+
break;
|
|
162847
|
+
case 3:
|
|
162848
|
+
message.current = $root.OrgCoverageProfile.decode(reader, reader.uint32());
|
|
162849
|
+
break;
|
|
162850
|
+
default:
|
|
162851
|
+
reader.skipType(tag & 7);
|
|
162852
|
+
break;
|
|
162853
|
+
}
|
|
162854
|
+
}
|
|
162855
|
+
return message;
|
|
162856
|
+
};
|
|
162857
|
+
|
|
162858
|
+
/**
|
|
162859
|
+
* Decodes an OrgCoverageProfileUpdated message from the specified reader or buffer, length delimited.
|
|
162860
|
+
* @function decodeDelimited
|
|
162861
|
+
* @memberof OrgCoverageProfileUpdated
|
|
162862
|
+
* @static
|
|
162863
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
162864
|
+
* @returns {OrgCoverageProfileUpdated} OrgCoverageProfileUpdated
|
|
162865
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
162866
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
162867
|
+
*/
|
|
162868
|
+
OrgCoverageProfileUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
162869
|
+
if (!(reader instanceof $Reader))
|
|
162870
|
+
reader = new $Reader(reader);
|
|
162871
|
+
return this.decode(reader, reader.uint32());
|
|
162872
|
+
};
|
|
162873
|
+
|
|
162874
|
+
/**
|
|
162875
|
+
* Verifies an OrgCoverageProfileUpdated message.
|
|
162876
|
+
* @function verify
|
|
162877
|
+
* @memberof OrgCoverageProfileUpdated
|
|
162878
|
+
* @static
|
|
162879
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
162880
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
162881
|
+
*/
|
|
162882
|
+
OrgCoverageProfileUpdated.verify = function verify(message) {
|
|
162883
|
+
if (typeof message !== "object" || message === null)
|
|
162884
|
+
return "object expected";
|
|
162885
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
162886
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
162887
|
+
return "timestamp: integer|Long expected";
|
|
162888
|
+
if (message.previous != null && message.hasOwnProperty("previous")) {
|
|
162889
|
+
var error = $root.OrgCoverageProfile.verify(message.previous);
|
|
162890
|
+
if (error)
|
|
162891
|
+
return "previous." + error;
|
|
162892
|
+
}
|
|
162893
|
+
if (message.current != null && message.hasOwnProperty("current")) {
|
|
162894
|
+
var error = $root.OrgCoverageProfile.verify(message.current);
|
|
162895
|
+
if (error)
|
|
162896
|
+
return "current." + error;
|
|
162897
|
+
}
|
|
162898
|
+
return null;
|
|
162899
|
+
};
|
|
162900
|
+
|
|
162901
|
+
/**
|
|
162902
|
+
* Creates an OrgCoverageProfileUpdated message from a plain object. Also converts values to their respective internal types.
|
|
162903
|
+
* @function fromObject
|
|
162904
|
+
* @memberof OrgCoverageProfileUpdated
|
|
162905
|
+
* @static
|
|
162906
|
+
* @param {Object.<string,*>} object Plain object
|
|
162907
|
+
* @returns {OrgCoverageProfileUpdated} OrgCoverageProfileUpdated
|
|
162908
|
+
*/
|
|
162909
|
+
OrgCoverageProfileUpdated.fromObject = function fromObject(object) {
|
|
162910
|
+
if (object instanceof $root.OrgCoverageProfileUpdated)
|
|
162911
|
+
return object;
|
|
162912
|
+
var message = new $root.OrgCoverageProfileUpdated();
|
|
162913
|
+
if (object.timestamp != null)
|
|
162914
|
+
if ($util.Long)
|
|
162915
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
162916
|
+
else if (typeof object.timestamp === "string")
|
|
162917
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
162918
|
+
else if (typeof object.timestamp === "number")
|
|
162919
|
+
message.timestamp = object.timestamp;
|
|
162920
|
+
else if (typeof object.timestamp === "object")
|
|
162921
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
162922
|
+
if (object.previous != null) {
|
|
162923
|
+
if (typeof object.previous !== "object")
|
|
162924
|
+
throw TypeError(".OrgCoverageProfileUpdated.previous: object expected");
|
|
162925
|
+
message.previous = $root.OrgCoverageProfile.fromObject(object.previous);
|
|
162926
|
+
}
|
|
162927
|
+
if (object.current != null) {
|
|
162928
|
+
if (typeof object.current !== "object")
|
|
162929
|
+
throw TypeError(".OrgCoverageProfileUpdated.current: object expected");
|
|
162930
|
+
message.current = $root.OrgCoverageProfile.fromObject(object.current);
|
|
162931
|
+
}
|
|
162932
|
+
return message;
|
|
162933
|
+
};
|
|
162934
|
+
|
|
162935
|
+
/**
|
|
162936
|
+
* Creates a plain object from an OrgCoverageProfileUpdated message. Also converts values to other types if specified.
|
|
162937
|
+
* @function toObject
|
|
162938
|
+
* @memberof OrgCoverageProfileUpdated
|
|
162939
|
+
* @static
|
|
162940
|
+
* @param {OrgCoverageProfileUpdated} message OrgCoverageProfileUpdated
|
|
162941
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
162942
|
+
* @returns {Object.<string,*>} Plain object
|
|
162943
|
+
*/
|
|
162944
|
+
OrgCoverageProfileUpdated.toObject = function toObject(message, options) {
|
|
162945
|
+
if (!options)
|
|
162946
|
+
options = {};
|
|
162947
|
+
var object = {};
|
|
162948
|
+
if (options.defaults) {
|
|
162949
|
+
if ($util.Long) {
|
|
162950
|
+
var long = new $util.Long(0, 0, true);
|
|
162951
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
162952
|
+
} else
|
|
162953
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
162954
|
+
object.previous = null;
|
|
162955
|
+
object.current = null;
|
|
162956
|
+
}
|
|
162957
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
162958
|
+
if (typeof message.timestamp === "number")
|
|
162959
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
162960
|
+
else
|
|
162961
|
+
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;
|
|
162962
|
+
if (message.previous != null && message.hasOwnProperty("previous"))
|
|
162963
|
+
object.previous = $root.OrgCoverageProfile.toObject(message.previous, options);
|
|
162964
|
+
if (message.current != null && message.hasOwnProperty("current"))
|
|
162965
|
+
object.current = $root.OrgCoverageProfile.toObject(message.current, options);
|
|
162966
|
+
return object;
|
|
162967
|
+
};
|
|
162968
|
+
|
|
162969
|
+
/**
|
|
162970
|
+
* Converts this OrgCoverageProfileUpdated to JSON.
|
|
162971
|
+
* @function toJSON
|
|
162972
|
+
* @memberof OrgCoverageProfileUpdated
|
|
162973
|
+
* @instance
|
|
162974
|
+
* @returns {Object.<string,*>} JSON object
|
|
162975
|
+
*/
|
|
162976
|
+
OrgCoverageProfileUpdated.prototype.toJSON = function toJSON() {
|
|
162977
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
162978
|
+
};
|
|
162979
|
+
|
|
162980
|
+
return OrgCoverageProfileUpdated;
|
|
162981
|
+
})();
|
|
162982
|
+
|
|
162983
|
+
/**
|
|
162984
|
+
* OrgCoverageType enum.
|
|
162985
|
+
* @name OrgCoverageType
|
|
162986
|
+
* @enum {string}
|
|
162987
|
+
* @property {number} ORG_COVERAGE_TYPE_UNKNOWN=0 ORG_COVERAGE_TYPE_UNKNOWN value
|
|
162988
|
+
* @property {number} ORG_COVERAGE_TYPE_EAP=1 ORG_COVERAGE_TYPE_EAP value
|
|
162989
|
+
* @property {number} ORG_COVERAGE_TYPE_SINGLE_FEE=2 ORG_COVERAGE_TYPE_SINGLE_FEE value
|
|
162990
|
+
* @property {number} ORG_COVERAGE_TYPE_CLINICAL_PRE_PURCHASE=3 ORG_COVERAGE_TYPE_CLINICAL_PRE_PURCHASE value
|
|
162991
|
+
*/
|
|
162992
|
+
$root.OrgCoverageType = (function() {
|
|
162993
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
162994
|
+
values[valuesById[0] = "ORG_COVERAGE_TYPE_UNKNOWN"] = 0;
|
|
162995
|
+
values[valuesById[1] = "ORG_COVERAGE_TYPE_EAP"] = 1;
|
|
162996
|
+
values[valuesById[2] = "ORG_COVERAGE_TYPE_SINGLE_FEE"] = 2;
|
|
162997
|
+
values[valuesById[3] = "ORG_COVERAGE_TYPE_CLINICAL_PRE_PURCHASE"] = 3;
|
|
162998
|
+
return values;
|
|
162999
|
+
})();
|
|
163000
|
+
|
|
163001
|
+
/**
|
|
163002
|
+
* OrgCoverageServicesCovered enum.
|
|
163003
|
+
* @name OrgCoverageServicesCovered
|
|
163004
|
+
* @enum {string}
|
|
163005
|
+
* @property {number} ORG_COVERAGE_SERVICES_COVERED_UNKNOWN=0 ORG_COVERAGE_SERVICES_COVERED_UNKNOWN value
|
|
163006
|
+
* @property {number} ORG_COVERAGE_SERVICES_COVERED_PSYCHIATRY=1 ORG_COVERAGE_SERVICES_COVERED_PSYCHIATRY value
|
|
163007
|
+
* @property {number} ORG_COVERAGE_SERVICES_COVERED_THERAPY=2 ORG_COVERAGE_SERVICES_COVERED_THERAPY value
|
|
163008
|
+
* @property {number} ORG_COVERAGE_SERVICES_COVERED_BOTH=3 ORG_COVERAGE_SERVICES_COVERED_BOTH value
|
|
163009
|
+
*/
|
|
163010
|
+
$root.OrgCoverageServicesCovered = (function() {
|
|
163011
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
163012
|
+
values[valuesById[0] = "ORG_COVERAGE_SERVICES_COVERED_UNKNOWN"] = 0;
|
|
163013
|
+
values[valuesById[1] = "ORG_COVERAGE_SERVICES_COVERED_PSYCHIATRY"] = 1;
|
|
163014
|
+
values[valuesById[2] = "ORG_COVERAGE_SERVICES_COVERED_THERAPY"] = 2;
|
|
163015
|
+
values[valuesById[3] = "ORG_COVERAGE_SERVICES_COVERED_BOTH"] = 3;
|
|
163016
|
+
return values;
|
|
163017
|
+
})();
|
|
163018
|
+
|
|
163019
|
+
/**
|
|
163020
|
+
* OrgCoverageEapCarrier enum.
|
|
163021
|
+
* @name OrgCoverageEapCarrier
|
|
163022
|
+
* @enum {string}
|
|
163023
|
+
* @property {number} ORG_COVERAGE_EAP_CARRIER_UNKNOWN=0 ORG_COVERAGE_EAP_CARRIER_UNKNOWN value
|
|
163024
|
+
* @property {number} ORG_COVERAGE_EAP_CARRIER_CCA=1 ORG_COVERAGE_EAP_CARRIER_CCA value
|
|
163025
|
+
* @property {number} ORG_COVERAGE_EAP_CARRIER_WPO=2 ORG_COVERAGE_EAP_CARRIER_WPO value
|
|
163026
|
+
* @property {number} ORG_COVERAGE_EAP_CARRIER_OTHER=3 ORG_COVERAGE_EAP_CARRIER_OTHER value
|
|
163027
|
+
* @property {number} ORG_COVERAGE_EAP_CARRIER_NONE=4 ORG_COVERAGE_EAP_CARRIER_NONE value
|
|
163028
|
+
*/
|
|
163029
|
+
$root.OrgCoverageEapCarrier = (function() {
|
|
163030
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
163031
|
+
values[valuesById[0] = "ORG_COVERAGE_EAP_CARRIER_UNKNOWN"] = 0;
|
|
163032
|
+
values[valuesById[1] = "ORG_COVERAGE_EAP_CARRIER_CCA"] = 1;
|
|
163033
|
+
values[valuesById[2] = "ORG_COVERAGE_EAP_CARRIER_WPO"] = 2;
|
|
163034
|
+
values[valuesById[3] = "ORG_COVERAGE_EAP_CARRIER_OTHER"] = 3;
|
|
163035
|
+
values[valuesById[4] = "ORG_COVERAGE_EAP_CARRIER_NONE"] = 4;
|
|
163036
|
+
return values;
|
|
163037
|
+
})();
|
|
163038
|
+
|
|
162349
163039
|
$root.WakeupPlaylistCreated = (function() {
|
|
162350
163040
|
|
|
162351
163041
|
/**
|
package/package.json
CHANGED