@headspace/protos-events 1.860.0 → 1.862.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.mts CHANGED
@@ -91934,6 +91934,9 @@ export class GingerClinicalNotePayload {
91934
91934
  /** GingerClinicalNotePayload familyHistories. */
91935
91935
  familyHistories: ClinicalNoteFamilyHistory.$Properties[];
91936
91936
 
91937
+ /** GingerClinicalNotePayload diagnoses. */
91938
+ diagnoses: ClinicalNoteCodeableConcept.$Properties[];
91939
+
91937
91940
  /**
91938
91941
  * Creates a new GingerClinicalNotePayload instance using the specified properties.
91939
91942
  * @param [properties] Properties to set
@@ -92060,6 +92063,9 @@ export namespace GingerClinicalNotePayload {
92060
92063
  /** GingerClinicalNotePayload familyHistories */
92061
92064
  familyHistories?: (ClinicalNoteFamilyHistory.$Properties[]|null);
92062
92065
 
92066
+ /** GingerClinicalNotePayload diagnoses */
92067
+ diagnoses?: (ClinicalNoteCodeableConcept.$Properties[]|null);
92068
+
92063
92069
  /** Unknown fields preserved while decoding */
92064
92070
  $unknowns?: Uint8Array[];
92065
92071
  }
@@ -94394,129 +94400,6 @@ export namespace ModerationActionPerformed {
94394
94400
  }
94395
94401
  }
94396
94402
 
94397
- /**
94398
- * Properties of a UserOnboardingTopicResponses.
94399
- * @deprecated Use UserOnboardingTopicResponses.$Properties instead.
94400
- */
94401
- export interface IUserOnboardingTopicResponses extends UserOnboardingTopicResponses.$Properties {
94402
- }
94403
-
94404
- /** Represents a UserOnboardingTopicResponses. */
94405
- export class UserOnboardingTopicResponses {
94406
-
94407
- /**
94408
- * Constructs a new UserOnboardingTopicResponses.
94409
- * @param [properties] Properties to set
94410
- */
94411
- constructor(properties?: UserOnboardingTopicResponses.$Properties);
94412
-
94413
- /** Unknown fields preserved while decoding */
94414
- $unknowns?: Uint8Array[];
94415
-
94416
- /** UserOnboardingTopicResponses userId. */
94417
- userId: string;
94418
-
94419
- /** UserOnboardingTopicResponses onboardTopics. */
94420
- onboardTopics: string[];
94421
-
94422
- /**
94423
- * Creates a new UserOnboardingTopicResponses instance using the specified properties.
94424
- * @param [properties] Properties to set
94425
- * @returns UserOnboardingTopicResponses instance
94426
- */
94427
- static create(properties: UserOnboardingTopicResponses.$Shape): UserOnboardingTopicResponses & UserOnboardingTopicResponses.$Shape;
94428
- static create(properties?: UserOnboardingTopicResponses.$Properties): UserOnboardingTopicResponses;
94429
-
94430
- /**
94431
- * Encodes the specified UserOnboardingTopicResponses message. Does not implicitly {@link UserOnboardingTopicResponses.verify|verify} messages.
94432
- * @param message UserOnboardingTopicResponses message or plain object to encode
94433
- * @param [writer] Writer to encode to
94434
- * @returns Writer
94435
- */
94436
- static encode(message: UserOnboardingTopicResponses.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
94437
-
94438
- /**
94439
- * Encodes the specified UserOnboardingTopicResponses message, length delimited. Does not implicitly {@link UserOnboardingTopicResponses.verify|verify} messages.
94440
- * @param message UserOnboardingTopicResponses message or plain object to encode
94441
- * @param [writer] Writer to encode to
94442
- * @returns Writer
94443
- */
94444
- static encodeDelimited(message: UserOnboardingTopicResponses.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
94445
-
94446
- /**
94447
- * Decodes a UserOnboardingTopicResponses message from the specified reader or buffer.
94448
- * @param reader Reader or buffer to decode from
94449
- * @param [length] Message length if known beforehand
94450
- * @returns {UserOnboardingTopicResponses & UserOnboardingTopicResponses.$Shape} UserOnboardingTopicResponses
94451
- * @throws {Error} If the payload is not a reader or valid buffer
94452
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
94453
- */
94454
- static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserOnboardingTopicResponses & UserOnboardingTopicResponses.$Shape;
94455
-
94456
- /**
94457
- * Decodes a UserOnboardingTopicResponses message from the specified reader or buffer, length delimited.
94458
- * @param reader Reader or buffer to decode from
94459
- * @returns {UserOnboardingTopicResponses & UserOnboardingTopicResponses.$Shape} UserOnboardingTopicResponses
94460
- * @throws {Error} If the payload is not a reader or valid buffer
94461
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
94462
- */
94463
- static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserOnboardingTopicResponses & UserOnboardingTopicResponses.$Shape;
94464
-
94465
- /**
94466
- * Verifies a UserOnboardingTopicResponses message.
94467
- * @param message Plain object to verify
94468
- * @returns `null` if valid, otherwise the reason why it is not
94469
- */
94470
- static verify(message: { [k: string]: any }): (string|null);
94471
-
94472
- /**
94473
- * Creates a UserOnboardingTopicResponses message from a plain object. Also converts values to their respective internal types.
94474
- * @param object Plain object
94475
- * @returns UserOnboardingTopicResponses
94476
- */
94477
- static fromObject(object: { [k: string]: any }): UserOnboardingTopicResponses;
94478
-
94479
- /**
94480
- * Creates a plain object from a UserOnboardingTopicResponses message. Also converts values to other types if specified.
94481
- * @param message UserOnboardingTopicResponses
94482
- * @param [options] Conversion options
94483
- * @returns Plain object
94484
- */
94485
- static toObject(message: UserOnboardingTopicResponses, options?: $protobuf.IConversionOptions): { [k: string]: any };
94486
-
94487
- /**
94488
- * Converts this UserOnboardingTopicResponses to JSON.
94489
- * @returns JSON object
94490
- */
94491
- toJSON(): { [k: string]: any };
94492
-
94493
- /**
94494
- * Gets the type url for UserOnboardingTopicResponses
94495
- * @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
94496
- * @returns The type url
94497
- */
94498
- static getTypeUrl(prefix?: string): string;
94499
- }
94500
-
94501
- export namespace UserOnboardingTopicResponses {
94502
-
94503
- /** Properties of a UserOnboardingTopicResponses. */
94504
- interface $Properties {
94505
-
94506
- /** UserOnboardingTopicResponses userId */
94507
- userId?: (string|null);
94508
-
94509
- /** UserOnboardingTopicResponses onboardTopics */
94510
- onboardTopics?: (string[]|null);
94511
-
94512
- /** Unknown fields preserved while decoding */
94513
- $unknowns?: Uint8Array[];
94514
- }
94515
-
94516
- /** Shape of a UserOnboardingTopicResponses. */
94517
- type $Shape = UserOnboardingTopicResponses.$Properties;
94518
- }
94519
-
94520
94403
  /**
94521
94404
  * Properties of a UserOnboardingPrimaryTopicSelected.
94522
94405
  * @deprecated Use UserOnboardingPrimaryTopicSelected.$Properties instead.
package/lib/index.d.ts CHANGED
@@ -91934,6 +91934,9 @@ export class GingerClinicalNotePayload {
91934
91934
  /** GingerClinicalNotePayload familyHistories. */
91935
91935
  familyHistories: ClinicalNoteFamilyHistory.$Properties[];
91936
91936
 
91937
+ /** GingerClinicalNotePayload diagnoses. */
91938
+ diagnoses: ClinicalNoteCodeableConcept.$Properties[];
91939
+
91937
91940
  /**
91938
91941
  * Creates a new GingerClinicalNotePayload instance using the specified properties.
91939
91942
  * @param [properties] Properties to set
@@ -92060,6 +92063,9 @@ export namespace GingerClinicalNotePayload {
92060
92063
  /** GingerClinicalNotePayload familyHistories */
92061
92064
  familyHistories?: (ClinicalNoteFamilyHistory.$Properties[]|null);
92062
92065
 
92066
+ /** GingerClinicalNotePayload diagnoses */
92067
+ diagnoses?: (ClinicalNoteCodeableConcept.$Properties[]|null);
92068
+
92063
92069
  /** Unknown fields preserved while decoding */
92064
92070
  $unknowns?: Uint8Array[];
92065
92071
  }
@@ -94394,129 +94400,6 @@ export namespace ModerationActionPerformed {
94394
94400
  }
94395
94401
  }
94396
94402
 
94397
- /**
94398
- * Properties of a UserOnboardingTopicResponses.
94399
- * @deprecated Use UserOnboardingTopicResponses.$Properties instead.
94400
- */
94401
- export interface IUserOnboardingTopicResponses extends UserOnboardingTopicResponses.$Properties {
94402
- }
94403
-
94404
- /** Represents a UserOnboardingTopicResponses. */
94405
- export class UserOnboardingTopicResponses {
94406
-
94407
- /**
94408
- * Constructs a new UserOnboardingTopicResponses.
94409
- * @param [properties] Properties to set
94410
- */
94411
- constructor(properties?: UserOnboardingTopicResponses.$Properties);
94412
-
94413
- /** Unknown fields preserved while decoding */
94414
- $unknowns?: Uint8Array[];
94415
-
94416
- /** UserOnboardingTopicResponses userId. */
94417
- userId: string;
94418
-
94419
- /** UserOnboardingTopicResponses onboardTopics. */
94420
- onboardTopics: string[];
94421
-
94422
- /**
94423
- * Creates a new UserOnboardingTopicResponses instance using the specified properties.
94424
- * @param [properties] Properties to set
94425
- * @returns UserOnboardingTopicResponses instance
94426
- */
94427
- static create(properties: UserOnboardingTopicResponses.$Shape): UserOnboardingTopicResponses & UserOnboardingTopicResponses.$Shape;
94428
- static create(properties?: UserOnboardingTopicResponses.$Properties): UserOnboardingTopicResponses;
94429
-
94430
- /**
94431
- * Encodes the specified UserOnboardingTopicResponses message. Does not implicitly {@link UserOnboardingTopicResponses.verify|verify} messages.
94432
- * @param message UserOnboardingTopicResponses message or plain object to encode
94433
- * @param [writer] Writer to encode to
94434
- * @returns Writer
94435
- */
94436
- static encode(message: UserOnboardingTopicResponses.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
94437
-
94438
- /**
94439
- * Encodes the specified UserOnboardingTopicResponses message, length delimited. Does not implicitly {@link UserOnboardingTopicResponses.verify|verify} messages.
94440
- * @param message UserOnboardingTopicResponses message or plain object to encode
94441
- * @param [writer] Writer to encode to
94442
- * @returns Writer
94443
- */
94444
- static encodeDelimited(message: UserOnboardingTopicResponses.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
94445
-
94446
- /**
94447
- * Decodes a UserOnboardingTopicResponses message from the specified reader or buffer.
94448
- * @param reader Reader or buffer to decode from
94449
- * @param [length] Message length if known beforehand
94450
- * @returns {UserOnboardingTopicResponses & UserOnboardingTopicResponses.$Shape} UserOnboardingTopicResponses
94451
- * @throws {Error} If the payload is not a reader or valid buffer
94452
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
94453
- */
94454
- static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserOnboardingTopicResponses & UserOnboardingTopicResponses.$Shape;
94455
-
94456
- /**
94457
- * Decodes a UserOnboardingTopicResponses message from the specified reader or buffer, length delimited.
94458
- * @param reader Reader or buffer to decode from
94459
- * @returns {UserOnboardingTopicResponses & UserOnboardingTopicResponses.$Shape} UserOnboardingTopicResponses
94460
- * @throws {Error} If the payload is not a reader or valid buffer
94461
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
94462
- */
94463
- static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserOnboardingTopicResponses & UserOnboardingTopicResponses.$Shape;
94464
-
94465
- /**
94466
- * Verifies a UserOnboardingTopicResponses message.
94467
- * @param message Plain object to verify
94468
- * @returns `null` if valid, otherwise the reason why it is not
94469
- */
94470
- static verify(message: { [k: string]: any }): (string|null);
94471
-
94472
- /**
94473
- * Creates a UserOnboardingTopicResponses message from a plain object. Also converts values to their respective internal types.
94474
- * @param object Plain object
94475
- * @returns UserOnboardingTopicResponses
94476
- */
94477
- static fromObject(object: { [k: string]: any }): UserOnboardingTopicResponses;
94478
-
94479
- /**
94480
- * Creates a plain object from a UserOnboardingTopicResponses message. Also converts values to other types if specified.
94481
- * @param message UserOnboardingTopicResponses
94482
- * @param [options] Conversion options
94483
- * @returns Plain object
94484
- */
94485
- static toObject(message: UserOnboardingTopicResponses, options?: $protobuf.IConversionOptions): { [k: string]: any };
94486
-
94487
- /**
94488
- * Converts this UserOnboardingTopicResponses to JSON.
94489
- * @returns JSON object
94490
- */
94491
- toJSON(): { [k: string]: any };
94492
-
94493
- /**
94494
- * Gets the type url for UserOnboardingTopicResponses
94495
- * @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
94496
- * @returns The type url
94497
- */
94498
- static getTypeUrl(prefix?: string): string;
94499
- }
94500
-
94501
- export namespace UserOnboardingTopicResponses {
94502
-
94503
- /** Properties of a UserOnboardingTopicResponses. */
94504
- interface $Properties {
94505
-
94506
- /** UserOnboardingTopicResponses userId */
94507
- userId?: (string|null);
94508
-
94509
- /** UserOnboardingTopicResponses onboardTopics */
94510
- onboardTopics?: (string[]|null);
94511
-
94512
- /** Unknown fields preserved while decoding */
94513
- $unknowns?: Uint8Array[];
94514
- }
94515
-
94516
- /** Shape of a UserOnboardingTopicResponses. */
94517
- type $Shape = UserOnboardingTopicResponses.$Properties;
94518
- }
94519
-
94520
94403
  /**
94521
94404
  * Properties of a UserOnboardingPrimaryTopicSelected.
94522
94405
  * @deprecated Use UserOnboardingPrimaryTopicSelected.$Properties instead.
package/lib/index.js CHANGED
@@ -271610,6 +271610,7 @@ $root.GingerClinicalNotePayload = (function() {
271610
271610
  * @property {Array.<ClinicalNoteMedication.$Properties>|null} [medications] GingerClinicalNotePayload medications
271611
271611
  * @property {Array.<ClinicalNoteObservation.$Properties>|null} [observations] GingerClinicalNotePayload observations
271612
271612
  * @property {Array.<ClinicalNoteFamilyHistory.$Properties>|null} [familyHistories] GingerClinicalNotePayload familyHistories
271613
+ * @property {Array.<ClinicalNoteCodeableConcept.$Properties>|null} [diagnoses] GingerClinicalNotePayload diagnoses
271613
271614
  * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
271614
271615
  */
271615
271616
 
@@ -271641,6 +271642,7 @@ $root.GingerClinicalNotePayload = (function() {
271641
271642
  this.medications = [];
271642
271643
  this.observations = [];
271643
271644
  this.familyHistories = [];
271645
+ this.diagnoses = [];
271644
271646
  if (properties)
271645
271647
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
271646
271648
  if (properties[keys[i]] != null && keys[i] !== "__proto__")
@@ -271759,6 +271761,14 @@ $root.GingerClinicalNotePayload = (function() {
271759
271761
  */
271760
271762
  GingerClinicalNotePayload.prototype.familyHistories = $util.emptyArray;
271761
271763
 
271764
+ /**
271765
+ * GingerClinicalNotePayload diagnoses.
271766
+ * @member {Array.<ClinicalNoteCodeableConcept.$Properties>} diagnoses
271767
+ * @memberof GingerClinicalNotePayload
271768
+ * @instance
271769
+ */
271770
+ GingerClinicalNotePayload.prototype.diagnoses = $util.emptyArray;
271771
+
271762
271772
  /**
271763
271773
  * Creates a new GingerClinicalNotePayload instance using the specified properties.
271764
271774
  * @function create
@@ -271821,6 +271831,9 @@ $root.GingerClinicalNotePayload = (function() {
271821
271831
  if (message.familyHistories != null && message.familyHistories.length)
271822
271832
  for (var i = 0; i < message.familyHistories.length; ++i)
271823
271833
  $root.ClinicalNoteFamilyHistory.encode(message.familyHistories[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
271834
+ if (message.diagnoses != null && message.diagnoses.length)
271835
+ for (var i = 0; i < message.diagnoses.length; ++i)
271836
+ $root.ClinicalNoteCodeableConcept.encode(message.diagnoses[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
271824
271837
  if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
271825
271838
  for (var i = 0; i < message.$unknowns.length; ++i)
271826
271839
  writer.raw(message.$unknowns[i]);
@@ -271976,6 +271989,14 @@ $root.GingerClinicalNotePayload = (function() {
271976
271989
  message.familyHistories.push($root.ClinicalNoteFamilyHistory.decode(reader, reader.uint32(), undefined, _depth + 1));
271977
271990
  continue;
271978
271991
  }
271992
+ case 15: {
271993
+ if (wireType !== 2)
271994
+ break;
271995
+ if (!(message.diagnoses && message.diagnoses.length))
271996
+ message.diagnoses = [];
271997
+ message.diagnoses.push($root.ClinicalNoteCodeableConcept.decode(reader, reader.uint32(), undefined, _depth + 1));
271998
+ continue;
271999
+ }
271979
272000
  }
271980
272001
  reader.skipType(wireType, _depth, tag);
271981
272002
  $util.makeProp(message, "$unknowns", false);
@@ -272107,6 +272128,15 @@ $root.GingerClinicalNotePayload = (function() {
272107
272128
  return "familyHistories." + error;
272108
272129
  }
272109
272130
  }
272131
+ if (message.diagnoses != null && message.hasOwnProperty("diagnoses")) {
272132
+ if (!Array.isArray(message.diagnoses))
272133
+ return "diagnoses: array expected";
272134
+ for (var i = 0; i < message.diagnoses.length; ++i) {
272135
+ var error = $root.ClinicalNoteCodeableConcept.verify(message.diagnoses[i], _depth + 1);
272136
+ if (error)
272137
+ return "diagnoses." + error;
272138
+ }
272139
+ }
272110
272140
  return null;
272111
272141
  };
272112
272142
 
@@ -272238,6 +272268,16 @@ $root.GingerClinicalNotePayload = (function() {
272238
272268
  message.familyHistories[i] = $root.ClinicalNoteFamilyHistory.fromObject(object.familyHistories[i], _depth + 1);
272239
272269
  }
272240
272270
  }
272271
+ if (object.diagnoses) {
272272
+ if (!Array.isArray(object.diagnoses))
272273
+ throw TypeError(".GingerClinicalNotePayload.diagnoses: array expected");
272274
+ message.diagnoses = Array(object.diagnoses.length);
272275
+ for (var i = 0; i < object.diagnoses.length; ++i) {
272276
+ if (typeof object.diagnoses[i] !== "object")
272277
+ throw TypeError(".GingerClinicalNotePayload.diagnoses: object expected");
272278
+ message.diagnoses[i] = $root.ClinicalNoteCodeableConcept.fromObject(object.diagnoses[i], _depth + 1);
272279
+ }
272280
+ }
272241
272281
  return message;
272242
272282
  };
272243
272283
 
@@ -272261,6 +272301,7 @@ $root.GingerClinicalNotePayload = (function() {
272261
272301
  object.medications = [];
272262
272302
  object.observations = [];
272263
272303
  object.familyHistories = [];
272304
+ object.diagnoses = [];
272264
272305
  }
272265
272306
  if (options.defaults) {
272266
272307
  object.noteId = "";
@@ -272318,6 +272359,11 @@ $root.GingerClinicalNotePayload = (function() {
272318
272359
  for (var j = 0; j < message.familyHistories.length; ++j)
272319
272360
  object.familyHistories[j] = $root.ClinicalNoteFamilyHistory.toObject(message.familyHistories[j], options);
272320
272361
  }
272362
+ if (message.diagnoses && message.diagnoses.length) {
272363
+ object.diagnoses = Array(message.diagnoses.length);
272364
+ for (var j = 0; j < message.diagnoses.length; ++j)
272365
+ object.diagnoses[j] = $root.ClinicalNoteCodeableConcept.toObject(message.diagnoses[j], options);
272366
+ }
272321
272367
  return object;
272322
272368
  };
272323
272369
 
@@ -278500,296 +278546,6 @@ $root.ModerationActionPerformed = (function() {
278500
278546
  return ModerationActionPerformed;
278501
278547
  })();
278502
278548
 
278503
- $root.UserOnboardingTopicResponses = (function() {
278504
-
278505
- /**
278506
- * Properties of a UserOnboardingTopicResponses.
278507
- * @typedef {Object} UserOnboardingTopicResponses.$Properties
278508
- * @property {string|null} [userId] UserOnboardingTopicResponses userId
278509
- * @property {Array.<string>|null} [onboardTopics] UserOnboardingTopicResponses onboardTopics
278510
- * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
278511
- */
278512
-
278513
- /**
278514
- * Properties of a UserOnboardingTopicResponses.
278515
- * @name IUserOnboardingTopicResponses
278516
- * @interface IUserOnboardingTopicResponses
278517
- * @augments UserOnboardingTopicResponses.$Properties
278518
- * @deprecated Use UserOnboardingTopicResponses.$Properties instead.
278519
- */
278520
-
278521
- /**
278522
- * Shape of a UserOnboardingTopicResponses.
278523
- * @typedef {UserOnboardingTopicResponses.$Properties} UserOnboardingTopicResponses.$Shape
278524
- */
278525
-
278526
- /**
278527
- * Constructs a new UserOnboardingTopicResponses.
278528
- * @name UserOnboardingTopicResponses
278529
- * @classdesc Represents a UserOnboardingTopicResponses.
278530
- * @constructor
278531
- * @param {UserOnboardingTopicResponses.$Properties=} [properties] Properties to set
278532
- * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
278533
- */
278534
- function UserOnboardingTopicResponses(properties) {
278535
- this.onboardTopics = [];
278536
- if (properties)
278537
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
278538
- if (properties[keys[i]] != null && keys[i] !== "__proto__")
278539
- this[keys[i]] = properties[keys[i]];
278540
- }
278541
-
278542
- /**
278543
- * UserOnboardingTopicResponses userId.
278544
- * @member {string} userId
278545
- * @memberof UserOnboardingTopicResponses
278546
- * @instance
278547
- */
278548
- UserOnboardingTopicResponses.prototype.userId = "";
278549
-
278550
- /**
278551
- * UserOnboardingTopicResponses onboardTopics.
278552
- * @member {Array.<string>} onboardTopics
278553
- * @memberof UserOnboardingTopicResponses
278554
- * @instance
278555
- */
278556
- UserOnboardingTopicResponses.prototype.onboardTopics = $util.emptyArray;
278557
-
278558
- /**
278559
- * Creates a new UserOnboardingTopicResponses instance using the specified properties.
278560
- * @function create
278561
- * @memberof UserOnboardingTopicResponses
278562
- * @static
278563
- * @param {UserOnboardingTopicResponses.$Properties=} [properties] Properties to set
278564
- * @returns {UserOnboardingTopicResponses} UserOnboardingTopicResponses instance
278565
- * @type {{
278566
- * (properties: UserOnboardingTopicResponses.$Shape): UserOnboardingTopicResponses & UserOnboardingTopicResponses.$Shape;
278567
- * (properties?: UserOnboardingTopicResponses.$Properties): UserOnboardingTopicResponses;
278568
- * }}
278569
- */
278570
- UserOnboardingTopicResponses.create = function create(properties) {
278571
- return new UserOnboardingTopicResponses(properties);
278572
- };
278573
-
278574
- /**
278575
- * Encodes the specified UserOnboardingTopicResponses message. Does not implicitly {@link UserOnboardingTopicResponses.verify|verify} messages.
278576
- * @function encode
278577
- * @memberof UserOnboardingTopicResponses
278578
- * @static
278579
- * @param {UserOnboardingTopicResponses.$Properties} message UserOnboardingTopicResponses message or plain object to encode
278580
- * @param {$protobuf.Writer} [writer] Writer to encode to
278581
- * @returns {$protobuf.Writer} Writer
278582
- */
278583
- UserOnboardingTopicResponses.encode = function encode(message, writer) {
278584
- if (!writer)
278585
- writer = $Writer.create();
278586
- if (message.userId != null && Object.hasOwnProperty.call(message, "userId"))
278587
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
278588
- if (message.onboardTopics != null && message.onboardTopics.length)
278589
- for (var i = 0; i < message.onboardTopics.length; ++i)
278590
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.onboardTopics[i]);
278591
- if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
278592
- for (var i = 0; i < message.$unknowns.length; ++i)
278593
- writer.raw(message.$unknowns[i]);
278594
- return writer;
278595
- };
278596
-
278597
- /**
278598
- * Encodes the specified UserOnboardingTopicResponses message, length delimited. Does not implicitly {@link UserOnboardingTopicResponses.verify|verify} messages.
278599
- * @function encodeDelimited
278600
- * @memberof UserOnboardingTopicResponses
278601
- * @static
278602
- * @param {UserOnboardingTopicResponses.$Properties} message UserOnboardingTopicResponses message or plain object to encode
278603
- * @param {$protobuf.Writer} [writer] Writer to encode to
278604
- * @returns {$protobuf.Writer} Writer
278605
- */
278606
- UserOnboardingTopicResponses.encodeDelimited = function encodeDelimited(message, writer) {
278607
- return this.encode(message, writer).ldelim();
278608
- };
278609
-
278610
- /**
278611
- * Decodes a UserOnboardingTopicResponses message from the specified reader or buffer.
278612
- * @function decode
278613
- * @memberof UserOnboardingTopicResponses
278614
- * @static
278615
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
278616
- * @param {number} [length] Message length if known beforehand
278617
- * @returns {UserOnboardingTopicResponses & UserOnboardingTopicResponses.$Shape} UserOnboardingTopicResponses
278618
- * @throws {Error} If the payload is not a reader or valid buffer
278619
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
278620
- */
278621
- UserOnboardingTopicResponses.decode = function decode(reader, length, _end, _depth, _target) {
278622
- if (!(reader instanceof $Reader))
278623
- reader = $Reader.create(reader);
278624
- if (_depth === undefined)
278625
- _depth = 0;
278626
- if (_depth > $Reader.recursionLimit)
278627
- throw Error("max depth exceeded");
278628
- var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.UserOnboardingTopicResponses(), value;
278629
- while (reader.pos < end) {
278630
- var start = reader.pos;
278631
- var tag = reader.tag();
278632
- if (tag === _end) {
278633
- _end = undefined;
278634
- break;
278635
- }
278636
- var wireType = tag & 7;
278637
- switch (tag >>>= 3) {
278638
- case 1: {
278639
- if (wireType !== 2)
278640
- break;
278641
- if ((value = reader.string()).length)
278642
- message.userId = value;
278643
- else
278644
- delete message.userId;
278645
- continue;
278646
- }
278647
- case 2: {
278648
- if (wireType !== 2)
278649
- break;
278650
- if (!(message.onboardTopics && message.onboardTopics.length))
278651
- message.onboardTopics = [];
278652
- message.onboardTopics.push(reader.string());
278653
- continue;
278654
- }
278655
- }
278656
- reader.skipType(wireType, _depth, tag);
278657
- $util.makeProp(message, "$unknowns", false);
278658
- (message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
278659
- }
278660
- if (_end !== undefined)
278661
- throw Error("missing end group");
278662
- return message;
278663
- };
278664
-
278665
- /**
278666
- * Decodes a UserOnboardingTopicResponses message from the specified reader or buffer, length delimited.
278667
- * @function decodeDelimited
278668
- * @memberof UserOnboardingTopicResponses
278669
- * @static
278670
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
278671
- * @returns {UserOnboardingTopicResponses & UserOnboardingTopicResponses.$Shape} UserOnboardingTopicResponses
278672
- * @throws {Error} If the payload is not a reader or valid buffer
278673
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
278674
- */
278675
- UserOnboardingTopicResponses.decodeDelimited = function decodeDelimited(reader) {
278676
- if (!(reader instanceof $Reader))
278677
- reader = new $Reader(reader);
278678
- return this.decode(reader, reader.uint32());
278679
- };
278680
-
278681
- /**
278682
- * Verifies a UserOnboardingTopicResponses message.
278683
- * @function verify
278684
- * @memberof UserOnboardingTopicResponses
278685
- * @static
278686
- * @param {Object.<string,*>} message Plain object to verify
278687
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
278688
- */
278689
- UserOnboardingTopicResponses.verify = function verify(message, _depth) {
278690
- if (typeof message !== "object" || message === null)
278691
- return "object expected";
278692
- if (_depth === undefined)
278693
- _depth = 0;
278694
- if (_depth > $util.recursionLimit)
278695
- return "max depth exceeded";
278696
- if (message.userId != null && message.hasOwnProperty("userId"))
278697
- if (!$util.isString(message.userId))
278698
- return "userId: string expected";
278699
- if (message.onboardTopics != null && message.hasOwnProperty("onboardTopics")) {
278700
- if (!Array.isArray(message.onboardTopics))
278701
- return "onboardTopics: array expected";
278702
- for (var i = 0; i < message.onboardTopics.length; ++i)
278703
- if (!$util.isString(message.onboardTopics[i]))
278704
- return "onboardTopics: string[] expected";
278705
- }
278706
- return null;
278707
- };
278708
-
278709
- /**
278710
- * Creates a UserOnboardingTopicResponses message from a plain object. Also converts values to their respective internal types.
278711
- * @function fromObject
278712
- * @memberof UserOnboardingTopicResponses
278713
- * @static
278714
- * @param {Object.<string,*>} object Plain object
278715
- * @returns {UserOnboardingTopicResponses} UserOnboardingTopicResponses
278716
- */
278717
- UserOnboardingTopicResponses.fromObject = function fromObject(object, _depth) {
278718
- if (object instanceof $root.UserOnboardingTopicResponses)
278719
- return object;
278720
- if (_depth === undefined)
278721
- _depth = 0;
278722
- if (_depth > $util.recursionLimit)
278723
- throw Error("max depth exceeded");
278724
- var message = new $root.UserOnboardingTopicResponses();
278725
- if (object.userId != null)
278726
- if (typeof object.userId !== "string" || object.userId.length)
278727
- message.userId = String(object.userId);
278728
- if (object.onboardTopics) {
278729
- if (!Array.isArray(object.onboardTopics))
278730
- throw TypeError(".UserOnboardingTopicResponses.onboardTopics: array expected");
278731
- message.onboardTopics = Array(object.onboardTopics.length);
278732
- for (var i = 0; i < object.onboardTopics.length; ++i)
278733
- message.onboardTopics[i] = String(object.onboardTopics[i]);
278734
- }
278735
- return message;
278736
- };
278737
-
278738
- /**
278739
- * Creates a plain object from a UserOnboardingTopicResponses message. Also converts values to other types if specified.
278740
- * @function toObject
278741
- * @memberof UserOnboardingTopicResponses
278742
- * @static
278743
- * @param {UserOnboardingTopicResponses} message UserOnboardingTopicResponses
278744
- * @param {$protobuf.IConversionOptions} [options] Conversion options
278745
- * @returns {Object.<string,*>} Plain object
278746
- */
278747
- UserOnboardingTopicResponses.toObject = function toObject(message, options) {
278748
- if (!options)
278749
- options = {};
278750
- var object = {};
278751
- if (options.arrays || options.defaults)
278752
- object.onboardTopics = [];
278753
- if (options.defaults)
278754
- object.userId = "";
278755
- if (message.userId != null && message.hasOwnProperty("userId"))
278756
- object.userId = message.userId;
278757
- if (message.onboardTopics && message.onboardTopics.length) {
278758
- object.onboardTopics = Array(message.onboardTopics.length);
278759
- for (var j = 0; j < message.onboardTopics.length; ++j)
278760
- object.onboardTopics[j] = message.onboardTopics[j];
278761
- }
278762
- return object;
278763
- };
278764
-
278765
- /**
278766
- * Converts this UserOnboardingTopicResponses to JSON.
278767
- * @function toJSON
278768
- * @memberof UserOnboardingTopicResponses
278769
- * @instance
278770
- * @returns {Object.<string,*>} JSON object
278771
- */
278772
- UserOnboardingTopicResponses.prototype.toJSON = function toJSON() {
278773
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
278774
- };
278775
-
278776
- /**
278777
- * Gets the type url for UserOnboardingTopicResponses
278778
- * @function getTypeUrl
278779
- * @memberof UserOnboardingTopicResponses
278780
- * @static
278781
- * @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
278782
- * @returns {string} The type url
278783
- */
278784
- UserOnboardingTopicResponses.getTypeUrl = function getTypeUrl(prefix) {
278785
- if (prefix === undefined)
278786
- prefix = "type.googleapis.com";
278787
- return prefix + "/UserOnboardingTopicResponses";
278788
- };
278789
-
278790
- return UserOnboardingTopicResponses;
278791
- })();
278792
-
278793
278549
  $root.UserOnboardingPrimaryTopicSelected = (function() {
278794
278550
 
278795
278551
  /**
package/lib/index.mjs CHANGED
@@ -271608,6 +271608,7 @@ export const GingerClinicalNotePayload = $root.GingerClinicalNotePayload = (() =
271608
271608
  * @property {Array.<ClinicalNoteMedication.$Properties>|null} [medications] GingerClinicalNotePayload medications
271609
271609
  * @property {Array.<ClinicalNoteObservation.$Properties>|null} [observations] GingerClinicalNotePayload observations
271610
271610
  * @property {Array.<ClinicalNoteFamilyHistory.$Properties>|null} [familyHistories] GingerClinicalNotePayload familyHistories
271611
+ * @property {Array.<ClinicalNoteCodeableConcept.$Properties>|null} [diagnoses] GingerClinicalNotePayload diagnoses
271611
271612
  * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
271612
271613
  */
271613
271614
 
@@ -271639,6 +271640,7 @@ export const GingerClinicalNotePayload = $root.GingerClinicalNotePayload = (() =
271639
271640
  this.medications = [];
271640
271641
  this.observations = [];
271641
271642
  this.familyHistories = [];
271643
+ this.diagnoses = [];
271642
271644
  if (properties)
271643
271645
  for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
271644
271646
  if (properties[keys[i]] != null && keys[i] !== "__proto__")
@@ -271757,6 +271759,14 @@ export const GingerClinicalNotePayload = $root.GingerClinicalNotePayload = (() =
271757
271759
  */
271758
271760
  GingerClinicalNotePayload.prototype.familyHistories = $util.emptyArray;
271759
271761
 
271762
+ /**
271763
+ * GingerClinicalNotePayload diagnoses.
271764
+ * @member {Array.<ClinicalNoteCodeableConcept.$Properties>} diagnoses
271765
+ * @memberof GingerClinicalNotePayload
271766
+ * @instance
271767
+ */
271768
+ GingerClinicalNotePayload.prototype.diagnoses = $util.emptyArray;
271769
+
271760
271770
  /**
271761
271771
  * Creates a new GingerClinicalNotePayload instance using the specified properties.
271762
271772
  * @function create
@@ -271819,6 +271829,9 @@ export const GingerClinicalNotePayload = $root.GingerClinicalNotePayload = (() =
271819
271829
  if (message.familyHistories != null && message.familyHistories.length)
271820
271830
  for (let i = 0; i < message.familyHistories.length; ++i)
271821
271831
  $root.ClinicalNoteFamilyHistory.encode(message.familyHistories[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
271832
+ if (message.diagnoses != null && message.diagnoses.length)
271833
+ for (let i = 0; i < message.diagnoses.length; ++i)
271834
+ $root.ClinicalNoteCodeableConcept.encode(message.diagnoses[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
271822
271835
  if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
271823
271836
  for (let i = 0; i < message.$unknowns.length; ++i)
271824
271837
  writer.raw(message.$unknowns[i]);
@@ -271974,6 +271987,14 @@ export const GingerClinicalNotePayload = $root.GingerClinicalNotePayload = (() =
271974
271987
  message.familyHistories.push($root.ClinicalNoteFamilyHistory.decode(reader, reader.uint32(), undefined, _depth + 1));
271975
271988
  continue;
271976
271989
  }
271990
+ case 15: {
271991
+ if (wireType !== 2)
271992
+ break;
271993
+ if (!(message.diagnoses && message.diagnoses.length))
271994
+ message.diagnoses = [];
271995
+ message.diagnoses.push($root.ClinicalNoteCodeableConcept.decode(reader, reader.uint32(), undefined, _depth + 1));
271996
+ continue;
271997
+ }
271977
271998
  }
271978
271999
  reader.skipType(wireType, _depth, tag);
271979
272000
  $util.makeProp(message, "$unknowns", false);
@@ -272105,6 +272126,15 @@ export const GingerClinicalNotePayload = $root.GingerClinicalNotePayload = (() =
272105
272126
  return "familyHistories." + error;
272106
272127
  }
272107
272128
  }
272129
+ if (message.diagnoses != null && message.hasOwnProperty("diagnoses")) {
272130
+ if (!Array.isArray(message.diagnoses))
272131
+ return "diagnoses: array expected";
272132
+ for (let i = 0; i < message.diagnoses.length; ++i) {
272133
+ let error = $root.ClinicalNoteCodeableConcept.verify(message.diagnoses[i], _depth + 1);
272134
+ if (error)
272135
+ return "diagnoses." + error;
272136
+ }
272137
+ }
272108
272138
  return null;
272109
272139
  };
272110
272140
 
@@ -272236,6 +272266,16 @@ export const GingerClinicalNotePayload = $root.GingerClinicalNotePayload = (() =
272236
272266
  message.familyHistories[i] = $root.ClinicalNoteFamilyHistory.fromObject(object.familyHistories[i], _depth + 1);
272237
272267
  }
272238
272268
  }
272269
+ if (object.diagnoses) {
272270
+ if (!Array.isArray(object.diagnoses))
272271
+ throw TypeError(".GingerClinicalNotePayload.diagnoses: array expected");
272272
+ message.diagnoses = Array(object.diagnoses.length);
272273
+ for (let i = 0; i < object.diagnoses.length; ++i) {
272274
+ if (typeof object.diagnoses[i] !== "object")
272275
+ throw TypeError(".GingerClinicalNotePayload.diagnoses: object expected");
272276
+ message.diagnoses[i] = $root.ClinicalNoteCodeableConcept.fromObject(object.diagnoses[i], _depth + 1);
272277
+ }
272278
+ }
272239
272279
  return message;
272240
272280
  };
272241
272281
 
@@ -272259,6 +272299,7 @@ export const GingerClinicalNotePayload = $root.GingerClinicalNotePayload = (() =
272259
272299
  object.medications = [];
272260
272300
  object.observations = [];
272261
272301
  object.familyHistories = [];
272302
+ object.diagnoses = [];
272262
272303
  }
272263
272304
  if (options.defaults) {
272264
272305
  object.noteId = "";
@@ -272316,6 +272357,11 @@ export const GingerClinicalNotePayload = $root.GingerClinicalNotePayload = (() =
272316
272357
  for (let j = 0; j < message.familyHistories.length; ++j)
272317
272358
  object.familyHistories[j] = $root.ClinicalNoteFamilyHistory.toObject(message.familyHistories[j], options);
272318
272359
  }
272360
+ if (message.diagnoses && message.diagnoses.length) {
272361
+ object.diagnoses = Array(message.diagnoses.length);
272362
+ for (let j = 0; j < message.diagnoses.length; ++j)
272363
+ object.diagnoses[j] = $root.ClinicalNoteCodeableConcept.toObject(message.diagnoses[j], options);
272364
+ }
272319
272365
  return object;
272320
272366
  };
272321
272367
 
@@ -278498,296 +278544,6 @@ export const ModerationActionPerformed = $root.ModerationActionPerformed = (() =
278498
278544
  return ModerationActionPerformed;
278499
278545
  })();
278500
278546
 
278501
- export const UserOnboardingTopicResponses = $root.UserOnboardingTopicResponses = (() => {
278502
-
278503
- /**
278504
- * Properties of a UserOnboardingTopicResponses.
278505
- * @typedef {Object} UserOnboardingTopicResponses.$Properties
278506
- * @property {string|null} [userId] UserOnboardingTopicResponses userId
278507
- * @property {Array.<string>|null} [onboardTopics] UserOnboardingTopicResponses onboardTopics
278508
- * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
278509
- */
278510
-
278511
- /**
278512
- * Properties of a UserOnboardingTopicResponses.
278513
- * @name IUserOnboardingTopicResponses
278514
- * @interface IUserOnboardingTopicResponses
278515
- * @augments UserOnboardingTopicResponses.$Properties
278516
- * @deprecated Use UserOnboardingTopicResponses.$Properties instead.
278517
- */
278518
-
278519
- /**
278520
- * Shape of a UserOnboardingTopicResponses.
278521
- * @typedef {UserOnboardingTopicResponses.$Properties} UserOnboardingTopicResponses.$Shape
278522
- */
278523
-
278524
- /**
278525
- * Constructs a new UserOnboardingTopicResponses.
278526
- * @name UserOnboardingTopicResponses
278527
- * @classdesc Represents a UserOnboardingTopicResponses.
278528
- * @constructor
278529
- * @param {UserOnboardingTopicResponses.$Properties=} [properties] Properties to set
278530
- * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
278531
- */
278532
- function UserOnboardingTopicResponses(properties) {
278533
- this.onboardTopics = [];
278534
- if (properties)
278535
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
278536
- if (properties[keys[i]] != null && keys[i] !== "__proto__")
278537
- this[keys[i]] = properties[keys[i]];
278538
- }
278539
-
278540
- /**
278541
- * UserOnboardingTopicResponses userId.
278542
- * @member {string} userId
278543
- * @memberof UserOnboardingTopicResponses
278544
- * @instance
278545
- */
278546
- UserOnboardingTopicResponses.prototype.userId = "";
278547
-
278548
- /**
278549
- * UserOnboardingTopicResponses onboardTopics.
278550
- * @member {Array.<string>} onboardTopics
278551
- * @memberof UserOnboardingTopicResponses
278552
- * @instance
278553
- */
278554
- UserOnboardingTopicResponses.prototype.onboardTopics = $util.emptyArray;
278555
-
278556
- /**
278557
- * Creates a new UserOnboardingTopicResponses instance using the specified properties.
278558
- * @function create
278559
- * @memberof UserOnboardingTopicResponses
278560
- * @static
278561
- * @param {UserOnboardingTopicResponses.$Properties=} [properties] Properties to set
278562
- * @returns {UserOnboardingTopicResponses} UserOnboardingTopicResponses instance
278563
- * @type {{
278564
- * (properties: UserOnboardingTopicResponses.$Shape): UserOnboardingTopicResponses & UserOnboardingTopicResponses.$Shape;
278565
- * (properties?: UserOnboardingTopicResponses.$Properties): UserOnboardingTopicResponses;
278566
- * }}
278567
- */
278568
- UserOnboardingTopicResponses.create = function create(properties) {
278569
- return new UserOnboardingTopicResponses(properties);
278570
- };
278571
-
278572
- /**
278573
- * Encodes the specified UserOnboardingTopicResponses message. Does not implicitly {@link UserOnboardingTopicResponses.verify|verify} messages.
278574
- * @function encode
278575
- * @memberof UserOnboardingTopicResponses
278576
- * @static
278577
- * @param {UserOnboardingTopicResponses.$Properties} message UserOnboardingTopicResponses message or plain object to encode
278578
- * @param {$protobuf.Writer} [writer] Writer to encode to
278579
- * @returns {$protobuf.Writer} Writer
278580
- */
278581
- UserOnboardingTopicResponses.encode = function encode(message, writer) {
278582
- if (!writer)
278583
- writer = $Writer.create();
278584
- if (message.userId != null && Object.hasOwnProperty.call(message, "userId"))
278585
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
278586
- if (message.onboardTopics != null && message.onboardTopics.length)
278587
- for (let i = 0; i < message.onboardTopics.length; ++i)
278588
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.onboardTopics[i]);
278589
- if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
278590
- for (let i = 0; i < message.$unknowns.length; ++i)
278591
- writer.raw(message.$unknowns[i]);
278592
- return writer;
278593
- };
278594
-
278595
- /**
278596
- * Encodes the specified UserOnboardingTopicResponses message, length delimited. Does not implicitly {@link UserOnboardingTopicResponses.verify|verify} messages.
278597
- * @function encodeDelimited
278598
- * @memberof UserOnboardingTopicResponses
278599
- * @static
278600
- * @param {UserOnboardingTopicResponses.$Properties} message UserOnboardingTopicResponses message or plain object to encode
278601
- * @param {$protobuf.Writer} [writer] Writer to encode to
278602
- * @returns {$protobuf.Writer} Writer
278603
- */
278604
- UserOnboardingTopicResponses.encodeDelimited = function encodeDelimited(message, writer) {
278605
- return this.encode(message, writer).ldelim();
278606
- };
278607
-
278608
- /**
278609
- * Decodes a UserOnboardingTopicResponses message from the specified reader or buffer.
278610
- * @function decode
278611
- * @memberof UserOnboardingTopicResponses
278612
- * @static
278613
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
278614
- * @param {number} [length] Message length if known beforehand
278615
- * @returns {UserOnboardingTopicResponses & UserOnboardingTopicResponses.$Shape} UserOnboardingTopicResponses
278616
- * @throws {Error} If the payload is not a reader or valid buffer
278617
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
278618
- */
278619
- UserOnboardingTopicResponses.decode = function decode(reader, length, _end, _depth, _target) {
278620
- if (!(reader instanceof $Reader))
278621
- reader = $Reader.create(reader);
278622
- if (_depth === undefined)
278623
- _depth = 0;
278624
- if (_depth > $Reader.recursionLimit)
278625
- throw Error("max depth exceeded");
278626
- let end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.UserOnboardingTopicResponses(), value;
278627
- while (reader.pos < end) {
278628
- let start = reader.pos;
278629
- let tag = reader.tag();
278630
- if (tag === _end) {
278631
- _end = undefined;
278632
- break;
278633
- }
278634
- let wireType = tag & 7;
278635
- switch (tag >>>= 3) {
278636
- case 1: {
278637
- if (wireType !== 2)
278638
- break;
278639
- if ((value = reader.string()).length)
278640
- message.userId = value;
278641
- else
278642
- delete message.userId;
278643
- continue;
278644
- }
278645
- case 2: {
278646
- if (wireType !== 2)
278647
- break;
278648
- if (!(message.onboardTopics && message.onboardTopics.length))
278649
- message.onboardTopics = [];
278650
- message.onboardTopics.push(reader.string());
278651
- continue;
278652
- }
278653
- }
278654
- reader.skipType(wireType, _depth, tag);
278655
- $util.makeProp(message, "$unknowns", false);
278656
- (message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
278657
- }
278658
- if (_end !== undefined)
278659
- throw Error("missing end group");
278660
- return message;
278661
- };
278662
-
278663
- /**
278664
- * Decodes a UserOnboardingTopicResponses message from the specified reader or buffer, length delimited.
278665
- * @function decodeDelimited
278666
- * @memberof UserOnboardingTopicResponses
278667
- * @static
278668
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
278669
- * @returns {UserOnboardingTopicResponses & UserOnboardingTopicResponses.$Shape} UserOnboardingTopicResponses
278670
- * @throws {Error} If the payload is not a reader or valid buffer
278671
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
278672
- */
278673
- UserOnboardingTopicResponses.decodeDelimited = function decodeDelimited(reader) {
278674
- if (!(reader instanceof $Reader))
278675
- reader = new $Reader(reader);
278676
- return this.decode(reader, reader.uint32());
278677
- };
278678
-
278679
- /**
278680
- * Verifies a UserOnboardingTopicResponses message.
278681
- * @function verify
278682
- * @memberof UserOnboardingTopicResponses
278683
- * @static
278684
- * @param {Object.<string,*>} message Plain object to verify
278685
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
278686
- */
278687
- UserOnboardingTopicResponses.verify = function verify(message, _depth) {
278688
- if (typeof message !== "object" || message === null)
278689
- return "object expected";
278690
- if (_depth === undefined)
278691
- _depth = 0;
278692
- if (_depth > $util.recursionLimit)
278693
- return "max depth exceeded";
278694
- if (message.userId != null && message.hasOwnProperty("userId"))
278695
- if (!$util.isString(message.userId))
278696
- return "userId: string expected";
278697
- if (message.onboardTopics != null && message.hasOwnProperty("onboardTopics")) {
278698
- if (!Array.isArray(message.onboardTopics))
278699
- return "onboardTopics: array expected";
278700
- for (let i = 0; i < message.onboardTopics.length; ++i)
278701
- if (!$util.isString(message.onboardTopics[i]))
278702
- return "onboardTopics: string[] expected";
278703
- }
278704
- return null;
278705
- };
278706
-
278707
- /**
278708
- * Creates a UserOnboardingTopicResponses message from a plain object. Also converts values to their respective internal types.
278709
- * @function fromObject
278710
- * @memberof UserOnboardingTopicResponses
278711
- * @static
278712
- * @param {Object.<string,*>} object Plain object
278713
- * @returns {UserOnboardingTopicResponses} UserOnboardingTopicResponses
278714
- */
278715
- UserOnboardingTopicResponses.fromObject = function fromObject(object, _depth) {
278716
- if (object instanceof $root.UserOnboardingTopicResponses)
278717
- return object;
278718
- if (_depth === undefined)
278719
- _depth = 0;
278720
- if (_depth > $util.recursionLimit)
278721
- throw Error("max depth exceeded");
278722
- let message = new $root.UserOnboardingTopicResponses();
278723
- if (object.userId != null)
278724
- if (typeof object.userId !== "string" || object.userId.length)
278725
- message.userId = String(object.userId);
278726
- if (object.onboardTopics) {
278727
- if (!Array.isArray(object.onboardTopics))
278728
- throw TypeError(".UserOnboardingTopicResponses.onboardTopics: array expected");
278729
- message.onboardTopics = Array(object.onboardTopics.length);
278730
- for (let i = 0; i < object.onboardTopics.length; ++i)
278731
- message.onboardTopics[i] = String(object.onboardTopics[i]);
278732
- }
278733
- return message;
278734
- };
278735
-
278736
- /**
278737
- * Creates a plain object from a UserOnboardingTopicResponses message. Also converts values to other types if specified.
278738
- * @function toObject
278739
- * @memberof UserOnboardingTopicResponses
278740
- * @static
278741
- * @param {UserOnboardingTopicResponses} message UserOnboardingTopicResponses
278742
- * @param {$protobuf.IConversionOptions} [options] Conversion options
278743
- * @returns {Object.<string,*>} Plain object
278744
- */
278745
- UserOnboardingTopicResponses.toObject = function toObject(message, options) {
278746
- if (!options)
278747
- options = {};
278748
- let object = {};
278749
- if (options.arrays || options.defaults)
278750
- object.onboardTopics = [];
278751
- if (options.defaults)
278752
- object.userId = "";
278753
- if (message.userId != null && message.hasOwnProperty("userId"))
278754
- object.userId = message.userId;
278755
- if (message.onboardTopics && message.onboardTopics.length) {
278756
- object.onboardTopics = Array(message.onboardTopics.length);
278757
- for (let j = 0; j < message.onboardTopics.length; ++j)
278758
- object.onboardTopics[j] = message.onboardTopics[j];
278759
- }
278760
- return object;
278761
- };
278762
-
278763
- /**
278764
- * Converts this UserOnboardingTopicResponses to JSON.
278765
- * @function toJSON
278766
- * @memberof UserOnboardingTopicResponses
278767
- * @instance
278768
- * @returns {Object.<string,*>} JSON object
278769
- */
278770
- UserOnboardingTopicResponses.prototype.toJSON = function toJSON() {
278771
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
278772
- };
278773
-
278774
- /**
278775
- * Gets the type url for UserOnboardingTopicResponses
278776
- * @function getTypeUrl
278777
- * @memberof UserOnboardingTopicResponses
278778
- * @static
278779
- * @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
278780
- * @returns {string} The type url
278781
- */
278782
- UserOnboardingTopicResponses.getTypeUrl = function getTypeUrl(prefix) {
278783
- if (prefix === undefined)
278784
- prefix = "type.googleapis.com";
278785
- return prefix + "/UserOnboardingTopicResponses";
278786
- };
278787
-
278788
- return UserOnboardingTopicResponses;
278789
- })();
278790
-
278791
278547
  export const UserOnboardingPrimaryTopicSelected = $root.UserOnboardingPrimaryTopicSelected = (() => {
278792
278548
 
278793
278549
  /**
package/package.json CHANGED
@@ -16,7 +16,7 @@
16
16
  "main": "lib/index.js",
17
17
  "name": "@headspace/protos-events",
18
18
  "typings": "lib/index.d.ts",
19
- "version": "1.860.0",
19
+ "version": "1.862.0",
20
20
  "exports": {
21
21
  ".": {
22
22
  "import": {