@headspace/protos-events 1.598.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.
Files changed (3) hide show
  1. package/lib/index.d.ts +102 -228
  2. package/lib/index.js +237 -613
  3. package/package.json +1 -1
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
@@ -14067,126 +14169,6 @@ export namespace b2b {
14067
14169
  public toJSON(): { [k: string]: any };
14068
14170
  }
14069
14171
 
14070
- /** Properties of a PartnerConsent. */
14071
- interface IPartnerConsent {
14072
-
14073
- /** PartnerConsent partnerConsentId */
14074
- partnerConsentId?: (number|null);
14075
-
14076
- /** PartnerConsent useCase */
14077
- useCase?: (string|null);
14078
-
14079
- /** PartnerConsent permissions */
14080
- permissions?: (string[]|null);
14081
-
14082
- /** PartnerConsent version */
14083
- version?: (number|null);
14084
-
14085
- /** PartnerConsent healthHubName */
14086
- healthHubName?: (string|null);
14087
-
14088
- /** PartnerConsent approved */
14089
- approved?: (boolean|null);
14090
- }
14091
-
14092
- /** Represents a PartnerConsent. */
14093
- class PartnerConsent implements IPartnerConsent {
14094
-
14095
- /**
14096
- * Constructs a new PartnerConsent.
14097
- * @param [properties] Properties to set
14098
- */
14099
- constructor(properties?: b2b.IPartnerConsent);
14100
-
14101
- /** PartnerConsent partnerConsentId. */
14102
- public partnerConsentId: number;
14103
-
14104
- /** PartnerConsent useCase. */
14105
- public useCase: string;
14106
-
14107
- /** PartnerConsent permissions. */
14108
- public permissions: string[];
14109
-
14110
- /** PartnerConsent version. */
14111
- public version: number;
14112
-
14113
- /** PartnerConsent healthHubName. */
14114
- public healthHubName: string;
14115
-
14116
- /** PartnerConsent approved. */
14117
- public approved: boolean;
14118
-
14119
- /**
14120
- * Creates a new PartnerConsent instance using the specified properties.
14121
- * @param [properties] Properties to set
14122
- * @returns PartnerConsent instance
14123
- */
14124
- public static create(properties?: b2b.IPartnerConsent): b2b.PartnerConsent;
14125
-
14126
- /**
14127
- * Encodes the specified PartnerConsent message. Does not implicitly {@link b2b.PartnerConsent.verify|verify} messages.
14128
- * @param message PartnerConsent message or plain object to encode
14129
- * @param [writer] Writer to encode to
14130
- * @returns Writer
14131
- */
14132
- public static encode(message: b2b.IPartnerConsent, writer?: $protobuf.Writer): $protobuf.Writer;
14133
-
14134
- /**
14135
- * Encodes the specified PartnerConsent message, length delimited. Does not implicitly {@link b2b.PartnerConsent.verify|verify} messages.
14136
- * @param message PartnerConsent message or plain object to encode
14137
- * @param [writer] Writer to encode to
14138
- * @returns Writer
14139
- */
14140
- public static encodeDelimited(message: b2b.IPartnerConsent, writer?: $protobuf.Writer): $protobuf.Writer;
14141
-
14142
- /**
14143
- * Decodes a PartnerConsent message from the specified reader or buffer.
14144
- * @param reader Reader or buffer to decode from
14145
- * @param [length] Message length if known beforehand
14146
- * @returns PartnerConsent
14147
- * @throws {Error} If the payload is not a reader or valid buffer
14148
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
14149
- */
14150
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): b2b.PartnerConsent;
14151
-
14152
- /**
14153
- * Decodes a PartnerConsent message from the specified reader or buffer, length delimited.
14154
- * @param reader Reader or buffer to decode from
14155
- * @returns PartnerConsent
14156
- * @throws {Error} If the payload is not a reader or valid buffer
14157
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
14158
- */
14159
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): b2b.PartnerConsent;
14160
-
14161
- /**
14162
- * Verifies a PartnerConsent message.
14163
- * @param message Plain object to verify
14164
- * @returns `null` if valid, otherwise the reason why it is not
14165
- */
14166
- public static verify(message: { [k: string]: any }): (string|null);
14167
-
14168
- /**
14169
- * Creates a PartnerConsent message from a plain object. Also converts values to their respective internal types.
14170
- * @param object Plain object
14171
- * @returns PartnerConsent
14172
- */
14173
- public static fromObject(object: { [k: string]: any }): b2b.PartnerConsent;
14174
-
14175
- /**
14176
- * Creates a plain object from a PartnerConsent message. Also converts values to other types if specified.
14177
- * @param message PartnerConsent
14178
- * @param [options] Conversion options
14179
- * @returns Plain object
14180
- */
14181
- public static toObject(message: b2b.PartnerConsent, options?: $protobuf.IConversionOptions): { [k: string]: any };
14182
-
14183
- /**
14184
- * Converts this PartnerConsent to JSON.
14185
- * @returns JSON object
14186
- */
14187
- public toJSON(): { [k: string]: any };
14188
- }
14189
-
14190
14172
  /** OrgRestrictBy enum. */
14191
14173
  enum OrgRestrictBy {
14192
14174
  ORG_RESTRICT_BY_UNKNOWN = 0,
@@ -44573,114 +44555,6 @@ export class GracefulExitCompleted implements IGracefulExitCompleted {
44573
44555
  public toJSON(): { [k: string]: any };
44574
44556
  }
44575
44557
 
44576
- /** Properties of a B2BPartnerConsentCreated. */
44577
- export interface IB2BPartnerConsentCreated {
44578
-
44579
- /** B2BPartnerConsentCreated partnerConsent */
44580
- partnerConsent?: (b2b.IPartnerConsent|null);
44581
-
44582
- /** B2BPartnerConsentCreated orgIds */
44583
- orgIds?: (number[]|null);
44584
-
44585
- /** B2BPartnerConsentCreated timestamp */
44586
- timestamp?: (number|Long|null);
44587
-
44588
- /** B2BPartnerConsentCreated consentCode */
44589
- consentCode?: (string|null);
44590
- }
44591
-
44592
- /** Represents a B2BPartnerConsentCreated. */
44593
- export class B2BPartnerConsentCreated implements IB2BPartnerConsentCreated {
44594
-
44595
- /**
44596
- * Constructs a new B2BPartnerConsentCreated.
44597
- * @param [properties] Properties to set
44598
- */
44599
- constructor(properties?: IB2BPartnerConsentCreated);
44600
-
44601
- /** B2BPartnerConsentCreated partnerConsent. */
44602
- public partnerConsent?: (b2b.IPartnerConsent|null);
44603
-
44604
- /** B2BPartnerConsentCreated orgIds. */
44605
- public orgIds: number[];
44606
-
44607
- /** B2BPartnerConsentCreated timestamp. */
44608
- public timestamp: (number|Long);
44609
-
44610
- /** B2BPartnerConsentCreated consentCode. */
44611
- public consentCode: string;
44612
-
44613
- /**
44614
- * Creates a new B2BPartnerConsentCreated instance using the specified properties.
44615
- * @param [properties] Properties to set
44616
- * @returns B2BPartnerConsentCreated instance
44617
- */
44618
- public static create(properties?: IB2BPartnerConsentCreated): B2BPartnerConsentCreated;
44619
-
44620
- /**
44621
- * Encodes the specified B2BPartnerConsentCreated message. Does not implicitly {@link B2BPartnerConsentCreated.verify|verify} messages.
44622
- * @param message B2BPartnerConsentCreated message or plain object to encode
44623
- * @param [writer] Writer to encode to
44624
- * @returns Writer
44625
- */
44626
- public static encode(message: IB2BPartnerConsentCreated, writer?: $protobuf.Writer): $protobuf.Writer;
44627
-
44628
- /**
44629
- * Encodes the specified B2BPartnerConsentCreated message, length delimited. Does not implicitly {@link B2BPartnerConsentCreated.verify|verify} messages.
44630
- * @param message B2BPartnerConsentCreated message or plain object to encode
44631
- * @param [writer] Writer to encode to
44632
- * @returns Writer
44633
- */
44634
- public static encodeDelimited(message: IB2BPartnerConsentCreated, writer?: $protobuf.Writer): $protobuf.Writer;
44635
-
44636
- /**
44637
- * Decodes a B2BPartnerConsentCreated message from the specified reader or buffer.
44638
- * @param reader Reader or buffer to decode from
44639
- * @param [length] Message length if known beforehand
44640
- * @returns B2BPartnerConsentCreated
44641
- * @throws {Error} If the payload is not a reader or valid buffer
44642
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
44643
- */
44644
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): B2BPartnerConsentCreated;
44645
-
44646
- /**
44647
- * Decodes a B2BPartnerConsentCreated message from the specified reader or buffer, length delimited.
44648
- * @param reader Reader or buffer to decode from
44649
- * @returns B2BPartnerConsentCreated
44650
- * @throws {Error} If the payload is not a reader or valid buffer
44651
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
44652
- */
44653
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): B2BPartnerConsentCreated;
44654
-
44655
- /**
44656
- * Verifies a B2BPartnerConsentCreated message.
44657
- * @param message Plain object to verify
44658
- * @returns `null` if valid, otherwise the reason why it is not
44659
- */
44660
- public static verify(message: { [k: string]: any }): (string|null);
44661
-
44662
- /**
44663
- * Creates a B2BPartnerConsentCreated message from a plain object. Also converts values to their respective internal types.
44664
- * @param object Plain object
44665
- * @returns B2BPartnerConsentCreated
44666
- */
44667
- public static fromObject(object: { [k: string]: any }): B2BPartnerConsentCreated;
44668
-
44669
- /**
44670
- * Creates a plain object from a B2BPartnerConsentCreated message. Also converts values to other types if specified.
44671
- * @param message B2BPartnerConsentCreated
44672
- * @param [options] Conversion options
44673
- * @returns Plain object
44674
- */
44675
- public static toObject(message: B2BPartnerConsentCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
44676
-
44677
- /**
44678
- * Converts this B2BPartnerConsentCreated to JSON.
44679
- * @returns JSON object
44680
- */
44681
- public toJSON(): { [k: string]: any };
44682
- }
44683
-
44684
44558
  /** Properties of a B2BMemberPartnerConsentRequested. */
44685
44559
  export interface IB2BMemberPartnerConsentRequested {
44686
44560
 
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
 
@@ -37543,321 +37780,6 @@ $root.b2b = (function() {
37543
37780
  return B2BSubscriptionManagement;
37544
37781
  })();
37545
37782
 
37546
- b2b.PartnerConsent = (function() {
37547
-
37548
- /**
37549
- * Properties of a PartnerConsent.
37550
- * @memberof b2b
37551
- * @interface IPartnerConsent
37552
- * @property {number|null} [partnerConsentId] PartnerConsent partnerConsentId
37553
- * @property {string|null} [useCase] PartnerConsent useCase
37554
- * @property {Array.<string>|null} [permissions] PartnerConsent permissions
37555
- * @property {number|null} [version] PartnerConsent version
37556
- * @property {string|null} [healthHubName] PartnerConsent healthHubName
37557
- * @property {boolean|null} [approved] PartnerConsent approved
37558
- */
37559
-
37560
- /**
37561
- * Constructs a new PartnerConsent.
37562
- * @memberof b2b
37563
- * @classdesc Represents a PartnerConsent.
37564
- * @implements IPartnerConsent
37565
- * @constructor
37566
- * @param {b2b.IPartnerConsent=} [properties] Properties to set
37567
- */
37568
- function PartnerConsent(properties) {
37569
- this.permissions = [];
37570
- if (properties)
37571
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
37572
- if (properties[keys[i]] != null)
37573
- this[keys[i]] = properties[keys[i]];
37574
- }
37575
-
37576
- /**
37577
- * PartnerConsent partnerConsentId.
37578
- * @member {number} partnerConsentId
37579
- * @memberof b2b.PartnerConsent
37580
- * @instance
37581
- */
37582
- PartnerConsent.prototype.partnerConsentId = 0;
37583
-
37584
- /**
37585
- * PartnerConsent useCase.
37586
- * @member {string} useCase
37587
- * @memberof b2b.PartnerConsent
37588
- * @instance
37589
- */
37590
- PartnerConsent.prototype.useCase = "";
37591
-
37592
- /**
37593
- * PartnerConsent permissions.
37594
- * @member {Array.<string>} permissions
37595
- * @memberof b2b.PartnerConsent
37596
- * @instance
37597
- */
37598
- PartnerConsent.prototype.permissions = $util.emptyArray;
37599
-
37600
- /**
37601
- * PartnerConsent version.
37602
- * @member {number} version
37603
- * @memberof b2b.PartnerConsent
37604
- * @instance
37605
- */
37606
- PartnerConsent.prototype.version = 0;
37607
-
37608
- /**
37609
- * PartnerConsent healthHubName.
37610
- * @member {string} healthHubName
37611
- * @memberof b2b.PartnerConsent
37612
- * @instance
37613
- */
37614
- PartnerConsent.prototype.healthHubName = "";
37615
-
37616
- /**
37617
- * PartnerConsent approved.
37618
- * @member {boolean} approved
37619
- * @memberof b2b.PartnerConsent
37620
- * @instance
37621
- */
37622
- PartnerConsent.prototype.approved = false;
37623
-
37624
- /**
37625
- * Creates a new PartnerConsent instance using the specified properties.
37626
- * @function create
37627
- * @memberof b2b.PartnerConsent
37628
- * @static
37629
- * @param {b2b.IPartnerConsent=} [properties] Properties to set
37630
- * @returns {b2b.PartnerConsent} PartnerConsent instance
37631
- */
37632
- PartnerConsent.create = function create(properties) {
37633
- return new PartnerConsent(properties);
37634
- };
37635
-
37636
- /**
37637
- * Encodes the specified PartnerConsent message. Does not implicitly {@link b2b.PartnerConsent.verify|verify} messages.
37638
- * @function encode
37639
- * @memberof b2b.PartnerConsent
37640
- * @static
37641
- * @param {b2b.IPartnerConsent} message PartnerConsent message or plain object to encode
37642
- * @param {$protobuf.Writer} [writer] Writer to encode to
37643
- * @returns {$protobuf.Writer} Writer
37644
- */
37645
- PartnerConsent.encode = function encode(message, writer) {
37646
- if (!writer)
37647
- writer = $Writer.create();
37648
- if (message.partnerConsentId != null && message.hasOwnProperty("partnerConsentId"))
37649
- writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.partnerConsentId);
37650
- if (message.useCase != null && message.hasOwnProperty("useCase"))
37651
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.useCase);
37652
- if (message.permissions != null && message.permissions.length)
37653
- for (var i = 0; i < message.permissions.length; ++i)
37654
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.permissions[i]);
37655
- if (message.version != null && message.hasOwnProperty("version"))
37656
- writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.version);
37657
- if (message.healthHubName != null && message.hasOwnProperty("healthHubName"))
37658
- writer.uint32(/* id 5, wireType 2 =*/42).string(message.healthHubName);
37659
- if (message.approved != null && message.hasOwnProperty("approved"))
37660
- writer.uint32(/* id 6, wireType 0 =*/48).bool(message.approved);
37661
- return writer;
37662
- };
37663
-
37664
- /**
37665
- * Encodes the specified PartnerConsent message, length delimited. Does not implicitly {@link b2b.PartnerConsent.verify|verify} messages.
37666
- * @function encodeDelimited
37667
- * @memberof b2b.PartnerConsent
37668
- * @static
37669
- * @param {b2b.IPartnerConsent} message PartnerConsent message or plain object to encode
37670
- * @param {$protobuf.Writer} [writer] Writer to encode to
37671
- * @returns {$protobuf.Writer} Writer
37672
- */
37673
- PartnerConsent.encodeDelimited = function encodeDelimited(message, writer) {
37674
- return this.encode(message, writer).ldelim();
37675
- };
37676
-
37677
- /**
37678
- * Decodes a PartnerConsent message from the specified reader or buffer.
37679
- * @function decode
37680
- * @memberof b2b.PartnerConsent
37681
- * @static
37682
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
37683
- * @param {number} [length] Message length if known beforehand
37684
- * @returns {b2b.PartnerConsent} PartnerConsent
37685
- * @throws {Error} If the payload is not a reader or valid buffer
37686
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
37687
- */
37688
- PartnerConsent.decode = function decode(reader, length) {
37689
- if (!(reader instanceof $Reader))
37690
- reader = $Reader.create(reader);
37691
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.b2b.PartnerConsent();
37692
- while (reader.pos < end) {
37693
- var tag = reader.uint32();
37694
- switch (tag >>> 3) {
37695
- case 1:
37696
- message.partnerConsentId = reader.uint32();
37697
- break;
37698
- case 2:
37699
- message.useCase = reader.string();
37700
- break;
37701
- case 3:
37702
- if (!(message.permissions && message.permissions.length))
37703
- message.permissions = [];
37704
- message.permissions.push(reader.string());
37705
- break;
37706
- case 4:
37707
- message.version = reader.uint32();
37708
- break;
37709
- case 5:
37710
- message.healthHubName = reader.string();
37711
- break;
37712
- case 6:
37713
- message.approved = reader.bool();
37714
- break;
37715
- default:
37716
- reader.skipType(tag & 7);
37717
- break;
37718
- }
37719
- }
37720
- return message;
37721
- };
37722
-
37723
- /**
37724
- * Decodes a PartnerConsent message from the specified reader or buffer, length delimited.
37725
- * @function decodeDelimited
37726
- * @memberof b2b.PartnerConsent
37727
- * @static
37728
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
37729
- * @returns {b2b.PartnerConsent} PartnerConsent
37730
- * @throws {Error} If the payload is not a reader or valid buffer
37731
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
37732
- */
37733
- PartnerConsent.decodeDelimited = function decodeDelimited(reader) {
37734
- if (!(reader instanceof $Reader))
37735
- reader = new $Reader(reader);
37736
- return this.decode(reader, reader.uint32());
37737
- };
37738
-
37739
- /**
37740
- * Verifies a PartnerConsent message.
37741
- * @function verify
37742
- * @memberof b2b.PartnerConsent
37743
- * @static
37744
- * @param {Object.<string,*>} message Plain object to verify
37745
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
37746
- */
37747
- PartnerConsent.verify = function verify(message) {
37748
- if (typeof message !== "object" || message === null)
37749
- return "object expected";
37750
- if (message.partnerConsentId != null && message.hasOwnProperty("partnerConsentId"))
37751
- if (!$util.isInteger(message.partnerConsentId))
37752
- return "partnerConsentId: integer expected";
37753
- if (message.useCase != null && message.hasOwnProperty("useCase"))
37754
- if (!$util.isString(message.useCase))
37755
- return "useCase: string expected";
37756
- if (message.permissions != null && message.hasOwnProperty("permissions")) {
37757
- if (!Array.isArray(message.permissions))
37758
- return "permissions: array expected";
37759
- for (var i = 0; i < message.permissions.length; ++i)
37760
- if (!$util.isString(message.permissions[i]))
37761
- return "permissions: string[] expected";
37762
- }
37763
- if (message.version != null && message.hasOwnProperty("version"))
37764
- if (!$util.isInteger(message.version))
37765
- return "version: integer expected";
37766
- if (message.healthHubName != null && message.hasOwnProperty("healthHubName"))
37767
- if (!$util.isString(message.healthHubName))
37768
- return "healthHubName: string expected";
37769
- if (message.approved != null && message.hasOwnProperty("approved"))
37770
- if (typeof message.approved !== "boolean")
37771
- return "approved: boolean expected";
37772
- return null;
37773
- };
37774
-
37775
- /**
37776
- * Creates a PartnerConsent message from a plain object. Also converts values to their respective internal types.
37777
- * @function fromObject
37778
- * @memberof b2b.PartnerConsent
37779
- * @static
37780
- * @param {Object.<string,*>} object Plain object
37781
- * @returns {b2b.PartnerConsent} PartnerConsent
37782
- */
37783
- PartnerConsent.fromObject = function fromObject(object) {
37784
- if (object instanceof $root.b2b.PartnerConsent)
37785
- return object;
37786
- var message = new $root.b2b.PartnerConsent();
37787
- if (object.partnerConsentId != null)
37788
- message.partnerConsentId = object.partnerConsentId >>> 0;
37789
- if (object.useCase != null)
37790
- message.useCase = String(object.useCase);
37791
- if (object.permissions) {
37792
- if (!Array.isArray(object.permissions))
37793
- throw TypeError(".b2b.PartnerConsent.permissions: array expected");
37794
- message.permissions = [];
37795
- for (var i = 0; i < object.permissions.length; ++i)
37796
- message.permissions[i] = String(object.permissions[i]);
37797
- }
37798
- if (object.version != null)
37799
- message.version = object.version >>> 0;
37800
- if (object.healthHubName != null)
37801
- message.healthHubName = String(object.healthHubName);
37802
- if (object.approved != null)
37803
- message.approved = Boolean(object.approved);
37804
- return message;
37805
- };
37806
-
37807
- /**
37808
- * Creates a plain object from a PartnerConsent message. Also converts values to other types if specified.
37809
- * @function toObject
37810
- * @memberof b2b.PartnerConsent
37811
- * @static
37812
- * @param {b2b.PartnerConsent} message PartnerConsent
37813
- * @param {$protobuf.IConversionOptions} [options] Conversion options
37814
- * @returns {Object.<string,*>} Plain object
37815
- */
37816
- PartnerConsent.toObject = function toObject(message, options) {
37817
- if (!options)
37818
- options = {};
37819
- var object = {};
37820
- if (options.arrays || options.defaults)
37821
- object.permissions = [];
37822
- if (options.defaults) {
37823
- object.partnerConsentId = 0;
37824
- object.useCase = "";
37825
- object.version = 0;
37826
- object.healthHubName = "";
37827
- object.approved = false;
37828
- }
37829
- if (message.partnerConsentId != null && message.hasOwnProperty("partnerConsentId"))
37830
- object.partnerConsentId = message.partnerConsentId;
37831
- if (message.useCase != null && message.hasOwnProperty("useCase"))
37832
- object.useCase = message.useCase;
37833
- if (message.permissions && message.permissions.length) {
37834
- object.permissions = [];
37835
- for (var j = 0; j < message.permissions.length; ++j)
37836
- object.permissions[j] = message.permissions[j];
37837
- }
37838
- if (message.version != null && message.hasOwnProperty("version"))
37839
- object.version = message.version;
37840
- if (message.healthHubName != null && message.hasOwnProperty("healthHubName"))
37841
- object.healthHubName = message.healthHubName;
37842
- if (message.approved != null && message.hasOwnProperty("approved"))
37843
- object.approved = message.approved;
37844
- return object;
37845
- };
37846
-
37847
- /**
37848
- * Converts this PartnerConsent to JSON.
37849
- * @function toJSON
37850
- * @memberof b2b.PartnerConsent
37851
- * @instance
37852
- * @returns {Object.<string,*>} JSON object
37853
- */
37854
- PartnerConsent.prototype.toJSON = function toJSON() {
37855
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
37856
- };
37857
-
37858
- return PartnerConsent;
37859
- })();
37860
-
37861
37783
  /**
37862
37784
  * OrgRestrictBy enum.
37863
37785
  * @name b2b.OrgRestrictBy
@@ -122541,304 +122463,6 @@ $root.GracefulExitCompleted = (function() {
122541
122463
  return GracefulExitCompleted;
122542
122464
  })();
122543
122465
 
122544
- $root.B2BPartnerConsentCreated = (function() {
122545
-
122546
- /**
122547
- * Properties of a B2BPartnerConsentCreated.
122548
- * @name IB2BPartnerConsentCreated
122549
- * @interface IB2BPartnerConsentCreated
122550
- * @property {b2b.IPartnerConsent|null} [partnerConsent] B2BPartnerConsentCreated partnerConsent
122551
- * @property {Array.<number>|null} [orgIds] B2BPartnerConsentCreated orgIds
122552
- * @property {number|Long|null} [timestamp] B2BPartnerConsentCreated timestamp
122553
- * @property {string|null} [consentCode] B2BPartnerConsentCreated consentCode
122554
- */
122555
-
122556
- /**
122557
- * Constructs a new B2BPartnerConsentCreated.
122558
- * @name B2BPartnerConsentCreated
122559
- * @classdesc Represents a B2BPartnerConsentCreated.
122560
- * @implements IB2BPartnerConsentCreated
122561
- * @constructor
122562
- * @param {IB2BPartnerConsentCreated=} [properties] Properties to set
122563
- */
122564
- function B2BPartnerConsentCreated(properties) {
122565
- this.orgIds = [];
122566
- if (properties)
122567
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
122568
- if (properties[keys[i]] != null)
122569
- this[keys[i]] = properties[keys[i]];
122570
- }
122571
-
122572
- /**
122573
- * B2BPartnerConsentCreated partnerConsent.
122574
- * @member {b2b.IPartnerConsent|null|undefined} partnerConsent
122575
- * @memberof B2BPartnerConsentCreated
122576
- * @instance
122577
- */
122578
- B2BPartnerConsentCreated.prototype.partnerConsent = null;
122579
-
122580
- /**
122581
- * B2BPartnerConsentCreated orgIds.
122582
- * @member {Array.<number>} orgIds
122583
- * @memberof B2BPartnerConsentCreated
122584
- * @instance
122585
- */
122586
- B2BPartnerConsentCreated.prototype.orgIds = $util.emptyArray;
122587
-
122588
- /**
122589
- * B2BPartnerConsentCreated timestamp.
122590
- * @member {number|Long} timestamp
122591
- * @memberof B2BPartnerConsentCreated
122592
- * @instance
122593
- */
122594
- B2BPartnerConsentCreated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
122595
-
122596
- /**
122597
- * B2BPartnerConsentCreated consentCode.
122598
- * @member {string} consentCode
122599
- * @memberof B2BPartnerConsentCreated
122600
- * @instance
122601
- */
122602
- B2BPartnerConsentCreated.prototype.consentCode = "";
122603
-
122604
- /**
122605
- * Creates a new B2BPartnerConsentCreated instance using the specified properties.
122606
- * @function create
122607
- * @memberof B2BPartnerConsentCreated
122608
- * @static
122609
- * @param {IB2BPartnerConsentCreated=} [properties] Properties to set
122610
- * @returns {B2BPartnerConsentCreated} B2BPartnerConsentCreated instance
122611
- */
122612
- B2BPartnerConsentCreated.create = function create(properties) {
122613
- return new B2BPartnerConsentCreated(properties);
122614
- };
122615
-
122616
- /**
122617
- * Encodes the specified B2BPartnerConsentCreated message. Does not implicitly {@link B2BPartnerConsentCreated.verify|verify} messages.
122618
- * @function encode
122619
- * @memberof B2BPartnerConsentCreated
122620
- * @static
122621
- * @param {IB2BPartnerConsentCreated} message B2BPartnerConsentCreated message or plain object to encode
122622
- * @param {$protobuf.Writer} [writer] Writer to encode to
122623
- * @returns {$protobuf.Writer} Writer
122624
- */
122625
- B2BPartnerConsentCreated.encode = function encode(message, writer) {
122626
- if (!writer)
122627
- writer = $Writer.create();
122628
- if (message.partnerConsent != null && message.hasOwnProperty("partnerConsent"))
122629
- $root.b2b.PartnerConsent.encode(message.partnerConsent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
122630
- if (message.orgIds != null && message.orgIds.length) {
122631
- writer.uint32(/* id 2, wireType 2 =*/18).fork();
122632
- for (var i = 0; i < message.orgIds.length; ++i)
122633
- writer.uint32(message.orgIds[i]);
122634
- writer.ldelim();
122635
- }
122636
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
122637
- writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
122638
- if (message.consentCode != null && message.hasOwnProperty("consentCode"))
122639
- writer.uint32(/* id 4, wireType 2 =*/34).string(message.consentCode);
122640
- return writer;
122641
- };
122642
-
122643
- /**
122644
- * Encodes the specified B2BPartnerConsentCreated message, length delimited. Does not implicitly {@link B2BPartnerConsentCreated.verify|verify} messages.
122645
- * @function encodeDelimited
122646
- * @memberof B2BPartnerConsentCreated
122647
- * @static
122648
- * @param {IB2BPartnerConsentCreated} message B2BPartnerConsentCreated message or plain object to encode
122649
- * @param {$protobuf.Writer} [writer] Writer to encode to
122650
- * @returns {$protobuf.Writer} Writer
122651
- */
122652
- B2BPartnerConsentCreated.encodeDelimited = function encodeDelimited(message, writer) {
122653
- return this.encode(message, writer).ldelim();
122654
- };
122655
-
122656
- /**
122657
- * Decodes a B2BPartnerConsentCreated message from the specified reader or buffer.
122658
- * @function decode
122659
- * @memberof B2BPartnerConsentCreated
122660
- * @static
122661
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
122662
- * @param {number} [length] Message length if known beforehand
122663
- * @returns {B2BPartnerConsentCreated} B2BPartnerConsentCreated
122664
- * @throws {Error} If the payload is not a reader or valid buffer
122665
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
122666
- */
122667
- B2BPartnerConsentCreated.decode = function decode(reader, length) {
122668
- if (!(reader instanceof $Reader))
122669
- reader = $Reader.create(reader);
122670
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.B2BPartnerConsentCreated();
122671
- while (reader.pos < end) {
122672
- var tag = reader.uint32();
122673
- switch (tag >>> 3) {
122674
- case 1:
122675
- message.partnerConsent = $root.b2b.PartnerConsent.decode(reader, reader.uint32());
122676
- break;
122677
- case 2:
122678
- if (!(message.orgIds && message.orgIds.length))
122679
- message.orgIds = [];
122680
- if ((tag & 7) === 2) {
122681
- var end2 = reader.uint32() + reader.pos;
122682
- while (reader.pos < end2)
122683
- message.orgIds.push(reader.uint32());
122684
- } else
122685
- message.orgIds.push(reader.uint32());
122686
- break;
122687
- case 3:
122688
- message.timestamp = reader.uint64();
122689
- break;
122690
- case 4:
122691
- message.consentCode = reader.string();
122692
- break;
122693
- default:
122694
- reader.skipType(tag & 7);
122695
- break;
122696
- }
122697
- }
122698
- return message;
122699
- };
122700
-
122701
- /**
122702
- * Decodes a B2BPartnerConsentCreated message from the specified reader or buffer, length delimited.
122703
- * @function decodeDelimited
122704
- * @memberof B2BPartnerConsentCreated
122705
- * @static
122706
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
122707
- * @returns {B2BPartnerConsentCreated} B2BPartnerConsentCreated
122708
- * @throws {Error} If the payload is not a reader or valid buffer
122709
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
122710
- */
122711
- B2BPartnerConsentCreated.decodeDelimited = function decodeDelimited(reader) {
122712
- if (!(reader instanceof $Reader))
122713
- reader = new $Reader(reader);
122714
- return this.decode(reader, reader.uint32());
122715
- };
122716
-
122717
- /**
122718
- * Verifies a B2BPartnerConsentCreated message.
122719
- * @function verify
122720
- * @memberof B2BPartnerConsentCreated
122721
- * @static
122722
- * @param {Object.<string,*>} message Plain object to verify
122723
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
122724
- */
122725
- B2BPartnerConsentCreated.verify = function verify(message) {
122726
- if (typeof message !== "object" || message === null)
122727
- return "object expected";
122728
- if (message.partnerConsent != null && message.hasOwnProperty("partnerConsent")) {
122729
- var error = $root.b2b.PartnerConsent.verify(message.partnerConsent);
122730
- if (error)
122731
- return "partnerConsent." + error;
122732
- }
122733
- if (message.orgIds != null && message.hasOwnProperty("orgIds")) {
122734
- if (!Array.isArray(message.orgIds))
122735
- return "orgIds: array expected";
122736
- for (var i = 0; i < message.orgIds.length; ++i)
122737
- if (!$util.isInteger(message.orgIds[i]))
122738
- return "orgIds: integer[] expected";
122739
- }
122740
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
122741
- if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
122742
- return "timestamp: integer|Long expected";
122743
- if (message.consentCode != null && message.hasOwnProperty("consentCode"))
122744
- if (!$util.isString(message.consentCode))
122745
- return "consentCode: string expected";
122746
- return null;
122747
- };
122748
-
122749
- /**
122750
- * Creates a B2BPartnerConsentCreated message from a plain object. Also converts values to their respective internal types.
122751
- * @function fromObject
122752
- * @memberof B2BPartnerConsentCreated
122753
- * @static
122754
- * @param {Object.<string,*>} object Plain object
122755
- * @returns {B2BPartnerConsentCreated} B2BPartnerConsentCreated
122756
- */
122757
- B2BPartnerConsentCreated.fromObject = function fromObject(object) {
122758
- if (object instanceof $root.B2BPartnerConsentCreated)
122759
- return object;
122760
- var message = new $root.B2BPartnerConsentCreated();
122761
- if (object.partnerConsent != null) {
122762
- if (typeof object.partnerConsent !== "object")
122763
- throw TypeError(".B2BPartnerConsentCreated.partnerConsent: object expected");
122764
- message.partnerConsent = $root.b2b.PartnerConsent.fromObject(object.partnerConsent);
122765
- }
122766
- if (object.orgIds) {
122767
- if (!Array.isArray(object.orgIds))
122768
- throw TypeError(".B2BPartnerConsentCreated.orgIds: array expected");
122769
- message.orgIds = [];
122770
- for (var i = 0; i < object.orgIds.length; ++i)
122771
- message.orgIds[i] = object.orgIds[i] >>> 0;
122772
- }
122773
- if (object.timestamp != null)
122774
- if ($util.Long)
122775
- (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
122776
- else if (typeof object.timestamp === "string")
122777
- message.timestamp = parseInt(object.timestamp, 10);
122778
- else if (typeof object.timestamp === "number")
122779
- message.timestamp = object.timestamp;
122780
- else if (typeof object.timestamp === "object")
122781
- message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
122782
- if (object.consentCode != null)
122783
- message.consentCode = String(object.consentCode);
122784
- return message;
122785
- };
122786
-
122787
- /**
122788
- * Creates a plain object from a B2BPartnerConsentCreated message. Also converts values to other types if specified.
122789
- * @function toObject
122790
- * @memberof B2BPartnerConsentCreated
122791
- * @static
122792
- * @param {B2BPartnerConsentCreated} message B2BPartnerConsentCreated
122793
- * @param {$protobuf.IConversionOptions} [options] Conversion options
122794
- * @returns {Object.<string,*>} Plain object
122795
- */
122796
- B2BPartnerConsentCreated.toObject = function toObject(message, options) {
122797
- if (!options)
122798
- options = {};
122799
- var object = {};
122800
- if (options.arrays || options.defaults)
122801
- object.orgIds = [];
122802
- if (options.defaults) {
122803
- object.partnerConsent = null;
122804
- if ($util.Long) {
122805
- var long = new $util.Long(0, 0, true);
122806
- object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
122807
- } else
122808
- object.timestamp = options.longs === String ? "0" : 0;
122809
- object.consentCode = "";
122810
- }
122811
- if (message.partnerConsent != null && message.hasOwnProperty("partnerConsent"))
122812
- object.partnerConsent = $root.b2b.PartnerConsent.toObject(message.partnerConsent, options);
122813
- if (message.orgIds && message.orgIds.length) {
122814
- object.orgIds = [];
122815
- for (var j = 0; j < message.orgIds.length; ++j)
122816
- object.orgIds[j] = message.orgIds[j];
122817
- }
122818
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
122819
- if (typeof message.timestamp === "number")
122820
- object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
122821
- else
122822
- object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
122823
- if (message.consentCode != null && message.hasOwnProperty("consentCode"))
122824
- object.consentCode = message.consentCode;
122825
- return object;
122826
- };
122827
-
122828
- /**
122829
- * Converts this B2BPartnerConsentCreated to JSON.
122830
- * @function toJSON
122831
- * @memberof B2BPartnerConsentCreated
122832
- * @instance
122833
- * @returns {Object.<string,*>} JSON object
122834
- */
122835
- B2BPartnerConsentCreated.prototype.toJSON = function toJSON() {
122836
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
122837
- };
122838
-
122839
- return B2BPartnerConsentCreated;
122840
- })();
122841
-
122842
122466
  $root.B2BMemberPartnerConsentRequested = (function() {
122843
122467
 
122844
122468
  /**
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.598.0"
19
+ "version": "1.600.0"
20
20
  }