@headspace/protos-events 1.831.0 → 1.833.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.
Files changed (3) hide show
  1. package/lib/index.d.ts +798 -2
  2. package/lib/index.js +2192 -0
  3. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -210896,6 +210896,2144 @@ $root.CmsAccessDataReportCompleted = (function() {
210896
210896
  return CmsAccessDataReportCompleted;
210897
210897
  })();
210898
210898
 
210899
+ /**
210900
+ * CmsAccessBeneficiaryInfoType enum.
210901
+ * @name CmsAccessBeneficiaryInfoType
210902
+ * @enum {number}
210903
+ * @property {number} CMS_ACCESS_BENEFICIARY_INFO_TYPE_UNKNOWN=0 CMS_ACCESS_BENEFICIARY_INFO_TYPE_UNKNOWN value
210904
+ * @property {number} CMS_ACCESS_BENEFICIARY_INFO_TYPE_DEMOGRAPHIC_PROFILE=1 CMS_ACCESS_BENEFICIARY_INFO_TYPE_DEMOGRAPHIC_PROFILE value
210905
+ * @property {number} CMS_ACCESS_BENEFICIARY_INFO_TYPE_BENEFICIARY_CMS_RECORD=2 CMS_ACCESS_BENEFICIARY_INFO_TYPE_BENEFICIARY_CMS_RECORD value
210906
+ * @property {number} CMS_ACCESS_BENEFICIARY_INFO_TYPE_CARE_TEAM=3 CMS_ACCESS_BENEFICIARY_INFO_TYPE_CARE_TEAM value
210907
+ * @property {number} CMS_ACCESS_BENEFICIARY_INFO_TYPE_TREATMENT_GOALS=4 CMS_ACCESS_BENEFICIARY_INFO_TYPE_TREATMENT_GOALS value
210908
+ */
210909
+ $root.CmsAccessBeneficiaryInfoType = (function() {
210910
+ var valuesById = {}, values = Object.create(valuesById);
210911
+ values[valuesById[0] = "CMS_ACCESS_BENEFICIARY_INFO_TYPE_UNKNOWN"] = 0;
210912
+ values[valuesById[1] = "CMS_ACCESS_BENEFICIARY_INFO_TYPE_DEMOGRAPHIC_PROFILE"] = 1;
210913
+ values[valuesById[2] = "CMS_ACCESS_BENEFICIARY_INFO_TYPE_BENEFICIARY_CMS_RECORD"] = 2;
210914
+ values[valuesById[3] = "CMS_ACCESS_BENEFICIARY_INFO_TYPE_CARE_TEAM"] = 3;
210915
+ values[valuesById[4] = "CMS_ACCESS_BENEFICIARY_INFO_TYPE_TREATMENT_GOALS"] = 4;
210916
+ return values;
210917
+ })();
210918
+
210919
+ /**
210920
+ * CmsAccessReferralCondition enum.
210921
+ * @name CmsAccessReferralCondition
210922
+ * @enum {number}
210923
+ * @property {number} CMS_ACCESS_REFERRAL_CONDITION_UNKNOWN=0 CMS_ACCESS_REFERRAL_CONDITION_UNKNOWN value
210924
+ * @property {number} CMS_ACCESS_REFERRAL_CONDITION_DEPRESSION=1 CMS_ACCESS_REFERRAL_CONDITION_DEPRESSION value
210925
+ * @property {number} CMS_ACCESS_REFERRAL_CONDITION_ANXIETY=2 CMS_ACCESS_REFERRAL_CONDITION_ANXIETY value
210926
+ * @property {number} CMS_ACCESS_REFERRAL_CONDITION_BOTH=3 CMS_ACCESS_REFERRAL_CONDITION_BOTH value
210927
+ */
210928
+ $root.CmsAccessReferralCondition = (function() {
210929
+ var valuesById = {}, values = Object.create(valuesById);
210930
+ values[valuesById[0] = "CMS_ACCESS_REFERRAL_CONDITION_UNKNOWN"] = 0;
210931
+ values[valuesById[1] = "CMS_ACCESS_REFERRAL_CONDITION_DEPRESSION"] = 1;
210932
+ values[valuesById[2] = "CMS_ACCESS_REFERRAL_CONDITION_ANXIETY"] = 2;
210933
+ values[valuesById[3] = "CMS_ACCESS_REFERRAL_CONDITION_BOTH"] = 3;
210934
+ return values;
210935
+ })();
210936
+
210937
+ $root.CmsAccessDemographicProfile = (function() {
210938
+
210939
+ /**
210940
+ * Properties of a CmsAccessDemographicProfile.
210941
+ * @typedef {Object} CmsAccessDemographicProfile.$Properties
210942
+ * @property {string|null} [emailAddress] CmsAccessDemographicProfile emailAddress
210943
+ * @property {string|null} [phoneNumber] CmsAccessDemographicProfile phoneNumber
210944
+ * @property {string|null} [streetAddress_1] CmsAccessDemographicProfile streetAddress_1
210945
+ * @property {string|null} [streetAddress_2] CmsAccessDemographicProfile streetAddress_2
210946
+ * @property {string|null} [city] CmsAccessDemographicProfile city
210947
+ * @property {string|null} [state] CmsAccessDemographicProfile state
210948
+ * @property {string|null} [zipCode] CmsAccessDemographicProfile zipCode
210949
+ * @property {CmsAccessReferralCondition|null} [referralCondition] CmsAccessDemographicProfile referralCondition
210950
+ * @property {boolean|null} [isProviderReferral] CmsAccessDemographicProfile isProviderReferral
210951
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
210952
+ */
210953
+
210954
+ /**
210955
+ * Properties of a CmsAccessDemographicProfile.
210956
+ * @name ICmsAccessDemographicProfile
210957
+ * @interface ICmsAccessDemographicProfile
210958
+ * @augments CmsAccessDemographicProfile.$Properties
210959
+ * @deprecated Use CmsAccessDemographicProfile.$Properties instead.
210960
+ */
210961
+
210962
+ /**
210963
+ * Shape of a CmsAccessDemographicProfile.
210964
+ * @typedef {CmsAccessDemographicProfile.$Properties} CmsAccessDemographicProfile.$Shape
210965
+ */
210966
+
210967
+ /**
210968
+ * Constructs a new CmsAccessDemographicProfile.
210969
+ * @name CmsAccessDemographicProfile
210970
+ * @classdesc Represents a CmsAccessDemographicProfile.
210971
+ * @constructor
210972
+ * @param {CmsAccessDemographicProfile.$Properties=} [properties] Properties to set
210973
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
210974
+ */
210975
+ function CmsAccessDemographicProfile(properties) {
210976
+ if (properties)
210977
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
210978
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
210979
+ this[keys[i]] = properties[keys[i]];
210980
+ }
210981
+
210982
+ /**
210983
+ * CmsAccessDemographicProfile emailAddress.
210984
+ * @member {string} emailAddress
210985
+ * @memberof CmsAccessDemographicProfile
210986
+ * @instance
210987
+ */
210988
+ CmsAccessDemographicProfile.prototype.emailAddress = "";
210989
+
210990
+ /**
210991
+ * CmsAccessDemographicProfile phoneNumber.
210992
+ * @member {string} phoneNumber
210993
+ * @memberof CmsAccessDemographicProfile
210994
+ * @instance
210995
+ */
210996
+ CmsAccessDemographicProfile.prototype.phoneNumber = "";
210997
+
210998
+ /**
210999
+ * CmsAccessDemographicProfile streetAddress_1.
211000
+ * @member {string} streetAddress_1
211001
+ * @memberof CmsAccessDemographicProfile
211002
+ * @instance
211003
+ */
211004
+ CmsAccessDemographicProfile.prototype.streetAddress_1 = "";
211005
+
211006
+ /**
211007
+ * CmsAccessDemographicProfile streetAddress_2.
211008
+ * @member {string} streetAddress_2
211009
+ * @memberof CmsAccessDemographicProfile
211010
+ * @instance
211011
+ */
211012
+ CmsAccessDemographicProfile.prototype.streetAddress_2 = "";
211013
+
211014
+ /**
211015
+ * CmsAccessDemographicProfile city.
211016
+ * @member {string} city
211017
+ * @memberof CmsAccessDemographicProfile
211018
+ * @instance
211019
+ */
211020
+ CmsAccessDemographicProfile.prototype.city = "";
211021
+
211022
+ /**
211023
+ * CmsAccessDemographicProfile state.
211024
+ * @member {string} state
211025
+ * @memberof CmsAccessDemographicProfile
211026
+ * @instance
211027
+ */
211028
+ CmsAccessDemographicProfile.prototype.state = "";
211029
+
211030
+ /**
211031
+ * CmsAccessDemographicProfile zipCode.
211032
+ * @member {string} zipCode
211033
+ * @memberof CmsAccessDemographicProfile
211034
+ * @instance
211035
+ */
211036
+ CmsAccessDemographicProfile.prototype.zipCode = "";
211037
+
211038
+ /**
211039
+ * CmsAccessDemographicProfile referralCondition.
211040
+ * @member {CmsAccessReferralCondition} referralCondition
211041
+ * @memberof CmsAccessDemographicProfile
211042
+ * @instance
211043
+ */
211044
+ CmsAccessDemographicProfile.prototype.referralCondition = 0;
211045
+
211046
+ /**
211047
+ * CmsAccessDemographicProfile isProviderReferral.
211048
+ * @member {boolean} isProviderReferral
211049
+ * @memberof CmsAccessDemographicProfile
211050
+ * @instance
211051
+ */
211052
+ CmsAccessDemographicProfile.prototype.isProviderReferral = false;
211053
+
211054
+ /**
211055
+ * Creates a new CmsAccessDemographicProfile instance using the specified properties.
211056
+ * @function create
211057
+ * @memberof CmsAccessDemographicProfile
211058
+ * @static
211059
+ * @param {CmsAccessDemographicProfile.$Properties=} [properties] Properties to set
211060
+ * @returns {CmsAccessDemographicProfile} CmsAccessDemographicProfile instance
211061
+ * @type {{
211062
+ * (properties: CmsAccessDemographicProfile.$Shape): CmsAccessDemographicProfile & CmsAccessDemographicProfile.$Shape;
211063
+ * (properties?: CmsAccessDemographicProfile.$Properties): CmsAccessDemographicProfile;
211064
+ * }}
211065
+ */
211066
+ CmsAccessDemographicProfile.create = function create(properties) {
211067
+ return new CmsAccessDemographicProfile(properties);
211068
+ };
211069
+
211070
+ /**
211071
+ * Encodes the specified CmsAccessDemographicProfile message. Does not implicitly {@link CmsAccessDemographicProfile.verify|verify} messages.
211072
+ * @function encode
211073
+ * @memberof CmsAccessDemographicProfile
211074
+ * @static
211075
+ * @param {CmsAccessDemographicProfile.$Properties} message CmsAccessDemographicProfile message or plain object to encode
211076
+ * @param {$protobuf.Writer} [writer] Writer to encode to
211077
+ * @returns {$protobuf.Writer} Writer
211078
+ */
211079
+ CmsAccessDemographicProfile.encode = function encode(message, writer) {
211080
+ if (!writer)
211081
+ writer = $Writer.create();
211082
+ if (message.emailAddress != null && Object.hasOwnProperty.call(message, "emailAddress"))
211083
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.emailAddress);
211084
+ if (message.phoneNumber != null && Object.hasOwnProperty.call(message, "phoneNumber"))
211085
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.phoneNumber);
211086
+ if (message.streetAddress_1 != null && Object.hasOwnProperty.call(message, "streetAddress_1"))
211087
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.streetAddress_1);
211088
+ if (message.streetAddress_2 != null && Object.hasOwnProperty.call(message, "streetAddress_2"))
211089
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.streetAddress_2);
211090
+ if (message.city != null && Object.hasOwnProperty.call(message, "city"))
211091
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.city);
211092
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
211093
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.state);
211094
+ if (message.zipCode != null && Object.hasOwnProperty.call(message, "zipCode"))
211095
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.zipCode);
211096
+ if (message.referralCondition != null && Object.hasOwnProperty.call(message, "referralCondition"))
211097
+ writer.uint32(/* id 8, wireType 0 =*/64).int32(message.referralCondition);
211098
+ if (message.isProviderReferral != null && Object.hasOwnProperty.call(message, "isProviderReferral"))
211099
+ writer.uint32(/* id 9, wireType 0 =*/72).bool(message.isProviderReferral);
211100
+ if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
211101
+ for (var i = 0; i < message.$unknowns.length; ++i)
211102
+ writer.raw(message.$unknowns[i]);
211103
+ return writer;
211104
+ };
211105
+
211106
+ /**
211107
+ * Encodes the specified CmsAccessDemographicProfile message, length delimited. Does not implicitly {@link CmsAccessDemographicProfile.verify|verify} messages.
211108
+ * @function encodeDelimited
211109
+ * @memberof CmsAccessDemographicProfile
211110
+ * @static
211111
+ * @param {CmsAccessDemographicProfile.$Properties} message CmsAccessDemographicProfile message or plain object to encode
211112
+ * @param {$protobuf.Writer} [writer] Writer to encode to
211113
+ * @returns {$protobuf.Writer} Writer
211114
+ */
211115
+ CmsAccessDemographicProfile.encodeDelimited = function encodeDelimited(message, writer) {
211116
+ return this.encode(message, writer).ldelim();
211117
+ };
211118
+
211119
+ /**
211120
+ * Decodes a CmsAccessDemographicProfile message from the specified reader or buffer.
211121
+ * @function decode
211122
+ * @memberof CmsAccessDemographicProfile
211123
+ * @static
211124
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
211125
+ * @param {number} [length] Message length if known beforehand
211126
+ * @returns {CmsAccessDemographicProfile & CmsAccessDemographicProfile.$Shape} CmsAccessDemographicProfile
211127
+ * @throws {Error} If the payload is not a reader or valid buffer
211128
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
211129
+ */
211130
+ CmsAccessDemographicProfile.decode = function decode(reader, length, _end, _depth, _target) {
211131
+ if (!(reader instanceof $Reader))
211132
+ reader = $Reader.create(reader);
211133
+ if (_depth === undefined)
211134
+ _depth = 0;
211135
+ if (_depth > $Reader.recursionLimit)
211136
+ throw Error("max depth exceeded");
211137
+ var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.CmsAccessDemographicProfile(), value;
211138
+ while (reader.pos < end) {
211139
+ var start = reader.pos;
211140
+ var tag = reader.tag();
211141
+ if (tag === _end) {
211142
+ _end = undefined;
211143
+ break;
211144
+ }
211145
+ var wireType = tag & 7;
211146
+ switch (tag >>>= 3) {
211147
+ case 1: {
211148
+ if (wireType !== 2)
211149
+ break;
211150
+ if ((value = reader.string()).length)
211151
+ message.emailAddress = value;
211152
+ else
211153
+ delete message.emailAddress;
211154
+ continue;
211155
+ }
211156
+ case 2: {
211157
+ if (wireType !== 2)
211158
+ break;
211159
+ if ((value = reader.string()).length)
211160
+ message.phoneNumber = value;
211161
+ else
211162
+ delete message.phoneNumber;
211163
+ continue;
211164
+ }
211165
+ case 3: {
211166
+ if (wireType !== 2)
211167
+ break;
211168
+ if ((value = reader.string()).length)
211169
+ message.streetAddress_1 = value;
211170
+ else
211171
+ delete message.streetAddress_1;
211172
+ continue;
211173
+ }
211174
+ case 4: {
211175
+ if (wireType !== 2)
211176
+ break;
211177
+ if ((value = reader.string()).length)
211178
+ message.streetAddress_2 = value;
211179
+ else
211180
+ delete message.streetAddress_2;
211181
+ continue;
211182
+ }
211183
+ case 5: {
211184
+ if (wireType !== 2)
211185
+ break;
211186
+ if ((value = reader.string()).length)
211187
+ message.city = value;
211188
+ else
211189
+ delete message.city;
211190
+ continue;
211191
+ }
211192
+ case 6: {
211193
+ if (wireType !== 2)
211194
+ break;
211195
+ if ((value = reader.string()).length)
211196
+ message.state = value;
211197
+ else
211198
+ delete message.state;
211199
+ continue;
211200
+ }
211201
+ case 7: {
211202
+ if (wireType !== 2)
211203
+ break;
211204
+ if ((value = reader.string()).length)
211205
+ message.zipCode = value;
211206
+ else
211207
+ delete message.zipCode;
211208
+ continue;
211209
+ }
211210
+ case 8: {
211211
+ if (wireType !== 0)
211212
+ break;
211213
+ if (value = reader.int32())
211214
+ message.referralCondition = value;
211215
+ else
211216
+ delete message.referralCondition;
211217
+ continue;
211218
+ }
211219
+ case 9: {
211220
+ if (wireType !== 0)
211221
+ break;
211222
+ if (value = reader.bool())
211223
+ message.isProviderReferral = value;
211224
+ else
211225
+ delete message.isProviderReferral;
211226
+ continue;
211227
+ }
211228
+ }
211229
+ reader.skipType(wireType, _depth, tag);
211230
+ $util.makeProp(message, "$unknowns", false);
211231
+ (message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
211232
+ }
211233
+ if (_end !== undefined)
211234
+ throw Error("missing end group");
211235
+ return message;
211236
+ };
211237
+
211238
+ /**
211239
+ * Decodes a CmsAccessDemographicProfile message from the specified reader or buffer, length delimited.
211240
+ * @function decodeDelimited
211241
+ * @memberof CmsAccessDemographicProfile
211242
+ * @static
211243
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
211244
+ * @returns {CmsAccessDemographicProfile & CmsAccessDemographicProfile.$Shape} CmsAccessDemographicProfile
211245
+ * @throws {Error} If the payload is not a reader or valid buffer
211246
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
211247
+ */
211248
+ CmsAccessDemographicProfile.decodeDelimited = function decodeDelimited(reader) {
211249
+ if (!(reader instanceof $Reader))
211250
+ reader = new $Reader(reader);
211251
+ return this.decode(reader, reader.uint32());
211252
+ };
211253
+
211254
+ /**
211255
+ * Verifies a CmsAccessDemographicProfile message.
211256
+ * @function verify
211257
+ * @memberof CmsAccessDemographicProfile
211258
+ * @static
211259
+ * @param {Object.<string,*>} message Plain object to verify
211260
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
211261
+ */
211262
+ CmsAccessDemographicProfile.verify = function verify(message, _depth) {
211263
+ if (typeof message !== "object" || message === null)
211264
+ return "object expected";
211265
+ if (_depth === undefined)
211266
+ _depth = 0;
211267
+ if (_depth > $util.recursionLimit)
211268
+ return "max depth exceeded";
211269
+ if (message.emailAddress != null && message.hasOwnProperty("emailAddress"))
211270
+ if (!$util.isString(message.emailAddress))
211271
+ return "emailAddress: string expected";
211272
+ if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber"))
211273
+ if (!$util.isString(message.phoneNumber))
211274
+ return "phoneNumber: string expected";
211275
+ if (message.streetAddress_1 != null && message.hasOwnProperty("streetAddress_1"))
211276
+ if (!$util.isString(message.streetAddress_1))
211277
+ return "streetAddress_1: string expected";
211278
+ if (message.streetAddress_2 != null && message.hasOwnProperty("streetAddress_2"))
211279
+ if (!$util.isString(message.streetAddress_2))
211280
+ return "streetAddress_2: string expected";
211281
+ if (message.city != null && message.hasOwnProperty("city"))
211282
+ if (!$util.isString(message.city))
211283
+ return "city: string expected";
211284
+ if (message.state != null && message.hasOwnProperty("state"))
211285
+ if (!$util.isString(message.state))
211286
+ return "state: string expected";
211287
+ if (message.zipCode != null && message.hasOwnProperty("zipCode"))
211288
+ if (!$util.isString(message.zipCode))
211289
+ return "zipCode: string expected";
211290
+ if (message.referralCondition != null && message.hasOwnProperty("referralCondition"))
211291
+ switch (message.referralCondition) {
211292
+ default:
211293
+ return "referralCondition: enum value expected";
211294
+ case 0:
211295
+ case 1:
211296
+ case 2:
211297
+ case 3:
211298
+ break;
211299
+ }
211300
+ if (message.isProviderReferral != null && message.hasOwnProperty("isProviderReferral"))
211301
+ if (typeof message.isProviderReferral !== "boolean")
211302
+ return "isProviderReferral: boolean expected";
211303
+ return null;
211304
+ };
211305
+
211306
+ /**
211307
+ * Creates a CmsAccessDemographicProfile message from a plain object. Also converts values to their respective internal types.
211308
+ * @function fromObject
211309
+ * @memberof CmsAccessDemographicProfile
211310
+ * @static
211311
+ * @param {Object.<string,*>} object Plain object
211312
+ * @returns {CmsAccessDemographicProfile} CmsAccessDemographicProfile
211313
+ */
211314
+ CmsAccessDemographicProfile.fromObject = function fromObject(object, _depth) {
211315
+ if (object instanceof $root.CmsAccessDemographicProfile)
211316
+ return object;
211317
+ if (_depth === undefined)
211318
+ _depth = 0;
211319
+ if (_depth > $util.recursionLimit)
211320
+ throw Error("max depth exceeded");
211321
+ var message = new $root.CmsAccessDemographicProfile();
211322
+ if (object.emailAddress != null)
211323
+ if (typeof object.emailAddress !== "string" || object.emailAddress.length)
211324
+ message.emailAddress = String(object.emailAddress);
211325
+ if (object.phoneNumber != null)
211326
+ if (typeof object.phoneNumber !== "string" || object.phoneNumber.length)
211327
+ message.phoneNumber = String(object.phoneNumber);
211328
+ if (object.streetAddress_1 != null)
211329
+ if (typeof object.streetAddress_1 !== "string" || object.streetAddress_1.length)
211330
+ message.streetAddress_1 = String(object.streetAddress_1);
211331
+ if (object.streetAddress_2 != null)
211332
+ if (typeof object.streetAddress_2 !== "string" || object.streetAddress_2.length)
211333
+ message.streetAddress_2 = String(object.streetAddress_2);
211334
+ if (object.city != null)
211335
+ if (typeof object.city !== "string" || object.city.length)
211336
+ message.city = String(object.city);
211337
+ if (object.state != null)
211338
+ if (typeof object.state !== "string" || object.state.length)
211339
+ message.state = String(object.state);
211340
+ if (object.zipCode != null)
211341
+ if (typeof object.zipCode !== "string" || object.zipCode.length)
211342
+ message.zipCode = String(object.zipCode);
211343
+ if (object.referralCondition !== 0 && (typeof object.referralCondition !== "string" || $root.CmsAccessReferralCondition[object.referralCondition] !== 0))
211344
+ switch (object.referralCondition) {
211345
+ default:
211346
+ if (typeof object.referralCondition === "number") {
211347
+ message.referralCondition = object.referralCondition;
211348
+ break;
211349
+ }
211350
+ break;
211351
+ case "CMS_ACCESS_REFERRAL_CONDITION_UNKNOWN":
211352
+ case 0:
211353
+ message.referralCondition = 0;
211354
+ break;
211355
+ case "CMS_ACCESS_REFERRAL_CONDITION_DEPRESSION":
211356
+ case 1:
211357
+ message.referralCondition = 1;
211358
+ break;
211359
+ case "CMS_ACCESS_REFERRAL_CONDITION_ANXIETY":
211360
+ case 2:
211361
+ message.referralCondition = 2;
211362
+ break;
211363
+ case "CMS_ACCESS_REFERRAL_CONDITION_BOTH":
211364
+ case 3:
211365
+ message.referralCondition = 3;
211366
+ break;
211367
+ }
211368
+ if (object.isProviderReferral != null)
211369
+ if (object.isProviderReferral)
211370
+ message.isProviderReferral = Boolean(object.isProviderReferral);
211371
+ return message;
211372
+ };
211373
+
211374
+ /**
211375
+ * Creates a plain object from a CmsAccessDemographicProfile message. Also converts values to other types if specified.
211376
+ * @function toObject
211377
+ * @memberof CmsAccessDemographicProfile
211378
+ * @static
211379
+ * @param {CmsAccessDemographicProfile} message CmsAccessDemographicProfile
211380
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
211381
+ * @returns {Object.<string,*>} Plain object
211382
+ */
211383
+ CmsAccessDemographicProfile.toObject = function toObject(message, options) {
211384
+ if (!options)
211385
+ options = {};
211386
+ var object = {};
211387
+ if (options.defaults) {
211388
+ object.emailAddress = "";
211389
+ object.phoneNumber = "";
211390
+ object.streetAddress_1 = "";
211391
+ object.streetAddress_2 = "";
211392
+ object.city = "";
211393
+ object.state = "";
211394
+ object.zipCode = "";
211395
+ object.referralCondition = options.enums === String ? "CMS_ACCESS_REFERRAL_CONDITION_UNKNOWN" : 0;
211396
+ object.isProviderReferral = false;
211397
+ }
211398
+ if (message.emailAddress != null && message.hasOwnProperty("emailAddress"))
211399
+ object.emailAddress = message.emailAddress;
211400
+ if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber"))
211401
+ object.phoneNumber = message.phoneNumber;
211402
+ if (message.streetAddress_1 != null && message.hasOwnProperty("streetAddress_1"))
211403
+ object.streetAddress_1 = message.streetAddress_1;
211404
+ if (message.streetAddress_2 != null && message.hasOwnProperty("streetAddress_2"))
211405
+ object.streetAddress_2 = message.streetAddress_2;
211406
+ if (message.city != null && message.hasOwnProperty("city"))
211407
+ object.city = message.city;
211408
+ if (message.state != null && message.hasOwnProperty("state"))
211409
+ object.state = message.state;
211410
+ if (message.zipCode != null && message.hasOwnProperty("zipCode"))
211411
+ object.zipCode = message.zipCode;
211412
+ if (message.referralCondition != null && message.hasOwnProperty("referralCondition"))
211413
+ object.referralCondition = options.enums === String ? $root.CmsAccessReferralCondition[message.referralCondition] === undefined ? message.referralCondition : $root.CmsAccessReferralCondition[message.referralCondition] : message.referralCondition;
211414
+ if (message.isProviderReferral != null && message.hasOwnProperty("isProviderReferral"))
211415
+ object.isProviderReferral = message.isProviderReferral;
211416
+ return object;
211417
+ };
211418
+
211419
+ /**
211420
+ * Converts this CmsAccessDemographicProfile to JSON.
211421
+ * @function toJSON
211422
+ * @memberof CmsAccessDemographicProfile
211423
+ * @instance
211424
+ * @returns {Object.<string,*>} JSON object
211425
+ */
211426
+ CmsAccessDemographicProfile.prototype.toJSON = function toJSON() {
211427
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
211428
+ };
211429
+
211430
+ /**
211431
+ * Gets the type url for CmsAccessDemographicProfile
211432
+ * @function getTypeUrl
211433
+ * @memberof CmsAccessDemographicProfile
211434
+ * @static
211435
+ * @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
211436
+ * @returns {string} The type url
211437
+ */
211438
+ CmsAccessDemographicProfile.getTypeUrl = function getTypeUrl(prefix) {
211439
+ if (prefix === undefined)
211440
+ prefix = "type.googleapis.com";
211441
+ return prefix + "/CmsAccessDemographicProfile";
211442
+ };
211443
+
211444
+ return CmsAccessDemographicProfile;
211445
+ })();
211446
+
211447
+ $root.CmsAccessBeneficiaryCmsRecord = (function() {
211448
+
211449
+ /**
211450
+ * Properties of a CmsAccessBeneficiaryCmsRecord.
211451
+ * @typedef {Object} CmsAccessBeneficiaryCmsRecord.$Properties
211452
+ * @property {string|null} [medicareBeneficiaryId] CmsAccessBeneficiaryCmsRecord medicareBeneficiaryId
211453
+ * @property {string|null} [firstName] CmsAccessBeneficiaryCmsRecord firstName
211454
+ * @property {string|null} [lastName] CmsAccessBeneficiaryCmsRecord lastName
211455
+ * @property {string|null} [dateOfBirth] CmsAccessBeneficiaryCmsRecord dateOfBirth
211456
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
211457
+ */
211458
+
211459
+ /**
211460
+ * Properties of a CmsAccessBeneficiaryCmsRecord.
211461
+ * @name ICmsAccessBeneficiaryCmsRecord
211462
+ * @interface ICmsAccessBeneficiaryCmsRecord
211463
+ * @augments CmsAccessBeneficiaryCmsRecord.$Properties
211464
+ * @deprecated Use CmsAccessBeneficiaryCmsRecord.$Properties instead.
211465
+ */
211466
+
211467
+ /**
211468
+ * Shape of a CmsAccessBeneficiaryCmsRecord.
211469
+ * @typedef {CmsAccessBeneficiaryCmsRecord.$Properties} CmsAccessBeneficiaryCmsRecord.$Shape
211470
+ */
211471
+
211472
+ /**
211473
+ * Constructs a new CmsAccessBeneficiaryCmsRecord.
211474
+ * @name CmsAccessBeneficiaryCmsRecord
211475
+ * @classdesc Represents a CmsAccessBeneficiaryCmsRecord.
211476
+ * @constructor
211477
+ * @param {CmsAccessBeneficiaryCmsRecord.$Properties=} [properties] Properties to set
211478
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
211479
+ */
211480
+ function CmsAccessBeneficiaryCmsRecord(properties) {
211481
+ if (properties)
211482
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
211483
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
211484
+ this[keys[i]] = properties[keys[i]];
211485
+ }
211486
+
211487
+ /**
211488
+ * CmsAccessBeneficiaryCmsRecord medicareBeneficiaryId.
211489
+ * @member {string} medicareBeneficiaryId
211490
+ * @memberof CmsAccessBeneficiaryCmsRecord
211491
+ * @instance
211492
+ */
211493
+ CmsAccessBeneficiaryCmsRecord.prototype.medicareBeneficiaryId = "";
211494
+
211495
+ /**
211496
+ * CmsAccessBeneficiaryCmsRecord firstName.
211497
+ * @member {string} firstName
211498
+ * @memberof CmsAccessBeneficiaryCmsRecord
211499
+ * @instance
211500
+ */
211501
+ CmsAccessBeneficiaryCmsRecord.prototype.firstName = "";
211502
+
211503
+ /**
211504
+ * CmsAccessBeneficiaryCmsRecord lastName.
211505
+ * @member {string} lastName
211506
+ * @memberof CmsAccessBeneficiaryCmsRecord
211507
+ * @instance
211508
+ */
211509
+ CmsAccessBeneficiaryCmsRecord.prototype.lastName = "";
211510
+
211511
+ /**
211512
+ * CmsAccessBeneficiaryCmsRecord dateOfBirth.
211513
+ * @member {string} dateOfBirth
211514
+ * @memberof CmsAccessBeneficiaryCmsRecord
211515
+ * @instance
211516
+ */
211517
+ CmsAccessBeneficiaryCmsRecord.prototype.dateOfBirth = "";
211518
+
211519
+ /**
211520
+ * Creates a new CmsAccessBeneficiaryCmsRecord instance using the specified properties.
211521
+ * @function create
211522
+ * @memberof CmsAccessBeneficiaryCmsRecord
211523
+ * @static
211524
+ * @param {CmsAccessBeneficiaryCmsRecord.$Properties=} [properties] Properties to set
211525
+ * @returns {CmsAccessBeneficiaryCmsRecord} CmsAccessBeneficiaryCmsRecord instance
211526
+ * @type {{
211527
+ * (properties: CmsAccessBeneficiaryCmsRecord.$Shape): CmsAccessBeneficiaryCmsRecord & CmsAccessBeneficiaryCmsRecord.$Shape;
211528
+ * (properties?: CmsAccessBeneficiaryCmsRecord.$Properties): CmsAccessBeneficiaryCmsRecord;
211529
+ * }}
211530
+ */
211531
+ CmsAccessBeneficiaryCmsRecord.create = function create(properties) {
211532
+ return new CmsAccessBeneficiaryCmsRecord(properties);
211533
+ };
211534
+
211535
+ /**
211536
+ * Encodes the specified CmsAccessBeneficiaryCmsRecord message. Does not implicitly {@link CmsAccessBeneficiaryCmsRecord.verify|verify} messages.
211537
+ * @function encode
211538
+ * @memberof CmsAccessBeneficiaryCmsRecord
211539
+ * @static
211540
+ * @param {CmsAccessBeneficiaryCmsRecord.$Properties} message CmsAccessBeneficiaryCmsRecord message or plain object to encode
211541
+ * @param {$protobuf.Writer} [writer] Writer to encode to
211542
+ * @returns {$protobuf.Writer} Writer
211543
+ */
211544
+ CmsAccessBeneficiaryCmsRecord.encode = function encode(message, writer) {
211545
+ if (!writer)
211546
+ writer = $Writer.create();
211547
+ if (message.medicareBeneficiaryId != null && Object.hasOwnProperty.call(message, "medicareBeneficiaryId"))
211548
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.medicareBeneficiaryId);
211549
+ if (message.firstName != null && Object.hasOwnProperty.call(message, "firstName"))
211550
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.firstName);
211551
+ if (message.lastName != null && Object.hasOwnProperty.call(message, "lastName"))
211552
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.lastName);
211553
+ if (message.dateOfBirth != null && Object.hasOwnProperty.call(message, "dateOfBirth"))
211554
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.dateOfBirth);
211555
+ if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
211556
+ for (var i = 0; i < message.$unknowns.length; ++i)
211557
+ writer.raw(message.$unknowns[i]);
211558
+ return writer;
211559
+ };
211560
+
211561
+ /**
211562
+ * Encodes the specified CmsAccessBeneficiaryCmsRecord message, length delimited. Does not implicitly {@link CmsAccessBeneficiaryCmsRecord.verify|verify} messages.
211563
+ * @function encodeDelimited
211564
+ * @memberof CmsAccessBeneficiaryCmsRecord
211565
+ * @static
211566
+ * @param {CmsAccessBeneficiaryCmsRecord.$Properties} message CmsAccessBeneficiaryCmsRecord message or plain object to encode
211567
+ * @param {$protobuf.Writer} [writer] Writer to encode to
211568
+ * @returns {$protobuf.Writer} Writer
211569
+ */
211570
+ CmsAccessBeneficiaryCmsRecord.encodeDelimited = function encodeDelimited(message, writer) {
211571
+ return this.encode(message, writer).ldelim();
211572
+ };
211573
+
211574
+ /**
211575
+ * Decodes a CmsAccessBeneficiaryCmsRecord message from the specified reader or buffer.
211576
+ * @function decode
211577
+ * @memberof CmsAccessBeneficiaryCmsRecord
211578
+ * @static
211579
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
211580
+ * @param {number} [length] Message length if known beforehand
211581
+ * @returns {CmsAccessBeneficiaryCmsRecord & CmsAccessBeneficiaryCmsRecord.$Shape} CmsAccessBeneficiaryCmsRecord
211582
+ * @throws {Error} If the payload is not a reader or valid buffer
211583
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
211584
+ */
211585
+ CmsAccessBeneficiaryCmsRecord.decode = function decode(reader, length, _end, _depth, _target) {
211586
+ if (!(reader instanceof $Reader))
211587
+ reader = $Reader.create(reader);
211588
+ if (_depth === undefined)
211589
+ _depth = 0;
211590
+ if (_depth > $Reader.recursionLimit)
211591
+ throw Error("max depth exceeded");
211592
+ var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.CmsAccessBeneficiaryCmsRecord(), value;
211593
+ while (reader.pos < end) {
211594
+ var start = reader.pos;
211595
+ var tag = reader.tag();
211596
+ if (tag === _end) {
211597
+ _end = undefined;
211598
+ break;
211599
+ }
211600
+ var wireType = tag & 7;
211601
+ switch (tag >>>= 3) {
211602
+ case 1: {
211603
+ if (wireType !== 2)
211604
+ break;
211605
+ if ((value = reader.string()).length)
211606
+ message.medicareBeneficiaryId = value;
211607
+ else
211608
+ delete message.medicareBeneficiaryId;
211609
+ continue;
211610
+ }
211611
+ case 2: {
211612
+ if (wireType !== 2)
211613
+ break;
211614
+ if ((value = reader.string()).length)
211615
+ message.firstName = value;
211616
+ else
211617
+ delete message.firstName;
211618
+ continue;
211619
+ }
211620
+ case 3: {
211621
+ if (wireType !== 2)
211622
+ break;
211623
+ if ((value = reader.string()).length)
211624
+ message.lastName = value;
211625
+ else
211626
+ delete message.lastName;
211627
+ continue;
211628
+ }
211629
+ case 4: {
211630
+ if (wireType !== 2)
211631
+ break;
211632
+ if ((value = reader.string()).length)
211633
+ message.dateOfBirth = value;
211634
+ else
211635
+ delete message.dateOfBirth;
211636
+ continue;
211637
+ }
211638
+ }
211639
+ reader.skipType(wireType, _depth, tag);
211640
+ $util.makeProp(message, "$unknowns", false);
211641
+ (message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
211642
+ }
211643
+ if (_end !== undefined)
211644
+ throw Error("missing end group");
211645
+ return message;
211646
+ };
211647
+
211648
+ /**
211649
+ * Decodes a CmsAccessBeneficiaryCmsRecord message from the specified reader or buffer, length delimited.
211650
+ * @function decodeDelimited
211651
+ * @memberof CmsAccessBeneficiaryCmsRecord
211652
+ * @static
211653
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
211654
+ * @returns {CmsAccessBeneficiaryCmsRecord & CmsAccessBeneficiaryCmsRecord.$Shape} CmsAccessBeneficiaryCmsRecord
211655
+ * @throws {Error} If the payload is not a reader or valid buffer
211656
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
211657
+ */
211658
+ CmsAccessBeneficiaryCmsRecord.decodeDelimited = function decodeDelimited(reader) {
211659
+ if (!(reader instanceof $Reader))
211660
+ reader = new $Reader(reader);
211661
+ return this.decode(reader, reader.uint32());
211662
+ };
211663
+
211664
+ /**
211665
+ * Verifies a CmsAccessBeneficiaryCmsRecord message.
211666
+ * @function verify
211667
+ * @memberof CmsAccessBeneficiaryCmsRecord
211668
+ * @static
211669
+ * @param {Object.<string,*>} message Plain object to verify
211670
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
211671
+ */
211672
+ CmsAccessBeneficiaryCmsRecord.verify = function verify(message, _depth) {
211673
+ if (typeof message !== "object" || message === null)
211674
+ return "object expected";
211675
+ if (_depth === undefined)
211676
+ _depth = 0;
211677
+ if (_depth > $util.recursionLimit)
211678
+ return "max depth exceeded";
211679
+ if (message.medicareBeneficiaryId != null && message.hasOwnProperty("medicareBeneficiaryId"))
211680
+ if (!$util.isString(message.medicareBeneficiaryId))
211681
+ return "medicareBeneficiaryId: string expected";
211682
+ if (message.firstName != null && message.hasOwnProperty("firstName"))
211683
+ if (!$util.isString(message.firstName))
211684
+ return "firstName: string expected";
211685
+ if (message.lastName != null && message.hasOwnProperty("lastName"))
211686
+ if (!$util.isString(message.lastName))
211687
+ return "lastName: string expected";
211688
+ if (message.dateOfBirth != null && message.hasOwnProperty("dateOfBirth"))
211689
+ if (!$util.isString(message.dateOfBirth))
211690
+ return "dateOfBirth: string expected";
211691
+ return null;
211692
+ };
211693
+
211694
+ /**
211695
+ * Creates a CmsAccessBeneficiaryCmsRecord message from a plain object. Also converts values to their respective internal types.
211696
+ * @function fromObject
211697
+ * @memberof CmsAccessBeneficiaryCmsRecord
211698
+ * @static
211699
+ * @param {Object.<string,*>} object Plain object
211700
+ * @returns {CmsAccessBeneficiaryCmsRecord} CmsAccessBeneficiaryCmsRecord
211701
+ */
211702
+ CmsAccessBeneficiaryCmsRecord.fromObject = function fromObject(object, _depth) {
211703
+ if (object instanceof $root.CmsAccessBeneficiaryCmsRecord)
211704
+ return object;
211705
+ if (_depth === undefined)
211706
+ _depth = 0;
211707
+ if (_depth > $util.recursionLimit)
211708
+ throw Error("max depth exceeded");
211709
+ var message = new $root.CmsAccessBeneficiaryCmsRecord();
211710
+ if (object.medicareBeneficiaryId != null)
211711
+ if (typeof object.medicareBeneficiaryId !== "string" || object.medicareBeneficiaryId.length)
211712
+ message.medicareBeneficiaryId = String(object.medicareBeneficiaryId);
211713
+ if (object.firstName != null)
211714
+ if (typeof object.firstName !== "string" || object.firstName.length)
211715
+ message.firstName = String(object.firstName);
211716
+ if (object.lastName != null)
211717
+ if (typeof object.lastName !== "string" || object.lastName.length)
211718
+ message.lastName = String(object.lastName);
211719
+ if (object.dateOfBirth != null)
211720
+ if (typeof object.dateOfBirth !== "string" || object.dateOfBirth.length)
211721
+ message.dateOfBirth = String(object.dateOfBirth);
211722
+ return message;
211723
+ };
211724
+
211725
+ /**
211726
+ * Creates a plain object from a CmsAccessBeneficiaryCmsRecord message. Also converts values to other types if specified.
211727
+ * @function toObject
211728
+ * @memberof CmsAccessBeneficiaryCmsRecord
211729
+ * @static
211730
+ * @param {CmsAccessBeneficiaryCmsRecord} message CmsAccessBeneficiaryCmsRecord
211731
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
211732
+ * @returns {Object.<string,*>} Plain object
211733
+ */
211734
+ CmsAccessBeneficiaryCmsRecord.toObject = function toObject(message, options) {
211735
+ if (!options)
211736
+ options = {};
211737
+ var object = {};
211738
+ if (options.defaults) {
211739
+ object.medicareBeneficiaryId = "";
211740
+ object.firstName = "";
211741
+ object.lastName = "";
211742
+ object.dateOfBirth = "";
211743
+ }
211744
+ if (message.medicareBeneficiaryId != null && message.hasOwnProperty("medicareBeneficiaryId"))
211745
+ object.medicareBeneficiaryId = message.medicareBeneficiaryId;
211746
+ if (message.firstName != null && message.hasOwnProperty("firstName"))
211747
+ object.firstName = message.firstName;
211748
+ if (message.lastName != null && message.hasOwnProperty("lastName"))
211749
+ object.lastName = message.lastName;
211750
+ if (message.dateOfBirth != null && message.hasOwnProperty("dateOfBirth"))
211751
+ object.dateOfBirth = message.dateOfBirth;
211752
+ return object;
211753
+ };
211754
+
211755
+ /**
211756
+ * Converts this CmsAccessBeneficiaryCmsRecord to JSON.
211757
+ * @function toJSON
211758
+ * @memberof CmsAccessBeneficiaryCmsRecord
211759
+ * @instance
211760
+ * @returns {Object.<string,*>} JSON object
211761
+ */
211762
+ CmsAccessBeneficiaryCmsRecord.prototype.toJSON = function toJSON() {
211763
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
211764
+ };
211765
+
211766
+ /**
211767
+ * Gets the type url for CmsAccessBeneficiaryCmsRecord
211768
+ * @function getTypeUrl
211769
+ * @memberof CmsAccessBeneficiaryCmsRecord
211770
+ * @static
211771
+ * @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
211772
+ * @returns {string} The type url
211773
+ */
211774
+ CmsAccessBeneficiaryCmsRecord.getTypeUrl = function getTypeUrl(prefix) {
211775
+ if (prefix === undefined)
211776
+ prefix = "type.googleapis.com";
211777
+ return prefix + "/CmsAccessBeneficiaryCmsRecord";
211778
+ };
211779
+
211780
+ return CmsAccessBeneficiaryCmsRecord;
211781
+ })();
211782
+
211783
+ $root.CmsAccessCareTeam = (function() {
211784
+
211785
+ /**
211786
+ * Properties of a CmsAccessCareTeam.
211787
+ * @typedef {Object} CmsAccessCareTeam.$Properties
211788
+ * @property {string|null} [pcpName] CmsAccessCareTeam pcpName
211789
+ * @property {string|null} [pcpPhone] CmsAccessCareTeam pcpPhone
211790
+ * @property {string|null} [pcpNpi] CmsAccessCareTeam pcpNpi
211791
+ * @property {string|null} [referringClinicianName] CmsAccessCareTeam referringClinicianName
211792
+ * @property {string|null} [referringClinicianPhone] CmsAccessCareTeam referringClinicianPhone
211793
+ * @property {string|null} [referringClinicianNpi] CmsAccessCareTeam referringClinicianNpi
211794
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
211795
+ */
211796
+
211797
+ /**
211798
+ * Properties of a CmsAccessCareTeam.
211799
+ * @name ICmsAccessCareTeam
211800
+ * @interface ICmsAccessCareTeam
211801
+ * @augments CmsAccessCareTeam.$Properties
211802
+ * @deprecated Use CmsAccessCareTeam.$Properties instead.
211803
+ */
211804
+
211805
+ /**
211806
+ * Shape of a CmsAccessCareTeam.
211807
+ * @typedef {CmsAccessCareTeam.$Properties} CmsAccessCareTeam.$Shape
211808
+ */
211809
+
211810
+ /**
211811
+ * Constructs a new CmsAccessCareTeam.
211812
+ * @name CmsAccessCareTeam
211813
+ * @classdesc Represents a CmsAccessCareTeam.
211814
+ * @constructor
211815
+ * @param {CmsAccessCareTeam.$Properties=} [properties] Properties to set
211816
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
211817
+ */
211818
+ function CmsAccessCareTeam(properties) {
211819
+ if (properties)
211820
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
211821
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
211822
+ this[keys[i]] = properties[keys[i]];
211823
+ }
211824
+
211825
+ /**
211826
+ * CmsAccessCareTeam pcpName.
211827
+ * @member {string} pcpName
211828
+ * @memberof CmsAccessCareTeam
211829
+ * @instance
211830
+ */
211831
+ CmsAccessCareTeam.prototype.pcpName = "";
211832
+
211833
+ /**
211834
+ * CmsAccessCareTeam pcpPhone.
211835
+ * @member {string} pcpPhone
211836
+ * @memberof CmsAccessCareTeam
211837
+ * @instance
211838
+ */
211839
+ CmsAccessCareTeam.prototype.pcpPhone = "";
211840
+
211841
+ /**
211842
+ * CmsAccessCareTeam pcpNpi.
211843
+ * @member {string} pcpNpi
211844
+ * @memberof CmsAccessCareTeam
211845
+ * @instance
211846
+ */
211847
+ CmsAccessCareTeam.prototype.pcpNpi = "";
211848
+
211849
+ /**
211850
+ * CmsAccessCareTeam referringClinicianName.
211851
+ * @member {string} referringClinicianName
211852
+ * @memberof CmsAccessCareTeam
211853
+ * @instance
211854
+ */
211855
+ CmsAccessCareTeam.prototype.referringClinicianName = "";
211856
+
211857
+ /**
211858
+ * CmsAccessCareTeam referringClinicianPhone.
211859
+ * @member {string} referringClinicianPhone
211860
+ * @memberof CmsAccessCareTeam
211861
+ * @instance
211862
+ */
211863
+ CmsAccessCareTeam.prototype.referringClinicianPhone = "";
211864
+
211865
+ /**
211866
+ * CmsAccessCareTeam referringClinicianNpi.
211867
+ * @member {string} referringClinicianNpi
211868
+ * @memberof CmsAccessCareTeam
211869
+ * @instance
211870
+ */
211871
+ CmsAccessCareTeam.prototype.referringClinicianNpi = "";
211872
+
211873
+ /**
211874
+ * Creates a new CmsAccessCareTeam instance using the specified properties.
211875
+ * @function create
211876
+ * @memberof CmsAccessCareTeam
211877
+ * @static
211878
+ * @param {CmsAccessCareTeam.$Properties=} [properties] Properties to set
211879
+ * @returns {CmsAccessCareTeam} CmsAccessCareTeam instance
211880
+ * @type {{
211881
+ * (properties: CmsAccessCareTeam.$Shape): CmsAccessCareTeam & CmsAccessCareTeam.$Shape;
211882
+ * (properties?: CmsAccessCareTeam.$Properties): CmsAccessCareTeam;
211883
+ * }}
211884
+ */
211885
+ CmsAccessCareTeam.create = function create(properties) {
211886
+ return new CmsAccessCareTeam(properties);
211887
+ };
211888
+
211889
+ /**
211890
+ * Encodes the specified CmsAccessCareTeam message. Does not implicitly {@link CmsAccessCareTeam.verify|verify} messages.
211891
+ * @function encode
211892
+ * @memberof CmsAccessCareTeam
211893
+ * @static
211894
+ * @param {CmsAccessCareTeam.$Properties} message CmsAccessCareTeam message or plain object to encode
211895
+ * @param {$protobuf.Writer} [writer] Writer to encode to
211896
+ * @returns {$protobuf.Writer} Writer
211897
+ */
211898
+ CmsAccessCareTeam.encode = function encode(message, writer) {
211899
+ if (!writer)
211900
+ writer = $Writer.create();
211901
+ if (message.pcpName != null && Object.hasOwnProperty.call(message, "pcpName"))
211902
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.pcpName);
211903
+ if (message.pcpPhone != null && Object.hasOwnProperty.call(message, "pcpPhone"))
211904
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.pcpPhone);
211905
+ if (message.pcpNpi != null && Object.hasOwnProperty.call(message, "pcpNpi"))
211906
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.pcpNpi);
211907
+ if (message.referringClinicianName != null && Object.hasOwnProperty.call(message, "referringClinicianName"))
211908
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.referringClinicianName);
211909
+ if (message.referringClinicianPhone != null && Object.hasOwnProperty.call(message, "referringClinicianPhone"))
211910
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.referringClinicianPhone);
211911
+ if (message.referringClinicianNpi != null && Object.hasOwnProperty.call(message, "referringClinicianNpi"))
211912
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.referringClinicianNpi);
211913
+ if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
211914
+ for (var i = 0; i < message.$unknowns.length; ++i)
211915
+ writer.raw(message.$unknowns[i]);
211916
+ return writer;
211917
+ };
211918
+
211919
+ /**
211920
+ * Encodes the specified CmsAccessCareTeam message, length delimited. Does not implicitly {@link CmsAccessCareTeam.verify|verify} messages.
211921
+ * @function encodeDelimited
211922
+ * @memberof CmsAccessCareTeam
211923
+ * @static
211924
+ * @param {CmsAccessCareTeam.$Properties} message CmsAccessCareTeam message or plain object to encode
211925
+ * @param {$protobuf.Writer} [writer] Writer to encode to
211926
+ * @returns {$protobuf.Writer} Writer
211927
+ */
211928
+ CmsAccessCareTeam.encodeDelimited = function encodeDelimited(message, writer) {
211929
+ return this.encode(message, writer).ldelim();
211930
+ };
211931
+
211932
+ /**
211933
+ * Decodes a CmsAccessCareTeam message from the specified reader or buffer.
211934
+ * @function decode
211935
+ * @memberof CmsAccessCareTeam
211936
+ * @static
211937
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
211938
+ * @param {number} [length] Message length if known beforehand
211939
+ * @returns {CmsAccessCareTeam & CmsAccessCareTeam.$Shape} CmsAccessCareTeam
211940
+ * @throws {Error} If the payload is not a reader or valid buffer
211941
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
211942
+ */
211943
+ CmsAccessCareTeam.decode = function decode(reader, length, _end, _depth, _target) {
211944
+ if (!(reader instanceof $Reader))
211945
+ reader = $Reader.create(reader);
211946
+ if (_depth === undefined)
211947
+ _depth = 0;
211948
+ if (_depth > $Reader.recursionLimit)
211949
+ throw Error("max depth exceeded");
211950
+ var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.CmsAccessCareTeam(), value;
211951
+ while (reader.pos < end) {
211952
+ var start = reader.pos;
211953
+ var tag = reader.tag();
211954
+ if (tag === _end) {
211955
+ _end = undefined;
211956
+ break;
211957
+ }
211958
+ var wireType = tag & 7;
211959
+ switch (tag >>>= 3) {
211960
+ case 1: {
211961
+ if (wireType !== 2)
211962
+ break;
211963
+ if ((value = reader.string()).length)
211964
+ message.pcpName = value;
211965
+ else
211966
+ delete message.pcpName;
211967
+ continue;
211968
+ }
211969
+ case 2: {
211970
+ if (wireType !== 2)
211971
+ break;
211972
+ if ((value = reader.string()).length)
211973
+ message.pcpPhone = value;
211974
+ else
211975
+ delete message.pcpPhone;
211976
+ continue;
211977
+ }
211978
+ case 3: {
211979
+ if (wireType !== 2)
211980
+ break;
211981
+ if ((value = reader.string()).length)
211982
+ message.pcpNpi = value;
211983
+ else
211984
+ delete message.pcpNpi;
211985
+ continue;
211986
+ }
211987
+ case 4: {
211988
+ if (wireType !== 2)
211989
+ break;
211990
+ if ((value = reader.string()).length)
211991
+ message.referringClinicianName = value;
211992
+ else
211993
+ delete message.referringClinicianName;
211994
+ continue;
211995
+ }
211996
+ case 5: {
211997
+ if (wireType !== 2)
211998
+ break;
211999
+ if ((value = reader.string()).length)
212000
+ message.referringClinicianPhone = value;
212001
+ else
212002
+ delete message.referringClinicianPhone;
212003
+ continue;
212004
+ }
212005
+ case 6: {
212006
+ if (wireType !== 2)
212007
+ break;
212008
+ if ((value = reader.string()).length)
212009
+ message.referringClinicianNpi = value;
212010
+ else
212011
+ delete message.referringClinicianNpi;
212012
+ continue;
212013
+ }
212014
+ }
212015
+ reader.skipType(wireType, _depth, tag);
212016
+ $util.makeProp(message, "$unknowns", false);
212017
+ (message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
212018
+ }
212019
+ if (_end !== undefined)
212020
+ throw Error("missing end group");
212021
+ return message;
212022
+ };
212023
+
212024
+ /**
212025
+ * Decodes a CmsAccessCareTeam message from the specified reader or buffer, length delimited.
212026
+ * @function decodeDelimited
212027
+ * @memberof CmsAccessCareTeam
212028
+ * @static
212029
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
212030
+ * @returns {CmsAccessCareTeam & CmsAccessCareTeam.$Shape} CmsAccessCareTeam
212031
+ * @throws {Error} If the payload is not a reader or valid buffer
212032
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
212033
+ */
212034
+ CmsAccessCareTeam.decodeDelimited = function decodeDelimited(reader) {
212035
+ if (!(reader instanceof $Reader))
212036
+ reader = new $Reader(reader);
212037
+ return this.decode(reader, reader.uint32());
212038
+ };
212039
+
212040
+ /**
212041
+ * Verifies a CmsAccessCareTeam message.
212042
+ * @function verify
212043
+ * @memberof CmsAccessCareTeam
212044
+ * @static
212045
+ * @param {Object.<string,*>} message Plain object to verify
212046
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
212047
+ */
212048
+ CmsAccessCareTeam.verify = function verify(message, _depth) {
212049
+ if (typeof message !== "object" || message === null)
212050
+ return "object expected";
212051
+ if (_depth === undefined)
212052
+ _depth = 0;
212053
+ if (_depth > $util.recursionLimit)
212054
+ return "max depth exceeded";
212055
+ if (message.pcpName != null && message.hasOwnProperty("pcpName"))
212056
+ if (!$util.isString(message.pcpName))
212057
+ return "pcpName: string expected";
212058
+ if (message.pcpPhone != null && message.hasOwnProperty("pcpPhone"))
212059
+ if (!$util.isString(message.pcpPhone))
212060
+ return "pcpPhone: string expected";
212061
+ if (message.pcpNpi != null && message.hasOwnProperty("pcpNpi"))
212062
+ if (!$util.isString(message.pcpNpi))
212063
+ return "pcpNpi: string expected";
212064
+ if (message.referringClinicianName != null && message.hasOwnProperty("referringClinicianName"))
212065
+ if (!$util.isString(message.referringClinicianName))
212066
+ return "referringClinicianName: string expected";
212067
+ if (message.referringClinicianPhone != null && message.hasOwnProperty("referringClinicianPhone"))
212068
+ if (!$util.isString(message.referringClinicianPhone))
212069
+ return "referringClinicianPhone: string expected";
212070
+ if (message.referringClinicianNpi != null && message.hasOwnProperty("referringClinicianNpi"))
212071
+ if (!$util.isString(message.referringClinicianNpi))
212072
+ return "referringClinicianNpi: string expected";
212073
+ return null;
212074
+ };
212075
+
212076
+ /**
212077
+ * Creates a CmsAccessCareTeam message from a plain object. Also converts values to their respective internal types.
212078
+ * @function fromObject
212079
+ * @memberof CmsAccessCareTeam
212080
+ * @static
212081
+ * @param {Object.<string,*>} object Plain object
212082
+ * @returns {CmsAccessCareTeam} CmsAccessCareTeam
212083
+ */
212084
+ CmsAccessCareTeam.fromObject = function fromObject(object, _depth) {
212085
+ if (object instanceof $root.CmsAccessCareTeam)
212086
+ return object;
212087
+ if (_depth === undefined)
212088
+ _depth = 0;
212089
+ if (_depth > $util.recursionLimit)
212090
+ throw Error("max depth exceeded");
212091
+ var message = new $root.CmsAccessCareTeam();
212092
+ if (object.pcpName != null)
212093
+ if (typeof object.pcpName !== "string" || object.pcpName.length)
212094
+ message.pcpName = String(object.pcpName);
212095
+ if (object.pcpPhone != null)
212096
+ if (typeof object.pcpPhone !== "string" || object.pcpPhone.length)
212097
+ message.pcpPhone = String(object.pcpPhone);
212098
+ if (object.pcpNpi != null)
212099
+ if (typeof object.pcpNpi !== "string" || object.pcpNpi.length)
212100
+ message.pcpNpi = String(object.pcpNpi);
212101
+ if (object.referringClinicianName != null)
212102
+ if (typeof object.referringClinicianName !== "string" || object.referringClinicianName.length)
212103
+ message.referringClinicianName = String(object.referringClinicianName);
212104
+ if (object.referringClinicianPhone != null)
212105
+ if (typeof object.referringClinicianPhone !== "string" || object.referringClinicianPhone.length)
212106
+ message.referringClinicianPhone = String(object.referringClinicianPhone);
212107
+ if (object.referringClinicianNpi != null)
212108
+ if (typeof object.referringClinicianNpi !== "string" || object.referringClinicianNpi.length)
212109
+ message.referringClinicianNpi = String(object.referringClinicianNpi);
212110
+ return message;
212111
+ };
212112
+
212113
+ /**
212114
+ * Creates a plain object from a CmsAccessCareTeam message. Also converts values to other types if specified.
212115
+ * @function toObject
212116
+ * @memberof CmsAccessCareTeam
212117
+ * @static
212118
+ * @param {CmsAccessCareTeam} message CmsAccessCareTeam
212119
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
212120
+ * @returns {Object.<string,*>} Plain object
212121
+ */
212122
+ CmsAccessCareTeam.toObject = function toObject(message, options) {
212123
+ if (!options)
212124
+ options = {};
212125
+ var object = {};
212126
+ if (options.defaults) {
212127
+ object.pcpName = "";
212128
+ object.pcpPhone = "";
212129
+ object.pcpNpi = "";
212130
+ object.referringClinicianName = "";
212131
+ object.referringClinicianPhone = "";
212132
+ object.referringClinicianNpi = "";
212133
+ }
212134
+ if (message.pcpName != null && message.hasOwnProperty("pcpName"))
212135
+ object.pcpName = message.pcpName;
212136
+ if (message.pcpPhone != null && message.hasOwnProperty("pcpPhone"))
212137
+ object.pcpPhone = message.pcpPhone;
212138
+ if (message.pcpNpi != null && message.hasOwnProperty("pcpNpi"))
212139
+ object.pcpNpi = message.pcpNpi;
212140
+ if (message.referringClinicianName != null && message.hasOwnProperty("referringClinicianName"))
212141
+ object.referringClinicianName = message.referringClinicianName;
212142
+ if (message.referringClinicianPhone != null && message.hasOwnProperty("referringClinicianPhone"))
212143
+ object.referringClinicianPhone = message.referringClinicianPhone;
212144
+ if (message.referringClinicianNpi != null && message.hasOwnProperty("referringClinicianNpi"))
212145
+ object.referringClinicianNpi = message.referringClinicianNpi;
212146
+ return object;
212147
+ };
212148
+
212149
+ /**
212150
+ * Converts this CmsAccessCareTeam to JSON.
212151
+ * @function toJSON
212152
+ * @memberof CmsAccessCareTeam
212153
+ * @instance
212154
+ * @returns {Object.<string,*>} JSON object
212155
+ */
212156
+ CmsAccessCareTeam.prototype.toJSON = function toJSON() {
212157
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
212158
+ };
212159
+
212160
+ /**
212161
+ * Gets the type url for CmsAccessCareTeam
212162
+ * @function getTypeUrl
212163
+ * @memberof CmsAccessCareTeam
212164
+ * @static
212165
+ * @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
212166
+ * @returns {string} The type url
212167
+ */
212168
+ CmsAccessCareTeam.getTypeUrl = function getTypeUrl(prefix) {
212169
+ if (prefix === undefined)
212170
+ prefix = "type.googleapis.com";
212171
+ return prefix + "/CmsAccessCareTeam";
212172
+ };
212173
+
212174
+ return CmsAccessCareTeam;
212175
+ })();
212176
+
212177
+ $root.CmsAccessTreatmentGoals = (function() {
212178
+
212179
+ /**
212180
+ * Properties of a CmsAccessTreatmentGoals.
212181
+ * @typedef {Object} CmsAccessTreatmentGoals.$Properties
212182
+ * @property {Array.<string>|null} [goals] CmsAccessTreatmentGoals goals
212183
+ * @property {string|null} [carePlanTemplateId] CmsAccessTreatmentGoals carePlanTemplateId
212184
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
212185
+ */
212186
+
212187
+ /**
212188
+ * Properties of a CmsAccessTreatmentGoals.
212189
+ * @name ICmsAccessTreatmentGoals
212190
+ * @interface ICmsAccessTreatmentGoals
212191
+ * @augments CmsAccessTreatmentGoals.$Properties
212192
+ * @deprecated Use CmsAccessTreatmentGoals.$Properties instead.
212193
+ */
212194
+
212195
+ /**
212196
+ * Shape of a CmsAccessTreatmentGoals.
212197
+ * @typedef {CmsAccessTreatmentGoals.$Properties} CmsAccessTreatmentGoals.$Shape
212198
+ */
212199
+
212200
+ /**
212201
+ * Constructs a new CmsAccessTreatmentGoals.
212202
+ * @name CmsAccessTreatmentGoals
212203
+ * @classdesc Represents a CmsAccessTreatmentGoals.
212204
+ * @constructor
212205
+ * @param {CmsAccessTreatmentGoals.$Properties=} [properties] Properties to set
212206
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
212207
+ */
212208
+ function CmsAccessTreatmentGoals(properties) {
212209
+ this.goals = [];
212210
+ if (properties)
212211
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
212212
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
212213
+ this[keys[i]] = properties[keys[i]];
212214
+ }
212215
+
212216
+ /**
212217
+ * CmsAccessTreatmentGoals goals.
212218
+ * @member {Array.<string>} goals
212219
+ * @memberof CmsAccessTreatmentGoals
212220
+ * @instance
212221
+ */
212222
+ CmsAccessTreatmentGoals.prototype.goals = $util.emptyArray;
212223
+
212224
+ /**
212225
+ * CmsAccessTreatmentGoals carePlanTemplateId.
212226
+ * @member {string} carePlanTemplateId
212227
+ * @memberof CmsAccessTreatmentGoals
212228
+ * @instance
212229
+ */
212230
+ CmsAccessTreatmentGoals.prototype.carePlanTemplateId = "";
212231
+
212232
+ /**
212233
+ * Creates a new CmsAccessTreatmentGoals instance using the specified properties.
212234
+ * @function create
212235
+ * @memberof CmsAccessTreatmentGoals
212236
+ * @static
212237
+ * @param {CmsAccessTreatmentGoals.$Properties=} [properties] Properties to set
212238
+ * @returns {CmsAccessTreatmentGoals} CmsAccessTreatmentGoals instance
212239
+ * @type {{
212240
+ * (properties: CmsAccessTreatmentGoals.$Shape): CmsAccessTreatmentGoals & CmsAccessTreatmentGoals.$Shape;
212241
+ * (properties?: CmsAccessTreatmentGoals.$Properties): CmsAccessTreatmentGoals;
212242
+ * }}
212243
+ */
212244
+ CmsAccessTreatmentGoals.create = function create(properties) {
212245
+ return new CmsAccessTreatmentGoals(properties);
212246
+ };
212247
+
212248
+ /**
212249
+ * Encodes the specified CmsAccessTreatmentGoals message. Does not implicitly {@link CmsAccessTreatmentGoals.verify|verify} messages.
212250
+ * @function encode
212251
+ * @memberof CmsAccessTreatmentGoals
212252
+ * @static
212253
+ * @param {CmsAccessTreatmentGoals.$Properties} message CmsAccessTreatmentGoals message or plain object to encode
212254
+ * @param {$protobuf.Writer} [writer] Writer to encode to
212255
+ * @returns {$protobuf.Writer} Writer
212256
+ */
212257
+ CmsAccessTreatmentGoals.encode = function encode(message, writer) {
212258
+ if (!writer)
212259
+ writer = $Writer.create();
212260
+ if (message.goals != null && message.goals.length)
212261
+ for (var i = 0; i < message.goals.length; ++i)
212262
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.goals[i]);
212263
+ if (message.carePlanTemplateId != null && Object.hasOwnProperty.call(message, "carePlanTemplateId"))
212264
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.carePlanTemplateId);
212265
+ if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
212266
+ for (var i = 0; i < message.$unknowns.length; ++i)
212267
+ writer.raw(message.$unknowns[i]);
212268
+ return writer;
212269
+ };
212270
+
212271
+ /**
212272
+ * Encodes the specified CmsAccessTreatmentGoals message, length delimited. Does not implicitly {@link CmsAccessTreatmentGoals.verify|verify} messages.
212273
+ * @function encodeDelimited
212274
+ * @memberof CmsAccessTreatmentGoals
212275
+ * @static
212276
+ * @param {CmsAccessTreatmentGoals.$Properties} message CmsAccessTreatmentGoals message or plain object to encode
212277
+ * @param {$protobuf.Writer} [writer] Writer to encode to
212278
+ * @returns {$protobuf.Writer} Writer
212279
+ */
212280
+ CmsAccessTreatmentGoals.encodeDelimited = function encodeDelimited(message, writer) {
212281
+ return this.encode(message, writer).ldelim();
212282
+ };
212283
+
212284
+ /**
212285
+ * Decodes a CmsAccessTreatmentGoals message from the specified reader or buffer.
212286
+ * @function decode
212287
+ * @memberof CmsAccessTreatmentGoals
212288
+ * @static
212289
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
212290
+ * @param {number} [length] Message length if known beforehand
212291
+ * @returns {CmsAccessTreatmentGoals & CmsAccessTreatmentGoals.$Shape} CmsAccessTreatmentGoals
212292
+ * @throws {Error} If the payload is not a reader or valid buffer
212293
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
212294
+ */
212295
+ CmsAccessTreatmentGoals.decode = function decode(reader, length, _end, _depth, _target) {
212296
+ if (!(reader instanceof $Reader))
212297
+ reader = $Reader.create(reader);
212298
+ if (_depth === undefined)
212299
+ _depth = 0;
212300
+ if (_depth > $Reader.recursionLimit)
212301
+ throw Error("max depth exceeded");
212302
+ var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.CmsAccessTreatmentGoals(), value;
212303
+ while (reader.pos < end) {
212304
+ var start = reader.pos;
212305
+ var tag = reader.tag();
212306
+ if (tag === _end) {
212307
+ _end = undefined;
212308
+ break;
212309
+ }
212310
+ var wireType = tag & 7;
212311
+ switch (tag >>>= 3) {
212312
+ case 1: {
212313
+ if (wireType !== 2)
212314
+ break;
212315
+ if (!(message.goals && message.goals.length))
212316
+ message.goals = [];
212317
+ message.goals.push(reader.string());
212318
+ continue;
212319
+ }
212320
+ case 2: {
212321
+ if (wireType !== 2)
212322
+ break;
212323
+ if ((value = reader.string()).length)
212324
+ message.carePlanTemplateId = value;
212325
+ else
212326
+ delete message.carePlanTemplateId;
212327
+ continue;
212328
+ }
212329
+ }
212330
+ reader.skipType(wireType, _depth, tag);
212331
+ $util.makeProp(message, "$unknowns", false);
212332
+ (message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
212333
+ }
212334
+ if (_end !== undefined)
212335
+ throw Error("missing end group");
212336
+ return message;
212337
+ };
212338
+
212339
+ /**
212340
+ * Decodes a CmsAccessTreatmentGoals message from the specified reader or buffer, length delimited.
212341
+ * @function decodeDelimited
212342
+ * @memberof CmsAccessTreatmentGoals
212343
+ * @static
212344
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
212345
+ * @returns {CmsAccessTreatmentGoals & CmsAccessTreatmentGoals.$Shape} CmsAccessTreatmentGoals
212346
+ * @throws {Error} If the payload is not a reader or valid buffer
212347
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
212348
+ */
212349
+ CmsAccessTreatmentGoals.decodeDelimited = function decodeDelimited(reader) {
212350
+ if (!(reader instanceof $Reader))
212351
+ reader = new $Reader(reader);
212352
+ return this.decode(reader, reader.uint32());
212353
+ };
212354
+
212355
+ /**
212356
+ * Verifies a CmsAccessTreatmentGoals message.
212357
+ * @function verify
212358
+ * @memberof CmsAccessTreatmentGoals
212359
+ * @static
212360
+ * @param {Object.<string,*>} message Plain object to verify
212361
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
212362
+ */
212363
+ CmsAccessTreatmentGoals.verify = function verify(message, _depth) {
212364
+ if (typeof message !== "object" || message === null)
212365
+ return "object expected";
212366
+ if (_depth === undefined)
212367
+ _depth = 0;
212368
+ if (_depth > $util.recursionLimit)
212369
+ return "max depth exceeded";
212370
+ if (message.goals != null && message.hasOwnProperty("goals")) {
212371
+ if (!Array.isArray(message.goals))
212372
+ return "goals: array expected";
212373
+ for (var i = 0; i < message.goals.length; ++i)
212374
+ if (!$util.isString(message.goals[i]))
212375
+ return "goals: string[] expected";
212376
+ }
212377
+ if (message.carePlanTemplateId != null && message.hasOwnProperty("carePlanTemplateId"))
212378
+ if (!$util.isString(message.carePlanTemplateId))
212379
+ return "carePlanTemplateId: string expected";
212380
+ return null;
212381
+ };
212382
+
212383
+ /**
212384
+ * Creates a CmsAccessTreatmentGoals message from a plain object. Also converts values to their respective internal types.
212385
+ * @function fromObject
212386
+ * @memberof CmsAccessTreatmentGoals
212387
+ * @static
212388
+ * @param {Object.<string,*>} object Plain object
212389
+ * @returns {CmsAccessTreatmentGoals} CmsAccessTreatmentGoals
212390
+ */
212391
+ CmsAccessTreatmentGoals.fromObject = function fromObject(object, _depth) {
212392
+ if (object instanceof $root.CmsAccessTreatmentGoals)
212393
+ return object;
212394
+ if (_depth === undefined)
212395
+ _depth = 0;
212396
+ if (_depth > $util.recursionLimit)
212397
+ throw Error("max depth exceeded");
212398
+ var message = new $root.CmsAccessTreatmentGoals();
212399
+ if (object.goals) {
212400
+ if (!Array.isArray(object.goals))
212401
+ throw TypeError(".CmsAccessTreatmentGoals.goals: array expected");
212402
+ message.goals = Array(object.goals.length);
212403
+ for (var i = 0; i < object.goals.length; ++i)
212404
+ message.goals[i] = String(object.goals[i]);
212405
+ }
212406
+ if (object.carePlanTemplateId != null)
212407
+ if (typeof object.carePlanTemplateId !== "string" || object.carePlanTemplateId.length)
212408
+ message.carePlanTemplateId = String(object.carePlanTemplateId);
212409
+ return message;
212410
+ };
212411
+
212412
+ /**
212413
+ * Creates a plain object from a CmsAccessTreatmentGoals message. Also converts values to other types if specified.
212414
+ * @function toObject
212415
+ * @memberof CmsAccessTreatmentGoals
212416
+ * @static
212417
+ * @param {CmsAccessTreatmentGoals} message CmsAccessTreatmentGoals
212418
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
212419
+ * @returns {Object.<string,*>} Plain object
212420
+ */
212421
+ CmsAccessTreatmentGoals.toObject = function toObject(message, options) {
212422
+ if (!options)
212423
+ options = {};
212424
+ var object = {};
212425
+ if (options.arrays || options.defaults)
212426
+ object.goals = [];
212427
+ if (options.defaults)
212428
+ object.carePlanTemplateId = "";
212429
+ if (message.goals && message.goals.length) {
212430
+ object.goals = Array(message.goals.length);
212431
+ for (var j = 0; j < message.goals.length; ++j)
212432
+ object.goals[j] = message.goals[j];
212433
+ }
212434
+ if (message.carePlanTemplateId != null && message.hasOwnProperty("carePlanTemplateId"))
212435
+ object.carePlanTemplateId = message.carePlanTemplateId;
212436
+ return object;
212437
+ };
212438
+
212439
+ /**
212440
+ * Converts this CmsAccessTreatmentGoals to JSON.
212441
+ * @function toJSON
212442
+ * @memberof CmsAccessTreatmentGoals
212443
+ * @instance
212444
+ * @returns {Object.<string,*>} JSON object
212445
+ */
212446
+ CmsAccessTreatmentGoals.prototype.toJSON = function toJSON() {
212447
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
212448
+ };
212449
+
212450
+ /**
212451
+ * Gets the type url for CmsAccessTreatmentGoals
212452
+ * @function getTypeUrl
212453
+ * @memberof CmsAccessTreatmentGoals
212454
+ * @static
212455
+ * @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
212456
+ * @returns {string} The type url
212457
+ */
212458
+ CmsAccessTreatmentGoals.getTypeUrl = function getTypeUrl(prefix) {
212459
+ if (prefix === undefined)
212460
+ prefix = "type.googleapis.com";
212461
+ return prefix + "/CmsAccessTreatmentGoals";
212462
+ };
212463
+
212464
+ return CmsAccessTreatmentGoals;
212465
+ })();
212466
+
212467
+ $root.CmsAccessBeneficiaryInfoUpdated = (function() {
212468
+
212469
+ /**
212470
+ * Properties of a CmsAccessBeneficiaryInfoUpdated.
212471
+ * @typedef {Object} CmsAccessBeneficiaryInfoUpdated.$Properties
212472
+ * @property {number|Long|null} [timestamp] CmsAccessBeneficiaryInfoUpdated timestamp
212473
+ * @property {string|null} [hsUserId] CmsAccessBeneficiaryInfoUpdated hsUserId
212474
+ * @property {string|null} [trackingId] CmsAccessBeneficiaryInfoUpdated trackingId
212475
+ * @property {CmsAccessBeneficiaryInfoType|null} [infoType] CmsAccessBeneficiaryInfoUpdated infoType
212476
+ * @property {CmsAccessDemographicProfile.$Properties|null} [demographicProfile] CmsAccessBeneficiaryInfoUpdated demographicProfile
212477
+ * @property {CmsAccessBeneficiaryCmsRecord.$Properties|null} [beneficiaryCmsRecord] CmsAccessBeneficiaryInfoUpdated beneficiaryCmsRecord
212478
+ * @property {CmsAccessCareTeam.$Properties|null} [careTeam] CmsAccessBeneficiaryInfoUpdated careTeam
212479
+ * @property {CmsAccessTreatmentGoals.$Properties|null} [treatmentGoals] CmsAccessBeneficiaryInfoUpdated treatmentGoals
212480
+ * @property {"demographicProfile"|"beneficiaryCmsRecord"|"careTeam"|"treatmentGoals"} [payload] CmsAccessBeneficiaryInfoUpdated payload
212481
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
212482
+ */
212483
+
212484
+ /**
212485
+ * Properties of a CmsAccessBeneficiaryInfoUpdated.
212486
+ * @name ICmsAccessBeneficiaryInfoUpdated
212487
+ * @interface ICmsAccessBeneficiaryInfoUpdated
212488
+ * @augments CmsAccessBeneficiaryInfoUpdated.$Properties
212489
+ * @deprecated Use CmsAccessBeneficiaryInfoUpdated.$Properties instead.
212490
+ */
212491
+
212492
+ /**
212493
+ * Narrowed shape of a CmsAccessBeneficiaryInfoUpdated.
212494
+ * @typedef {{
212495
+ * timestamp?: number|Long|null;
212496
+ * hsUserId?: string|null;
212497
+ * trackingId?: string|null;
212498
+ * infoType?: CmsAccessBeneficiaryInfoType|null;
212499
+ * demographicProfile?: CmsAccessDemographicProfile.$Shape|null;
212500
+ * beneficiaryCmsRecord?: CmsAccessBeneficiaryCmsRecord.$Shape|null;
212501
+ * careTeam?: CmsAccessCareTeam.$Shape|null;
212502
+ * treatmentGoals?: CmsAccessTreatmentGoals.$Shape|null;
212503
+ * $unknowns?: Array.<Uint8Array>;
212504
+ * } & (
212505
+ * ({ payload?: undefined; demographicProfile?: null; beneficiaryCmsRecord?: null; careTeam?: null; treatmentGoals?: null }|{ payload?: "demographicProfile"; demographicProfile: CmsAccessDemographicProfile.$Shape; beneficiaryCmsRecord?: null; careTeam?: null; treatmentGoals?: null }|{ payload?: "beneficiaryCmsRecord"; demographicProfile?: null; beneficiaryCmsRecord: CmsAccessBeneficiaryCmsRecord.$Shape; careTeam?: null; treatmentGoals?: null }|{ payload?: "careTeam"; demographicProfile?: null; beneficiaryCmsRecord?: null; careTeam: CmsAccessCareTeam.$Shape; treatmentGoals?: null }|{ payload?: "treatmentGoals"; demographicProfile?: null; beneficiaryCmsRecord?: null; careTeam?: null; treatmentGoals: CmsAccessTreatmentGoals.$Shape })
212506
+ * )} CmsAccessBeneficiaryInfoUpdated.$Shape
212507
+ */
212508
+
212509
+ /**
212510
+ * Constructs a new CmsAccessBeneficiaryInfoUpdated.
212511
+ * @name CmsAccessBeneficiaryInfoUpdated
212512
+ * @classdesc Published when a category of beneficiary profile data is captured during enrollment.
212513
+ * Carries exactly one populated payload branch, indicated by info_type. This is the
212514
+ * first PHI-carrying CMS ACCESS event — every sensitive field is classified via
212515
+ * field_tags (ADR-006, hs-cms-access-service
212516
+ * docs/decisions/0006-beneficiary-info-updated-event.md).
212517
+ * Fired by: hs-cms-access-service
212518
+ * Responsible team: Health Plans
212519
+ * @constructor
212520
+ * @param {CmsAccessBeneficiaryInfoUpdated.$Properties=} [properties] Properties to set
212521
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
212522
+ */
212523
+ function CmsAccessBeneficiaryInfoUpdated(properties) {
212524
+ if (properties)
212525
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
212526
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
212527
+ this[keys[i]] = properties[keys[i]];
212528
+ }
212529
+
212530
+ /**
212531
+ * CmsAccessBeneficiaryInfoUpdated timestamp.
212532
+ * @member {number|Long} timestamp
212533
+ * @memberof CmsAccessBeneficiaryInfoUpdated
212534
+ * @instance
212535
+ */
212536
+ CmsAccessBeneficiaryInfoUpdated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
212537
+
212538
+ /**
212539
+ * CmsAccessBeneficiaryInfoUpdated hsUserId.
212540
+ * @member {string} hsUserId
212541
+ * @memberof CmsAccessBeneficiaryInfoUpdated
212542
+ * @instance
212543
+ */
212544
+ CmsAccessBeneficiaryInfoUpdated.prototype.hsUserId = "";
212545
+
212546
+ /**
212547
+ * CmsAccessBeneficiaryInfoUpdated trackingId.
212548
+ * @member {string} trackingId
212549
+ * @memberof CmsAccessBeneficiaryInfoUpdated
212550
+ * @instance
212551
+ */
212552
+ CmsAccessBeneficiaryInfoUpdated.prototype.trackingId = "";
212553
+
212554
+ /**
212555
+ * CmsAccessBeneficiaryInfoUpdated infoType.
212556
+ * @member {CmsAccessBeneficiaryInfoType} infoType
212557
+ * @memberof CmsAccessBeneficiaryInfoUpdated
212558
+ * @instance
212559
+ */
212560
+ CmsAccessBeneficiaryInfoUpdated.prototype.infoType = 0;
212561
+
212562
+ /**
212563
+ * CmsAccessBeneficiaryInfoUpdated demographicProfile.
212564
+ * @member {CmsAccessDemographicProfile.$Properties|null|undefined} demographicProfile
212565
+ * @memberof CmsAccessBeneficiaryInfoUpdated
212566
+ * @instance
212567
+ */
212568
+ CmsAccessBeneficiaryInfoUpdated.prototype.demographicProfile = null;
212569
+
212570
+ /**
212571
+ * CmsAccessBeneficiaryInfoUpdated beneficiaryCmsRecord.
212572
+ * @member {CmsAccessBeneficiaryCmsRecord.$Properties|null|undefined} beneficiaryCmsRecord
212573
+ * @memberof CmsAccessBeneficiaryInfoUpdated
212574
+ * @instance
212575
+ */
212576
+ CmsAccessBeneficiaryInfoUpdated.prototype.beneficiaryCmsRecord = null;
212577
+
212578
+ /**
212579
+ * CmsAccessBeneficiaryInfoUpdated careTeam.
212580
+ * @member {CmsAccessCareTeam.$Properties|null|undefined} careTeam
212581
+ * @memberof CmsAccessBeneficiaryInfoUpdated
212582
+ * @instance
212583
+ */
212584
+ CmsAccessBeneficiaryInfoUpdated.prototype.careTeam = null;
212585
+
212586
+ /**
212587
+ * CmsAccessBeneficiaryInfoUpdated treatmentGoals.
212588
+ * @member {CmsAccessTreatmentGoals.$Properties|null|undefined} treatmentGoals
212589
+ * @memberof CmsAccessBeneficiaryInfoUpdated
212590
+ * @instance
212591
+ */
212592
+ CmsAccessBeneficiaryInfoUpdated.prototype.treatmentGoals = null;
212593
+
212594
+ // OneOf field names bound to virtual getters and setters
212595
+ var $oneOfFields;
212596
+
212597
+ /**
212598
+ * CmsAccessBeneficiaryInfoUpdated payload.
212599
+ * @member {"demographicProfile"|"beneficiaryCmsRecord"|"careTeam"|"treatmentGoals"|undefined} payload
212600
+ * @memberof CmsAccessBeneficiaryInfoUpdated
212601
+ * @instance
212602
+ */
212603
+ Object.defineProperty(CmsAccessBeneficiaryInfoUpdated.prototype, "payload", {
212604
+ get: $util.oneOfGetter($oneOfFields = ["demographicProfile", "beneficiaryCmsRecord", "careTeam", "treatmentGoals"]),
212605
+ set: $util.oneOfSetter($oneOfFields)
212606
+ });
212607
+
212608
+ /**
212609
+ * Creates a new CmsAccessBeneficiaryInfoUpdated instance using the specified properties.
212610
+ * @function create
212611
+ * @memberof CmsAccessBeneficiaryInfoUpdated
212612
+ * @static
212613
+ * @param {CmsAccessBeneficiaryInfoUpdated.$Properties=} [properties] Properties to set
212614
+ * @returns {CmsAccessBeneficiaryInfoUpdated} CmsAccessBeneficiaryInfoUpdated instance
212615
+ * @type {{
212616
+ * (properties: CmsAccessBeneficiaryInfoUpdated.$Shape): CmsAccessBeneficiaryInfoUpdated & CmsAccessBeneficiaryInfoUpdated.$Shape;
212617
+ * (properties?: CmsAccessBeneficiaryInfoUpdated.$Properties): CmsAccessBeneficiaryInfoUpdated;
212618
+ * }}
212619
+ */
212620
+ CmsAccessBeneficiaryInfoUpdated.create = function create(properties) {
212621
+ return new CmsAccessBeneficiaryInfoUpdated(properties);
212622
+ };
212623
+
212624
+ /**
212625
+ * Encodes the specified CmsAccessBeneficiaryInfoUpdated message. Does not implicitly {@link CmsAccessBeneficiaryInfoUpdated.verify|verify} messages.
212626
+ * @function encode
212627
+ * @memberof CmsAccessBeneficiaryInfoUpdated
212628
+ * @static
212629
+ * @param {CmsAccessBeneficiaryInfoUpdated.$Properties} message CmsAccessBeneficiaryInfoUpdated message or plain object to encode
212630
+ * @param {$protobuf.Writer} [writer] Writer to encode to
212631
+ * @returns {$protobuf.Writer} Writer
212632
+ */
212633
+ CmsAccessBeneficiaryInfoUpdated.encode = function encode(message, writer) {
212634
+ if (!writer)
212635
+ writer = $Writer.create();
212636
+ if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
212637
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
212638
+ if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
212639
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.hsUserId);
212640
+ if (message.trackingId != null && Object.hasOwnProperty.call(message, "trackingId"))
212641
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.trackingId);
212642
+ if (message.infoType != null && Object.hasOwnProperty.call(message, "infoType"))
212643
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.infoType);
212644
+ if (message.demographicProfile != null && Object.hasOwnProperty.call(message, "demographicProfile"))
212645
+ $root.CmsAccessDemographicProfile.encode(message.demographicProfile, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
212646
+ if (message.beneficiaryCmsRecord != null && Object.hasOwnProperty.call(message, "beneficiaryCmsRecord"))
212647
+ $root.CmsAccessBeneficiaryCmsRecord.encode(message.beneficiaryCmsRecord, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
212648
+ if (message.careTeam != null && Object.hasOwnProperty.call(message, "careTeam"))
212649
+ $root.CmsAccessCareTeam.encode(message.careTeam, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
212650
+ if (message.treatmentGoals != null && Object.hasOwnProperty.call(message, "treatmentGoals"))
212651
+ $root.CmsAccessTreatmentGoals.encode(message.treatmentGoals, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
212652
+ if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
212653
+ for (var i = 0; i < message.$unknowns.length; ++i)
212654
+ writer.raw(message.$unknowns[i]);
212655
+ return writer;
212656
+ };
212657
+
212658
+ /**
212659
+ * Encodes the specified CmsAccessBeneficiaryInfoUpdated message, length delimited. Does not implicitly {@link CmsAccessBeneficiaryInfoUpdated.verify|verify} messages.
212660
+ * @function encodeDelimited
212661
+ * @memberof CmsAccessBeneficiaryInfoUpdated
212662
+ * @static
212663
+ * @param {CmsAccessBeneficiaryInfoUpdated.$Properties} message CmsAccessBeneficiaryInfoUpdated message or plain object to encode
212664
+ * @param {$protobuf.Writer} [writer] Writer to encode to
212665
+ * @returns {$protobuf.Writer} Writer
212666
+ */
212667
+ CmsAccessBeneficiaryInfoUpdated.encodeDelimited = function encodeDelimited(message, writer) {
212668
+ return this.encode(message, writer).ldelim();
212669
+ };
212670
+
212671
+ /**
212672
+ * Decodes a CmsAccessBeneficiaryInfoUpdated message from the specified reader or buffer.
212673
+ * @function decode
212674
+ * @memberof CmsAccessBeneficiaryInfoUpdated
212675
+ * @static
212676
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
212677
+ * @param {number} [length] Message length if known beforehand
212678
+ * @returns {CmsAccessBeneficiaryInfoUpdated & CmsAccessBeneficiaryInfoUpdated.$Shape} CmsAccessBeneficiaryInfoUpdated
212679
+ * @throws {Error} If the payload is not a reader or valid buffer
212680
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
212681
+ */
212682
+ CmsAccessBeneficiaryInfoUpdated.decode = function decode(reader, length, _end, _depth, _target) {
212683
+ if (!(reader instanceof $Reader))
212684
+ reader = $Reader.create(reader);
212685
+ if (_depth === undefined)
212686
+ _depth = 0;
212687
+ if (_depth > $Reader.recursionLimit)
212688
+ throw Error("max depth exceeded");
212689
+ var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.CmsAccessBeneficiaryInfoUpdated(), value;
212690
+ while (reader.pos < end) {
212691
+ var start = reader.pos;
212692
+ var tag = reader.tag();
212693
+ if (tag === _end) {
212694
+ _end = undefined;
212695
+ break;
212696
+ }
212697
+ var wireType = tag & 7;
212698
+ switch (tag >>>= 3) {
212699
+ case 1: {
212700
+ if (wireType !== 0)
212701
+ break;
212702
+ if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
212703
+ message.timestamp = value;
212704
+ else
212705
+ delete message.timestamp;
212706
+ continue;
212707
+ }
212708
+ case 2: {
212709
+ if (wireType !== 2)
212710
+ break;
212711
+ if ((value = reader.string()).length)
212712
+ message.hsUserId = value;
212713
+ else
212714
+ delete message.hsUserId;
212715
+ continue;
212716
+ }
212717
+ case 3: {
212718
+ if (wireType !== 2)
212719
+ break;
212720
+ if ((value = reader.string()).length)
212721
+ message.trackingId = value;
212722
+ else
212723
+ delete message.trackingId;
212724
+ continue;
212725
+ }
212726
+ case 4: {
212727
+ if (wireType !== 0)
212728
+ break;
212729
+ if (value = reader.int32())
212730
+ message.infoType = value;
212731
+ else
212732
+ delete message.infoType;
212733
+ continue;
212734
+ }
212735
+ case 5: {
212736
+ if (wireType !== 2)
212737
+ break;
212738
+ message.demographicProfile = $root.CmsAccessDemographicProfile.decode(reader, reader.uint32(), undefined, _depth + 1, message.demographicProfile);
212739
+ message.payload = "demographicProfile";
212740
+ continue;
212741
+ }
212742
+ case 6: {
212743
+ if (wireType !== 2)
212744
+ break;
212745
+ message.beneficiaryCmsRecord = $root.CmsAccessBeneficiaryCmsRecord.decode(reader, reader.uint32(), undefined, _depth + 1, message.beneficiaryCmsRecord);
212746
+ message.payload = "beneficiaryCmsRecord";
212747
+ continue;
212748
+ }
212749
+ case 7: {
212750
+ if (wireType !== 2)
212751
+ break;
212752
+ message.careTeam = $root.CmsAccessCareTeam.decode(reader, reader.uint32(), undefined, _depth + 1, message.careTeam);
212753
+ message.payload = "careTeam";
212754
+ continue;
212755
+ }
212756
+ case 8: {
212757
+ if (wireType !== 2)
212758
+ break;
212759
+ message.treatmentGoals = $root.CmsAccessTreatmentGoals.decode(reader, reader.uint32(), undefined, _depth + 1, message.treatmentGoals);
212760
+ message.payload = "treatmentGoals";
212761
+ continue;
212762
+ }
212763
+ }
212764
+ reader.skipType(wireType, _depth, tag);
212765
+ $util.makeProp(message, "$unknowns", false);
212766
+ (message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
212767
+ }
212768
+ if (_end !== undefined)
212769
+ throw Error("missing end group");
212770
+ return message;
212771
+ };
212772
+
212773
+ /**
212774
+ * Decodes a CmsAccessBeneficiaryInfoUpdated message from the specified reader or buffer, length delimited.
212775
+ * @function decodeDelimited
212776
+ * @memberof CmsAccessBeneficiaryInfoUpdated
212777
+ * @static
212778
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
212779
+ * @returns {CmsAccessBeneficiaryInfoUpdated & CmsAccessBeneficiaryInfoUpdated.$Shape} CmsAccessBeneficiaryInfoUpdated
212780
+ * @throws {Error} If the payload is not a reader or valid buffer
212781
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
212782
+ */
212783
+ CmsAccessBeneficiaryInfoUpdated.decodeDelimited = function decodeDelimited(reader) {
212784
+ if (!(reader instanceof $Reader))
212785
+ reader = new $Reader(reader);
212786
+ return this.decode(reader, reader.uint32());
212787
+ };
212788
+
212789
+ /**
212790
+ * Verifies a CmsAccessBeneficiaryInfoUpdated message.
212791
+ * @function verify
212792
+ * @memberof CmsAccessBeneficiaryInfoUpdated
212793
+ * @static
212794
+ * @param {Object.<string,*>} message Plain object to verify
212795
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
212796
+ */
212797
+ CmsAccessBeneficiaryInfoUpdated.verify = function verify(message, _depth) {
212798
+ if (typeof message !== "object" || message === null)
212799
+ return "object expected";
212800
+ if (_depth === undefined)
212801
+ _depth = 0;
212802
+ if (_depth > $util.recursionLimit)
212803
+ return "max depth exceeded";
212804
+ var properties = {};
212805
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
212806
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
212807
+ return "timestamp: integer|Long expected";
212808
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
212809
+ if (!$util.isString(message.hsUserId))
212810
+ return "hsUserId: string expected";
212811
+ if (message.trackingId != null && message.hasOwnProperty("trackingId"))
212812
+ if (!$util.isString(message.trackingId))
212813
+ return "trackingId: string expected";
212814
+ if (message.infoType != null && message.hasOwnProperty("infoType"))
212815
+ switch (message.infoType) {
212816
+ default:
212817
+ return "infoType: enum value expected";
212818
+ case 0:
212819
+ case 1:
212820
+ case 2:
212821
+ case 3:
212822
+ case 4:
212823
+ break;
212824
+ }
212825
+ if (message.demographicProfile != null && message.hasOwnProperty("demographicProfile")) {
212826
+ properties.payload = 1;
212827
+ {
212828
+ var error = $root.CmsAccessDemographicProfile.verify(message.demographicProfile, _depth + 1);
212829
+ if (error)
212830
+ return "demographicProfile." + error;
212831
+ }
212832
+ }
212833
+ if (message.beneficiaryCmsRecord != null && message.hasOwnProperty("beneficiaryCmsRecord")) {
212834
+ if (properties.payload === 1)
212835
+ return "payload: multiple values";
212836
+ properties.payload = 1;
212837
+ {
212838
+ var error = $root.CmsAccessBeneficiaryCmsRecord.verify(message.beneficiaryCmsRecord, _depth + 1);
212839
+ if (error)
212840
+ return "beneficiaryCmsRecord." + error;
212841
+ }
212842
+ }
212843
+ if (message.careTeam != null && message.hasOwnProperty("careTeam")) {
212844
+ if (properties.payload === 1)
212845
+ return "payload: multiple values";
212846
+ properties.payload = 1;
212847
+ {
212848
+ var error = $root.CmsAccessCareTeam.verify(message.careTeam, _depth + 1);
212849
+ if (error)
212850
+ return "careTeam." + error;
212851
+ }
212852
+ }
212853
+ if (message.treatmentGoals != null && message.hasOwnProperty("treatmentGoals")) {
212854
+ if (properties.payload === 1)
212855
+ return "payload: multiple values";
212856
+ properties.payload = 1;
212857
+ {
212858
+ var error = $root.CmsAccessTreatmentGoals.verify(message.treatmentGoals, _depth + 1);
212859
+ if (error)
212860
+ return "treatmentGoals." + error;
212861
+ }
212862
+ }
212863
+ return null;
212864
+ };
212865
+
212866
+ /**
212867
+ * Creates a CmsAccessBeneficiaryInfoUpdated message from a plain object. Also converts values to their respective internal types.
212868
+ * @function fromObject
212869
+ * @memberof CmsAccessBeneficiaryInfoUpdated
212870
+ * @static
212871
+ * @param {Object.<string,*>} object Plain object
212872
+ * @returns {CmsAccessBeneficiaryInfoUpdated} CmsAccessBeneficiaryInfoUpdated
212873
+ */
212874
+ CmsAccessBeneficiaryInfoUpdated.fromObject = function fromObject(object, _depth) {
212875
+ if (object instanceof $root.CmsAccessBeneficiaryInfoUpdated)
212876
+ return object;
212877
+ if (_depth === undefined)
212878
+ _depth = 0;
212879
+ if (_depth > $util.recursionLimit)
212880
+ throw Error("max depth exceeded");
212881
+ var message = new $root.CmsAccessBeneficiaryInfoUpdated();
212882
+ if (object.timestamp != null)
212883
+ if (typeof object.timestamp === "object" ? object.timestamp.low || object.timestamp.high : Number(object.timestamp) !== 0)
212884
+ if ($util.Long)
212885
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
212886
+ else if (typeof object.timestamp === "string")
212887
+ message.timestamp = parseInt(object.timestamp, 10);
212888
+ else if (typeof object.timestamp === "number")
212889
+ message.timestamp = object.timestamp;
212890
+ else if (typeof object.timestamp === "object")
212891
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
212892
+ if (object.hsUserId != null)
212893
+ if (typeof object.hsUserId !== "string" || object.hsUserId.length)
212894
+ message.hsUserId = String(object.hsUserId);
212895
+ if (object.trackingId != null)
212896
+ if (typeof object.trackingId !== "string" || object.trackingId.length)
212897
+ message.trackingId = String(object.trackingId);
212898
+ if (object.infoType !== 0 && (typeof object.infoType !== "string" || $root.CmsAccessBeneficiaryInfoType[object.infoType] !== 0))
212899
+ switch (object.infoType) {
212900
+ default:
212901
+ if (typeof object.infoType === "number") {
212902
+ message.infoType = object.infoType;
212903
+ break;
212904
+ }
212905
+ break;
212906
+ case "CMS_ACCESS_BENEFICIARY_INFO_TYPE_UNKNOWN":
212907
+ case 0:
212908
+ message.infoType = 0;
212909
+ break;
212910
+ case "CMS_ACCESS_BENEFICIARY_INFO_TYPE_DEMOGRAPHIC_PROFILE":
212911
+ case 1:
212912
+ message.infoType = 1;
212913
+ break;
212914
+ case "CMS_ACCESS_BENEFICIARY_INFO_TYPE_BENEFICIARY_CMS_RECORD":
212915
+ case 2:
212916
+ message.infoType = 2;
212917
+ break;
212918
+ case "CMS_ACCESS_BENEFICIARY_INFO_TYPE_CARE_TEAM":
212919
+ case 3:
212920
+ message.infoType = 3;
212921
+ break;
212922
+ case "CMS_ACCESS_BENEFICIARY_INFO_TYPE_TREATMENT_GOALS":
212923
+ case 4:
212924
+ message.infoType = 4;
212925
+ break;
212926
+ }
212927
+ if (object.demographicProfile != null) {
212928
+ if (typeof object.demographicProfile !== "object")
212929
+ throw TypeError(".CmsAccessBeneficiaryInfoUpdated.demographicProfile: object expected");
212930
+ message.demographicProfile = $root.CmsAccessDemographicProfile.fromObject(object.demographicProfile, _depth + 1);
212931
+ }
212932
+ if (object.beneficiaryCmsRecord != null) {
212933
+ if (typeof object.beneficiaryCmsRecord !== "object")
212934
+ throw TypeError(".CmsAccessBeneficiaryInfoUpdated.beneficiaryCmsRecord: object expected");
212935
+ message.beneficiaryCmsRecord = $root.CmsAccessBeneficiaryCmsRecord.fromObject(object.beneficiaryCmsRecord, _depth + 1);
212936
+ }
212937
+ if (object.careTeam != null) {
212938
+ if (typeof object.careTeam !== "object")
212939
+ throw TypeError(".CmsAccessBeneficiaryInfoUpdated.careTeam: object expected");
212940
+ message.careTeam = $root.CmsAccessCareTeam.fromObject(object.careTeam, _depth + 1);
212941
+ }
212942
+ if (object.treatmentGoals != null) {
212943
+ if (typeof object.treatmentGoals !== "object")
212944
+ throw TypeError(".CmsAccessBeneficiaryInfoUpdated.treatmentGoals: object expected");
212945
+ message.treatmentGoals = $root.CmsAccessTreatmentGoals.fromObject(object.treatmentGoals, _depth + 1);
212946
+ }
212947
+ return message;
212948
+ };
212949
+
212950
+ /**
212951
+ * Creates a plain object from a CmsAccessBeneficiaryInfoUpdated message. Also converts values to other types if specified.
212952
+ * @function toObject
212953
+ * @memberof CmsAccessBeneficiaryInfoUpdated
212954
+ * @static
212955
+ * @param {CmsAccessBeneficiaryInfoUpdated} message CmsAccessBeneficiaryInfoUpdated
212956
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
212957
+ * @returns {Object.<string,*>} Plain object
212958
+ */
212959
+ CmsAccessBeneficiaryInfoUpdated.toObject = function toObject(message, options) {
212960
+ if (!options)
212961
+ options = {};
212962
+ var object = {};
212963
+ if (options.defaults) {
212964
+ if ($util.Long) {
212965
+ var long = new $util.Long(0, 0, true);
212966
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
212967
+ } else
212968
+ object.timestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
212969
+ object.hsUserId = "";
212970
+ object.trackingId = "";
212971
+ object.infoType = options.enums === String ? "CMS_ACCESS_BENEFICIARY_INFO_TYPE_UNKNOWN" : 0;
212972
+ }
212973
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
212974
+ if (typeof BigInt !== "undefined" && options.longs === BigInt)
212975
+ object.timestamp = typeof message.timestamp === "number" ? BigInt(message.timestamp) : $util.Long.fromBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0, true).toBigInt();
212976
+ else if (typeof message.timestamp === "number")
212977
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
212978
+ else
212979
+ 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;
212980
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
212981
+ object.hsUserId = message.hsUserId;
212982
+ if (message.trackingId != null && message.hasOwnProperty("trackingId"))
212983
+ object.trackingId = message.trackingId;
212984
+ if (message.infoType != null && message.hasOwnProperty("infoType"))
212985
+ object.infoType = options.enums === String ? $root.CmsAccessBeneficiaryInfoType[message.infoType] === undefined ? message.infoType : $root.CmsAccessBeneficiaryInfoType[message.infoType] : message.infoType;
212986
+ if (message.demographicProfile != null && message.hasOwnProperty("demographicProfile")) {
212987
+ object.demographicProfile = $root.CmsAccessDemographicProfile.toObject(message.demographicProfile, options);
212988
+ if (options.oneofs)
212989
+ object.payload = "demographicProfile";
212990
+ }
212991
+ if (message.beneficiaryCmsRecord != null && message.hasOwnProperty("beneficiaryCmsRecord")) {
212992
+ object.beneficiaryCmsRecord = $root.CmsAccessBeneficiaryCmsRecord.toObject(message.beneficiaryCmsRecord, options);
212993
+ if (options.oneofs)
212994
+ object.payload = "beneficiaryCmsRecord";
212995
+ }
212996
+ if (message.careTeam != null && message.hasOwnProperty("careTeam")) {
212997
+ object.careTeam = $root.CmsAccessCareTeam.toObject(message.careTeam, options);
212998
+ if (options.oneofs)
212999
+ object.payload = "careTeam";
213000
+ }
213001
+ if (message.treatmentGoals != null && message.hasOwnProperty("treatmentGoals")) {
213002
+ object.treatmentGoals = $root.CmsAccessTreatmentGoals.toObject(message.treatmentGoals, options);
213003
+ if (options.oneofs)
213004
+ object.payload = "treatmentGoals";
213005
+ }
213006
+ return object;
213007
+ };
213008
+
213009
+ /**
213010
+ * Converts this CmsAccessBeneficiaryInfoUpdated to JSON.
213011
+ * @function toJSON
213012
+ * @memberof CmsAccessBeneficiaryInfoUpdated
213013
+ * @instance
213014
+ * @returns {Object.<string,*>} JSON object
213015
+ */
213016
+ CmsAccessBeneficiaryInfoUpdated.prototype.toJSON = function toJSON() {
213017
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
213018
+ };
213019
+
213020
+ /**
213021
+ * Gets the type url for CmsAccessBeneficiaryInfoUpdated
213022
+ * @function getTypeUrl
213023
+ * @memberof CmsAccessBeneficiaryInfoUpdated
213024
+ * @static
213025
+ * @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
213026
+ * @returns {string} The type url
213027
+ */
213028
+ CmsAccessBeneficiaryInfoUpdated.getTypeUrl = function getTypeUrl(prefix) {
213029
+ if (prefix === undefined)
213030
+ prefix = "type.googleapis.com";
213031
+ return prefix + "/CmsAccessBeneficiaryInfoUpdated";
213032
+ };
213033
+
213034
+ return CmsAccessBeneficiaryInfoUpdated;
213035
+ })();
213036
+
210899
213037
  $root.TaggedCustomField = (function() {
210900
213038
 
210901
213039
  /**
@@ -281437,6 +283575,7 @@ $root.productcatalog = (function() {
281437
283575
  case 5:
281438
283576
  case 6:
281439
283577
  case 7:
283578
+ case 9:
281440
283579
  break;
281441
283580
  }
281442
283581
  if (message.billingCategory != null && message.hasOwnProperty("billingCategory"))
@@ -281567,6 +283706,10 @@ $root.productcatalog = (function() {
281567
283706
  case 7:
281568
283707
  message.platform = 7;
281569
283708
  break;
283709
+ case "PRODUCT_SKU_PLATFORM_CMS_ACCESS":
283710
+ case 9:
283711
+ message.platform = 9;
283712
+ break;
281570
283713
  }
281571
283714
  if (object.billingCategory !== 0 && (typeof object.billingCategory !== "string" || $root.productcatalog.ProductSkuBillingCategory[object.billingCategory] !== 0))
281572
283715
  switch (object.billingCategory) {
@@ -283621,6 +285764,7 @@ $root.productcatalog = (function() {
283621
285764
  * @property {number} PLATFORM_ZUORA=5 PLATFORM_ZUORA value
283622
285765
  * @property {number} PLATFORM_B2B_ORG=6 PLATFORM_B2B_ORG value
283623
285766
  * @property {number} PRODUCT_SKU_PLATFORM_SIKA=7 PRODUCT_SKU_PLATFORM_SIKA value
285767
+ * @property {number} PRODUCT_SKU_PLATFORM_CMS_ACCESS=9 PRODUCT_SKU_PLATFORM_CMS_ACCESS value
283624
285768
  */
283625
285769
  productcatalog.ProductSkuPlatform = (function() {
283626
285770
  var valuesById = {}, values = Object.create(valuesById);
@@ -283632,6 +285776,7 @@ $root.productcatalog = (function() {
283632
285776
  values[valuesById[5] = "PLATFORM_ZUORA"] = 5;
283633
285777
  values[valuesById[6] = "PLATFORM_B2B_ORG"] = 6;
283634
285778
  values[valuesById[7] = "PRODUCT_SKU_PLATFORM_SIKA"] = 7;
285779
+ values[valuesById[9] = "PRODUCT_SKU_PLATFORM_CMS_ACCESS"] = 9;
283635
285780
  return values;
283636
285781
  })();
283637
285782
 
@@ -289729,6 +291874,7 @@ $root.SubscriptionCreated = (function() {
289729
291874
  case 7:
289730
291875
  case 8:
289731
291876
  case 9:
291877
+ case 10:
289732
291878
  break;
289733
291879
  }
289734
291880
  if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
@@ -289915,6 +292061,10 @@ $root.SubscriptionCreated = (function() {
289915
292061
  case 9:
289916
292062
  message.platform = 9;
289917
292063
  break;
292064
+ case "SUBSCRIPTION_PLATFORM_CMS_ACCESS":
292065
+ case 10:
292066
+ message.platform = 10;
292067
+ break;
289918
292068
  }
289919
292069
  if (object.autoRenewalStatus !== 0 && (typeof object.autoRenewalStatus !== "string" || $root.subscription.AutoRenewalStatus[object.autoRenewalStatus] !== 0))
289920
292070
  switch (object.autoRenewalStatus) {
@@ -290785,6 +292935,7 @@ $root.SubscriptionCancelled = (function() {
290785
292935
  case 7:
290786
292936
  case 8:
290787
292937
  case 9:
292938
+ case 10:
290788
292939
  break;
290789
292940
  }
290790
292941
  if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
@@ -290988,6 +293139,10 @@ $root.SubscriptionCancelled = (function() {
290988
293139
  case 9:
290989
293140
  message.platform = 9;
290990
293141
  break;
293142
+ case "SUBSCRIPTION_PLATFORM_CMS_ACCESS":
293143
+ case 10:
293144
+ message.platform = 10;
293145
+ break;
290991
293146
  }
290992
293147
  if (object.autoRenewalStatus !== 0 && (typeof object.autoRenewalStatus !== "string" || $root.subscription.AutoRenewalStatus[object.autoRenewalStatus] !== 0))
290993
293148
  switch (object.autoRenewalStatus) {
@@ -292167,6 +294322,7 @@ $root.SubscriptionRenewed = (function() {
292167
294322
  case 7:
292168
294323
  case 8:
292169
294324
  case 9:
294325
+ case 10:
292170
294326
  break;
292171
294327
  }
292172
294328
  if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
@@ -292353,6 +294509,10 @@ $root.SubscriptionRenewed = (function() {
292353
294509
  case 9:
292354
294510
  message.platform = 9;
292355
294511
  break;
294512
+ case "SUBSCRIPTION_PLATFORM_CMS_ACCESS":
294513
+ case 10:
294514
+ message.platform = 10;
294515
+ break;
292356
294516
  }
292357
294517
  if (object.autoRenewalStatus !== 0 && (typeof object.autoRenewalStatus !== "string" || $root.subscription.AutoRenewalStatus[object.autoRenewalStatus] !== 0))
292358
294518
  switch (object.autoRenewalStatus) {
@@ -293088,6 +295248,7 @@ $root.SubscriptionUpcomingRenewal = (function() {
293088
295248
  case 7:
293089
295249
  case 8:
293090
295250
  case 9:
295251
+ case 10:
293091
295252
  break;
293092
295253
  }
293093
295254
  if (message.externalId != null && message.hasOwnProperty("externalId"))
@@ -293235,6 +295396,10 @@ $root.SubscriptionUpcomingRenewal = (function() {
293235
295396
  case 9:
293236
295397
  message.platform = 9;
293237
295398
  break;
295399
+ case "SUBSCRIPTION_PLATFORM_CMS_ACCESS":
295400
+ case 10:
295401
+ message.platform = 10;
295402
+ break;
293238
295403
  }
293239
295404
  if (object.externalId != null)
293240
295405
  if (typeof object.externalId !== "string" || object.externalId.length)
@@ -294723,6 +296888,7 @@ $root.SubscriptionGraced = (function() {
294723
296888
  case 7:
294724
296889
  case 8:
294725
296890
  case 9:
296891
+ case 10:
294726
296892
  break;
294727
296893
  }
294728
296894
  if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
@@ -294909,6 +297075,10 @@ $root.SubscriptionGraced = (function() {
294909
297075
  case 9:
294910
297076
  message.platform = 9;
294911
297077
  break;
297078
+ case "SUBSCRIPTION_PLATFORM_CMS_ACCESS":
297079
+ case 10:
297080
+ message.platform = 10;
297081
+ break;
294912
297082
  }
294913
297083
  if (object.autoRenewalStatus !== 0 && (typeof object.autoRenewalStatus !== "string" || $root.subscription.AutoRenewalStatus[object.autoRenewalStatus] !== 0))
294914
297084
  switch (object.autoRenewalStatus) {
@@ -295728,6 +297898,7 @@ $root.SubscriptionStarted = (function() {
295728
297898
  case 7:
295729
297899
  case 8:
295730
297900
  case 9:
297901
+ case 10:
295731
297902
  break;
295732
297903
  }
295733
297904
  if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
@@ -295914,6 +298085,10 @@ $root.SubscriptionStarted = (function() {
295914
298085
  case 9:
295915
298086
  message.platform = 9;
295916
298087
  break;
298088
+ case "SUBSCRIPTION_PLATFORM_CMS_ACCESS":
298089
+ case 10:
298090
+ message.platform = 10;
298091
+ break;
295917
298092
  }
295918
298093
  if (object.autoRenewalStatus !== 0 && (typeof object.autoRenewalStatus !== "string" || $root.subscription.AutoRenewalStatus[object.autoRenewalStatus] !== 0))
295919
298094
  switch (object.autoRenewalStatus) {
@@ -296756,6 +298931,7 @@ $root.SubscriptionEnded = (function() {
296756
298931
  case 7:
296757
298932
  case 8:
296758
298933
  case 9:
298934
+ case 10:
296759
298935
  break;
296760
298936
  }
296761
298937
  if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
@@ -296951,6 +299127,10 @@ $root.SubscriptionEnded = (function() {
296951
299127
  case 9:
296952
299128
  message.platform = 9;
296953
299129
  break;
299130
+ case "SUBSCRIPTION_PLATFORM_CMS_ACCESS":
299131
+ case 10:
299132
+ message.platform = 10;
299133
+ break;
296954
299134
  }
296955
299135
  if (object.autoRenewalStatus !== 0 && (typeof object.autoRenewalStatus !== "string" || $root.subscription.AutoRenewalStatus[object.autoRenewalStatus] !== 0))
296956
299136
  switch (object.autoRenewalStatus) {
@@ -297796,6 +299976,7 @@ $root.SubscriptionRecovered = (function() {
297796
299976
  case 7:
297797
299977
  case 8:
297798
299978
  case 9:
299979
+ case 10:
297799
299980
  break;
297800
299981
  }
297801
299982
  if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
@@ -297982,6 +300163,10 @@ $root.SubscriptionRecovered = (function() {
297982
300163
  case 9:
297983
300164
  message.platform = 9;
297984
300165
  break;
300166
+ case "SUBSCRIPTION_PLATFORM_CMS_ACCESS":
300167
+ case 10:
300168
+ message.platform = 10;
300169
+ break;
297985
300170
  }
297986
300171
  if (object.autoRenewalStatus !== 0 && (typeof object.autoRenewalStatus !== "string" || $root.subscription.AutoRenewalStatus[object.autoRenewalStatus] !== 0))
297987
300172
  switch (object.autoRenewalStatus) {
@@ -298805,6 +300990,7 @@ $root.SubscriptionAmended = (function() {
298805
300990
  case 7:
298806
300991
  case 8:
298807
300992
  case 9:
300993
+ case 10:
298808
300994
  break;
298809
300995
  }
298810
300996
  if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
@@ -298991,6 +301177,10 @@ $root.SubscriptionAmended = (function() {
298991
301177
  case 9:
298992
301178
  message.platform = 9;
298993
301179
  break;
301180
+ case "SUBSCRIPTION_PLATFORM_CMS_ACCESS":
301181
+ case 10:
301182
+ message.platform = 10;
301183
+ break;
298994
301184
  }
298995
301185
  if (object.autoRenewalStatus !== 0 && (typeof object.autoRenewalStatus !== "string" || $root.subscription.AutoRenewalStatus[object.autoRenewalStatus] !== 0))
298996
301186
  switch (object.autoRenewalStatus) {
@@ -304115,6 +306305,7 @@ $root.subscription = (function() {
304115
306305
  * @property {number} SUBSCRIPTION_PLATFORM_SIKA=7 SUBSCRIPTION_PLATFORM_SIKA value
304116
306306
  * @property {number} SUBSCRIPTION_PLATFORM_PAPI=8 SUBSCRIPTION_PLATFORM_PAPI value
304117
306307
  * @property {number} SUBSCRIPTION_PLATFORM_B2B_ORG_SUB=9 SUBSCRIPTION_PLATFORM_B2B_ORG_SUB value
306308
+ * @property {number} SUBSCRIPTION_PLATFORM_CMS_ACCESS=10 SUBSCRIPTION_PLATFORM_CMS_ACCESS value
304118
306309
  */
304119
306310
  subscription.SubscriptionPlatform = (function() {
304120
306311
  var valuesById = {}, values = Object.create(valuesById);
@@ -304128,6 +306319,7 @@ $root.subscription = (function() {
304128
306319
  values[valuesById[7] = "SUBSCRIPTION_PLATFORM_SIKA"] = 7;
304129
306320
  values[valuesById[8] = "SUBSCRIPTION_PLATFORM_PAPI"] = 8;
304130
306321
  values[valuesById[9] = "SUBSCRIPTION_PLATFORM_B2B_ORG_SUB"] = 9;
306322
+ values[valuesById[10] = "SUBSCRIPTION_PLATFORM_CMS_ACCESS"] = 10;
304131
306323
  return values;
304132
306324
  })();
304133
306325