@headspace/protos-events 1.748.0 → 1.750.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
@@ -58679,6 +58679,9 @@ export namespace clinical {
58679
58679
 
58680
58680
  /** ClinicalOrganization futureEnrollmentFlowSubscriptionId */
58681
58681
  futureEnrollmentFlowSubscriptionId?: (string|null);
58682
+
58683
+ /** ClinicalOrganization enabledProductFeatures */
58684
+ enabledProductFeatures?: (string[]|null);
58682
58685
  }
58683
58686
 
58684
58687
  /** Represents a ClinicalOrganization. */
@@ -58765,6 +58768,9 @@ export namespace clinical {
58765
58768
  /** ClinicalOrganization futureEnrollmentFlowSubscriptionId. */
58766
58769
  public futureEnrollmentFlowSubscriptionId: string;
58767
58770
 
58771
+ /** ClinicalOrganization enabledProductFeatures. */
58772
+ public enabledProductFeatures: string[];
58773
+
58768
58774
  /**
58769
58775
  * Creates a new ClinicalOrganization instance using the specified properties.
58770
58776
  * @param [properties] Properties to set
@@ -61572,7 +61578,7 @@ export namespace clinical {
61572
61578
  webSessionId?: (string|null);
61573
61579
 
61574
61580
  /** UnifiedAvailabilityOffered source */
61575
- source?: (clinical.ClinicalAvailabilitySource|null);
61581
+ source?: (clinical.ClinicalAppointmentSource|null);
61576
61582
 
61577
61583
  /** UnifiedAvailabilityOffered states */
61578
61584
  states?: (string[]|null);
@@ -61648,7 +61654,7 @@ export namespace clinical {
61648
61654
  public webSessionId: string;
61649
61655
 
61650
61656
  /** UnifiedAvailabilityOffered source. */
61651
- public source: clinical.ClinicalAvailabilitySource;
61657
+ public source: clinical.ClinicalAppointmentSource;
61652
61658
 
61653
61659
  /** UnifiedAvailabilityOffered states. */
61654
61660
  public states: string[];
package/lib/index.js CHANGED
@@ -166885,6 +166885,7 @@ $root.clinical = (function() {
166885
166885
  * @property {b2b.EnrollmentFlow|null} [currentEnrollmentFlowType] ClinicalOrganization currentEnrollmentFlowType
166886
166886
  * @property {b2b.EnrollmentFlow|null} [futureEnrollmentFlowType] ClinicalOrganization futureEnrollmentFlowType
166887
166887
  * @property {string|null} [futureEnrollmentFlowSubscriptionId] ClinicalOrganization futureEnrollmentFlowSubscriptionId
166888
+ * @property {Array.<string>|null} [enabledProductFeatures] ClinicalOrganization enabledProductFeatures
166888
166889
  */
166889
166890
 
166890
166891
  /**
@@ -166896,6 +166897,7 @@ $root.clinical = (function() {
166896
166897
  * @param {clinical.IClinicalOrganization=} [properties] Properties to set
166897
166898
  */
166898
166899
  function ClinicalOrganization(properties) {
166900
+ this.enabledProductFeatures = [];
166899
166901
  if (properties)
166900
166902
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
166901
166903
  if (properties[keys[i]] != null)
@@ -167102,6 +167104,14 @@ $root.clinical = (function() {
167102
167104
  */
167103
167105
  ClinicalOrganization.prototype.futureEnrollmentFlowSubscriptionId = "";
167104
167106
 
167107
+ /**
167108
+ * ClinicalOrganization enabledProductFeatures.
167109
+ * @member {Array.<string>} enabledProductFeatures
167110
+ * @memberof clinical.ClinicalOrganization
167111
+ * @instance
167112
+ */
167113
+ ClinicalOrganization.prototype.enabledProductFeatures = $util.emptyArray;
167114
+
167105
167115
  /**
167106
167116
  * Creates a new ClinicalOrganization instance using the specified properties.
167107
167117
  * @function create
@@ -167176,6 +167186,9 @@ $root.clinical = (function() {
167176
167186
  writer.uint32(/* id 24, wireType 0 =*/192).int32(message.futureEnrollmentFlowType);
167177
167187
  if (message.futureEnrollmentFlowSubscriptionId != null && message.hasOwnProperty("futureEnrollmentFlowSubscriptionId"))
167178
167188
  writer.uint32(/* id 25, wireType 2 =*/202).string(message.futureEnrollmentFlowSubscriptionId);
167189
+ if (message.enabledProductFeatures != null && message.enabledProductFeatures.length)
167190
+ for (var i = 0; i < message.enabledProductFeatures.length; ++i)
167191
+ writer.uint32(/* id 26, wireType 2 =*/210).string(message.enabledProductFeatures[i]);
167179
167192
  return writer;
167180
167193
  };
167181
167194
 
@@ -167285,6 +167298,11 @@ $root.clinical = (function() {
167285
167298
  case 25:
167286
167299
  message.futureEnrollmentFlowSubscriptionId = reader.string();
167287
167300
  break;
167301
+ case 26:
167302
+ if (!(message.enabledProductFeatures && message.enabledProductFeatures.length))
167303
+ message.enabledProductFeatures = [];
167304
+ message.enabledProductFeatures.push(reader.string());
167305
+ break;
167288
167306
  default:
167289
167307
  reader.skipType(tag & 7);
167290
167308
  break;
@@ -167429,6 +167447,13 @@ $root.clinical = (function() {
167429
167447
  if (message.futureEnrollmentFlowSubscriptionId != null && message.hasOwnProperty("futureEnrollmentFlowSubscriptionId"))
167430
167448
  if (!$util.isString(message.futureEnrollmentFlowSubscriptionId))
167431
167449
  return "futureEnrollmentFlowSubscriptionId: string expected";
167450
+ if (message.enabledProductFeatures != null && message.hasOwnProperty("enabledProductFeatures")) {
167451
+ if (!Array.isArray(message.enabledProductFeatures))
167452
+ return "enabledProductFeatures: array expected";
167453
+ for (var i = 0; i < message.enabledProductFeatures.length; ++i)
167454
+ if (!$util.isString(message.enabledProductFeatures[i]))
167455
+ return "enabledProductFeatures: string[] expected";
167456
+ }
167432
167457
  return null;
167433
167458
  };
167434
167459
 
@@ -167593,6 +167618,13 @@ $root.clinical = (function() {
167593
167618
  }
167594
167619
  if (object.futureEnrollmentFlowSubscriptionId != null)
167595
167620
  message.futureEnrollmentFlowSubscriptionId = String(object.futureEnrollmentFlowSubscriptionId);
167621
+ if (object.enabledProductFeatures) {
167622
+ if (!Array.isArray(object.enabledProductFeatures))
167623
+ throw TypeError(".clinical.ClinicalOrganization.enabledProductFeatures: array expected");
167624
+ message.enabledProductFeatures = [];
167625
+ for (var i = 0; i < object.enabledProductFeatures.length; ++i)
167626
+ message.enabledProductFeatures[i] = String(object.enabledProductFeatures[i]);
167627
+ }
167596
167628
  return message;
167597
167629
  };
167598
167630
 
@@ -167609,6 +167641,8 @@ $root.clinical = (function() {
167609
167641
  if (!options)
167610
167642
  options = {};
167611
167643
  var object = {};
167644
+ if (options.arrays || options.defaults)
167645
+ object.enabledProductFeatures = [];
167612
167646
  if (options.defaults) {
167613
167647
  object.id = 0;
167614
167648
  object.parentId = 0;
@@ -167700,6 +167734,11 @@ $root.clinical = (function() {
167700
167734
  object.futureEnrollmentFlowType = options.enums === String ? $root.b2b.EnrollmentFlow[message.futureEnrollmentFlowType] : message.futureEnrollmentFlowType;
167701
167735
  if (message.futureEnrollmentFlowSubscriptionId != null && message.hasOwnProperty("futureEnrollmentFlowSubscriptionId"))
167702
167736
  object.futureEnrollmentFlowSubscriptionId = message.futureEnrollmentFlowSubscriptionId;
167737
+ if (message.enabledProductFeatures && message.enabledProductFeatures.length) {
167738
+ object.enabledProductFeatures = [];
167739
+ for (var j = 0; j < message.enabledProductFeatures.length; ++j)
167740
+ object.enabledProductFeatures[j] = message.enabledProductFeatures[j];
167741
+ }
167703
167742
  return object;
167704
167743
  };
167705
167744
 
@@ -176848,7 +176887,7 @@ $root.clinical = (function() {
176848
176887
  * @property {number|Long|null} [timeOffered] UnifiedAvailabilityOffered timeOffered
176849
176888
  * @property {number|Long|null} [appointmentTimestamp] UnifiedAvailabilityOffered appointmentTimestamp
176850
176889
  * @property {string|null} [webSessionId] UnifiedAvailabilityOffered webSessionId
176851
- * @property {clinical.ClinicalAvailabilitySource|null} [source] UnifiedAvailabilityOffered source
176890
+ * @property {clinical.ClinicalAppointmentSource|null} [source] UnifiedAvailabilityOffered source
176852
176891
  * @property {Array.<string>|null} [states] UnifiedAvailabilityOffered states
176853
176892
  * @property {number|Long|null} [lastUpdatedTime] UnifiedAvailabilityOffered lastUpdatedTime
176854
176893
  * @property {boolean|null} [isNetworkClinician] UnifiedAvailabilityOffered isNetworkClinician
@@ -177009,7 +177048,7 @@ $root.clinical = (function() {
177009
177048
 
177010
177049
  /**
177011
177050
  * UnifiedAvailabilityOffered source.
177012
- * @member {clinical.ClinicalAvailabilitySource} source
177051
+ * @member {clinical.ClinicalAppointmentSource} source
177013
177052
  * @memberof clinical.UnifiedAvailabilityOffered
177014
177053
  * @instance
177015
177054
  */
@@ -177332,6 +177371,12 @@ $root.clinical = (function() {
177332
177371
  case 2:
177333
177372
  case 3:
177334
177373
  case 4:
177374
+ case 5:
177375
+ case 6:
177376
+ case 7:
177377
+ case 8:
177378
+ case 9:
177379
+ case 10:
177335
177380
  break;
177336
177381
  }
177337
177382
  if (message.states != null && message.hasOwnProperty("states")) {
@@ -177502,26 +177547,50 @@ $root.clinical = (function() {
177502
177547
  if (object.webSessionId != null)
177503
177548
  message.webSessionId = String(object.webSessionId);
177504
177549
  switch (object.source) {
177505
- case "CLINICAL_AVAILABILITY_SOURCE_UNKNOWN":
177550
+ case "CLINICAL_APPOINTMENT_SOURCE_UNKNOWN":
177506
177551
  case 0:
177507
177552
  message.source = 0;
177508
177553
  break;
177509
- case "CLINICAL_AVAILABILITY_SOURCE_ADMIN":
177554
+ case "CLINICAL_APPOINTMENT_SOURCE_ADMIN_QA":
177510
177555
  case 1:
177511
177556
  message.source = 1;
177512
177557
  break;
177513
- case "CLINICAL_AVAILABILITY_SOURCE_CLINHUB":
177558
+ case "CLINICAL_APPOINTMENT_SOURCE_STAFF_DASHBOARD":
177514
177559
  case 2:
177515
177560
  message.source = 2;
177516
177561
  break;
177517
- case "CLINICAL_AVAILABILITY_SOURCE_GOOGLE_CALENDAR":
177562
+ case "CLINICAL_APPOINTMENT_SOURCE_CAS":
177518
177563
  case 3:
177519
177564
  message.source = 3;
177520
177565
  break;
177521
- case "CLINICAL_AVAILABILITY_SOURCE_CAS":
177566
+ case "CLINICAL_APPOINTMENT_SOURCE_CAS2":
177522
177567
  case 4:
177523
177568
  message.source = 4;
177524
177569
  break;
177570
+ case "CLINICAL_APPOINTMENT_SOURCE_CLINICAL_HUB":
177571
+ case 5:
177572
+ message.source = 5;
177573
+ break;
177574
+ case "CLINICAL_APPOINTMENT_SOURCE_DR_CHRONO":
177575
+ case 6:
177576
+ message.source = 6;
177577
+ break;
177578
+ case "CLINICAL_APPOINTMENT_SOURCE_TENTATIVE_TIMEOUT":
177579
+ case 7:
177580
+ message.source = 7;
177581
+ break;
177582
+ case "CLINICAL_APPOINTMENT_SOURCE_CELERY_TASK":
177583
+ case 8:
177584
+ message.source = 8;
177585
+ break;
177586
+ case "CLINICAL_APPOINTMENT_SOURCE_IN_APP_SCHEDULER":
177587
+ case 9:
177588
+ message.source = 9;
177589
+ break;
177590
+ case "CLINICAL_APPOINTMENT_SOURCE_ACCOUNT_DEACTIVATION":
177591
+ case 10:
177592
+ message.source = 10;
177593
+ break;
177525
177594
  }
177526
177595
  if (object.states) {
177527
177596
  if (!Array.isArray(object.states))
@@ -177623,7 +177692,7 @@ $root.clinical = (function() {
177623
177692
  } else
177624
177693
  object.appointmentTimestamp = options.longs === String ? "0" : 0;
177625
177694
  object.webSessionId = "";
177626
- object.source = options.enums === String ? "CLINICAL_AVAILABILITY_SOURCE_UNKNOWN" : 0;
177695
+ object.source = options.enums === String ? "CLINICAL_APPOINTMENT_SOURCE_UNKNOWN" : 0;
177627
177696
  if ($util.Long) {
177628
177697
  var long = new $util.Long(0, 0, true);
177629
177698
  object.lastUpdatedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
@@ -177691,7 +177760,7 @@ $root.clinical = (function() {
177691
177760
  if (message.webSessionId != null && message.hasOwnProperty("webSessionId"))
177692
177761
  object.webSessionId = message.webSessionId;
177693
177762
  if (message.source != null && message.hasOwnProperty("source"))
177694
- object.source = options.enums === String ? $root.clinical.ClinicalAvailabilitySource[message.source] : message.source;
177763
+ object.source = options.enums === String ? $root.clinical.ClinicalAppointmentSource[message.source] : message.source;
177695
177764
  if (message.states && message.states.length) {
177696
177765
  object.states = [];
177697
177766
  for (var j = 0; j < message.states.length; ++j)
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.748.0"
19
+ "version": "1.750.0"
20
20
  }