@headspace/protos-events 1.597.0 → 1.598.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.ts CHANGED
@@ -32138,6 +32138,9 @@ export interface IClinicalAppointment {
32138
32138
 
32139
32139
  /** ClinicalAppointment clinicalNote */
32140
32140
  clinicalNote?: (ClinicalAppointment.IClinicalAppointmentNote|null);
32141
+
32142
+ /** ClinicalAppointment availabilities */
32143
+ availabilities?: (clinical.IClinicalAvailability[]|null);
32141
32144
  }
32142
32145
 
32143
32146
  /** Represents a ClinicalAppointment. */
@@ -32242,6 +32245,9 @@ export class ClinicalAppointment implements IClinicalAppointment {
32242
32245
  /** ClinicalAppointment clinicalNote. */
32243
32246
  public clinicalNote?: (ClinicalAppointment.IClinicalAppointmentNote|null);
32244
32247
 
32248
+ /** ClinicalAppointment availabilities. */
32249
+ public availabilities: clinical.IClinicalAvailability[];
32250
+
32245
32251
  /**
32246
32252
  * Creates a new ClinicalAppointment instance using the specified properties.
32247
32253
  * @param [properties] Properties to set
package/lib/index.js CHANGED
@@ -91237,6 +91237,7 @@ $root.ClinicalAppointment = (function() {
91237
91237
  * @property {string|null} [userStateShort] ClinicalAppointment userStateShort
91238
91238
  * @property {string|null} [userInsuranceId] ClinicalAppointment userInsuranceId
91239
91239
  * @property {ClinicalAppointment.IClinicalAppointmentNote|null} [clinicalNote] ClinicalAppointment clinicalNote
91240
+ * @property {Array.<clinical.IClinicalAvailability>|null} [availabilities] ClinicalAppointment availabilities
91240
91241
  */
91241
91242
 
91242
91243
  /**
@@ -91248,6 +91249,7 @@ $root.ClinicalAppointment = (function() {
91248
91249
  * @param {IClinicalAppointment=} [properties] Properties to set
91249
91250
  */
91250
91251
  function ClinicalAppointment(properties) {
91252
+ this.availabilities = [];
91251
91253
  if (properties)
91252
91254
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
91253
91255
  if (properties[keys[i]] != null)
@@ -91502,6 +91504,14 @@ $root.ClinicalAppointment = (function() {
91502
91504
  */
91503
91505
  ClinicalAppointment.prototype.clinicalNote = null;
91504
91506
 
91507
+ /**
91508
+ * ClinicalAppointment availabilities.
91509
+ * @member {Array.<clinical.IClinicalAvailability>} availabilities
91510
+ * @memberof ClinicalAppointment
91511
+ * @instance
91512
+ */
91513
+ ClinicalAppointment.prototype.availabilities = $util.emptyArray;
91514
+
91505
91515
  /**
91506
91516
  * Creates a new ClinicalAppointment instance using the specified properties.
91507
91517
  * @function create
@@ -91588,6 +91598,9 @@ $root.ClinicalAppointment = (function() {
91588
91598
  writer.uint32(/* id 42, wireType 2 =*/338).string(message.userInsuranceId);
91589
91599
  if (message.clinicalNote != null && message.hasOwnProperty("clinicalNote"))
91590
91600
  $root.ClinicalAppointment.ClinicalAppointmentNote.encode(message.clinicalNote, writer.uint32(/* id 43, wireType 2 =*/346).fork()).ldelim();
91601
+ if (message.availabilities != null && message.availabilities.length)
91602
+ for (var i = 0; i < message.availabilities.length; ++i)
91603
+ $root.clinical.ClinicalAvailability.encode(message.availabilities[i], writer.uint32(/* id 44, wireType 2 =*/354).fork()).ldelim();
91591
91604
  return writer;
91592
91605
  };
91593
91606
 
@@ -91715,6 +91728,11 @@ $root.ClinicalAppointment = (function() {
91715
91728
  case 43:
91716
91729
  message.clinicalNote = $root.ClinicalAppointment.ClinicalAppointmentNote.decode(reader, reader.uint32());
91717
91730
  break;
91731
+ case 44:
91732
+ if (!(message.availabilities && message.availabilities.length))
91733
+ message.availabilities = [];
91734
+ message.availabilities.push($root.clinical.ClinicalAvailability.decode(reader, reader.uint32()));
91735
+ break;
91718
91736
  default:
91719
91737
  reader.skipType(tag & 7);
91720
91738
  break;
@@ -91949,6 +91967,15 @@ $root.ClinicalAppointment = (function() {
91949
91967
  if (error)
91950
91968
  return "clinicalNote." + error;
91951
91969
  }
91970
+ if (message.availabilities != null && message.hasOwnProperty("availabilities")) {
91971
+ if (!Array.isArray(message.availabilities))
91972
+ return "availabilities: array expected";
91973
+ for (var i = 0; i < message.availabilities.length; ++i) {
91974
+ var error = $root.clinical.ClinicalAvailability.verify(message.availabilities[i]);
91975
+ if (error)
91976
+ return "availabilities." + error;
91977
+ }
91978
+ }
91952
91979
  return null;
91953
91980
  };
91954
91981
 
@@ -92429,6 +92456,16 @@ $root.ClinicalAppointment = (function() {
92429
92456
  throw TypeError(".ClinicalAppointment.clinicalNote: object expected");
92430
92457
  message.clinicalNote = $root.ClinicalAppointment.ClinicalAppointmentNote.fromObject(object.clinicalNote);
92431
92458
  }
92459
+ if (object.availabilities) {
92460
+ if (!Array.isArray(object.availabilities))
92461
+ throw TypeError(".ClinicalAppointment.availabilities: array expected");
92462
+ message.availabilities = [];
92463
+ for (var i = 0; i < object.availabilities.length; ++i) {
92464
+ if (typeof object.availabilities[i] !== "object")
92465
+ throw TypeError(".ClinicalAppointment.availabilities: object expected");
92466
+ message.availabilities[i] = $root.clinical.ClinicalAvailability.fromObject(object.availabilities[i]);
92467
+ }
92468
+ }
92432
92469
  return message;
92433
92470
  };
92434
92471
 
@@ -92445,6 +92482,8 @@ $root.ClinicalAppointment = (function() {
92445
92482
  if (!options)
92446
92483
  options = {};
92447
92484
  var object = {};
92485
+ if (options.arrays || options.defaults)
92486
+ object.availabilities = [];
92448
92487
  if (options.defaults) {
92449
92488
  object.gingerMemberId = "";
92450
92489
  object.clinicianId = "";
@@ -92589,6 +92628,11 @@ $root.ClinicalAppointment = (function() {
92589
92628
  object.userInsuranceId = message.userInsuranceId;
92590
92629
  if (message.clinicalNote != null && message.hasOwnProperty("clinicalNote"))
92591
92630
  object.clinicalNote = $root.ClinicalAppointment.ClinicalAppointmentNote.toObject(message.clinicalNote, options);
92631
+ if (message.availabilities && message.availabilities.length) {
92632
+ object.availabilities = [];
92633
+ for (var j = 0; j < message.availabilities.length; ++j)
92634
+ object.availabilities[j] = $root.clinical.ClinicalAvailability.toObject(message.availabilities[j], options);
92635
+ }
92592
92636
  return object;
92593
92637
  };
92594
92638
 
package/package.json CHANGED
@@ -16,5 +16,5 @@
16
16
  "main": "lib/index.js",
17
17
  "name": "@headspace/protos-events",
18
18
  "typings": "lib/index.d.ts",
19
- "version": "1.597.0"
19
+ "version": "1.598.0"
20
20
  }