@headspace/protos-events 1.737.0 → 1.738.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 +181 -7
  2. package/lib/index.js +669 -16
  3. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -58577,13 +58577,6 @@ export namespace clinical {
58577
58577
  public toJSON(): { [k: string]: any };
58578
58578
  }
58579
58579
 
58580
- /** ClinicianType enum. */
58581
- enum ClinicianType {
58582
- CLINICIAN_TYPE_UNKNOWN = 0,
58583
- CLINICIAN_TYPE_THERAPIST = 1,
58584
- CLINICIAN_TYPE_PSYCHIATRIST = 2
58585
- }
58586
-
58587
58580
  /** ClinicianStatus enum. */
58588
58581
  enum ClinicianStatus {
58589
58582
  CLINICIAN_STATUS_UNKNOWN = 0,
@@ -59660,6 +59653,13 @@ export namespace clinical {
59660
59653
  UNIFIED_CLINICAL_AVAILABILITY_OFFER_CREATOR_TYPE_MEMBER_SUPPORT = 2
59661
59654
  }
59662
59655
 
59656
+ /** ClinicianType enum. */
59657
+ enum ClinicianType {
59658
+ CLINICIAN_TYPE_UNKNOWN = 0,
59659
+ CLINICIAN_TYPE_THERAPIST = 1,
59660
+ CLINICIAN_TYPE_PSYCHIATRIST = 2
59661
+ }
59662
+
59663
59663
  /** Properties of a GuardianRelationship. */
59664
59664
  interface IGuardianRelationship {
59665
59665
 
@@ -59774,6 +59774,180 @@ export namespace clinical {
59774
59774
  public toJSON(): { [k: string]: any };
59775
59775
  }
59776
59776
 
59777
+ /** Properties of a PartnerClinicianExported. */
59778
+ interface IPartnerClinicianExported {
59779
+
59780
+ /** PartnerClinicianExported id */
59781
+ id?: (string|null);
59782
+
59783
+ /** PartnerClinicianExported partnerSource */
59784
+ partnerSource?: (clinical.ClinicalPartnerSource|null);
59785
+
59786
+ /** PartnerClinicianExported externalId */
59787
+ externalId?: (string|null);
59788
+
59789
+ /** PartnerClinicianExported npi */
59790
+ npi?: (string|null);
59791
+
59792
+ /** PartnerClinicianExported providerRole */
59793
+ providerRole?: (clinical.ClinicianType|null);
59794
+
59795
+ /** PartnerClinicianExported hasPhysicalLocation */
59796
+ hasPhysicalLocation?: (boolean|null);
59797
+
59798
+ /** PartnerClinicianExported fullName */
59799
+ fullName?: (string|null);
59800
+
59801
+ /** PartnerClinicianExported timeCreated */
59802
+ timeCreated?: (number|Long|null);
59803
+
59804
+ /** PartnerClinicianExported timeUpdated */
59805
+ timeUpdated?: (number|Long|null);
59806
+
59807
+ /** PartnerClinicianExported clinicalSpecialties */
59808
+ clinicalSpecialties?: (string[]|null);
59809
+
59810
+ /** PartnerClinicianExported therapyModalities */
59811
+ therapyModalities?: (string[]|null);
59812
+
59813
+ /** PartnerClinicianExported genders */
59814
+ genders?: (string[]|null);
59815
+
59816
+ /** PartnerClinicianExported races */
59817
+ races?: (string[]|null);
59818
+
59819
+ /** PartnerClinicianExported languageSpecialties */
59820
+ languageSpecialties?: (string[]|null);
59821
+
59822
+ /** PartnerClinicianExported ageRangeSpecialties */
59823
+ ageRangeSpecialties?: (string[]|null);
59824
+ }
59825
+
59826
+ /** Represents a PartnerClinicianExported. */
59827
+ class PartnerClinicianExported implements IPartnerClinicianExported {
59828
+
59829
+ /**
59830
+ * Constructs a new PartnerClinicianExported.
59831
+ * @param [properties] Properties to set
59832
+ */
59833
+ constructor(properties?: clinical.IPartnerClinicianExported);
59834
+
59835
+ /** PartnerClinicianExported id. */
59836
+ public id: string;
59837
+
59838
+ /** PartnerClinicianExported partnerSource. */
59839
+ public partnerSource: clinical.ClinicalPartnerSource;
59840
+
59841
+ /** PartnerClinicianExported externalId. */
59842
+ public externalId: string;
59843
+
59844
+ /** PartnerClinicianExported npi. */
59845
+ public npi: string;
59846
+
59847
+ /** PartnerClinicianExported providerRole. */
59848
+ public providerRole: clinical.ClinicianType;
59849
+
59850
+ /** PartnerClinicianExported hasPhysicalLocation. */
59851
+ public hasPhysicalLocation: boolean;
59852
+
59853
+ /** PartnerClinicianExported fullName. */
59854
+ public fullName: string;
59855
+
59856
+ /** PartnerClinicianExported timeCreated. */
59857
+ public timeCreated: (number|Long);
59858
+
59859
+ /** PartnerClinicianExported timeUpdated. */
59860
+ public timeUpdated: (number|Long);
59861
+
59862
+ /** PartnerClinicianExported clinicalSpecialties. */
59863
+ public clinicalSpecialties: string[];
59864
+
59865
+ /** PartnerClinicianExported therapyModalities. */
59866
+ public therapyModalities: string[];
59867
+
59868
+ /** PartnerClinicianExported genders. */
59869
+ public genders: string[];
59870
+
59871
+ /** PartnerClinicianExported races. */
59872
+ public races: string[];
59873
+
59874
+ /** PartnerClinicianExported languageSpecialties. */
59875
+ public languageSpecialties: string[];
59876
+
59877
+ /** PartnerClinicianExported ageRangeSpecialties. */
59878
+ public ageRangeSpecialties: string[];
59879
+
59880
+ /**
59881
+ * Creates a new PartnerClinicianExported instance using the specified properties.
59882
+ * @param [properties] Properties to set
59883
+ * @returns PartnerClinicianExported instance
59884
+ */
59885
+ public static create(properties?: clinical.IPartnerClinicianExported): clinical.PartnerClinicianExported;
59886
+
59887
+ /**
59888
+ * Encodes the specified PartnerClinicianExported message. Does not implicitly {@link clinical.PartnerClinicianExported.verify|verify} messages.
59889
+ * @param message PartnerClinicianExported message or plain object to encode
59890
+ * @param [writer] Writer to encode to
59891
+ * @returns Writer
59892
+ */
59893
+ public static encode(message: clinical.IPartnerClinicianExported, writer?: $protobuf.Writer): $protobuf.Writer;
59894
+
59895
+ /**
59896
+ * Encodes the specified PartnerClinicianExported message, length delimited. Does not implicitly {@link clinical.PartnerClinicianExported.verify|verify} messages.
59897
+ * @param message PartnerClinicianExported message or plain object to encode
59898
+ * @param [writer] Writer to encode to
59899
+ * @returns Writer
59900
+ */
59901
+ public static encodeDelimited(message: clinical.IPartnerClinicianExported, writer?: $protobuf.Writer): $protobuf.Writer;
59902
+
59903
+ /**
59904
+ * Decodes a PartnerClinicianExported message from the specified reader or buffer.
59905
+ * @param reader Reader or buffer to decode from
59906
+ * @param [length] Message length if known beforehand
59907
+ * @returns PartnerClinicianExported
59908
+ * @throws {Error} If the payload is not a reader or valid buffer
59909
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
59910
+ */
59911
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): clinical.PartnerClinicianExported;
59912
+
59913
+ /**
59914
+ * Decodes a PartnerClinicianExported message from the specified reader or buffer, length delimited.
59915
+ * @param reader Reader or buffer to decode from
59916
+ * @returns PartnerClinicianExported
59917
+ * @throws {Error} If the payload is not a reader or valid buffer
59918
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
59919
+ */
59920
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): clinical.PartnerClinicianExported;
59921
+
59922
+ /**
59923
+ * Verifies a PartnerClinicianExported message.
59924
+ * @param message Plain object to verify
59925
+ * @returns `null` if valid, otherwise the reason why it is not
59926
+ */
59927
+ public static verify(message: { [k: string]: any }): (string|null);
59928
+
59929
+ /**
59930
+ * Creates a PartnerClinicianExported message from a plain object. Also converts values to their respective internal types.
59931
+ * @param object Plain object
59932
+ * @returns PartnerClinicianExported
59933
+ */
59934
+ public static fromObject(object: { [k: string]: any }): clinical.PartnerClinicianExported;
59935
+
59936
+ /**
59937
+ * Creates a plain object from a PartnerClinicianExported message. Also converts values to other types if specified.
59938
+ * @param message PartnerClinicianExported
59939
+ * @param [options] Conversion options
59940
+ * @returns Plain object
59941
+ */
59942
+ public static toObject(message: clinical.PartnerClinicianExported, options?: $protobuf.IConversionOptions): { [k: string]: any };
59943
+
59944
+ /**
59945
+ * Converts this PartnerClinicianExported to JSON.
59946
+ * @returns JSON object
59947
+ */
59948
+ public toJSON(): { [k: string]: any };
59949
+ }
59950
+
59777
59951
  /** Properties of an UnifiedAvailabilityOffered. */
59778
59952
  interface IUnifiedAvailabilityOffered {
59779
59953
 
package/lib/index.js CHANGED
@@ -167768,22 +167768,6 @@ $root.clinical = (function() {
167768
167768
  return Clinician;
167769
167769
  })();
167770
167770
 
167771
- /**
167772
- * ClinicianType enum.
167773
- * @name clinical.ClinicianType
167774
- * @enum {string}
167775
- * @property {number} CLINICIAN_TYPE_UNKNOWN=0 CLINICIAN_TYPE_UNKNOWN value
167776
- * @property {number} CLINICIAN_TYPE_THERAPIST=1 CLINICIAN_TYPE_THERAPIST value
167777
- * @property {number} CLINICIAN_TYPE_PSYCHIATRIST=2 CLINICIAN_TYPE_PSYCHIATRIST value
167778
- */
167779
- clinical.ClinicianType = (function() {
167780
- var valuesById = {}, values = Object.create(valuesById);
167781
- values[valuesById[0] = "CLINICIAN_TYPE_UNKNOWN"] = 0;
167782
- values[valuesById[1] = "CLINICIAN_TYPE_THERAPIST"] = 1;
167783
- values[valuesById[2] = "CLINICIAN_TYPE_PSYCHIATRIST"] = 2;
167784
- return values;
167785
- })();
167786
-
167787
167771
  /**
167788
167772
  * ClinicianStatus enum.
167789
167773
  * @name clinical.ClinicianStatus
@@ -171611,6 +171595,22 @@ $root.clinical = (function() {
171611
171595
  return values;
171612
171596
  })();
171613
171597
 
171598
+ /**
171599
+ * ClinicianType enum.
171600
+ * @name clinical.ClinicianType
171601
+ * @enum {string}
171602
+ * @property {number} CLINICIAN_TYPE_UNKNOWN=0 CLINICIAN_TYPE_UNKNOWN value
171603
+ * @property {number} CLINICIAN_TYPE_THERAPIST=1 CLINICIAN_TYPE_THERAPIST value
171604
+ * @property {number} CLINICIAN_TYPE_PSYCHIATRIST=2 CLINICIAN_TYPE_PSYCHIATRIST value
171605
+ */
171606
+ clinical.ClinicianType = (function() {
171607
+ var valuesById = {}, values = Object.create(valuesById);
171608
+ values[valuesById[0] = "CLINICIAN_TYPE_UNKNOWN"] = 0;
171609
+ values[valuesById[1] = "CLINICIAN_TYPE_THERAPIST"] = 1;
171610
+ values[valuesById[2] = "CLINICIAN_TYPE_PSYCHIATRIST"] = 2;
171611
+ return values;
171612
+ })();
171613
+
171614
171614
  clinical.GuardianRelationship = (function() {
171615
171615
 
171616
171616
  /**
@@ -171915,6 +171915,659 @@ $root.clinical = (function() {
171915
171915
  return GuardianRelationship;
171916
171916
  })();
171917
171917
 
171918
+ clinical.PartnerClinicianExported = (function() {
171919
+
171920
+ /**
171921
+ * Properties of a PartnerClinicianExported.
171922
+ * @memberof clinical
171923
+ * @interface IPartnerClinicianExported
171924
+ * @property {string|null} [id] PartnerClinicianExported id
171925
+ * @property {clinical.ClinicalPartnerSource|null} [partnerSource] PartnerClinicianExported partnerSource
171926
+ * @property {string|null} [externalId] PartnerClinicianExported externalId
171927
+ * @property {string|null} [npi] PartnerClinicianExported npi
171928
+ * @property {clinical.ClinicianType|null} [providerRole] PartnerClinicianExported providerRole
171929
+ * @property {boolean|null} [hasPhysicalLocation] PartnerClinicianExported hasPhysicalLocation
171930
+ * @property {string|null} [fullName] PartnerClinicianExported fullName
171931
+ * @property {number|Long|null} [timeCreated] PartnerClinicianExported timeCreated
171932
+ * @property {number|Long|null} [timeUpdated] PartnerClinicianExported timeUpdated
171933
+ * @property {Array.<string>|null} [clinicalSpecialties] PartnerClinicianExported clinicalSpecialties
171934
+ * @property {Array.<string>|null} [therapyModalities] PartnerClinicianExported therapyModalities
171935
+ * @property {Array.<string>|null} [genders] PartnerClinicianExported genders
171936
+ * @property {Array.<string>|null} [races] PartnerClinicianExported races
171937
+ * @property {Array.<string>|null} [languageSpecialties] PartnerClinicianExported languageSpecialties
171938
+ * @property {Array.<string>|null} [ageRangeSpecialties] PartnerClinicianExported ageRangeSpecialties
171939
+ */
171940
+
171941
+ /**
171942
+ * Constructs a new PartnerClinicianExported.
171943
+ * @memberof clinical
171944
+ * @classdesc Represents a PartnerClinicianExported.
171945
+ * @implements IPartnerClinicianExported
171946
+ * @constructor
171947
+ * @param {clinical.IPartnerClinicianExported=} [properties] Properties to set
171948
+ */
171949
+ function PartnerClinicianExported(properties) {
171950
+ this.clinicalSpecialties = [];
171951
+ this.therapyModalities = [];
171952
+ this.genders = [];
171953
+ this.races = [];
171954
+ this.languageSpecialties = [];
171955
+ this.ageRangeSpecialties = [];
171956
+ if (properties)
171957
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
171958
+ if (properties[keys[i]] != null)
171959
+ this[keys[i]] = properties[keys[i]];
171960
+ }
171961
+
171962
+ /**
171963
+ * PartnerClinicianExported id.
171964
+ * @member {string} id
171965
+ * @memberof clinical.PartnerClinicianExported
171966
+ * @instance
171967
+ */
171968
+ PartnerClinicianExported.prototype.id = "";
171969
+
171970
+ /**
171971
+ * PartnerClinicianExported partnerSource.
171972
+ * @member {clinical.ClinicalPartnerSource} partnerSource
171973
+ * @memberof clinical.PartnerClinicianExported
171974
+ * @instance
171975
+ */
171976
+ PartnerClinicianExported.prototype.partnerSource = 0;
171977
+
171978
+ /**
171979
+ * PartnerClinicianExported externalId.
171980
+ * @member {string} externalId
171981
+ * @memberof clinical.PartnerClinicianExported
171982
+ * @instance
171983
+ */
171984
+ PartnerClinicianExported.prototype.externalId = "";
171985
+
171986
+ /**
171987
+ * PartnerClinicianExported npi.
171988
+ * @member {string} npi
171989
+ * @memberof clinical.PartnerClinicianExported
171990
+ * @instance
171991
+ */
171992
+ PartnerClinicianExported.prototype.npi = "";
171993
+
171994
+ /**
171995
+ * PartnerClinicianExported providerRole.
171996
+ * @member {clinical.ClinicianType} providerRole
171997
+ * @memberof clinical.PartnerClinicianExported
171998
+ * @instance
171999
+ */
172000
+ PartnerClinicianExported.prototype.providerRole = 0;
172001
+
172002
+ /**
172003
+ * PartnerClinicianExported hasPhysicalLocation.
172004
+ * @member {boolean} hasPhysicalLocation
172005
+ * @memberof clinical.PartnerClinicianExported
172006
+ * @instance
172007
+ */
172008
+ PartnerClinicianExported.prototype.hasPhysicalLocation = false;
172009
+
172010
+ /**
172011
+ * PartnerClinicianExported fullName.
172012
+ * @member {string} fullName
172013
+ * @memberof clinical.PartnerClinicianExported
172014
+ * @instance
172015
+ */
172016
+ PartnerClinicianExported.prototype.fullName = "";
172017
+
172018
+ /**
172019
+ * PartnerClinicianExported timeCreated.
172020
+ * @member {number|Long} timeCreated
172021
+ * @memberof clinical.PartnerClinicianExported
172022
+ * @instance
172023
+ */
172024
+ PartnerClinicianExported.prototype.timeCreated = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
172025
+
172026
+ /**
172027
+ * PartnerClinicianExported timeUpdated.
172028
+ * @member {number|Long} timeUpdated
172029
+ * @memberof clinical.PartnerClinicianExported
172030
+ * @instance
172031
+ */
172032
+ PartnerClinicianExported.prototype.timeUpdated = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
172033
+
172034
+ /**
172035
+ * PartnerClinicianExported clinicalSpecialties.
172036
+ * @member {Array.<string>} clinicalSpecialties
172037
+ * @memberof clinical.PartnerClinicianExported
172038
+ * @instance
172039
+ */
172040
+ PartnerClinicianExported.prototype.clinicalSpecialties = $util.emptyArray;
172041
+
172042
+ /**
172043
+ * PartnerClinicianExported therapyModalities.
172044
+ * @member {Array.<string>} therapyModalities
172045
+ * @memberof clinical.PartnerClinicianExported
172046
+ * @instance
172047
+ */
172048
+ PartnerClinicianExported.prototype.therapyModalities = $util.emptyArray;
172049
+
172050
+ /**
172051
+ * PartnerClinicianExported genders.
172052
+ * @member {Array.<string>} genders
172053
+ * @memberof clinical.PartnerClinicianExported
172054
+ * @instance
172055
+ */
172056
+ PartnerClinicianExported.prototype.genders = $util.emptyArray;
172057
+
172058
+ /**
172059
+ * PartnerClinicianExported races.
172060
+ * @member {Array.<string>} races
172061
+ * @memberof clinical.PartnerClinicianExported
172062
+ * @instance
172063
+ */
172064
+ PartnerClinicianExported.prototype.races = $util.emptyArray;
172065
+
172066
+ /**
172067
+ * PartnerClinicianExported languageSpecialties.
172068
+ * @member {Array.<string>} languageSpecialties
172069
+ * @memberof clinical.PartnerClinicianExported
172070
+ * @instance
172071
+ */
172072
+ PartnerClinicianExported.prototype.languageSpecialties = $util.emptyArray;
172073
+
172074
+ /**
172075
+ * PartnerClinicianExported ageRangeSpecialties.
172076
+ * @member {Array.<string>} ageRangeSpecialties
172077
+ * @memberof clinical.PartnerClinicianExported
172078
+ * @instance
172079
+ */
172080
+ PartnerClinicianExported.prototype.ageRangeSpecialties = $util.emptyArray;
172081
+
172082
+ /**
172083
+ * Creates a new PartnerClinicianExported instance using the specified properties.
172084
+ * @function create
172085
+ * @memberof clinical.PartnerClinicianExported
172086
+ * @static
172087
+ * @param {clinical.IPartnerClinicianExported=} [properties] Properties to set
172088
+ * @returns {clinical.PartnerClinicianExported} PartnerClinicianExported instance
172089
+ */
172090
+ PartnerClinicianExported.create = function create(properties) {
172091
+ return new PartnerClinicianExported(properties);
172092
+ };
172093
+
172094
+ /**
172095
+ * Encodes the specified PartnerClinicianExported message. Does not implicitly {@link clinical.PartnerClinicianExported.verify|verify} messages.
172096
+ * @function encode
172097
+ * @memberof clinical.PartnerClinicianExported
172098
+ * @static
172099
+ * @param {clinical.IPartnerClinicianExported} message PartnerClinicianExported message or plain object to encode
172100
+ * @param {$protobuf.Writer} [writer] Writer to encode to
172101
+ * @returns {$protobuf.Writer} Writer
172102
+ */
172103
+ PartnerClinicianExported.encode = function encode(message, writer) {
172104
+ if (!writer)
172105
+ writer = $Writer.create();
172106
+ if (message.id != null && message.hasOwnProperty("id"))
172107
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
172108
+ if (message.partnerSource != null && message.hasOwnProperty("partnerSource"))
172109
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.partnerSource);
172110
+ if (message.externalId != null && message.hasOwnProperty("externalId"))
172111
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.externalId);
172112
+ if (message.npi != null && message.hasOwnProperty("npi"))
172113
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.npi);
172114
+ if (message.providerRole != null && message.hasOwnProperty("providerRole"))
172115
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.providerRole);
172116
+ if (message.hasPhysicalLocation != null && message.hasOwnProperty("hasPhysicalLocation"))
172117
+ writer.uint32(/* id 6, wireType 0 =*/48).bool(message.hasPhysicalLocation);
172118
+ if (message.fullName != null && message.hasOwnProperty("fullName"))
172119
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.fullName);
172120
+ if (message.timeCreated != null && message.hasOwnProperty("timeCreated"))
172121
+ writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.timeCreated);
172122
+ if (message.timeUpdated != null && message.hasOwnProperty("timeUpdated"))
172123
+ writer.uint32(/* id 9, wireType 0 =*/72).uint64(message.timeUpdated);
172124
+ if (message.clinicalSpecialties != null && message.clinicalSpecialties.length)
172125
+ for (var i = 0; i < message.clinicalSpecialties.length; ++i)
172126
+ writer.uint32(/* id 10, wireType 2 =*/82).string(message.clinicalSpecialties[i]);
172127
+ if (message.therapyModalities != null && message.therapyModalities.length)
172128
+ for (var i = 0; i < message.therapyModalities.length; ++i)
172129
+ writer.uint32(/* id 11, wireType 2 =*/90).string(message.therapyModalities[i]);
172130
+ if (message.genders != null && message.genders.length)
172131
+ for (var i = 0; i < message.genders.length; ++i)
172132
+ writer.uint32(/* id 12, wireType 2 =*/98).string(message.genders[i]);
172133
+ if (message.races != null && message.races.length)
172134
+ for (var i = 0; i < message.races.length; ++i)
172135
+ writer.uint32(/* id 13, wireType 2 =*/106).string(message.races[i]);
172136
+ if (message.languageSpecialties != null && message.languageSpecialties.length)
172137
+ for (var i = 0; i < message.languageSpecialties.length; ++i)
172138
+ writer.uint32(/* id 14, wireType 2 =*/114).string(message.languageSpecialties[i]);
172139
+ if (message.ageRangeSpecialties != null && message.ageRangeSpecialties.length)
172140
+ for (var i = 0; i < message.ageRangeSpecialties.length; ++i)
172141
+ writer.uint32(/* id 15, wireType 2 =*/122).string(message.ageRangeSpecialties[i]);
172142
+ return writer;
172143
+ };
172144
+
172145
+ /**
172146
+ * Encodes the specified PartnerClinicianExported message, length delimited. Does not implicitly {@link clinical.PartnerClinicianExported.verify|verify} messages.
172147
+ * @function encodeDelimited
172148
+ * @memberof clinical.PartnerClinicianExported
172149
+ * @static
172150
+ * @param {clinical.IPartnerClinicianExported} message PartnerClinicianExported message or plain object to encode
172151
+ * @param {$protobuf.Writer} [writer] Writer to encode to
172152
+ * @returns {$protobuf.Writer} Writer
172153
+ */
172154
+ PartnerClinicianExported.encodeDelimited = function encodeDelimited(message, writer) {
172155
+ return this.encode(message, writer).ldelim();
172156
+ };
172157
+
172158
+ /**
172159
+ * Decodes a PartnerClinicianExported message from the specified reader or buffer.
172160
+ * @function decode
172161
+ * @memberof clinical.PartnerClinicianExported
172162
+ * @static
172163
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
172164
+ * @param {number} [length] Message length if known beforehand
172165
+ * @returns {clinical.PartnerClinicianExported} PartnerClinicianExported
172166
+ * @throws {Error} If the payload is not a reader or valid buffer
172167
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
172168
+ */
172169
+ PartnerClinicianExported.decode = function decode(reader, length) {
172170
+ if (!(reader instanceof $Reader))
172171
+ reader = $Reader.create(reader);
172172
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.clinical.PartnerClinicianExported();
172173
+ while (reader.pos < end) {
172174
+ var tag = reader.uint32();
172175
+ switch (tag >>> 3) {
172176
+ case 1:
172177
+ message.id = reader.string();
172178
+ break;
172179
+ case 2:
172180
+ message.partnerSource = reader.int32();
172181
+ break;
172182
+ case 3:
172183
+ message.externalId = reader.string();
172184
+ break;
172185
+ case 4:
172186
+ message.npi = reader.string();
172187
+ break;
172188
+ case 5:
172189
+ message.providerRole = reader.int32();
172190
+ break;
172191
+ case 6:
172192
+ message.hasPhysicalLocation = reader.bool();
172193
+ break;
172194
+ case 7:
172195
+ message.fullName = reader.string();
172196
+ break;
172197
+ case 8:
172198
+ message.timeCreated = reader.uint64();
172199
+ break;
172200
+ case 9:
172201
+ message.timeUpdated = reader.uint64();
172202
+ break;
172203
+ case 10:
172204
+ if (!(message.clinicalSpecialties && message.clinicalSpecialties.length))
172205
+ message.clinicalSpecialties = [];
172206
+ message.clinicalSpecialties.push(reader.string());
172207
+ break;
172208
+ case 11:
172209
+ if (!(message.therapyModalities && message.therapyModalities.length))
172210
+ message.therapyModalities = [];
172211
+ message.therapyModalities.push(reader.string());
172212
+ break;
172213
+ case 12:
172214
+ if (!(message.genders && message.genders.length))
172215
+ message.genders = [];
172216
+ message.genders.push(reader.string());
172217
+ break;
172218
+ case 13:
172219
+ if (!(message.races && message.races.length))
172220
+ message.races = [];
172221
+ message.races.push(reader.string());
172222
+ break;
172223
+ case 14:
172224
+ if (!(message.languageSpecialties && message.languageSpecialties.length))
172225
+ message.languageSpecialties = [];
172226
+ message.languageSpecialties.push(reader.string());
172227
+ break;
172228
+ case 15:
172229
+ if (!(message.ageRangeSpecialties && message.ageRangeSpecialties.length))
172230
+ message.ageRangeSpecialties = [];
172231
+ message.ageRangeSpecialties.push(reader.string());
172232
+ break;
172233
+ default:
172234
+ reader.skipType(tag & 7);
172235
+ break;
172236
+ }
172237
+ }
172238
+ return message;
172239
+ };
172240
+
172241
+ /**
172242
+ * Decodes a PartnerClinicianExported message from the specified reader or buffer, length delimited.
172243
+ * @function decodeDelimited
172244
+ * @memberof clinical.PartnerClinicianExported
172245
+ * @static
172246
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
172247
+ * @returns {clinical.PartnerClinicianExported} PartnerClinicianExported
172248
+ * @throws {Error} If the payload is not a reader or valid buffer
172249
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
172250
+ */
172251
+ PartnerClinicianExported.decodeDelimited = function decodeDelimited(reader) {
172252
+ if (!(reader instanceof $Reader))
172253
+ reader = new $Reader(reader);
172254
+ return this.decode(reader, reader.uint32());
172255
+ };
172256
+
172257
+ /**
172258
+ * Verifies a PartnerClinicianExported message.
172259
+ * @function verify
172260
+ * @memberof clinical.PartnerClinicianExported
172261
+ * @static
172262
+ * @param {Object.<string,*>} message Plain object to verify
172263
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
172264
+ */
172265
+ PartnerClinicianExported.verify = function verify(message) {
172266
+ if (typeof message !== "object" || message === null)
172267
+ return "object expected";
172268
+ if (message.id != null && message.hasOwnProperty("id"))
172269
+ if (!$util.isString(message.id))
172270
+ return "id: string expected";
172271
+ if (message.partnerSource != null && message.hasOwnProperty("partnerSource"))
172272
+ switch (message.partnerSource) {
172273
+ default:
172274
+ return "partnerSource: enum value expected";
172275
+ case 0:
172276
+ case 1:
172277
+ break;
172278
+ }
172279
+ if (message.externalId != null && message.hasOwnProperty("externalId"))
172280
+ if (!$util.isString(message.externalId))
172281
+ return "externalId: string expected";
172282
+ if (message.npi != null && message.hasOwnProperty("npi"))
172283
+ if (!$util.isString(message.npi))
172284
+ return "npi: string expected";
172285
+ if (message.providerRole != null && message.hasOwnProperty("providerRole"))
172286
+ switch (message.providerRole) {
172287
+ default:
172288
+ return "providerRole: enum value expected";
172289
+ case 0:
172290
+ case 1:
172291
+ case 2:
172292
+ break;
172293
+ }
172294
+ if (message.hasPhysicalLocation != null && message.hasOwnProperty("hasPhysicalLocation"))
172295
+ if (typeof message.hasPhysicalLocation !== "boolean")
172296
+ return "hasPhysicalLocation: boolean expected";
172297
+ if (message.fullName != null && message.hasOwnProperty("fullName"))
172298
+ if (!$util.isString(message.fullName))
172299
+ return "fullName: string expected";
172300
+ if (message.timeCreated != null && message.hasOwnProperty("timeCreated"))
172301
+ if (!$util.isInteger(message.timeCreated) && !(message.timeCreated && $util.isInteger(message.timeCreated.low) && $util.isInteger(message.timeCreated.high)))
172302
+ return "timeCreated: integer|Long expected";
172303
+ if (message.timeUpdated != null && message.hasOwnProperty("timeUpdated"))
172304
+ if (!$util.isInteger(message.timeUpdated) && !(message.timeUpdated && $util.isInteger(message.timeUpdated.low) && $util.isInteger(message.timeUpdated.high)))
172305
+ return "timeUpdated: integer|Long expected";
172306
+ if (message.clinicalSpecialties != null && message.hasOwnProperty("clinicalSpecialties")) {
172307
+ if (!Array.isArray(message.clinicalSpecialties))
172308
+ return "clinicalSpecialties: array expected";
172309
+ for (var i = 0; i < message.clinicalSpecialties.length; ++i)
172310
+ if (!$util.isString(message.clinicalSpecialties[i]))
172311
+ return "clinicalSpecialties: string[] expected";
172312
+ }
172313
+ if (message.therapyModalities != null && message.hasOwnProperty("therapyModalities")) {
172314
+ if (!Array.isArray(message.therapyModalities))
172315
+ return "therapyModalities: array expected";
172316
+ for (var i = 0; i < message.therapyModalities.length; ++i)
172317
+ if (!$util.isString(message.therapyModalities[i]))
172318
+ return "therapyModalities: string[] expected";
172319
+ }
172320
+ if (message.genders != null && message.hasOwnProperty("genders")) {
172321
+ if (!Array.isArray(message.genders))
172322
+ return "genders: array expected";
172323
+ for (var i = 0; i < message.genders.length; ++i)
172324
+ if (!$util.isString(message.genders[i]))
172325
+ return "genders: string[] expected";
172326
+ }
172327
+ if (message.races != null && message.hasOwnProperty("races")) {
172328
+ if (!Array.isArray(message.races))
172329
+ return "races: array expected";
172330
+ for (var i = 0; i < message.races.length; ++i)
172331
+ if (!$util.isString(message.races[i]))
172332
+ return "races: string[] expected";
172333
+ }
172334
+ if (message.languageSpecialties != null && message.hasOwnProperty("languageSpecialties")) {
172335
+ if (!Array.isArray(message.languageSpecialties))
172336
+ return "languageSpecialties: array expected";
172337
+ for (var i = 0; i < message.languageSpecialties.length; ++i)
172338
+ if (!$util.isString(message.languageSpecialties[i]))
172339
+ return "languageSpecialties: string[] expected";
172340
+ }
172341
+ if (message.ageRangeSpecialties != null && message.hasOwnProperty("ageRangeSpecialties")) {
172342
+ if (!Array.isArray(message.ageRangeSpecialties))
172343
+ return "ageRangeSpecialties: array expected";
172344
+ for (var i = 0; i < message.ageRangeSpecialties.length; ++i)
172345
+ if (!$util.isString(message.ageRangeSpecialties[i]))
172346
+ return "ageRangeSpecialties: string[] expected";
172347
+ }
172348
+ return null;
172349
+ };
172350
+
172351
+ /**
172352
+ * Creates a PartnerClinicianExported message from a plain object. Also converts values to their respective internal types.
172353
+ * @function fromObject
172354
+ * @memberof clinical.PartnerClinicianExported
172355
+ * @static
172356
+ * @param {Object.<string,*>} object Plain object
172357
+ * @returns {clinical.PartnerClinicianExported} PartnerClinicianExported
172358
+ */
172359
+ PartnerClinicianExported.fromObject = function fromObject(object) {
172360
+ if (object instanceof $root.clinical.PartnerClinicianExported)
172361
+ return object;
172362
+ var message = new $root.clinical.PartnerClinicianExported();
172363
+ if (object.id != null)
172364
+ message.id = String(object.id);
172365
+ switch (object.partnerSource) {
172366
+ case "CLINICAL_PARTNER_SOURCE_UNKNOWN":
172367
+ case 0:
172368
+ message.partnerSource = 0;
172369
+ break;
172370
+ case "CLINICAL_PARTNER_SOURCE_SONDERMIND":
172371
+ case 1:
172372
+ message.partnerSource = 1;
172373
+ break;
172374
+ }
172375
+ if (object.externalId != null)
172376
+ message.externalId = String(object.externalId);
172377
+ if (object.npi != null)
172378
+ message.npi = String(object.npi);
172379
+ switch (object.providerRole) {
172380
+ case "CLINICIAN_TYPE_UNKNOWN":
172381
+ case 0:
172382
+ message.providerRole = 0;
172383
+ break;
172384
+ case "CLINICIAN_TYPE_THERAPIST":
172385
+ case 1:
172386
+ message.providerRole = 1;
172387
+ break;
172388
+ case "CLINICIAN_TYPE_PSYCHIATRIST":
172389
+ case 2:
172390
+ message.providerRole = 2;
172391
+ break;
172392
+ }
172393
+ if (object.hasPhysicalLocation != null)
172394
+ message.hasPhysicalLocation = Boolean(object.hasPhysicalLocation);
172395
+ if (object.fullName != null)
172396
+ message.fullName = String(object.fullName);
172397
+ if (object.timeCreated != null)
172398
+ if ($util.Long)
172399
+ (message.timeCreated = $util.Long.fromValue(object.timeCreated)).unsigned = true;
172400
+ else if (typeof object.timeCreated === "string")
172401
+ message.timeCreated = parseInt(object.timeCreated, 10);
172402
+ else if (typeof object.timeCreated === "number")
172403
+ message.timeCreated = object.timeCreated;
172404
+ else if (typeof object.timeCreated === "object")
172405
+ message.timeCreated = new $util.LongBits(object.timeCreated.low >>> 0, object.timeCreated.high >>> 0).toNumber(true);
172406
+ if (object.timeUpdated != null)
172407
+ if ($util.Long)
172408
+ (message.timeUpdated = $util.Long.fromValue(object.timeUpdated)).unsigned = true;
172409
+ else if (typeof object.timeUpdated === "string")
172410
+ message.timeUpdated = parseInt(object.timeUpdated, 10);
172411
+ else if (typeof object.timeUpdated === "number")
172412
+ message.timeUpdated = object.timeUpdated;
172413
+ else if (typeof object.timeUpdated === "object")
172414
+ message.timeUpdated = new $util.LongBits(object.timeUpdated.low >>> 0, object.timeUpdated.high >>> 0).toNumber(true);
172415
+ if (object.clinicalSpecialties) {
172416
+ if (!Array.isArray(object.clinicalSpecialties))
172417
+ throw TypeError(".clinical.PartnerClinicianExported.clinicalSpecialties: array expected");
172418
+ message.clinicalSpecialties = [];
172419
+ for (var i = 0; i < object.clinicalSpecialties.length; ++i)
172420
+ message.clinicalSpecialties[i] = String(object.clinicalSpecialties[i]);
172421
+ }
172422
+ if (object.therapyModalities) {
172423
+ if (!Array.isArray(object.therapyModalities))
172424
+ throw TypeError(".clinical.PartnerClinicianExported.therapyModalities: array expected");
172425
+ message.therapyModalities = [];
172426
+ for (var i = 0; i < object.therapyModalities.length; ++i)
172427
+ message.therapyModalities[i] = String(object.therapyModalities[i]);
172428
+ }
172429
+ if (object.genders) {
172430
+ if (!Array.isArray(object.genders))
172431
+ throw TypeError(".clinical.PartnerClinicianExported.genders: array expected");
172432
+ message.genders = [];
172433
+ for (var i = 0; i < object.genders.length; ++i)
172434
+ message.genders[i] = String(object.genders[i]);
172435
+ }
172436
+ if (object.races) {
172437
+ if (!Array.isArray(object.races))
172438
+ throw TypeError(".clinical.PartnerClinicianExported.races: array expected");
172439
+ message.races = [];
172440
+ for (var i = 0; i < object.races.length; ++i)
172441
+ message.races[i] = String(object.races[i]);
172442
+ }
172443
+ if (object.languageSpecialties) {
172444
+ if (!Array.isArray(object.languageSpecialties))
172445
+ throw TypeError(".clinical.PartnerClinicianExported.languageSpecialties: array expected");
172446
+ message.languageSpecialties = [];
172447
+ for (var i = 0; i < object.languageSpecialties.length; ++i)
172448
+ message.languageSpecialties[i] = String(object.languageSpecialties[i]);
172449
+ }
172450
+ if (object.ageRangeSpecialties) {
172451
+ if (!Array.isArray(object.ageRangeSpecialties))
172452
+ throw TypeError(".clinical.PartnerClinicianExported.ageRangeSpecialties: array expected");
172453
+ message.ageRangeSpecialties = [];
172454
+ for (var i = 0; i < object.ageRangeSpecialties.length; ++i)
172455
+ message.ageRangeSpecialties[i] = String(object.ageRangeSpecialties[i]);
172456
+ }
172457
+ return message;
172458
+ };
172459
+
172460
+ /**
172461
+ * Creates a plain object from a PartnerClinicianExported message. Also converts values to other types if specified.
172462
+ * @function toObject
172463
+ * @memberof clinical.PartnerClinicianExported
172464
+ * @static
172465
+ * @param {clinical.PartnerClinicianExported} message PartnerClinicianExported
172466
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
172467
+ * @returns {Object.<string,*>} Plain object
172468
+ */
172469
+ PartnerClinicianExported.toObject = function toObject(message, options) {
172470
+ if (!options)
172471
+ options = {};
172472
+ var object = {};
172473
+ if (options.arrays || options.defaults) {
172474
+ object.clinicalSpecialties = [];
172475
+ object.therapyModalities = [];
172476
+ object.genders = [];
172477
+ object.races = [];
172478
+ object.languageSpecialties = [];
172479
+ object.ageRangeSpecialties = [];
172480
+ }
172481
+ if (options.defaults) {
172482
+ object.id = "";
172483
+ object.partnerSource = options.enums === String ? "CLINICAL_PARTNER_SOURCE_UNKNOWN" : 0;
172484
+ object.externalId = "";
172485
+ object.npi = "";
172486
+ object.providerRole = options.enums === String ? "CLINICIAN_TYPE_UNKNOWN" : 0;
172487
+ object.hasPhysicalLocation = false;
172488
+ object.fullName = "";
172489
+ if ($util.Long) {
172490
+ var long = new $util.Long(0, 0, true);
172491
+ object.timeCreated = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
172492
+ } else
172493
+ object.timeCreated = options.longs === String ? "0" : 0;
172494
+ if ($util.Long) {
172495
+ var long = new $util.Long(0, 0, true);
172496
+ object.timeUpdated = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
172497
+ } else
172498
+ object.timeUpdated = options.longs === String ? "0" : 0;
172499
+ }
172500
+ if (message.id != null && message.hasOwnProperty("id"))
172501
+ object.id = message.id;
172502
+ if (message.partnerSource != null && message.hasOwnProperty("partnerSource"))
172503
+ object.partnerSource = options.enums === String ? $root.clinical.ClinicalPartnerSource[message.partnerSource] : message.partnerSource;
172504
+ if (message.externalId != null && message.hasOwnProperty("externalId"))
172505
+ object.externalId = message.externalId;
172506
+ if (message.npi != null && message.hasOwnProperty("npi"))
172507
+ object.npi = message.npi;
172508
+ if (message.providerRole != null && message.hasOwnProperty("providerRole"))
172509
+ object.providerRole = options.enums === String ? $root.clinical.ClinicianType[message.providerRole] : message.providerRole;
172510
+ if (message.hasPhysicalLocation != null && message.hasOwnProperty("hasPhysicalLocation"))
172511
+ object.hasPhysicalLocation = message.hasPhysicalLocation;
172512
+ if (message.fullName != null && message.hasOwnProperty("fullName"))
172513
+ object.fullName = message.fullName;
172514
+ if (message.timeCreated != null && message.hasOwnProperty("timeCreated"))
172515
+ if (typeof message.timeCreated === "number")
172516
+ object.timeCreated = options.longs === String ? String(message.timeCreated) : message.timeCreated;
172517
+ else
172518
+ object.timeCreated = options.longs === String ? $util.Long.prototype.toString.call(message.timeCreated) : options.longs === Number ? new $util.LongBits(message.timeCreated.low >>> 0, message.timeCreated.high >>> 0).toNumber(true) : message.timeCreated;
172519
+ if (message.timeUpdated != null && message.hasOwnProperty("timeUpdated"))
172520
+ if (typeof message.timeUpdated === "number")
172521
+ object.timeUpdated = options.longs === String ? String(message.timeUpdated) : message.timeUpdated;
172522
+ else
172523
+ object.timeUpdated = options.longs === String ? $util.Long.prototype.toString.call(message.timeUpdated) : options.longs === Number ? new $util.LongBits(message.timeUpdated.low >>> 0, message.timeUpdated.high >>> 0).toNumber(true) : message.timeUpdated;
172524
+ if (message.clinicalSpecialties && message.clinicalSpecialties.length) {
172525
+ object.clinicalSpecialties = [];
172526
+ for (var j = 0; j < message.clinicalSpecialties.length; ++j)
172527
+ object.clinicalSpecialties[j] = message.clinicalSpecialties[j];
172528
+ }
172529
+ if (message.therapyModalities && message.therapyModalities.length) {
172530
+ object.therapyModalities = [];
172531
+ for (var j = 0; j < message.therapyModalities.length; ++j)
172532
+ object.therapyModalities[j] = message.therapyModalities[j];
172533
+ }
172534
+ if (message.genders && message.genders.length) {
172535
+ object.genders = [];
172536
+ for (var j = 0; j < message.genders.length; ++j)
172537
+ object.genders[j] = message.genders[j];
172538
+ }
172539
+ if (message.races && message.races.length) {
172540
+ object.races = [];
172541
+ for (var j = 0; j < message.races.length; ++j)
172542
+ object.races[j] = message.races[j];
172543
+ }
172544
+ if (message.languageSpecialties && message.languageSpecialties.length) {
172545
+ object.languageSpecialties = [];
172546
+ for (var j = 0; j < message.languageSpecialties.length; ++j)
172547
+ object.languageSpecialties[j] = message.languageSpecialties[j];
172548
+ }
172549
+ if (message.ageRangeSpecialties && message.ageRangeSpecialties.length) {
172550
+ object.ageRangeSpecialties = [];
172551
+ for (var j = 0; j < message.ageRangeSpecialties.length; ++j)
172552
+ object.ageRangeSpecialties[j] = message.ageRangeSpecialties[j];
172553
+ }
172554
+ return object;
172555
+ };
172556
+
172557
+ /**
172558
+ * Converts this PartnerClinicianExported to JSON.
172559
+ * @function toJSON
172560
+ * @memberof clinical.PartnerClinicianExported
172561
+ * @instance
172562
+ * @returns {Object.<string,*>} JSON object
172563
+ */
172564
+ PartnerClinicianExported.prototype.toJSON = function toJSON() {
172565
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
172566
+ };
172567
+
172568
+ return PartnerClinicianExported;
172569
+ })();
172570
+
171918
172571
  clinical.UnifiedAvailabilityOffered = (function() {
171919
172572
 
171920
172573
  /**
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.737.0"
19
+ "version": "1.738.0"
20
20
  }