@headspace/protos-events 1.599.0 → 1.600.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
@@ -1708,6 +1708,102 @@ export namespace clinical {
1708
1708
  COACH_SPECIALIZATION_TYPE_COACH_SPECIALIZATION_TESTER = 10
1709
1709
  }
1710
1710
 
1711
+ /** Properties of a CoachRoleDisplay. */
1712
+ interface ICoachRoleDisplay {
1713
+
1714
+ /** CoachRoleDisplay roleFamily */
1715
+ roleFamily?: (string|null);
1716
+
1717
+ /** CoachRoleDisplay roleModifier */
1718
+ roleModifier?: (string|null);
1719
+ }
1720
+
1721
+ /** Represents a CoachRoleDisplay. */
1722
+ class CoachRoleDisplay implements ICoachRoleDisplay {
1723
+
1724
+ /**
1725
+ * Constructs a new CoachRoleDisplay.
1726
+ * @param [properties] Properties to set
1727
+ */
1728
+ constructor(properties?: clinical.ICoachRoleDisplay);
1729
+
1730
+ /** CoachRoleDisplay roleFamily. */
1731
+ public roleFamily: string;
1732
+
1733
+ /** CoachRoleDisplay roleModifier. */
1734
+ public roleModifier: string;
1735
+
1736
+ /**
1737
+ * Creates a new CoachRoleDisplay instance using the specified properties.
1738
+ * @param [properties] Properties to set
1739
+ * @returns CoachRoleDisplay instance
1740
+ */
1741
+ public static create(properties?: clinical.ICoachRoleDisplay): clinical.CoachRoleDisplay;
1742
+
1743
+ /**
1744
+ * Encodes the specified CoachRoleDisplay message. Does not implicitly {@link clinical.CoachRoleDisplay.verify|verify} messages.
1745
+ * @param message CoachRoleDisplay message or plain object to encode
1746
+ * @param [writer] Writer to encode to
1747
+ * @returns Writer
1748
+ */
1749
+ public static encode(message: clinical.ICoachRoleDisplay, writer?: $protobuf.Writer): $protobuf.Writer;
1750
+
1751
+ /**
1752
+ * Encodes the specified CoachRoleDisplay message, length delimited. Does not implicitly {@link clinical.CoachRoleDisplay.verify|verify} messages.
1753
+ * @param message CoachRoleDisplay message or plain object to encode
1754
+ * @param [writer] Writer to encode to
1755
+ * @returns Writer
1756
+ */
1757
+ public static encodeDelimited(message: clinical.ICoachRoleDisplay, writer?: $protobuf.Writer): $protobuf.Writer;
1758
+
1759
+ /**
1760
+ * Decodes a CoachRoleDisplay message from the specified reader or buffer.
1761
+ * @param reader Reader or buffer to decode from
1762
+ * @param [length] Message length if known beforehand
1763
+ * @returns CoachRoleDisplay
1764
+ * @throws {Error} If the payload is not a reader or valid buffer
1765
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1766
+ */
1767
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): clinical.CoachRoleDisplay;
1768
+
1769
+ /**
1770
+ * Decodes a CoachRoleDisplay message from the specified reader or buffer, length delimited.
1771
+ * @param reader Reader or buffer to decode from
1772
+ * @returns CoachRoleDisplay
1773
+ * @throws {Error} If the payload is not a reader or valid buffer
1774
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1775
+ */
1776
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): clinical.CoachRoleDisplay;
1777
+
1778
+ /**
1779
+ * Verifies a CoachRoleDisplay message.
1780
+ * @param message Plain object to verify
1781
+ * @returns `null` if valid, otherwise the reason why it is not
1782
+ */
1783
+ public static verify(message: { [k: string]: any }): (string|null);
1784
+
1785
+ /**
1786
+ * Creates a CoachRoleDisplay message from a plain object. Also converts values to their respective internal types.
1787
+ * @param object Plain object
1788
+ * @returns CoachRoleDisplay
1789
+ */
1790
+ public static fromObject(object: { [k: string]: any }): clinical.CoachRoleDisplay;
1791
+
1792
+ /**
1793
+ * Creates a plain object from a CoachRoleDisplay message. Also converts values to other types if specified.
1794
+ * @param message CoachRoleDisplay
1795
+ * @param [options] Conversion options
1796
+ * @returns Plain object
1797
+ */
1798
+ public static toObject(message: clinical.CoachRoleDisplay, options?: $protobuf.IConversionOptions): { [k: string]: any };
1799
+
1800
+ /**
1801
+ * Converts this CoachRoleDisplay to JSON.
1802
+ * @returns JSON object
1803
+ */
1804
+ public toJSON(): { [k: string]: any };
1805
+ }
1806
+
1711
1807
  /** Properties of a CoachRole. */
1712
1808
  interface ICoachRole {
1713
1809
 
@@ -1716,6 +1812,9 @@ export namespace clinical {
1716
1812
 
1717
1813
  /** CoachRole roleType */
1718
1814
  roleType?: (clinical.CoachRoleType|null);
1815
+
1816
+ /** CoachRole roleDisplay */
1817
+ roleDisplay?: (clinical.ICoachRoleDisplay|null);
1719
1818
  }
1720
1819
 
1721
1820
  /** Represents a CoachRole. */
@@ -1733,6 +1832,9 @@ export namespace clinical {
1733
1832
  /** CoachRole roleType. */
1734
1833
  public roleType: clinical.CoachRoleType;
1735
1834
 
1835
+ /** CoachRole roleDisplay. */
1836
+ public roleDisplay?: (clinical.ICoachRoleDisplay|null);
1837
+
1736
1838
  /**
1737
1839
  * Creates a new CoachRole instance using the specified properties.
1738
1840
  * @param [properties] Properties to set
package/lib/index.js CHANGED
@@ -5856,6 +5856,216 @@ $root.clinical = (function() {
5856
5856
  return values;
5857
5857
  })();
5858
5858
 
5859
+ clinical.CoachRoleDisplay = (function() {
5860
+
5861
+ /**
5862
+ * Properties of a CoachRoleDisplay.
5863
+ * @memberof clinical
5864
+ * @interface ICoachRoleDisplay
5865
+ * @property {string|null} [roleFamily] CoachRoleDisplay roleFamily
5866
+ * @property {string|null} [roleModifier] CoachRoleDisplay roleModifier
5867
+ */
5868
+
5869
+ /**
5870
+ * Constructs a new CoachRoleDisplay.
5871
+ * @memberof clinical
5872
+ * @classdesc Represents a CoachRoleDisplay.
5873
+ * @implements ICoachRoleDisplay
5874
+ * @constructor
5875
+ * @param {clinical.ICoachRoleDisplay=} [properties] Properties to set
5876
+ */
5877
+ function CoachRoleDisplay(properties) {
5878
+ if (properties)
5879
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
5880
+ if (properties[keys[i]] != null)
5881
+ this[keys[i]] = properties[keys[i]];
5882
+ }
5883
+
5884
+ /**
5885
+ * CoachRoleDisplay roleFamily.
5886
+ * @member {string} roleFamily
5887
+ * @memberof clinical.CoachRoleDisplay
5888
+ * @instance
5889
+ */
5890
+ CoachRoleDisplay.prototype.roleFamily = "";
5891
+
5892
+ /**
5893
+ * CoachRoleDisplay roleModifier.
5894
+ * @member {string} roleModifier
5895
+ * @memberof clinical.CoachRoleDisplay
5896
+ * @instance
5897
+ */
5898
+ CoachRoleDisplay.prototype.roleModifier = "";
5899
+
5900
+ /**
5901
+ * Creates a new CoachRoleDisplay instance using the specified properties.
5902
+ * @function create
5903
+ * @memberof clinical.CoachRoleDisplay
5904
+ * @static
5905
+ * @param {clinical.ICoachRoleDisplay=} [properties] Properties to set
5906
+ * @returns {clinical.CoachRoleDisplay} CoachRoleDisplay instance
5907
+ */
5908
+ CoachRoleDisplay.create = function create(properties) {
5909
+ return new CoachRoleDisplay(properties);
5910
+ };
5911
+
5912
+ /**
5913
+ * Encodes the specified CoachRoleDisplay message. Does not implicitly {@link clinical.CoachRoleDisplay.verify|verify} messages.
5914
+ * @function encode
5915
+ * @memberof clinical.CoachRoleDisplay
5916
+ * @static
5917
+ * @param {clinical.ICoachRoleDisplay} message CoachRoleDisplay message or plain object to encode
5918
+ * @param {$protobuf.Writer} [writer] Writer to encode to
5919
+ * @returns {$protobuf.Writer} Writer
5920
+ */
5921
+ CoachRoleDisplay.encode = function encode(message, writer) {
5922
+ if (!writer)
5923
+ writer = $Writer.create();
5924
+ if (message.roleFamily != null && message.hasOwnProperty("roleFamily"))
5925
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.roleFamily);
5926
+ if (message.roleModifier != null && message.hasOwnProperty("roleModifier"))
5927
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.roleModifier);
5928
+ return writer;
5929
+ };
5930
+
5931
+ /**
5932
+ * Encodes the specified CoachRoleDisplay message, length delimited. Does not implicitly {@link clinical.CoachRoleDisplay.verify|verify} messages.
5933
+ * @function encodeDelimited
5934
+ * @memberof clinical.CoachRoleDisplay
5935
+ * @static
5936
+ * @param {clinical.ICoachRoleDisplay} message CoachRoleDisplay message or plain object to encode
5937
+ * @param {$protobuf.Writer} [writer] Writer to encode to
5938
+ * @returns {$protobuf.Writer} Writer
5939
+ */
5940
+ CoachRoleDisplay.encodeDelimited = function encodeDelimited(message, writer) {
5941
+ return this.encode(message, writer).ldelim();
5942
+ };
5943
+
5944
+ /**
5945
+ * Decodes a CoachRoleDisplay message from the specified reader or buffer.
5946
+ * @function decode
5947
+ * @memberof clinical.CoachRoleDisplay
5948
+ * @static
5949
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
5950
+ * @param {number} [length] Message length if known beforehand
5951
+ * @returns {clinical.CoachRoleDisplay} CoachRoleDisplay
5952
+ * @throws {Error} If the payload is not a reader or valid buffer
5953
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5954
+ */
5955
+ CoachRoleDisplay.decode = function decode(reader, length) {
5956
+ if (!(reader instanceof $Reader))
5957
+ reader = $Reader.create(reader);
5958
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.clinical.CoachRoleDisplay();
5959
+ while (reader.pos < end) {
5960
+ var tag = reader.uint32();
5961
+ switch (tag >>> 3) {
5962
+ case 1:
5963
+ message.roleFamily = reader.string();
5964
+ break;
5965
+ case 2:
5966
+ message.roleModifier = reader.string();
5967
+ break;
5968
+ default:
5969
+ reader.skipType(tag & 7);
5970
+ break;
5971
+ }
5972
+ }
5973
+ return message;
5974
+ };
5975
+
5976
+ /**
5977
+ * Decodes a CoachRoleDisplay message from the specified reader or buffer, length delimited.
5978
+ * @function decodeDelimited
5979
+ * @memberof clinical.CoachRoleDisplay
5980
+ * @static
5981
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
5982
+ * @returns {clinical.CoachRoleDisplay} CoachRoleDisplay
5983
+ * @throws {Error} If the payload is not a reader or valid buffer
5984
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5985
+ */
5986
+ CoachRoleDisplay.decodeDelimited = function decodeDelimited(reader) {
5987
+ if (!(reader instanceof $Reader))
5988
+ reader = new $Reader(reader);
5989
+ return this.decode(reader, reader.uint32());
5990
+ };
5991
+
5992
+ /**
5993
+ * Verifies a CoachRoleDisplay message.
5994
+ * @function verify
5995
+ * @memberof clinical.CoachRoleDisplay
5996
+ * @static
5997
+ * @param {Object.<string,*>} message Plain object to verify
5998
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
5999
+ */
6000
+ CoachRoleDisplay.verify = function verify(message) {
6001
+ if (typeof message !== "object" || message === null)
6002
+ return "object expected";
6003
+ if (message.roleFamily != null && message.hasOwnProperty("roleFamily"))
6004
+ if (!$util.isString(message.roleFamily))
6005
+ return "roleFamily: string expected";
6006
+ if (message.roleModifier != null && message.hasOwnProperty("roleModifier"))
6007
+ if (!$util.isString(message.roleModifier))
6008
+ return "roleModifier: string expected";
6009
+ return null;
6010
+ };
6011
+
6012
+ /**
6013
+ * Creates a CoachRoleDisplay message from a plain object. Also converts values to their respective internal types.
6014
+ * @function fromObject
6015
+ * @memberof clinical.CoachRoleDisplay
6016
+ * @static
6017
+ * @param {Object.<string,*>} object Plain object
6018
+ * @returns {clinical.CoachRoleDisplay} CoachRoleDisplay
6019
+ */
6020
+ CoachRoleDisplay.fromObject = function fromObject(object) {
6021
+ if (object instanceof $root.clinical.CoachRoleDisplay)
6022
+ return object;
6023
+ var message = new $root.clinical.CoachRoleDisplay();
6024
+ if (object.roleFamily != null)
6025
+ message.roleFamily = String(object.roleFamily);
6026
+ if (object.roleModifier != null)
6027
+ message.roleModifier = String(object.roleModifier);
6028
+ return message;
6029
+ };
6030
+
6031
+ /**
6032
+ * Creates a plain object from a CoachRoleDisplay message. Also converts values to other types if specified.
6033
+ * @function toObject
6034
+ * @memberof clinical.CoachRoleDisplay
6035
+ * @static
6036
+ * @param {clinical.CoachRoleDisplay} message CoachRoleDisplay
6037
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
6038
+ * @returns {Object.<string,*>} Plain object
6039
+ */
6040
+ CoachRoleDisplay.toObject = function toObject(message, options) {
6041
+ if (!options)
6042
+ options = {};
6043
+ var object = {};
6044
+ if (options.defaults) {
6045
+ object.roleFamily = "";
6046
+ object.roleModifier = "";
6047
+ }
6048
+ if (message.roleFamily != null && message.hasOwnProperty("roleFamily"))
6049
+ object.roleFamily = message.roleFamily;
6050
+ if (message.roleModifier != null && message.hasOwnProperty("roleModifier"))
6051
+ object.roleModifier = message.roleModifier;
6052
+ return object;
6053
+ };
6054
+
6055
+ /**
6056
+ * Converts this CoachRoleDisplay to JSON.
6057
+ * @function toJSON
6058
+ * @memberof clinical.CoachRoleDisplay
6059
+ * @instance
6060
+ * @returns {Object.<string,*>} JSON object
6061
+ */
6062
+ CoachRoleDisplay.prototype.toJSON = function toJSON() {
6063
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
6064
+ };
6065
+
6066
+ return CoachRoleDisplay;
6067
+ })();
6068
+
5859
6069
  clinical.CoachRole = (function() {
5860
6070
 
5861
6071
  /**
@@ -5864,6 +6074,7 @@ $root.clinical = (function() {
5864
6074
  * @interface ICoachRole
5865
6075
  * @property {number|Long|null} [createdAt] CoachRole createdAt
5866
6076
  * @property {clinical.CoachRoleType|null} [roleType] CoachRole roleType
6077
+ * @property {clinical.ICoachRoleDisplay|null} [roleDisplay] CoachRole roleDisplay
5867
6078
  */
5868
6079
 
5869
6080
  /**
@@ -5897,6 +6108,14 @@ $root.clinical = (function() {
5897
6108
  */
5898
6109
  CoachRole.prototype.roleType = 0;
5899
6110
 
6111
+ /**
6112
+ * CoachRole roleDisplay.
6113
+ * @member {clinical.ICoachRoleDisplay|null|undefined} roleDisplay
6114
+ * @memberof clinical.CoachRole
6115
+ * @instance
6116
+ */
6117
+ CoachRole.prototype.roleDisplay = null;
6118
+
5900
6119
  /**
5901
6120
  * Creates a new CoachRole instance using the specified properties.
5902
6121
  * @function create
@@ -5925,6 +6144,8 @@ $root.clinical = (function() {
5925
6144
  writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.createdAt);
5926
6145
  if (message.roleType != null && message.hasOwnProperty("roleType"))
5927
6146
  writer.uint32(/* id 2, wireType 0 =*/16).int32(message.roleType);
6147
+ if (message.roleDisplay != null && message.hasOwnProperty("roleDisplay"))
6148
+ $root.clinical.CoachRoleDisplay.encode(message.roleDisplay, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
5928
6149
  return writer;
5929
6150
  };
5930
6151
 
@@ -5965,6 +6186,9 @@ $root.clinical = (function() {
5965
6186
  case 2:
5966
6187
  message.roleType = reader.int32();
5967
6188
  break;
6189
+ case 3:
6190
+ message.roleDisplay = $root.clinical.CoachRoleDisplay.decode(reader, reader.uint32());
6191
+ break;
5968
6192
  default:
5969
6193
  reader.skipType(tag & 7);
5970
6194
  break;
@@ -6101,6 +6325,11 @@ $root.clinical = (function() {
6101
6325
  case 91:
6102
6326
  break;
6103
6327
  }
6328
+ if (message.roleDisplay != null && message.hasOwnProperty("roleDisplay")) {
6329
+ var error = $root.clinical.CoachRoleDisplay.verify(message.roleDisplay);
6330
+ if (error)
6331
+ return "roleDisplay." + error;
6332
+ }
6104
6333
  return null;
6105
6334
  };
6106
6335
 
@@ -6495,6 +6724,11 @@ $root.clinical = (function() {
6495
6724
  message.roleType = 91;
6496
6725
  break;
6497
6726
  }
6727
+ if (object.roleDisplay != null) {
6728
+ if (typeof object.roleDisplay !== "object")
6729
+ throw TypeError(".clinical.CoachRole.roleDisplay: object expected");
6730
+ message.roleDisplay = $root.clinical.CoachRoleDisplay.fromObject(object.roleDisplay);
6731
+ }
6498
6732
  return message;
6499
6733
  };
6500
6734
 
@@ -6518,6 +6752,7 @@ $root.clinical = (function() {
6518
6752
  } else
6519
6753
  object.createdAt = options.longs === String ? "0" : 0;
6520
6754
  object.roleType = options.enums === String ? "COACH_ROLE_TYPE_COACH_ROLE_UNKNOWN" : 0;
6755
+ object.roleDisplay = null;
6521
6756
  }
6522
6757
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
6523
6758
  if (typeof message.createdAt === "number")
@@ -6526,6 +6761,8 @@ $root.clinical = (function() {
6526
6761
  object.createdAt = options.longs === String ? $util.Long.prototype.toString.call(message.createdAt) : options.longs === Number ? new $util.LongBits(message.createdAt.low >>> 0, message.createdAt.high >>> 0).toNumber(true) : message.createdAt;
6527
6762
  if (message.roleType != null && message.hasOwnProperty("roleType"))
6528
6763
  object.roleType = options.enums === String ? $root.clinical.CoachRoleType[message.roleType] : message.roleType;
6764
+ if (message.roleDisplay != null && message.hasOwnProperty("roleDisplay"))
6765
+ object.roleDisplay = $root.clinical.CoachRoleDisplay.toObject(message.roleDisplay, options);
6529
6766
  return object;
6530
6767
  };
6531
6768
 
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.599.0"
19
+ "version": "1.600.0"
20
20
  }