@headspace/protos-events 1.702.0 → 1.704.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
@@ -44882,6 +44882,9 @@ export interface IOnboardingCompleted {
44882
44882
 
44883
44883
  /** OnboardingCompleted completedAtIsoDate */
44884
44884
  completedAtIsoDate?: (string|null);
44885
+
44886
+ /** OnboardingCompleted source */
44887
+ source?: (OnboardingSource|null);
44885
44888
  }
44886
44889
 
44887
44890
  /** Represents an OnboardingCompleted. */
@@ -44902,6 +44905,9 @@ export class OnboardingCompleted implements IOnboardingCompleted {
44902
44905
  /** OnboardingCompleted completedAtIsoDate. */
44903
44906
  public completedAtIsoDate: string;
44904
44907
 
44908
+ /** OnboardingCompleted source. */
44909
+ public source: OnboardingSource;
44910
+
44905
44911
  /**
44906
44912
  * Creates a new OnboardingCompleted instance using the specified properties.
44907
44913
  * @param [properties] Properties to set
@@ -44973,6 +44979,13 @@ export class OnboardingCompleted implements IOnboardingCompleted {
44973
44979
  public toJSON(): { [k: string]: any };
44974
44980
  }
44975
44981
 
44982
+ /** OnboardingSource enum. */
44983
+ export enum OnboardingSource {
44984
+ ONBOARDING_SOURCE_UNKNOWN = 0,
44985
+ ONBOARDING_SOURCE_MOBILE = 1,
44986
+ ONBOARDING_SOURCE_WEB = 2
44987
+ }
44988
+
44976
44989
  /** Properties of an OrgCoverageProfile. */
44977
44990
  export interface IOrgCoverageProfile {
44978
44991
 
@@ -57014,6 +57027,30 @@ export namespace clinical {
57014
57027
 
57015
57028
  /** Indicates whether automatic recording is enabled for this clinician's sessions */
57016
57029
  isAutoRecordEnabled?: (boolean|null);
57030
+
57031
+ /**
57032
+ * List of clinician's clinical specialties (eg. sleep, identity issues, etc.).
57033
+ * Exported from: ProviderAttribute model in ginger-web
57034
+ */
57035
+ clinicalSpecialties?: (string[]|null);
57036
+
57037
+ /**
57038
+ * List of therapy modalities practiced by the clinician (eg. CBT, DBT, etc.).
57039
+ * Exported from: ProviderAttribute model in ginger-web
57040
+ */
57041
+ therapyModalities?: (string[]|null);
57042
+
57043
+ /** List of clinician's language specialties. Exported from: ProviderAttribute model in ginger-web */
57044
+ languagesSpecialties?: (clinical.ClinicianLanguageSpecialty[]|null);
57045
+
57046
+ /** List of clinician's age range specialties. Exported from: ProviderAttribute model in ginger-web */
57047
+ ageRangeSpecialties?: (clinical.ClinicianAgeRangeSpecialty[]|null);
57048
+
57049
+ /** List of clinician's racial identities. Exported from: ProviderAttribute model in ginger-web */
57050
+ races?: (clinical.ClinicianRace[]|null);
57051
+
57052
+ /** List of clinician's gender identities. Exported from: ProviderAttribute model in ginger-web */
57053
+ genders?: (clinical.ClinicianGender[]|null);
57017
57054
  }
57018
57055
 
57019
57056
  /** Represents a Clinician. */
@@ -57091,6 +57128,30 @@ export namespace clinical {
57091
57128
  /** Indicates whether automatic recording is enabled for this clinician's sessions */
57092
57129
  public isAutoRecordEnabled: boolean;
57093
57130
 
57131
+ /**
57132
+ * List of clinician's clinical specialties (eg. sleep, identity issues, etc.).
57133
+ * Exported from: ProviderAttribute model in ginger-web
57134
+ */
57135
+ public clinicalSpecialties: string[];
57136
+
57137
+ /**
57138
+ * List of therapy modalities practiced by the clinician (eg. CBT, DBT, etc.).
57139
+ * Exported from: ProviderAttribute model in ginger-web
57140
+ */
57141
+ public therapyModalities: string[];
57142
+
57143
+ /** List of clinician's language specialties. Exported from: ProviderAttribute model in ginger-web */
57144
+ public languagesSpecialties: clinical.ClinicianLanguageSpecialty[];
57145
+
57146
+ /** List of clinician's age range specialties. Exported from: ProviderAttribute model in ginger-web */
57147
+ public ageRangeSpecialties: clinical.ClinicianAgeRangeSpecialty[];
57148
+
57149
+ /** List of clinician's racial identities. Exported from: ProviderAttribute model in ginger-web */
57150
+ public races: clinical.ClinicianRace[];
57151
+
57152
+ /** List of clinician's gender identities. Exported from: ProviderAttribute model in ginger-web */
57153
+ public genders: clinical.ClinicianGender[];
57154
+
57094
57155
  /**
57095
57156
  * Creates a new Clinician instance using the specified properties.
57096
57157
  * @param [properties] Properties to set
@@ -57309,6 +57370,44 @@ export namespace clinical {
57309
57370
  public toJSON(): { [k: string]: any };
57310
57371
  }
57311
57372
 
57373
+ /** ClinicianGender enum. */
57374
+ enum ClinicianGender {
57375
+ CLINICIAN_GENDER_UNKNOWN = 0,
57376
+ CLINICIAN_GENDER_FEMALE = 1,
57377
+ CLINICIAN_GENDER_MALE = 2,
57378
+ CLINICIAN_GENDER_NON_BINARY = 3
57379
+ }
57380
+
57381
+ /** ClinicianRace enum. */
57382
+ enum ClinicianRace {
57383
+ CLINICIAN_RACE_UNKNOWN = 0,
57384
+ CLINICIAN_RACE_ASIAN_PACIFIC_ISLANDER = 1,
57385
+ CLINICIAN_RACE_BLACK_AFRICAN_AMERICAN = 2,
57386
+ CLINICIAN_RACE_HISPANIC_LATINA_O_LATINX = 3,
57387
+ CLINICIAN_RACE_NATIVE_AMERICAN_ALASKAN_NATIVE = 4,
57388
+ CLINICIAN_RACE_MIDDLE_EASTERN_NORTH_AFRICAN = 5,
57389
+ CLINICIAN_RACE_WHITE_CAUCASIAN = 6,
57390
+ CLINICIAN_RACE_MULTIRACIAL = 7
57391
+ }
57392
+
57393
+ /**
57394
+ * List of clinician's language specialties (the clinican can be assigned to members with specific languages),
57395
+ * there is not language for english speaking members
57396
+ */
57397
+ enum ClinicianLanguageSpecialty {
57398
+ CLINICIAN_LANGUAGE_SPECIALTY_UNKNOWN = 0,
57399
+ CLINICIAN_LANGUAGE_SPECIALTY_SPANISH = 1
57400
+ }
57401
+
57402
+ /**
57403
+ * List of clinician's age range specialties (the clinican can be assigned to members with specific age ranges),
57404
+ * there is not age range for adults
57405
+ */
57406
+ enum ClinicianAgeRangeSpecialty {
57407
+ CLINICIAN_AGE_RANGE_SPECIALTY_UNKNOWN = 0,
57408
+ CLINICIAN_AGE_RANGE_SPECIALTY_ADOLESCENT = 1
57409
+ }
57410
+
57312
57411
  /** Properties of a Coach. */
57313
57412
  interface ICoach {
57314
57413
 
package/lib/index.js CHANGED
@@ -128093,6 +128093,7 @@ $root.OnboardingCompleted = (function() {
128093
128093
  * @property {string|null} [hsUserId] OnboardingCompleted hsUserId
128094
128094
  * @property {number|null} [gingerUserId] OnboardingCompleted gingerUserId
128095
128095
  * @property {string|null} [completedAtIsoDate] OnboardingCompleted completedAtIsoDate
128096
+ * @property {OnboardingSource|null} [source] OnboardingCompleted source
128096
128097
  */
128097
128098
 
128098
128099
  /**
@@ -128134,6 +128135,14 @@ $root.OnboardingCompleted = (function() {
128134
128135
  */
128135
128136
  OnboardingCompleted.prototype.completedAtIsoDate = "";
128136
128137
 
128138
+ /**
128139
+ * OnboardingCompleted source.
128140
+ * @member {OnboardingSource} source
128141
+ * @memberof OnboardingCompleted
128142
+ * @instance
128143
+ */
128144
+ OnboardingCompleted.prototype.source = 0;
128145
+
128137
128146
  /**
128138
128147
  * Creates a new OnboardingCompleted instance using the specified properties.
128139
128148
  * @function create
@@ -128164,6 +128173,8 @@ $root.OnboardingCompleted = (function() {
128164
128173
  writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.gingerUserId);
128165
128174
  if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
128166
128175
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.completedAtIsoDate);
128176
+ if (message.source != null && message.hasOwnProperty("source"))
128177
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.source);
128167
128178
  return writer;
128168
128179
  };
128169
128180
 
@@ -128207,6 +128218,9 @@ $root.OnboardingCompleted = (function() {
128207
128218
  case 3:
128208
128219
  message.completedAtIsoDate = reader.string();
128209
128220
  break;
128221
+ case 4:
128222
+ message.source = reader.int32();
128223
+ break;
128210
128224
  default:
128211
128225
  reader.skipType(tag & 7);
128212
128226
  break;
@@ -128251,6 +128265,15 @@ $root.OnboardingCompleted = (function() {
128251
128265
  if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
128252
128266
  if (!$util.isString(message.completedAtIsoDate))
128253
128267
  return "completedAtIsoDate: string expected";
128268
+ if (message.source != null && message.hasOwnProperty("source"))
128269
+ switch (message.source) {
128270
+ default:
128271
+ return "source: enum value expected";
128272
+ case 0:
128273
+ case 1:
128274
+ case 2:
128275
+ break;
128276
+ }
128254
128277
  return null;
128255
128278
  };
128256
128279
 
@@ -128272,6 +128295,20 @@ $root.OnboardingCompleted = (function() {
128272
128295
  message.gingerUserId = object.gingerUserId >>> 0;
128273
128296
  if (object.completedAtIsoDate != null)
128274
128297
  message.completedAtIsoDate = String(object.completedAtIsoDate);
128298
+ switch (object.source) {
128299
+ case "ONBOARDING_SOURCE_UNKNOWN":
128300
+ case 0:
128301
+ message.source = 0;
128302
+ break;
128303
+ case "ONBOARDING_SOURCE_MOBILE":
128304
+ case 1:
128305
+ message.source = 1;
128306
+ break;
128307
+ case "ONBOARDING_SOURCE_WEB":
128308
+ case 2:
128309
+ message.source = 2;
128310
+ break;
128311
+ }
128275
128312
  return message;
128276
128313
  };
128277
128314
 
@@ -128292,6 +128329,7 @@ $root.OnboardingCompleted = (function() {
128292
128329
  object.hsUserId = "";
128293
128330
  object.gingerUserId = 0;
128294
128331
  object.completedAtIsoDate = "";
128332
+ object.source = options.enums === String ? "ONBOARDING_SOURCE_UNKNOWN" : 0;
128295
128333
  }
128296
128334
  if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
128297
128335
  object.hsUserId = message.hsUserId;
@@ -128299,6 +128337,8 @@ $root.OnboardingCompleted = (function() {
128299
128337
  object.gingerUserId = message.gingerUserId;
128300
128338
  if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
128301
128339
  object.completedAtIsoDate = message.completedAtIsoDate;
128340
+ if (message.source != null && message.hasOwnProperty("source"))
128341
+ object.source = options.enums === String ? $root.OnboardingSource[message.source] : message.source;
128302
128342
  return object;
128303
128343
  };
128304
128344
 
@@ -128316,6 +128356,22 @@ $root.OnboardingCompleted = (function() {
128316
128356
  return OnboardingCompleted;
128317
128357
  })();
128318
128358
 
128359
+ /**
128360
+ * OnboardingSource enum.
128361
+ * @name OnboardingSource
128362
+ * @enum {string}
128363
+ * @property {number} ONBOARDING_SOURCE_UNKNOWN=0 ONBOARDING_SOURCE_UNKNOWN value
128364
+ * @property {number} ONBOARDING_SOURCE_MOBILE=1 ONBOARDING_SOURCE_MOBILE value
128365
+ * @property {number} ONBOARDING_SOURCE_WEB=2 ONBOARDING_SOURCE_WEB value
128366
+ */
128367
+ $root.OnboardingSource = (function() {
128368
+ var valuesById = {}, values = Object.create(valuesById);
128369
+ values[valuesById[0] = "ONBOARDING_SOURCE_UNKNOWN"] = 0;
128370
+ values[valuesById[1] = "ONBOARDING_SOURCE_MOBILE"] = 1;
128371
+ values[valuesById[2] = "ONBOARDING_SOURCE_WEB"] = 2;
128372
+ return values;
128373
+ })();
128374
+
128319
128375
  $root.OrgCoverageProfile = (function() {
128320
128376
 
128321
128377
  /**
@@ -162635,6 +162691,14 @@ $root.clinical = (function() {
162635
162691
  * @property {Array.<clinical.IAppUser>|null} [oktaIds] ID of this clinician in Okta
162636
162692
  * TODO: Only two values expected here, one in Okta and one in web
162637
162693
  * @property {boolean|null} [isAutoRecordEnabled] Indicates whether automatic recording is enabled for this clinician's sessions
162694
+ * @property {Array.<string>|null} [clinicalSpecialties] List of clinician's clinical specialties (eg. sleep, identity issues, etc.).
162695
+ * Exported from: ProviderAttribute model in ginger-web
162696
+ * @property {Array.<string>|null} [therapyModalities] List of therapy modalities practiced by the clinician (eg. CBT, DBT, etc.).
162697
+ * Exported from: ProviderAttribute model in ginger-web
162698
+ * @property {Array.<clinical.ClinicianLanguageSpecialty>|null} [languagesSpecialties] List of clinician's language specialties. Exported from: ProviderAttribute model in ginger-web
162699
+ * @property {Array.<clinical.ClinicianAgeRangeSpecialty>|null} [ageRangeSpecialties] List of clinician's age range specialties. Exported from: ProviderAttribute model in ginger-web
162700
+ * @property {Array.<clinical.ClinicianRace>|null} [races] List of clinician's racial identities. Exported from: ProviderAttribute model in ginger-web
162701
+ * @property {Array.<clinical.ClinicianGender>|null} [genders] List of clinician's gender identities. Exported from: ProviderAttribute model in ginger-web
162638
162702
  */
162639
162703
 
162640
162704
  /**
@@ -162649,6 +162713,12 @@ $root.clinical = (function() {
162649
162713
  this.validLicenses = [];
162650
162714
  this.specializations = [];
162651
162715
  this.oktaIds = [];
162716
+ this.clinicalSpecialties = [];
162717
+ this.therapyModalities = [];
162718
+ this.languagesSpecialties = [];
162719
+ this.ageRangeSpecialties = [];
162720
+ this.races = [];
162721
+ this.genders = [];
162652
162722
  if (properties)
162653
162723
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
162654
162724
  if (properties[keys[i]] != null)
@@ -162824,6 +162894,56 @@ $root.clinical = (function() {
162824
162894
  */
162825
162895
  Clinician.prototype.isAutoRecordEnabled = false;
162826
162896
 
162897
+ /**
162898
+ * List of clinician's clinical specialties (eg. sleep, identity issues, etc.).
162899
+ * Exported from: ProviderAttribute model in ginger-web
162900
+ * @member {Array.<string>} clinicalSpecialties
162901
+ * @memberof clinical.Clinician
162902
+ * @instance
162903
+ */
162904
+ Clinician.prototype.clinicalSpecialties = $util.emptyArray;
162905
+
162906
+ /**
162907
+ * List of therapy modalities practiced by the clinician (eg. CBT, DBT, etc.).
162908
+ * Exported from: ProviderAttribute model in ginger-web
162909
+ * @member {Array.<string>} therapyModalities
162910
+ * @memberof clinical.Clinician
162911
+ * @instance
162912
+ */
162913
+ Clinician.prototype.therapyModalities = $util.emptyArray;
162914
+
162915
+ /**
162916
+ * List of clinician's language specialties. Exported from: ProviderAttribute model in ginger-web
162917
+ * @member {Array.<clinical.ClinicianLanguageSpecialty>} languagesSpecialties
162918
+ * @memberof clinical.Clinician
162919
+ * @instance
162920
+ */
162921
+ Clinician.prototype.languagesSpecialties = $util.emptyArray;
162922
+
162923
+ /**
162924
+ * List of clinician's age range specialties. Exported from: ProviderAttribute model in ginger-web
162925
+ * @member {Array.<clinical.ClinicianAgeRangeSpecialty>} ageRangeSpecialties
162926
+ * @memberof clinical.Clinician
162927
+ * @instance
162928
+ */
162929
+ Clinician.prototype.ageRangeSpecialties = $util.emptyArray;
162930
+
162931
+ /**
162932
+ * List of clinician's racial identities. Exported from: ProviderAttribute model in ginger-web
162933
+ * @member {Array.<clinical.ClinicianRace>} races
162934
+ * @memberof clinical.Clinician
162935
+ * @instance
162936
+ */
162937
+ Clinician.prototype.races = $util.emptyArray;
162938
+
162939
+ /**
162940
+ * List of clinician's gender identities. Exported from: ProviderAttribute model in ginger-web
162941
+ * @member {Array.<clinical.ClinicianGender>} genders
162942
+ * @memberof clinical.Clinician
162943
+ * @instance
162944
+ */
162945
+ Clinician.prototype.genders = $util.emptyArray;
162946
+
162827
162947
  /**
162828
162948
  * Creates a new Clinician instance using the specified properties.
162829
162949
  * @function create
@@ -162893,6 +163013,36 @@ $root.clinical = (function() {
162893
163013
  $root.clinical.AppUser.encode(message.oktaIds[i], writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
162894
163014
  if (message.isAutoRecordEnabled != null && message.hasOwnProperty("isAutoRecordEnabled"))
162895
163015
  writer.uint32(/* id 21, wireType 0 =*/168).bool(message.isAutoRecordEnabled);
163016
+ if (message.clinicalSpecialties != null && message.clinicalSpecialties.length)
163017
+ for (var i = 0; i < message.clinicalSpecialties.length; ++i)
163018
+ writer.uint32(/* id 22, wireType 2 =*/178).string(message.clinicalSpecialties[i]);
163019
+ if (message.therapyModalities != null && message.therapyModalities.length)
163020
+ for (var i = 0; i < message.therapyModalities.length; ++i)
163021
+ writer.uint32(/* id 23, wireType 2 =*/186).string(message.therapyModalities[i]);
163022
+ if (message.languagesSpecialties != null && message.languagesSpecialties.length) {
163023
+ writer.uint32(/* id 24, wireType 2 =*/194).fork();
163024
+ for (var i = 0; i < message.languagesSpecialties.length; ++i)
163025
+ writer.int32(message.languagesSpecialties[i]);
163026
+ writer.ldelim();
163027
+ }
163028
+ if (message.ageRangeSpecialties != null && message.ageRangeSpecialties.length) {
163029
+ writer.uint32(/* id 25, wireType 2 =*/202).fork();
163030
+ for (var i = 0; i < message.ageRangeSpecialties.length; ++i)
163031
+ writer.int32(message.ageRangeSpecialties[i]);
163032
+ writer.ldelim();
163033
+ }
163034
+ if (message.races != null && message.races.length) {
163035
+ writer.uint32(/* id 26, wireType 2 =*/210).fork();
163036
+ for (var i = 0; i < message.races.length; ++i)
163037
+ writer.int32(message.races[i]);
163038
+ writer.ldelim();
163039
+ }
163040
+ if (message.genders != null && message.genders.length) {
163041
+ writer.uint32(/* id 27, wireType 2 =*/218).fork();
163042
+ for (var i = 0; i < message.genders.length; ++i)
163043
+ writer.int32(message.genders[i]);
163044
+ writer.ldelim();
163045
+ }
162896
163046
  return writer;
162897
163047
  };
162898
163048
 
@@ -162996,6 +163146,56 @@ $root.clinical = (function() {
162996
163146
  case 21:
162997
163147
  message.isAutoRecordEnabled = reader.bool();
162998
163148
  break;
163149
+ case 22:
163150
+ if (!(message.clinicalSpecialties && message.clinicalSpecialties.length))
163151
+ message.clinicalSpecialties = [];
163152
+ message.clinicalSpecialties.push(reader.string());
163153
+ break;
163154
+ case 23:
163155
+ if (!(message.therapyModalities && message.therapyModalities.length))
163156
+ message.therapyModalities = [];
163157
+ message.therapyModalities.push(reader.string());
163158
+ break;
163159
+ case 24:
163160
+ if (!(message.languagesSpecialties && message.languagesSpecialties.length))
163161
+ message.languagesSpecialties = [];
163162
+ if ((tag & 7) === 2) {
163163
+ var end2 = reader.uint32() + reader.pos;
163164
+ while (reader.pos < end2)
163165
+ message.languagesSpecialties.push(reader.int32());
163166
+ } else
163167
+ message.languagesSpecialties.push(reader.int32());
163168
+ break;
163169
+ case 25:
163170
+ if (!(message.ageRangeSpecialties && message.ageRangeSpecialties.length))
163171
+ message.ageRangeSpecialties = [];
163172
+ if ((tag & 7) === 2) {
163173
+ var end2 = reader.uint32() + reader.pos;
163174
+ while (reader.pos < end2)
163175
+ message.ageRangeSpecialties.push(reader.int32());
163176
+ } else
163177
+ message.ageRangeSpecialties.push(reader.int32());
163178
+ break;
163179
+ case 26:
163180
+ if (!(message.races && message.races.length))
163181
+ message.races = [];
163182
+ if ((tag & 7) === 2) {
163183
+ var end2 = reader.uint32() + reader.pos;
163184
+ while (reader.pos < end2)
163185
+ message.races.push(reader.int32());
163186
+ } else
163187
+ message.races.push(reader.int32());
163188
+ break;
163189
+ case 27:
163190
+ if (!(message.genders && message.genders.length))
163191
+ message.genders = [];
163192
+ if ((tag & 7) === 2) {
163193
+ var end2 = reader.uint32() + reader.pos;
163194
+ while (reader.pos < end2)
163195
+ message.genders.push(reader.int32());
163196
+ } else
163197
+ message.genders.push(reader.int32());
163198
+ break;
162999
163199
  default:
163000
163200
  reader.skipType(tag & 7);
163001
163201
  break;
@@ -163155,6 +163355,76 @@ $root.clinical = (function() {
163155
163355
  if (message.isAutoRecordEnabled != null && message.hasOwnProperty("isAutoRecordEnabled"))
163156
163356
  if (typeof message.isAutoRecordEnabled !== "boolean")
163157
163357
  return "isAutoRecordEnabled: boolean expected";
163358
+ if (message.clinicalSpecialties != null && message.hasOwnProperty("clinicalSpecialties")) {
163359
+ if (!Array.isArray(message.clinicalSpecialties))
163360
+ return "clinicalSpecialties: array expected";
163361
+ for (var i = 0; i < message.clinicalSpecialties.length; ++i)
163362
+ if (!$util.isString(message.clinicalSpecialties[i]))
163363
+ return "clinicalSpecialties: string[] expected";
163364
+ }
163365
+ if (message.therapyModalities != null && message.hasOwnProperty("therapyModalities")) {
163366
+ if (!Array.isArray(message.therapyModalities))
163367
+ return "therapyModalities: array expected";
163368
+ for (var i = 0; i < message.therapyModalities.length; ++i)
163369
+ if (!$util.isString(message.therapyModalities[i]))
163370
+ return "therapyModalities: string[] expected";
163371
+ }
163372
+ if (message.languagesSpecialties != null && message.hasOwnProperty("languagesSpecialties")) {
163373
+ if (!Array.isArray(message.languagesSpecialties))
163374
+ return "languagesSpecialties: array expected";
163375
+ for (var i = 0; i < message.languagesSpecialties.length; ++i)
163376
+ switch (message.languagesSpecialties[i]) {
163377
+ default:
163378
+ return "languagesSpecialties: enum value[] expected";
163379
+ case 0:
163380
+ case 1:
163381
+ break;
163382
+ }
163383
+ }
163384
+ if (message.ageRangeSpecialties != null && message.hasOwnProperty("ageRangeSpecialties")) {
163385
+ if (!Array.isArray(message.ageRangeSpecialties))
163386
+ return "ageRangeSpecialties: array expected";
163387
+ for (var i = 0; i < message.ageRangeSpecialties.length; ++i)
163388
+ switch (message.ageRangeSpecialties[i]) {
163389
+ default:
163390
+ return "ageRangeSpecialties: enum value[] expected";
163391
+ case 0:
163392
+ case 1:
163393
+ break;
163394
+ }
163395
+ }
163396
+ if (message.races != null && message.hasOwnProperty("races")) {
163397
+ if (!Array.isArray(message.races))
163398
+ return "races: array expected";
163399
+ for (var i = 0; i < message.races.length; ++i)
163400
+ switch (message.races[i]) {
163401
+ default:
163402
+ return "races: enum value[] expected";
163403
+ case 0:
163404
+ case 1:
163405
+ case 2:
163406
+ case 3:
163407
+ case 4:
163408
+ case 5:
163409
+ case 6:
163410
+ case 7:
163411
+ break;
163412
+ }
163413
+ }
163414
+ if (message.genders != null && message.hasOwnProperty("genders")) {
163415
+ if (!Array.isArray(message.genders))
163416
+ return "genders: array expected";
163417
+ for (var i = 0; i < message.genders.length; ++i)
163418
+ switch (message.genders[i]) {
163419
+ default:
163420
+ return "genders: enum value[] expected";
163421
+ case 0:
163422
+ case 1:
163423
+ case 2:
163424
+ case 3:
163425
+ break;
163426
+ }
163427
+ }
163158
163428
  return null;
163159
163429
  };
163160
163430
 
@@ -163355,6 +163625,120 @@ $root.clinical = (function() {
163355
163625
  }
163356
163626
  if (object.isAutoRecordEnabled != null)
163357
163627
  message.isAutoRecordEnabled = Boolean(object.isAutoRecordEnabled);
163628
+ if (object.clinicalSpecialties) {
163629
+ if (!Array.isArray(object.clinicalSpecialties))
163630
+ throw TypeError(".clinical.Clinician.clinicalSpecialties: array expected");
163631
+ message.clinicalSpecialties = [];
163632
+ for (var i = 0; i < object.clinicalSpecialties.length; ++i)
163633
+ message.clinicalSpecialties[i] = String(object.clinicalSpecialties[i]);
163634
+ }
163635
+ if (object.therapyModalities) {
163636
+ if (!Array.isArray(object.therapyModalities))
163637
+ throw TypeError(".clinical.Clinician.therapyModalities: array expected");
163638
+ message.therapyModalities = [];
163639
+ for (var i = 0; i < object.therapyModalities.length; ++i)
163640
+ message.therapyModalities[i] = String(object.therapyModalities[i]);
163641
+ }
163642
+ if (object.languagesSpecialties) {
163643
+ if (!Array.isArray(object.languagesSpecialties))
163644
+ throw TypeError(".clinical.Clinician.languagesSpecialties: array expected");
163645
+ message.languagesSpecialties = [];
163646
+ for (var i = 0; i < object.languagesSpecialties.length; ++i)
163647
+ switch (object.languagesSpecialties[i]) {
163648
+ default:
163649
+ case "CLINICIAN_LANGUAGE_SPECIALTY_UNKNOWN":
163650
+ case 0:
163651
+ message.languagesSpecialties[i] = 0;
163652
+ break;
163653
+ case "CLINICIAN_LANGUAGE_SPECIALTY_SPANISH":
163654
+ case 1:
163655
+ message.languagesSpecialties[i] = 1;
163656
+ break;
163657
+ }
163658
+ }
163659
+ if (object.ageRangeSpecialties) {
163660
+ if (!Array.isArray(object.ageRangeSpecialties))
163661
+ throw TypeError(".clinical.Clinician.ageRangeSpecialties: array expected");
163662
+ message.ageRangeSpecialties = [];
163663
+ for (var i = 0; i < object.ageRangeSpecialties.length; ++i)
163664
+ switch (object.ageRangeSpecialties[i]) {
163665
+ default:
163666
+ case "CLINICIAN_AGE_RANGE_SPECIALTY_UNKNOWN":
163667
+ case 0:
163668
+ message.ageRangeSpecialties[i] = 0;
163669
+ break;
163670
+ case "CLINICIAN_AGE_RANGE_SPECIALTY_ADOLESCENT":
163671
+ case 1:
163672
+ message.ageRangeSpecialties[i] = 1;
163673
+ break;
163674
+ }
163675
+ }
163676
+ if (object.races) {
163677
+ if (!Array.isArray(object.races))
163678
+ throw TypeError(".clinical.Clinician.races: array expected");
163679
+ message.races = [];
163680
+ for (var i = 0; i < object.races.length; ++i)
163681
+ switch (object.races[i]) {
163682
+ default:
163683
+ case "CLINICIAN_RACE_UNKNOWN":
163684
+ case 0:
163685
+ message.races[i] = 0;
163686
+ break;
163687
+ case "CLINICIAN_RACE_ASIAN_PACIFIC_ISLANDER":
163688
+ case 1:
163689
+ message.races[i] = 1;
163690
+ break;
163691
+ case "CLINICIAN_RACE_BLACK_AFRICAN_AMERICAN":
163692
+ case 2:
163693
+ message.races[i] = 2;
163694
+ break;
163695
+ case "CLINICIAN_RACE_HISPANIC_LATINA_O_LATINX":
163696
+ case 3:
163697
+ message.races[i] = 3;
163698
+ break;
163699
+ case "CLINICIAN_RACE_NATIVE_AMERICAN_ALASKAN_NATIVE":
163700
+ case 4:
163701
+ message.races[i] = 4;
163702
+ break;
163703
+ case "CLINICIAN_RACE_MIDDLE_EASTERN_NORTH_AFRICAN":
163704
+ case 5:
163705
+ message.races[i] = 5;
163706
+ break;
163707
+ case "CLINICIAN_RACE_WHITE_CAUCASIAN":
163708
+ case 6:
163709
+ message.races[i] = 6;
163710
+ break;
163711
+ case "CLINICIAN_RACE_MULTIRACIAL":
163712
+ case 7:
163713
+ message.races[i] = 7;
163714
+ break;
163715
+ }
163716
+ }
163717
+ if (object.genders) {
163718
+ if (!Array.isArray(object.genders))
163719
+ throw TypeError(".clinical.Clinician.genders: array expected");
163720
+ message.genders = [];
163721
+ for (var i = 0; i < object.genders.length; ++i)
163722
+ switch (object.genders[i]) {
163723
+ default:
163724
+ case "CLINICIAN_GENDER_UNKNOWN":
163725
+ case 0:
163726
+ message.genders[i] = 0;
163727
+ break;
163728
+ case "CLINICIAN_GENDER_FEMALE":
163729
+ case 1:
163730
+ message.genders[i] = 1;
163731
+ break;
163732
+ case "CLINICIAN_GENDER_MALE":
163733
+ case 2:
163734
+ message.genders[i] = 2;
163735
+ break;
163736
+ case "CLINICIAN_GENDER_NON_BINARY":
163737
+ case 3:
163738
+ message.genders[i] = 3;
163739
+ break;
163740
+ }
163741
+ }
163358
163742
  return message;
163359
163743
  };
163360
163744
 
@@ -163375,6 +163759,12 @@ $root.clinical = (function() {
163375
163759
  object.validLicenses = [];
163376
163760
  object.specializations = [];
163377
163761
  object.oktaIds = [];
163762
+ object.clinicalSpecialties = [];
163763
+ object.therapyModalities = [];
163764
+ object.languagesSpecialties = [];
163765
+ object.ageRangeSpecialties = [];
163766
+ object.races = [];
163767
+ object.genders = [];
163378
163768
  }
163379
163769
  if (options.defaults) {
163380
163770
  object.id = "";
@@ -163461,6 +163851,36 @@ $root.clinical = (function() {
163461
163851
  }
163462
163852
  if (message.isAutoRecordEnabled != null && message.hasOwnProperty("isAutoRecordEnabled"))
163463
163853
  object.isAutoRecordEnabled = message.isAutoRecordEnabled;
163854
+ if (message.clinicalSpecialties && message.clinicalSpecialties.length) {
163855
+ object.clinicalSpecialties = [];
163856
+ for (var j = 0; j < message.clinicalSpecialties.length; ++j)
163857
+ object.clinicalSpecialties[j] = message.clinicalSpecialties[j];
163858
+ }
163859
+ if (message.therapyModalities && message.therapyModalities.length) {
163860
+ object.therapyModalities = [];
163861
+ for (var j = 0; j < message.therapyModalities.length; ++j)
163862
+ object.therapyModalities[j] = message.therapyModalities[j];
163863
+ }
163864
+ if (message.languagesSpecialties && message.languagesSpecialties.length) {
163865
+ object.languagesSpecialties = [];
163866
+ for (var j = 0; j < message.languagesSpecialties.length; ++j)
163867
+ object.languagesSpecialties[j] = options.enums === String ? $root.clinical.ClinicianLanguageSpecialty[message.languagesSpecialties[j]] : message.languagesSpecialties[j];
163868
+ }
163869
+ if (message.ageRangeSpecialties && message.ageRangeSpecialties.length) {
163870
+ object.ageRangeSpecialties = [];
163871
+ for (var j = 0; j < message.ageRangeSpecialties.length; ++j)
163872
+ object.ageRangeSpecialties[j] = options.enums === String ? $root.clinical.ClinicianAgeRangeSpecialty[message.ageRangeSpecialties[j]] : message.ageRangeSpecialties[j];
163873
+ }
163874
+ if (message.races && message.races.length) {
163875
+ object.races = [];
163876
+ for (var j = 0; j < message.races.length; ++j)
163877
+ object.races[j] = options.enums === String ? $root.clinical.ClinicianRace[message.races[j]] : message.races[j];
163878
+ }
163879
+ if (message.genders && message.genders.length) {
163880
+ object.genders = [];
163881
+ for (var j = 0; j < message.genders.length; ++j)
163882
+ object.genders[j] = options.enums === String ? $root.clinical.ClinicianGender[message.genders[j]] : message.genders[j];
163883
+ }
163464
163884
  return object;
163465
163885
  };
163466
163886
 
@@ -163803,6 +164223,80 @@ $root.clinical = (function() {
163803
164223
  return AppUser;
163804
164224
  })();
163805
164225
 
164226
+ /**
164227
+ * ClinicianGender enum.
164228
+ * @name clinical.ClinicianGender
164229
+ * @enum {string}
164230
+ * @property {number} CLINICIAN_GENDER_UNKNOWN=0 CLINICIAN_GENDER_UNKNOWN value
164231
+ * @property {number} CLINICIAN_GENDER_FEMALE=1 CLINICIAN_GENDER_FEMALE value
164232
+ * @property {number} CLINICIAN_GENDER_MALE=2 CLINICIAN_GENDER_MALE value
164233
+ * @property {number} CLINICIAN_GENDER_NON_BINARY=3 CLINICIAN_GENDER_NON_BINARY value
164234
+ */
164235
+ clinical.ClinicianGender = (function() {
164236
+ var valuesById = {}, values = Object.create(valuesById);
164237
+ values[valuesById[0] = "CLINICIAN_GENDER_UNKNOWN"] = 0;
164238
+ values[valuesById[1] = "CLINICIAN_GENDER_FEMALE"] = 1;
164239
+ values[valuesById[2] = "CLINICIAN_GENDER_MALE"] = 2;
164240
+ values[valuesById[3] = "CLINICIAN_GENDER_NON_BINARY"] = 3;
164241
+ return values;
164242
+ })();
164243
+
164244
+ /**
164245
+ * ClinicianRace enum.
164246
+ * @name clinical.ClinicianRace
164247
+ * @enum {string}
164248
+ * @property {number} CLINICIAN_RACE_UNKNOWN=0 CLINICIAN_RACE_UNKNOWN value
164249
+ * @property {number} CLINICIAN_RACE_ASIAN_PACIFIC_ISLANDER=1 CLINICIAN_RACE_ASIAN_PACIFIC_ISLANDER value
164250
+ * @property {number} CLINICIAN_RACE_BLACK_AFRICAN_AMERICAN=2 CLINICIAN_RACE_BLACK_AFRICAN_AMERICAN value
164251
+ * @property {number} CLINICIAN_RACE_HISPANIC_LATINA_O_LATINX=3 CLINICIAN_RACE_HISPANIC_LATINA_O_LATINX value
164252
+ * @property {number} CLINICIAN_RACE_NATIVE_AMERICAN_ALASKAN_NATIVE=4 CLINICIAN_RACE_NATIVE_AMERICAN_ALASKAN_NATIVE value
164253
+ * @property {number} CLINICIAN_RACE_MIDDLE_EASTERN_NORTH_AFRICAN=5 CLINICIAN_RACE_MIDDLE_EASTERN_NORTH_AFRICAN value
164254
+ * @property {number} CLINICIAN_RACE_WHITE_CAUCASIAN=6 CLINICIAN_RACE_WHITE_CAUCASIAN value
164255
+ * @property {number} CLINICIAN_RACE_MULTIRACIAL=7 CLINICIAN_RACE_MULTIRACIAL value
164256
+ */
164257
+ clinical.ClinicianRace = (function() {
164258
+ var valuesById = {}, values = Object.create(valuesById);
164259
+ values[valuesById[0] = "CLINICIAN_RACE_UNKNOWN"] = 0;
164260
+ values[valuesById[1] = "CLINICIAN_RACE_ASIAN_PACIFIC_ISLANDER"] = 1;
164261
+ values[valuesById[2] = "CLINICIAN_RACE_BLACK_AFRICAN_AMERICAN"] = 2;
164262
+ values[valuesById[3] = "CLINICIAN_RACE_HISPANIC_LATINA_O_LATINX"] = 3;
164263
+ values[valuesById[4] = "CLINICIAN_RACE_NATIVE_AMERICAN_ALASKAN_NATIVE"] = 4;
164264
+ values[valuesById[5] = "CLINICIAN_RACE_MIDDLE_EASTERN_NORTH_AFRICAN"] = 5;
164265
+ values[valuesById[6] = "CLINICIAN_RACE_WHITE_CAUCASIAN"] = 6;
164266
+ values[valuesById[7] = "CLINICIAN_RACE_MULTIRACIAL"] = 7;
164267
+ return values;
164268
+ })();
164269
+
164270
+ /**
164271
+ * List of clinician's language specialties (the clinican can be assigned to members with specific languages),
164272
+ * there is not language for english speaking members
164273
+ * @name clinical.ClinicianLanguageSpecialty
164274
+ * @enum {string}
164275
+ * @property {number} CLINICIAN_LANGUAGE_SPECIALTY_UNKNOWN=0 CLINICIAN_LANGUAGE_SPECIALTY_UNKNOWN value
164276
+ * @property {number} CLINICIAN_LANGUAGE_SPECIALTY_SPANISH=1 CLINICIAN_LANGUAGE_SPECIALTY_SPANISH value
164277
+ */
164278
+ clinical.ClinicianLanguageSpecialty = (function() {
164279
+ var valuesById = {}, values = Object.create(valuesById);
164280
+ values[valuesById[0] = "CLINICIAN_LANGUAGE_SPECIALTY_UNKNOWN"] = 0;
164281
+ values[valuesById[1] = "CLINICIAN_LANGUAGE_SPECIALTY_SPANISH"] = 1;
164282
+ return values;
164283
+ })();
164284
+
164285
+ /**
164286
+ * List of clinician's age range specialties (the clinican can be assigned to members with specific age ranges),
164287
+ * there is not age range for adults
164288
+ * @name clinical.ClinicianAgeRangeSpecialty
164289
+ * @enum {string}
164290
+ * @property {number} CLINICIAN_AGE_RANGE_SPECIALTY_UNKNOWN=0 CLINICIAN_AGE_RANGE_SPECIALTY_UNKNOWN value
164291
+ * @property {number} CLINICIAN_AGE_RANGE_SPECIALTY_ADOLESCENT=1 CLINICIAN_AGE_RANGE_SPECIALTY_ADOLESCENT value
164292
+ */
164293
+ clinical.ClinicianAgeRangeSpecialty = (function() {
164294
+ var valuesById = {}, values = Object.create(valuesById);
164295
+ values[valuesById[0] = "CLINICIAN_AGE_RANGE_SPECIALTY_UNKNOWN"] = 0;
164296
+ values[valuesById[1] = "CLINICIAN_AGE_RANGE_SPECIALTY_ADOLESCENT"] = 1;
164297
+ return values;
164298
+ })();
164299
+
163806
164300
  clinical.Coach = (function() {
163807
164301
 
163808
164302
  /**
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.702.0"
19
+ "version": "1.704.0"
20
20
  }