@headspace/protos-events 1.578.0 → 1.580.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 +330 -0
- package/lib/index.js +850 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -10545,6 +10545,126 @@ export namespace b2b {
|
|
|
10545
10545
|
public toJSON(): { [k: string]: any };
|
|
10546
10546
|
}
|
|
10547
10547
|
|
|
10548
|
+
/** Properties of a PartnerConsent. */
|
|
10549
|
+
interface IPartnerConsent {
|
|
10550
|
+
|
|
10551
|
+
/** PartnerConsent partnerConsentId */
|
|
10552
|
+
partnerConsentId?: (string|null);
|
|
10553
|
+
|
|
10554
|
+
/** PartnerConsent useCase */
|
|
10555
|
+
useCase?: (string|null);
|
|
10556
|
+
|
|
10557
|
+
/** PartnerConsent permissions */
|
|
10558
|
+
permissions?: (string[]|null);
|
|
10559
|
+
|
|
10560
|
+
/** PartnerConsent version */
|
|
10561
|
+
version?: (number|null);
|
|
10562
|
+
|
|
10563
|
+
/** PartnerConsent healthHubName */
|
|
10564
|
+
healthHubName?: (string|null);
|
|
10565
|
+
|
|
10566
|
+
/** PartnerConsent approved */
|
|
10567
|
+
approved?: (boolean|null);
|
|
10568
|
+
}
|
|
10569
|
+
|
|
10570
|
+
/** Represents a PartnerConsent. */
|
|
10571
|
+
class PartnerConsent implements IPartnerConsent {
|
|
10572
|
+
|
|
10573
|
+
/**
|
|
10574
|
+
* Constructs a new PartnerConsent.
|
|
10575
|
+
* @param [properties] Properties to set
|
|
10576
|
+
*/
|
|
10577
|
+
constructor(properties?: b2b.IPartnerConsent);
|
|
10578
|
+
|
|
10579
|
+
/** PartnerConsent partnerConsentId. */
|
|
10580
|
+
public partnerConsentId: string;
|
|
10581
|
+
|
|
10582
|
+
/** PartnerConsent useCase. */
|
|
10583
|
+
public useCase: string;
|
|
10584
|
+
|
|
10585
|
+
/** PartnerConsent permissions. */
|
|
10586
|
+
public permissions: string[];
|
|
10587
|
+
|
|
10588
|
+
/** PartnerConsent version. */
|
|
10589
|
+
public version: number;
|
|
10590
|
+
|
|
10591
|
+
/** PartnerConsent healthHubName. */
|
|
10592
|
+
public healthHubName: string;
|
|
10593
|
+
|
|
10594
|
+
/** PartnerConsent approved. */
|
|
10595
|
+
public approved: boolean;
|
|
10596
|
+
|
|
10597
|
+
/**
|
|
10598
|
+
* Creates a new PartnerConsent instance using the specified properties.
|
|
10599
|
+
* @param [properties] Properties to set
|
|
10600
|
+
* @returns PartnerConsent instance
|
|
10601
|
+
*/
|
|
10602
|
+
public static create(properties?: b2b.IPartnerConsent): b2b.PartnerConsent;
|
|
10603
|
+
|
|
10604
|
+
/**
|
|
10605
|
+
* Encodes the specified PartnerConsent message. Does not implicitly {@link b2b.PartnerConsent.verify|verify} messages.
|
|
10606
|
+
* @param message PartnerConsent message or plain object to encode
|
|
10607
|
+
* @param [writer] Writer to encode to
|
|
10608
|
+
* @returns Writer
|
|
10609
|
+
*/
|
|
10610
|
+
public static encode(message: b2b.IPartnerConsent, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
10611
|
+
|
|
10612
|
+
/**
|
|
10613
|
+
* Encodes the specified PartnerConsent message, length delimited. Does not implicitly {@link b2b.PartnerConsent.verify|verify} messages.
|
|
10614
|
+
* @param message PartnerConsent message or plain object to encode
|
|
10615
|
+
* @param [writer] Writer to encode to
|
|
10616
|
+
* @returns Writer
|
|
10617
|
+
*/
|
|
10618
|
+
public static encodeDelimited(message: b2b.IPartnerConsent, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
10619
|
+
|
|
10620
|
+
/**
|
|
10621
|
+
* Decodes a PartnerConsent message from the specified reader or buffer.
|
|
10622
|
+
* @param reader Reader or buffer to decode from
|
|
10623
|
+
* @param [length] Message length if known beforehand
|
|
10624
|
+
* @returns PartnerConsent
|
|
10625
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10626
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10627
|
+
*/
|
|
10628
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): b2b.PartnerConsent;
|
|
10629
|
+
|
|
10630
|
+
/**
|
|
10631
|
+
* Decodes a PartnerConsent message from the specified reader or buffer, length delimited.
|
|
10632
|
+
* @param reader Reader or buffer to decode from
|
|
10633
|
+
* @returns PartnerConsent
|
|
10634
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10635
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10636
|
+
*/
|
|
10637
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): b2b.PartnerConsent;
|
|
10638
|
+
|
|
10639
|
+
/**
|
|
10640
|
+
* Verifies a PartnerConsent message.
|
|
10641
|
+
* @param message Plain object to verify
|
|
10642
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
10643
|
+
*/
|
|
10644
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
10645
|
+
|
|
10646
|
+
/**
|
|
10647
|
+
* Creates a PartnerConsent message from a plain object. Also converts values to their respective internal types.
|
|
10648
|
+
* @param object Plain object
|
|
10649
|
+
* @returns PartnerConsent
|
|
10650
|
+
*/
|
|
10651
|
+
public static fromObject(object: { [k: string]: any }): b2b.PartnerConsent;
|
|
10652
|
+
|
|
10653
|
+
/**
|
|
10654
|
+
* Creates a plain object from a PartnerConsent message. Also converts values to other types if specified.
|
|
10655
|
+
* @param message PartnerConsent
|
|
10656
|
+
* @param [options] Conversion options
|
|
10657
|
+
* @returns Plain object
|
|
10658
|
+
*/
|
|
10659
|
+
public static toObject(message: b2b.PartnerConsent, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
10660
|
+
|
|
10661
|
+
/**
|
|
10662
|
+
* Converts this PartnerConsent to JSON.
|
|
10663
|
+
* @returns JSON object
|
|
10664
|
+
*/
|
|
10665
|
+
public toJSON(): { [k: string]: any };
|
|
10666
|
+
}
|
|
10667
|
+
|
|
10548
10668
|
/** OrgRestrictBy enum. */
|
|
10549
10669
|
enum OrgRestrictBy {
|
|
10550
10670
|
ORG_RESTRICT_BY_UNKNOWN = 0,
|
|
@@ -26776,6 +26896,9 @@ export interface IContentCourseCompleted {
|
|
|
26776
26896
|
|
|
26777
26897
|
/** ContentCourseCompleted userId */
|
|
26778
26898
|
userId?: (string|null);
|
|
26899
|
+
|
|
26900
|
+
/** ContentCourseCompleted completedAt */
|
|
26901
|
+
completedAt?: (number|Long|null);
|
|
26779
26902
|
}
|
|
26780
26903
|
|
|
26781
26904
|
/** Represents a ContentCourseCompleted. */
|
|
@@ -26790,6 +26913,9 @@ export class ContentCourseCompleted implements IContentCourseCompleted {
|
|
|
26790
26913
|
/** ContentCourseCompleted userId. */
|
|
26791
26914
|
public userId: string;
|
|
26792
26915
|
|
|
26916
|
+
/** ContentCourseCompleted completedAt. */
|
|
26917
|
+
public completedAt: (number|Long);
|
|
26918
|
+
|
|
26793
26919
|
/**
|
|
26794
26920
|
* Creates a new ContentCourseCompleted instance using the specified properties.
|
|
26795
26921
|
* @param [properties] Properties to set
|
|
@@ -32532,6 +32658,210 @@ export class GracefulExitCompleted implements IGracefulExitCompleted {
|
|
|
32532
32658
|
public toJSON(): { [k: string]: any };
|
|
32533
32659
|
}
|
|
32534
32660
|
|
|
32661
|
+
/** Properties of a B2bPartnerConsentRequested. */
|
|
32662
|
+
export interface IB2bPartnerConsentRequested {
|
|
32663
|
+
|
|
32664
|
+
/** B2bPartnerConsentRequested partnerConsentId */
|
|
32665
|
+
partnerConsentId?: (string|null);
|
|
32666
|
+
|
|
32667
|
+
/** B2bPartnerConsentRequested hsUserId */
|
|
32668
|
+
hsUserId?: (string|null);
|
|
32669
|
+
|
|
32670
|
+
/** B2bPartnerConsentRequested timestamp */
|
|
32671
|
+
timestamp?: (number|Long|null);
|
|
32672
|
+
}
|
|
32673
|
+
|
|
32674
|
+
/** Represents a B2bPartnerConsentRequested. */
|
|
32675
|
+
export class B2bPartnerConsentRequested implements IB2bPartnerConsentRequested {
|
|
32676
|
+
|
|
32677
|
+
/**
|
|
32678
|
+
* Constructs a new B2bPartnerConsentRequested.
|
|
32679
|
+
* @param [properties] Properties to set
|
|
32680
|
+
*/
|
|
32681
|
+
constructor(properties?: IB2bPartnerConsentRequested);
|
|
32682
|
+
|
|
32683
|
+
/** B2bPartnerConsentRequested partnerConsentId. */
|
|
32684
|
+
public partnerConsentId: string;
|
|
32685
|
+
|
|
32686
|
+
/** B2bPartnerConsentRequested hsUserId. */
|
|
32687
|
+
public hsUserId: string;
|
|
32688
|
+
|
|
32689
|
+
/** B2bPartnerConsentRequested timestamp. */
|
|
32690
|
+
public timestamp: (number|Long);
|
|
32691
|
+
|
|
32692
|
+
/**
|
|
32693
|
+
* Creates a new B2bPartnerConsentRequested instance using the specified properties.
|
|
32694
|
+
* @param [properties] Properties to set
|
|
32695
|
+
* @returns B2bPartnerConsentRequested instance
|
|
32696
|
+
*/
|
|
32697
|
+
public static create(properties?: IB2bPartnerConsentRequested): B2bPartnerConsentRequested;
|
|
32698
|
+
|
|
32699
|
+
/**
|
|
32700
|
+
* Encodes the specified B2bPartnerConsentRequested message. Does not implicitly {@link B2bPartnerConsentRequested.verify|verify} messages.
|
|
32701
|
+
* @param message B2bPartnerConsentRequested message or plain object to encode
|
|
32702
|
+
* @param [writer] Writer to encode to
|
|
32703
|
+
* @returns Writer
|
|
32704
|
+
*/
|
|
32705
|
+
public static encode(message: IB2bPartnerConsentRequested, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
32706
|
+
|
|
32707
|
+
/**
|
|
32708
|
+
* Encodes the specified B2bPartnerConsentRequested message, length delimited. Does not implicitly {@link B2bPartnerConsentRequested.verify|verify} messages.
|
|
32709
|
+
* @param message B2bPartnerConsentRequested message or plain object to encode
|
|
32710
|
+
* @param [writer] Writer to encode to
|
|
32711
|
+
* @returns Writer
|
|
32712
|
+
*/
|
|
32713
|
+
public static encodeDelimited(message: IB2bPartnerConsentRequested, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
32714
|
+
|
|
32715
|
+
/**
|
|
32716
|
+
* Decodes a B2bPartnerConsentRequested message from the specified reader or buffer.
|
|
32717
|
+
* @param reader Reader or buffer to decode from
|
|
32718
|
+
* @param [length] Message length if known beforehand
|
|
32719
|
+
* @returns B2bPartnerConsentRequested
|
|
32720
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
32721
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
32722
|
+
*/
|
|
32723
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): B2bPartnerConsentRequested;
|
|
32724
|
+
|
|
32725
|
+
/**
|
|
32726
|
+
* Decodes a B2bPartnerConsentRequested message from the specified reader or buffer, length delimited.
|
|
32727
|
+
* @param reader Reader or buffer to decode from
|
|
32728
|
+
* @returns B2bPartnerConsentRequested
|
|
32729
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
32730
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
32731
|
+
*/
|
|
32732
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): B2bPartnerConsentRequested;
|
|
32733
|
+
|
|
32734
|
+
/**
|
|
32735
|
+
* Verifies a B2bPartnerConsentRequested message.
|
|
32736
|
+
* @param message Plain object to verify
|
|
32737
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
32738
|
+
*/
|
|
32739
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
32740
|
+
|
|
32741
|
+
/**
|
|
32742
|
+
* Creates a B2bPartnerConsentRequested message from a plain object. Also converts values to their respective internal types.
|
|
32743
|
+
* @param object Plain object
|
|
32744
|
+
* @returns B2bPartnerConsentRequested
|
|
32745
|
+
*/
|
|
32746
|
+
public static fromObject(object: { [k: string]: any }): B2bPartnerConsentRequested;
|
|
32747
|
+
|
|
32748
|
+
/**
|
|
32749
|
+
* Creates a plain object from a B2bPartnerConsentRequested message. Also converts values to other types if specified.
|
|
32750
|
+
* @param message B2bPartnerConsentRequested
|
|
32751
|
+
* @param [options] Conversion options
|
|
32752
|
+
* @returns Plain object
|
|
32753
|
+
*/
|
|
32754
|
+
public static toObject(message: B2bPartnerConsentRequested, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
32755
|
+
|
|
32756
|
+
/**
|
|
32757
|
+
* Converts this B2bPartnerConsentRequested to JSON.
|
|
32758
|
+
* @returns JSON object
|
|
32759
|
+
*/
|
|
32760
|
+
public toJSON(): { [k: string]: any };
|
|
32761
|
+
}
|
|
32762
|
+
|
|
32763
|
+
/** Properties of a B2bPartnerConsentRemovalRequested. */
|
|
32764
|
+
export interface IB2bPartnerConsentRemovalRequested {
|
|
32765
|
+
|
|
32766
|
+
/** B2bPartnerConsentRemovalRequested partnerConsent */
|
|
32767
|
+
partnerConsent?: (b2b.IPartnerConsent|null);
|
|
32768
|
+
|
|
32769
|
+
/** B2bPartnerConsentRemovalRequested hsUserId */
|
|
32770
|
+
hsUserId?: (string|null);
|
|
32771
|
+
|
|
32772
|
+
/** B2bPartnerConsentRemovalRequested timestamp */
|
|
32773
|
+
timestamp?: (number|Long|null);
|
|
32774
|
+
}
|
|
32775
|
+
|
|
32776
|
+
/** Represents a B2bPartnerConsentRemovalRequested. */
|
|
32777
|
+
export class B2bPartnerConsentRemovalRequested implements IB2bPartnerConsentRemovalRequested {
|
|
32778
|
+
|
|
32779
|
+
/**
|
|
32780
|
+
* Constructs a new B2bPartnerConsentRemovalRequested.
|
|
32781
|
+
* @param [properties] Properties to set
|
|
32782
|
+
*/
|
|
32783
|
+
constructor(properties?: IB2bPartnerConsentRemovalRequested);
|
|
32784
|
+
|
|
32785
|
+
/** B2bPartnerConsentRemovalRequested partnerConsent. */
|
|
32786
|
+
public partnerConsent?: (b2b.IPartnerConsent|null);
|
|
32787
|
+
|
|
32788
|
+
/** B2bPartnerConsentRemovalRequested hsUserId. */
|
|
32789
|
+
public hsUserId: string;
|
|
32790
|
+
|
|
32791
|
+
/** B2bPartnerConsentRemovalRequested timestamp. */
|
|
32792
|
+
public timestamp: (number|Long);
|
|
32793
|
+
|
|
32794
|
+
/**
|
|
32795
|
+
* Creates a new B2bPartnerConsentRemovalRequested instance using the specified properties.
|
|
32796
|
+
* @param [properties] Properties to set
|
|
32797
|
+
* @returns B2bPartnerConsentRemovalRequested instance
|
|
32798
|
+
*/
|
|
32799
|
+
public static create(properties?: IB2bPartnerConsentRemovalRequested): B2bPartnerConsentRemovalRequested;
|
|
32800
|
+
|
|
32801
|
+
/**
|
|
32802
|
+
* Encodes the specified B2bPartnerConsentRemovalRequested message. Does not implicitly {@link B2bPartnerConsentRemovalRequested.verify|verify} messages.
|
|
32803
|
+
* @param message B2bPartnerConsentRemovalRequested message or plain object to encode
|
|
32804
|
+
* @param [writer] Writer to encode to
|
|
32805
|
+
* @returns Writer
|
|
32806
|
+
*/
|
|
32807
|
+
public static encode(message: IB2bPartnerConsentRemovalRequested, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
32808
|
+
|
|
32809
|
+
/**
|
|
32810
|
+
* Encodes the specified B2bPartnerConsentRemovalRequested message, length delimited. Does not implicitly {@link B2bPartnerConsentRemovalRequested.verify|verify} messages.
|
|
32811
|
+
* @param message B2bPartnerConsentRemovalRequested message or plain object to encode
|
|
32812
|
+
* @param [writer] Writer to encode to
|
|
32813
|
+
* @returns Writer
|
|
32814
|
+
*/
|
|
32815
|
+
public static encodeDelimited(message: IB2bPartnerConsentRemovalRequested, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
32816
|
+
|
|
32817
|
+
/**
|
|
32818
|
+
* Decodes a B2bPartnerConsentRemovalRequested message from the specified reader or buffer.
|
|
32819
|
+
* @param reader Reader or buffer to decode from
|
|
32820
|
+
* @param [length] Message length if known beforehand
|
|
32821
|
+
* @returns B2bPartnerConsentRemovalRequested
|
|
32822
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
32823
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
32824
|
+
*/
|
|
32825
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): B2bPartnerConsentRemovalRequested;
|
|
32826
|
+
|
|
32827
|
+
/**
|
|
32828
|
+
* Decodes a B2bPartnerConsentRemovalRequested message from the specified reader or buffer, length delimited.
|
|
32829
|
+
* @param reader Reader or buffer to decode from
|
|
32830
|
+
* @returns B2bPartnerConsentRemovalRequested
|
|
32831
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
32832
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
32833
|
+
*/
|
|
32834
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): B2bPartnerConsentRemovalRequested;
|
|
32835
|
+
|
|
32836
|
+
/**
|
|
32837
|
+
* Verifies a B2bPartnerConsentRemovalRequested message.
|
|
32838
|
+
* @param message Plain object to verify
|
|
32839
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
32840
|
+
*/
|
|
32841
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
32842
|
+
|
|
32843
|
+
/**
|
|
32844
|
+
* Creates a B2bPartnerConsentRemovalRequested message from a plain object. Also converts values to their respective internal types.
|
|
32845
|
+
* @param object Plain object
|
|
32846
|
+
* @returns B2bPartnerConsentRemovalRequested
|
|
32847
|
+
*/
|
|
32848
|
+
public static fromObject(object: { [k: string]: any }): B2bPartnerConsentRemovalRequested;
|
|
32849
|
+
|
|
32850
|
+
/**
|
|
32851
|
+
* Creates a plain object from a B2bPartnerConsentRemovalRequested message. Also converts values to other types if specified.
|
|
32852
|
+
* @param message B2bPartnerConsentRemovalRequested
|
|
32853
|
+
* @param [options] Conversion options
|
|
32854
|
+
* @returns Plain object
|
|
32855
|
+
*/
|
|
32856
|
+
public static toObject(message: B2bPartnerConsentRemovalRequested, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
32857
|
+
|
|
32858
|
+
/**
|
|
32859
|
+
* Converts this B2bPartnerConsentRemovalRequested to JSON.
|
|
32860
|
+
* @returns JSON object
|
|
32861
|
+
*/
|
|
32862
|
+
public toJSON(): { [k: string]: any };
|
|
32863
|
+
}
|
|
32864
|
+
|
|
32535
32865
|
/** Properties of a HeadspaceContentShareCreated. */
|
|
32536
32866
|
export interface IHeadspaceContentShareCreated {
|
|
32537
32867
|
|
package/lib/index.js
CHANGED
|
@@ -25790,6 +25790,321 @@ $root.b2b = (function() {
|
|
|
25790
25790
|
return B2BSubscriptionManagement;
|
|
25791
25791
|
})();
|
|
25792
25792
|
|
|
25793
|
+
b2b.PartnerConsent = (function() {
|
|
25794
|
+
|
|
25795
|
+
/**
|
|
25796
|
+
* Properties of a PartnerConsent.
|
|
25797
|
+
* @memberof b2b
|
|
25798
|
+
* @interface IPartnerConsent
|
|
25799
|
+
* @property {string|null} [partnerConsentId] PartnerConsent partnerConsentId
|
|
25800
|
+
* @property {string|null} [useCase] PartnerConsent useCase
|
|
25801
|
+
* @property {Array.<string>|null} [permissions] PartnerConsent permissions
|
|
25802
|
+
* @property {number|null} [version] PartnerConsent version
|
|
25803
|
+
* @property {string|null} [healthHubName] PartnerConsent healthHubName
|
|
25804
|
+
* @property {boolean|null} [approved] PartnerConsent approved
|
|
25805
|
+
*/
|
|
25806
|
+
|
|
25807
|
+
/**
|
|
25808
|
+
* Constructs a new PartnerConsent.
|
|
25809
|
+
* @memberof b2b
|
|
25810
|
+
* @classdesc Represents a PartnerConsent.
|
|
25811
|
+
* @implements IPartnerConsent
|
|
25812
|
+
* @constructor
|
|
25813
|
+
* @param {b2b.IPartnerConsent=} [properties] Properties to set
|
|
25814
|
+
*/
|
|
25815
|
+
function PartnerConsent(properties) {
|
|
25816
|
+
this.permissions = [];
|
|
25817
|
+
if (properties)
|
|
25818
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
25819
|
+
if (properties[keys[i]] != null)
|
|
25820
|
+
this[keys[i]] = properties[keys[i]];
|
|
25821
|
+
}
|
|
25822
|
+
|
|
25823
|
+
/**
|
|
25824
|
+
* PartnerConsent partnerConsentId.
|
|
25825
|
+
* @member {string} partnerConsentId
|
|
25826
|
+
* @memberof b2b.PartnerConsent
|
|
25827
|
+
* @instance
|
|
25828
|
+
*/
|
|
25829
|
+
PartnerConsent.prototype.partnerConsentId = "";
|
|
25830
|
+
|
|
25831
|
+
/**
|
|
25832
|
+
* PartnerConsent useCase.
|
|
25833
|
+
* @member {string} useCase
|
|
25834
|
+
* @memberof b2b.PartnerConsent
|
|
25835
|
+
* @instance
|
|
25836
|
+
*/
|
|
25837
|
+
PartnerConsent.prototype.useCase = "";
|
|
25838
|
+
|
|
25839
|
+
/**
|
|
25840
|
+
* PartnerConsent permissions.
|
|
25841
|
+
* @member {Array.<string>} permissions
|
|
25842
|
+
* @memberof b2b.PartnerConsent
|
|
25843
|
+
* @instance
|
|
25844
|
+
*/
|
|
25845
|
+
PartnerConsent.prototype.permissions = $util.emptyArray;
|
|
25846
|
+
|
|
25847
|
+
/**
|
|
25848
|
+
* PartnerConsent version.
|
|
25849
|
+
* @member {number} version
|
|
25850
|
+
* @memberof b2b.PartnerConsent
|
|
25851
|
+
* @instance
|
|
25852
|
+
*/
|
|
25853
|
+
PartnerConsent.prototype.version = 0;
|
|
25854
|
+
|
|
25855
|
+
/**
|
|
25856
|
+
* PartnerConsent healthHubName.
|
|
25857
|
+
* @member {string} healthHubName
|
|
25858
|
+
* @memberof b2b.PartnerConsent
|
|
25859
|
+
* @instance
|
|
25860
|
+
*/
|
|
25861
|
+
PartnerConsent.prototype.healthHubName = "";
|
|
25862
|
+
|
|
25863
|
+
/**
|
|
25864
|
+
* PartnerConsent approved.
|
|
25865
|
+
* @member {boolean} approved
|
|
25866
|
+
* @memberof b2b.PartnerConsent
|
|
25867
|
+
* @instance
|
|
25868
|
+
*/
|
|
25869
|
+
PartnerConsent.prototype.approved = false;
|
|
25870
|
+
|
|
25871
|
+
/**
|
|
25872
|
+
* Creates a new PartnerConsent instance using the specified properties.
|
|
25873
|
+
* @function create
|
|
25874
|
+
* @memberof b2b.PartnerConsent
|
|
25875
|
+
* @static
|
|
25876
|
+
* @param {b2b.IPartnerConsent=} [properties] Properties to set
|
|
25877
|
+
* @returns {b2b.PartnerConsent} PartnerConsent instance
|
|
25878
|
+
*/
|
|
25879
|
+
PartnerConsent.create = function create(properties) {
|
|
25880
|
+
return new PartnerConsent(properties);
|
|
25881
|
+
};
|
|
25882
|
+
|
|
25883
|
+
/**
|
|
25884
|
+
* Encodes the specified PartnerConsent message. Does not implicitly {@link b2b.PartnerConsent.verify|verify} messages.
|
|
25885
|
+
* @function encode
|
|
25886
|
+
* @memberof b2b.PartnerConsent
|
|
25887
|
+
* @static
|
|
25888
|
+
* @param {b2b.IPartnerConsent} message PartnerConsent message or plain object to encode
|
|
25889
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
25890
|
+
* @returns {$protobuf.Writer} Writer
|
|
25891
|
+
*/
|
|
25892
|
+
PartnerConsent.encode = function encode(message, writer) {
|
|
25893
|
+
if (!writer)
|
|
25894
|
+
writer = $Writer.create();
|
|
25895
|
+
if (message.partnerConsentId != null && message.hasOwnProperty("partnerConsentId"))
|
|
25896
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.partnerConsentId);
|
|
25897
|
+
if (message.useCase != null && message.hasOwnProperty("useCase"))
|
|
25898
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.useCase);
|
|
25899
|
+
if (message.permissions != null && message.permissions.length)
|
|
25900
|
+
for (var i = 0; i < message.permissions.length; ++i)
|
|
25901
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.permissions[i]);
|
|
25902
|
+
if (message.version != null && message.hasOwnProperty("version"))
|
|
25903
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.version);
|
|
25904
|
+
if (message.healthHubName != null && message.hasOwnProperty("healthHubName"))
|
|
25905
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.healthHubName);
|
|
25906
|
+
if (message.approved != null && message.hasOwnProperty("approved"))
|
|
25907
|
+
writer.uint32(/* id 6, wireType 0 =*/48).bool(message.approved);
|
|
25908
|
+
return writer;
|
|
25909
|
+
};
|
|
25910
|
+
|
|
25911
|
+
/**
|
|
25912
|
+
* Encodes the specified PartnerConsent message, length delimited. Does not implicitly {@link b2b.PartnerConsent.verify|verify} messages.
|
|
25913
|
+
* @function encodeDelimited
|
|
25914
|
+
* @memberof b2b.PartnerConsent
|
|
25915
|
+
* @static
|
|
25916
|
+
* @param {b2b.IPartnerConsent} message PartnerConsent message or plain object to encode
|
|
25917
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
25918
|
+
* @returns {$protobuf.Writer} Writer
|
|
25919
|
+
*/
|
|
25920
|
+
PartnerConsent.encodeDelimited = function encodeDelimited(message, writer) {
|
|
25921
|
+
return this.encode(message, writer).ldelim();
|
|
25922
|
+
};
|
|
25923
|
+
|
|
25924
|
+
/**
|
|
25925
|
+
* Decodes a PartnerConsent message from the specified reader or buffer.
|
|
25926
|
+
* @function decode
|
|
25927
|
+
* @memberof b2b.PartnerConsent
|
|
25928
|
+
* @static
|
|
25929
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
25930
|
+
* @param {number} [length] Message length if known beforehand
|
|
25931
|
+
* @returns {b2b.PartnerConsent} PartnerConsent
|
|
25932
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
25933
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
25934
|
+
*/
|
|
25935
|
+
PartnerConsent.decode = function decode(reader, length) {
|
|
25936
|
+
if (!(reader instanceof $Reader))
|
|
25937
|
+
reader = $Reader.create(reader);
|
|
25938
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.b2b.PartnerConsent();
|
|
25939
|
+
while (reader.pos < end) {
|
|
25940
|
+
var tag = reader.uint32();
|
|
25941
|
+
switch (tag >>> 3) {
|
|
25942
|
+
case 1:
|
|
25943
|
+
message.partnerConsentId = reader.string();
|
|
25944
|
+
break;
|
|
25945
|
+
case 2:
|
|
25946
|
+
message.useCase = reader.string();
|
|
25947
|
+
break;
|
|
25948
|
+
case 3:
|
|
25949
|
+
if (!(message.permissions && message.permissions.length))
|
|
25950
|
+
message.permissions = [];
|
|
25951
|
+
message.permissions.push(reader.string());
|
|
25952
|
+
break;
|
|
25953
|
+
case 4:
|
|
25954
|
+
message.version = reader.uint32();
|
|
25955
|
+
break;
|
|
25956
|
+
case 5:
|
|
25957
|
+
message.healthHubName = reader.string();
|
|
25958
|
+
break;
|
|
25959
|
+
case 6:
|
|
25960
|
+
message.approved = reader.bool();
|
|
25961
|
+
break;
|
|
25962
|
+
default:
|
|
25963
|
+
reader.skipType(tag & 7);
|
|
25964
|
+
break;
|
|
25965
|
+
}
|
|
25966
|
+
}
|
|
25967
|
+
return message;
|
|
25968
|
+
};
|
|
25969
|
+
|
|
25970
|
+
/**
|
|
25971
|
+
* Decodes a PartnerConsent message from the specified reader or buffer, length delimited.
|
|
25972
|
+
* @function decodeDelimited
|
|
25973
|
+
* @memberof b2b.PartnerConsent
|
|
25974
|
+
* @static
|
|
25975
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
25976
|
+
* @returns {b2b.PartnerConsent} PartnerConsent
|
|
25977
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
25978
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
25979
|
+
*/
|
|
25980
|
+
PartnerConsent.decodeDelimited = function decodeDelimited(reader) {
|
|
25981
|
+
if (!(reader instanceof $Reader))
|
|
25982
|
+
reader = new $Reader(reader);
|
|
25983
|
+
return this.decode(reader, reader.uint32());
|
|
25984
|
+
};
|
|
25985
|
+
|
|
25986
|
+
/**
|
|
25987
|
+
* Verifies a PartnerConsent message.
|
|
25988
|
+
* @function verify
|
|
25989
|
+
* @memberof b2b.PartnerConsent
|
|
25990
|
+
* @static
|
|
25991
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
25992
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
25993
|
+
*/
|
|
25994
|
+
PartnerConsent.verify = function verify(message) {
|
|
25995
|
+
if (typeof message !== "object" || message === null)
|
|
25996
|
+
return "object expected";
|
|
25997
|
+
if (message.partnerConsentId != null && message.hasOwnProperty("partnerConsentId"))
|
|
25998
|
+
if (!$util.isString(message.partnerConsentId))
|
|
25999
|
+
return "partnerConsentId: string expected";
|
|
26000
|
+
if (message.useCase != null && message.hasOwnProperty("useCase"))
|
|
26001
|
+
if (!$util.isString(message.useCase))
|
|
26002
|
+
return "useCase: string expected";
|
|
26003
|
+
if (message.permissions != null && message.hasOwnProperty("permissions")) {
|
|
26004
|
+
if (!Array.isArray(message.permissions))
|
|
26005
|
+
return "permissions: array expected";
|
|
26006
|
+
for (var i = 0; i < message.permissions.length; ++i)
|
|
26007
|
+
if (!$util.isString(message.permissions[i]))
|
|
26008
|
+
return "permissions: string[] expected";
|
|
26009
|
+
}
|
|
26010
|
+
if (message.version != null && message.hasOwnProperty("version"))
|
|
26011
|
+
if (!$util.isInteger(message.version))
|
|
26012
|
+
return "version: integer expected";
|
|
26013
|
+
if (message.healthHubName != null && message.hasOwnProperty("healthHubName"))
|
|
26014
|
+
if (!$util.isString(message.healthHubName))
|
|
26015
|
+
return "healthHubName: string expected";
|
|
26016
|
+
if (message.approved != null && message.hasOwnProperty("approved"))
|
|
26017
|
+
if (typeof message.approved !== "boolean")
|
|
26018
|
+
return "approved: boolean expected";
|
|
26019
|
+
return null;
|
|
26020
|
+
};
|
|
26021
|
+
|
|
26022
|
+
/**
|
|
26023
|
+
* Creates a PartnerConsent message from a plain object. Also converts values to their respective internal types.
|
|
26024
|
+
* @function fromObject
|
|
26025
|
+
* @memberof b2b.PartnerConsent
|
|
26026
|
+
* @static
|
|
26027
|
+
* @param {Object.<string,*>} object Plain object
|
|
26028
|
+
* @returns {b2b.PartnerConsent} PartnerConsent
|
|
26029
|
+
*/
|
|
26030
|
+
PartnerConsent.fromObject = function fromObject(object) {
|
|
26031
|
+
if (object instanceof $root.b2b.PartnerConsent)
|
|
26032
|
+
return object;
|
|
26033
|
+
var message = new $root.b2b.PartnerConsent();
|
|
26034
|
+
if (object.partnerConsentId != null)
|
|
26035
|
+
message.partnerConsentId = String(object.partnerConsentId);
|
|
26036
|
+
if (object.useCase != null)
|
|
26037
|
+
message.useCase = String(object.useCase);
|
|
26038
|
+
if (object.permissions) {
|
|
26039
|
+
if (!Array.isArray(object.permissions))
|
|
26040
|
+
throw TypeError(".b2b.PartnerConsent.permissions: array expected");
|
|
26041
|
+
message.permissions = [];
|
|
26042
|
+
for (var i = 0; i < object.permissions.length; ++i)
|
|
26043
|
+
message.permissions[i] = String(object.permissions[i]);
|
|
26044
|
+
}
|
|
26045
|
+
if (object.version != null)
|
|
26046
|
+
message.version = object.version >>> 0;
|
|
26047
|
+
if (object.healthHubName != null)
|
|
26048
|
+
message.healthHubName = String(object.healthHubName);
|
|
26049
|
+
if (object.approved != null)
|
|
26050
|
+
message.approved = Boolean(object.approved);
|
|
26051
|
+
return message;
|
|
26052
|
+
};
|
|
26053
|
+
|
|
26054
|
+
/**
|
|
26055
|
+
* Creates a plain object from a PartnerConsent message. Also converts values to other types if specified.
|
|
26056
|
+
* @function toObject
|
|
26057
|
+
* @memberof b2b.PartnerConsent
|
|
26058
|
+
* @static
|
|
26059
|
+
* @param {b2b.PartnerConsent} message PartnerConsent
|
|
26060
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
26061
|
+
* @returns {Object.<string,*>} Plain object
|
|
26062
|
+
*/
|
|
26063
|
+
PartnerConsent.toObject = function toObject(message, options) {
|
|
26064
|
+
if (!options)
|
|
26065
|
+
options = {};
|
|
26066
|
+
var object = {};
|
|
26067
|
+
if (options.arrays || options.defaults)
|
|
26068
|
+
object.permissions = [];
|
|
26069
|
+
if (options.defaults) {
|
|
26070
|
+
object.partnerConsentId = "";
|
|
26071
|
+
object.useCase = "";
|
|
26072
|
+
object.version = 0;
|
|
26073
|
+
object.healthHubName = "";
|
|
26074
|
+
object.approved = false;
|
|
26075
|
+
}
|
|
26076
|
+
if (message.partnerConsentId != null && message.hasOwnProperty("partnerConsentId"))
|
|
26077
|
+
object.partnerConsentId = message.partnerConsentId;
|
|
26078
|
+
if (message.useCase != null && message.hasOwnProperty("useCase"))
|
|
26079
|
+
object.useCase = message.useCase;
|
|
26080
|
+
if (message.permissions && message.permissions.length) {
|
|
26081
|
+
object.permissions = [];
|
|
26082
|
+
for (var j = 0; j < message.permissions.length; ++j)
|
|
26083
|
+
object.permissions[j] = message.permissions[j];
|
|
26084
|
+
}
|
|
26085
|
+
if (message.version != null && message.hasOwnProperty("version"))
|
|
26086
|
+
object.version = message.version;
|
|
26087
|
+
if (message.healthHubName != null && message.hasOwnProperty("healthHubName"))
|
|
26088
|
+
object.healthHubName = message.healthHubName;
|
|
26089
|
+
if (message.approved != null && message.hasOwnProperty("approved"))
|
|
26090
|
+
object.approved = message.approved;
|
|
26091
|
+
return object;
|
|
26092
|
+
};
|
|
26093
|
+
|
|
26094
|
+
/**
|
|
26095
|
+
* Converts this PartnerConsent to JSON.
|
|
26096
|
+
* @function toJSON
|
|
26097
|
+
* @memberof b2b.PartnerConsent
|
|
26098
|
+
* @instance
|
|
26099
|
+
* @returns {Object.<string,*>} JSON object
|
|
26100
|
+
*/
|
|
26101
|
+
PartnerConsent.prototype.toJSON = function toJSON() {
|
|
26102
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
26103
|
+
};
|
|
26104
|
+
|
|
26105
|
+
return PartnerConsent;
|
|
26106
|
+
})();
|
|
26107
|
+
|
|
25793
26108
|
/**
|
|
25794
26109
|
* OrgRestrictBy enum.
|
|
25795
26110
|
* @name b2b.OrgRestrictBy
|
|
@@ -74935,6 +75250,7 @@ $root.ContentCourseCompleted = (function() {
|
|
|
74935
75250
|
* @name IContentCourseCompleted
|
|
74936
75251
|
* @interface IContentCourseCompleted
|
|
74937
75252
|
* @property {string|null} [userId] ContentCourseCompleted userId
|
|
75253
|
+
* @property {number|Long|null} [completedAt] ContentCourseCompleted completedAt
|
|
74938
75254
|
*/
|
|
74939
75255
|
|
|
74940
75256
|
/**
|
|
@@ -74960,6 +75276,14 @@ $root.ContentCourseCompleted = (function() {
|
|
|
74960
75276
|
*/
|
|
74961
75277
|
ContentCourseCompleted.prototype.userId = "";
|
|
74962
75278
|
|
|
75279
|
+
/**
|
|
75280
|
+
* ContentCourseCompleted completedAt.
|
|
75281
|
+
* @member {number|Long} completedAt
|
|
75282
|
+
* @memberof ContentCourseCompleted
|
|
75283
|
+
* @instance
|
|
75284
|
+
*/
|
|
75285
|
+
ContentCourseCompleted.prototype.completedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
75286
|
+
|
|
74963
75287
|
/**
|
|
74964
75288
|
* Creates a new ContentCourseCompleted instance using the specified properties.
|
|
74965
75289
|
* @function create
|
|
@@ -74986,6 +75310,8 @@ $root.ContentCourseCompleted = (function() {
|
|
|
74986
75310
|
writer = $Writer.create();
|
|
74987
75311
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
74988
75312
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
|
|
75313
|
+
if (message.completedAt != null && message.hasOwnProperty("completedAt"))
|
|
75314
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.completedAt);
|
|
74989
75315
|
return writer;
|
|
74990
75316
|
};
|
|
74991
75317
|
|
|
@@ -75023,6 +75349,9 @@ $root.ContentCourseCompleted = (function() {
|
|
|
75023
75349
|
case 1:
|
|
75024
75350
|
message.userId = reader.string();
|
|
75025
75351
|
break;
|
|
75352
|
+
case 2:
|
|
75353
|
+
message.completedAt = reader.uint64();
|
|
75354
|
+
break;
|
|
75026
75355
|
default:
|
|
75027
75356
|
reader.skipType(tag & 7);
|
|
75028
75357
|
break;
|
|
@@ -75061,6 +75390,9 @@ $root.ContentCourseCompleted = (function() {
|
|
|
75061
75390
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
75062
75391
|
if (!$util.isString(message.userId))
|
|
75063
75392
|
return "userId: string expected";
|
|
75393
|
+
if (message.completedAt != null && message.hasOwnProperty("completedAt"))
|
|
75394
|
+
if (!$util.isInteger(message.completedAt) && !(message.completedAt && $util.isInteger(message.completedAt.low) && $util.isInteger(message.completedAt.high)))
|
|
75395
|
+
return "completedAt: integer|Long expected";
|
|
75064
75396
|
return null;
|
|
75065
75397
|
};
|
|
75066
75398
|
|
|
@@ -75078,6 +75410,15 @@ $root.ContentCourseCompleted = (function() {
|
|
|
75078
75410
|
var message = new $root.ContentCourseCompleted();
|
|
75079
75411
|
if (object.userId != null)
|
|
75080
75412
|
message.userId = String(object.userId);
|
|
75413
|
+
if (object.completedAt != null)
|
|
75414
|
+
if ($util.Long)
|
|
75415
|
+
(message.completedAt = $util.Long.fromValue(object.completedAt)).unsigned = true;
|
|
75416
|
+
else if (typeof object.completedAt === "string")
|
|
75417
|
+
message.completedAt = parseInt(object.completedAt, 10);
|
|
75418
|
+
else if (typeof object.completedAt === "number")
|
|
75419
|
+
message.completedAt = object.completedAt;
|
|
75420
|
+
else if (typeof object.completedAt === "object")
|
|
75421
|
+
message.completedAt = new $util.LongBits(object.completedAt.low >>> 0, object.completedAt.high >>> 0).toNumber(true);
|
|
75081
75422
|
return message;
|
|
75082
75423
|
};
|
|
75083
75424
|
|
|
@@ -75094,10 +75435,21 @@ $root.ContentCourseCompleted = (function() {
|
|
|
75094
75435
|
if (!options)
|
|
75095
75436
|
options = {};
|
|
75096
75437
|
var object = {};
|
|
75097
|
-
if (options.defaults)
|
|
75438
|
+
if (options.defaults) {
|
|
75098
75439
|
object.userId = "";
|
|
75440
|
+
if ($util.Long) {
|
|
75441
|
+
var long = new $util.Long(0, 0, true);
|
|
75442
|
+
object.completedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
75443
|
+
} else
|
|
75444
|
+
object.completedAt = options.longs === String ? "0" : 0;
|
|
75445
|
+
}
|
|
75099
75446
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
75100
75447
|
object.userId = message.userId;
|
|
75448
|
+
if (message.completedAt != null && message.hasOwnProperty("completedAt"))
|
|
75449
|
+
if (typeof message.completedAt === "number")
|
|
75450
|
+
object.completedAt = options.longs === String ? String(message.completedAt) : message.completedAt;
|
|
75451
|
+
else
|
|
75452
|
+
object.completedAt = options.longs === String ? $util.Long.prototype.toString.call(message.completedAt) : options.longs === Number ? new $util.LongBits(message.completedAt.low >>> 0, message.completedAt.high >>> 0).toNumber(true) : message.completedAt;
|
|
75101
75453
|
return object;
|
|
75102
75454
|
};
|
|
75103
75455
|
|
|
@@ -90982,6 +91334,503 @@ $root.GracefulExitCompleted = (function() {
|
|
|
90982
91334
|
return GracefulExitCompleted;
|
|
90983
91335
|
})();
|
|
90984
91336
|
|
|
91337
|
+
$root.B2bPartnerConsentRequested = (function() {
|
|
91338
|
+
|
|
91339
|
+
/**
|
|
91340
|
+
* Properties of a B2bPartnerConsentRequested.
|
|
91341
|
+
* @name IB2bPartnerConsentRequested
|
|
91342
|
+
* @interface IB2bPartnerConsentRequested
|
|
91343
|
+
* @property {string|null} [partnerConsentId] B2bPartnerConsentRequested partnerConsentId
|
|
91344
|
+
* @property {string|null} [hsUserId] B2bPartnerConsentRequested hsUserId
|
|
91345
|
+
* @property {number|Long|null} [timestamp] B2bPartnerConsentRequested timestamp
|
|
91346
|
+
*/
|
|
91347
|
+
|
|
91348
|
+
/**
|
|
91349
|
+
* Constructs a new B2bPartnerConsentRequested.
|
|
91350
|
+
* @name B2bPartnerConsentRequested
|
|
91351
|
+
* @classdesc Represents a B2bPartnerConsentRequested.
|
|
91352
|
+
* @implements IB2bPartnerConsentRequested
|
|
91353
|
+
* @constructor
|
|
91354
|
+
* @param {IB2bPartnerConsentRequested=} [properties] Properties to set
|
|
91355
|
+
*/
|
|
91356
|
+
function B2bPartnerConsentRequested(properties) {
|
|
91357
|
+
if (properties)
|
|
91358
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
91359
|
+
if (properties[keys[i]] != null)
|
|
91360
|
+
this[keys[i]] = properties[keys[i]];
|
|
91361
|
+
}
|
|
91362
|
+
|
|
91363
|
+
/**
|
|
91364
|
+
* B2bPartnerConsentRequested partnerConsentId.
|
|
91365
|
+
* @member {string} partnerConsentId
|
|
91366
|
+
* @memberof B2bPartnerConsentRequested
|
|
91367
|
+
* @instance
|
|
91368
|
+
*/
|
|
91369
|
+
B2bPartnerConsentRequested.prototype.partnerConsentId = "";
|
|
91370
|
+
|
|
91371
|
+
/**
|
|
91372
|
+
* B2bPartnerConsentRequested hsUserId.
|
|
91373
|
+
* @member {string} hsUserId
|
|
91374
|
+
* @memberof B2bPartnerConsentRequested
|
|
91375
|
+
* @instance
|
|
91376
|
+
*/
|
|
91377
|
+
B2bPartnerConsentRequested.prototype.hsUserId = "";
|
|
91378
|
+
|
|
91379
|
+
/**
|
|
91380
|
+
* B2bPartnerConsentRequested timestamp.
|
|
91381
|
+
* @member {number|Long} timestamp
|
|
91382
|
+
* @memberof B2bPartnerConsentRequested
|
|
91383
|
+
* @instance
|
|
91384
|
+
*/
|
|
91385
|
+
B2bPartnerConsentRequested.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
91386
|
+
|
|
91387
|
+
/**
|
|
91388
|
+
* Creates a new B2bPartnerConsentRequested instance using the specified properties.
|
|
91389
|
+
* @function create
|
|
91390
|
+
* @memberof B2bPartnerConsentRequested
|
|
91391
|
+
* @static
|
|
91392
|
+
* @param {IB2bPartnerConsentRequested=} [properties] Properties to set
|
|
91393
|
+
* @returns {B2bPartnerConsentRequested} B2bPartnerConsentRequested instance
|
|
91394
|
+
*/
|
|
91395
|
+
B2bPartnerConsentRequested.create = function create(properties) {
|
|
91396
|
+
return new B2bPartnerConsentRequested(properties);
|
|
91397
|
+
};
|
|
91398
|
+
|
|
91399
|
+
/**
|
|
91400
|
+
* Encodes the specified B2bPartnerConsentRequested message. Does not implicitly {@link B2bPartnerConsentRequested.verify|verify} messages.
|
|
91401
|
+
* @function encode
|
|
91402
|
+
* @memberof B2bPartnerConsentRequested
|
|
91403
|
+
* @static
|
|
91404
|
+
* @param {IB2bPartnerConsentRequested} message B2bPartnerConsentRequested message or plain object to encode
|
|
91405
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
91406
|
+
* @returns {$protobuf.Writer} Writer
|
|
91407
|
+
*/
|
|
91408
|
+
B2bPartnerConsentRequested.encode = function encode(message, writer) {
|
|
91409
|
+
if (!writer)
|
|
91410
|
+
writer = $Writer.create();
|
|
91411
|
+
if (message.partnerConsentId != null && message.hasOwnProperty("partnerConsentId"))
|
|
91412
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.partnerConsentId);
|
|
91413
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
91414
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.hsUserId);
|
|
91415
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
91416
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
|
|
91417
|
+
return writer;
|
|
91418
|
+
};
|
|
91419
|
+
|
|
91420
|
+
/**
|
|
91421
|
+
* Encodes the specified B2bPartnerConsentRequested message, length delimited. Does not implicitly {@link B2bPartnerConsentRequested.verify|verify} messages.
|
|
91422
|
+
* @function encodeDelimited
|
|
91423
|
+
* @memberof B2bPartnerConsentRequested
|
|
91424
|
+
* @static
|
|
91425
|
+
* @param {IB2bPartnerConsentRequested} message B2bPartnerConsentRequested message or plain object to encode
|
|
91426
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
91427
|
+
* @returns {$protobuf.Writer} Writer
|
|
91428
|
+
*/
|
|
91429
|
+
B2bPartnerConsentRequested.encodeDelimited = function encodeDelimited(message, writer) {
|
|
91430
|
+
return this.encode(message, writer).ldelim();
|
|
91431
|
+
};
|
|
91432
|
+
|
|
91433
|
+
/**
|
|
91434
|
+
* Decodes a B2bPartnerConsentRequested message from the specified reader or buffer.
|
|
91435
|
+
* @function decode
|
|
91436
|
+
* @memberof B2bPartnerConsentRequested
|
|
91437
|
+
* @static
|
|
91438
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
91439
|
+
* @param {number} [length] Message length if known beforehand
|
|
91440
|
+
* @returns {B2bPartnerConsentRequested} B2bPartnerConsentRequested
|
|
91441
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
91442
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
91443
|
+
*/
|
|
91444
|
+
B2bPartnerConsentRequested.decode = function decode(reader, length) {
|
|
91445
|
+
if (!(reader instanceof $Reader))
|
|
91446
|
+
reader = $Reader.create(reader);
|
|
91447
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.B2bPartnerConsentRequested();
|
|
91448
|
+
while (reader.pos < end) {
|
|
91449
|
+
var tag = reader.uint32();
|
|
91450
|
+
switch (tag >>> 3) {
|
|
91451
|
+
case 1:
|
|
91452
|
+
message.partnerConsentId = reader.string();
|
|
91453
|
+
break;
|
|
91454
|
+
case 2:
|
|
91455
|
+
message.hsUserId = reader.string();
|
|
91456
|
+
break;
|
|
91457
|
+
case 3:
|
|
91458
|
+
message.timestamp = reader.uint64();
|
|
91459
|
+
break;
|
|
91460
|
+
default:
|
|
91461
|
+
reader.skipType(tag & 7);
|
|
91462
|
+
break;
|
|
91463
|
+
}
|
|
91464
|
+
}
|
|
91465
|
+
return message;
|
|
91466
|
+
};
|
|
91467
|
+
|
|
91468
|
+
/**
|
|
91469
|
+
* Decodes a B2bPartnerConsentRequested message from the specified reader or buffer, length delimited.
|
|
91470
|
+
* @function decodeDelimited
|
|
91471
|
+
* @memberof B2bPartnerConsentRequested
|
|
91472
|
+
* @static
|
|
91473
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
91474
|
+
* @returns {B2bPartnerConsentRequested} B2bPartnerConsentRequested
|
|
91475
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
91476
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
91477
|
+
*/
|
|
91478
|
+
B2bPartnerConsentRequested.decodeDelimited = function decodeDelimited(reader) {
|
|
91479
|
+
if (!(reader instanceof $Reader))
|
|
91480
|
+
reader = new $Reader(reader);
|
|
91481
|
+
return this.decode(reader, reader.uint32());
|
|
91482
|
+
};
|
|
91483
|
+
|
|
91484
|
+
/**
|
|
91485
|
+
* Verifies a B2bPartnerConsentRequested message.
|
|
91486
|
+
* @function verify
|
|
91487
|
+
* @memberof B2bPartnerConsentRequested
|
|
91488
|
+
* @static
|
|
91489
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
91490
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
91491
|
+
*/
|
|
91492
|
+
B2bPartnerConsentRequested.verify = function verify(message) {
|
|
91493
|
+
if (typeof message !== "object" || message === null)
|
|
91494
|
+
return "object expected";
|
|
91495
|
+
if (message.partnerConsentId != null && message.hasOwnProperty("partnerConsentId"))
|
|
91496
|
+
if (!$util.isString(message.partnerConsentId))
|
|
91497
|
+
return "partnerConsentId: string expected";
|
|
91498
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
91499
|
+
if (!$util.isString(message.hsUserId))
|
|
91500
|
+
return "hsUserId: string expected";
|
|
91501
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
91502
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
91503
|
+
return "timestamp: integer|Long expected";
|
|
91504
|
+
return null;
|
|
91505
|
+
};
|
|
91506
|
+
|
|
91507
|
+
/**
|
|
91508
|
+
* Creates a B2bPartnerConsentRequested message from a plain object. Also converts values to their respective internal types.
|
|
91509
|
+
* @function fromObject
|
|
91510
|
+
* @memberof B2bPartnerConsentRequested
|
|
91511
|
+
* @static
|
|
91512
|
+
* @param {Object.<string,*>} object Plain object
|
|
91513
|
+
* @returns {B2bPartnerConsentRequested} B2bPartnerConsentRequested
|
|
91514
|
+
*/
|
|
91515
|
+
B2bPartnerConsentRequested.fromObject = function fromObject(object) {
|
|
91516
|
+
if (object instanceof $root.B2bPartnerConsentRequested)
|
|
91517
|
+
return object;
|
|
91518
|
+
var message = new $root.B2bPartnerConsentRequested();
|
|
91519
|
+
if (object.partnerConsentId != null)
|
|
91520
|
+
message.partnerConsentId = String(object.partnerConsentId);
|
|
91521
|
+
if (object.hsUserId != null)
|
|
91522
|
+
message.hsUserId = String(object.hsUserId);
|
|
91523
|
+
if (object.timestamp != null)
|
|
91524
|
+
if ($util.Long)
|
|
91525
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
91526
|
+
else if (typeof object.timestamp === "string")
|
|
91527
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
91528
|
+
else if (typeof object.timestamp === "number")
|
|
91529
|
+
message.timestamp = object.timestamp;
|
|
91530
|
+
else if (typeof object.timestamp === "object")
|
|
91531
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
91532
|
+
return message;
|
|
91533
|
+
};
|
|
91534
|
+
|
|
91535
|
+
/**
|
|
91536
|
+
* Creates a plain object from a B2bPartnerConsentRequested message. Also converts values to other types if specified.
|
|
91537
|
+
* @function toObject
|
|
91538
|
+
* @memberof B2bPartnerConsentRequested
|
|
91539
|
+
* @static
|
|
91540
|
+
* @param {B2bPartnerConsentRequested} message B2bPartnerConsentRequested
|
|
91541
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
91542
|
+
* @returns {Object.<string,*>} Plain object
|
|
91543
|
+
*/
|
|
91544
|
+
B2bPartnerConsentRequested.toObject = function toObject(message, options) {
|
|
91545
|
+
if (!options)
|
|
91546
|
+
options = {};
|
|
91547
|
+
var object = {};
|
|
91548
|
+
if (options.defaults) {
|
|
91549
|
+
object.partnerConsentId = "";
|
|
91550
|
+
object.hsUserId = "";
|
|
91551
|
+
if ($util.Long) {
|
|
91552
|
+
var long = new $util.Long(0, 0, true);
|
|
91553
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
91554
|
+
} else
|
|
91555
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
91556
|
+
}
|
|
91557
|
+
if (message.partnerConsentId != null && message.hasOwnProperty("partnerConsentId"))
|
|
91558
|
+
object.partnerConsentId = message.partnerConsentId;
|
|
91559
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
91560
|
+
object.hsUserId = message.hsUserId;
|
|
91561
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
91562
|
+
if (typeof message.timestamp === "number")
|
|
91563
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
91564
|
+
else
|
|
91565
|
+
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;
|
|
91566
|
+
return object;
|
|
91567
|
+
};
|
|
91568
|
+
|
|
91569
|
+
/**
|
|
91570
|
+
* Converts this B2bPartnerConsentRequested to JSON.
|
|
91571
|
+
* @function toJSON
|
|
91572
|
+
* @memberof B2bPartnerConsentRequested
|
|
91573
|
+
* @instance
|
|
91574
|
+
* @returns {Object.<string,*>} JSON object
|
|
91575
|
+
*/
|
|
91576
|
+
B2bPartnerConsentRequested.prototype.toJSON = function toJSON() {
|
|
91577
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
91578
|
+
};
|
|
91579
|
+
|
|
91580
|
+
return B2bPartnerConsentRequested;
|
|
91581
|
+
})();
|
|
91582
|
+
|
|
91583
|
+
$root.B2bPartnerConsentRemovalRequested = (function() {
|
|
91584
|
+
|
|
91585
|
+
/**
|
|
91586
|
+
* Properties of a B2bPartnerConsentRemovalRequested.
|
|
91587
|
+
* @name IB2bPartnerConsentRemovalRequested
|
|
91588
|
+
* @interface IB2bPartnerConsentRemovalRequested
|
|
91589
|
+
* @property {b2b.IPartnerConsent|null} [partnerConsent] B2bPartnerConsentRemovalRequested partnerConsent
|
|
91590
|
+
* @property {string|null} [hsUserId] B2bPartnerConsentRemovalRequested hsUserId
|
|
91591
|
+
* @property {number|Long|null} [timestamp] B2bPartnerConsentRemovalRequested timestamp
|
|
91592
|
+
*/
|
|
91593
|
+
|
|
91594
|
+
/**
|
|
91595
|
+
* Constructs a new B2bPartnerConsentRemovalRequested.
|
|
91596
|
+
* @name B2bPartnerConsentRemovalRequested
|
|
91597
|
+
* @classdesc Represents a B2bPartnerConsentRemovalRequested.
|
|
91598
|
+
* @implements IB2bPartnerConsentRemovalRequested
|
|
91599
|
+
* @constructor
|
|
91600
|
+
* @param {IB2bPartnerConsentRemovalRequested=} [properties] Properties to set
|
|
91601
|
+
*/
|
|
91602
|
+
function B2bPartnerConsentRemovalRequested(properties) {
|
|
91603
|
+
if (properties)
|
|
91604
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
91605
|
+
if (properties[keys[i]] != null)
|
|
91606
|
+
this[keys[i]] = properties[keys[i]];
|
|
91607
|
+
}
|
|
91608
|
+
|
|
91609
|
+
/**
|
|
91610
|
+
* B2bPartnerConsentRemovalRequested partnerConsent.
|
|
91611
|
+
* @member {b2b.IPartnerConsent|null|undefined} partnerConsent
|
|
91612
|
+
* @memberof B2bPartnerConsentRemovalRequested
|
|
91613
|
+
* @instance
|
|
91614
|
+
*/
|
|
91615
|
+
B2bPartnerConsentRemovalRequested.prototype.partnerConsent = null;
|
|
91616
|
+
|
|
91617
|
+
/**
|
|
91618
|
+
* B2bPartnerConsentRemovalRequested hsUserId.
|
|
91619
|
+
* @member {string} hsUserId
|
|
91620
|
+
* @memberof B2bPartnerConsentRemovalRequested
|
|
91621
|
+
* @instance
|
|
91622
|
+
*/
|
|
91623
|
+
B2bPartnerConsentRemovalRequested.prototype.hsUserId = "";
|
|
91624
|
+
|
|
91625
|
+
/**
|
|
91626
|
+
* B2bPartnerConsentRemovalRequested timestamp.
|
|
91627
|
+
* @member {number|Long} timestamp
|
|
91628
|
+
* @memberof B2bPartnerConsentRemovalRequested
|
|
91629
|
+
* @instance
|
|
91630
|
+
*/
|
|
91631
|
+
B2bPartnerConsentRemovalRequested.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
91632
|
+
|
|
91633
|
+
/**
|
|
91634
|
+
* Creates a new B2bPartnerConsentRemovalRequested instance using the specified properties.
|
|
91635
|
+
* @function create
|
|
91636
|
+
* @memberof B2bPartnerConsentRemovalRequested
|
|
91637
|
+
* @static
|
|
91638
|
+
* @param {IB2bPartnerConsentRemovalRequested=} [properties] Properties to set
|
|
91639
|
+
* @returns {B2bPartnerConsentRemovalRequested} B2bPartnerConsentRemovalRequested instance
|
|
91640
|
+
*/
|
|
91641
|
+
B2bPartnerConsentRemovalRequested.create = function create(properties) {
|
|
91642
|
+
return new B2bPartnerConsentRemovalRequested(properties);
|
|
91643
|
+
};
|
|
91644
|
+
|
|
91645
|
+
/**
|
|
91646
|
+
* Encodes the specified B2bPartnerConsentRemovalRequested message. Does not implicitly {@link B2bPartnerConsentRemovalRequested.verify|verify} messages.
|
|
91647
|
+
* @function encode
|
|
91648
|
+
* @memberof B2bPartnerConsentRemovalRequested
|
|
91649
|
+
* @static
|
|
91650
|
+
* @param {IB2bPartnerConsentRemovalRequested} message B2bPartnerConsentRemovalRequested message or plain object to encode
|
|
91651
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
91652
|
+
* @returns {$protobuf.Writer} Writer
|
|
91653
|
+
*/
|
|
91654
|
+
B2bPartnerConsentRemovalRequested.encode = function encode(message, writer) {
|
|
91655
|
+
if (!writer)
|
|
91656
|
+
writer = $Writer.create();
|
|
91657
|
+
if (message.partnerConsent != null && message.hasOwnProperty("partnerConsent"))
|
|
91658
|
+
$root.b2b.PartnerConsent.encode(message.partnerConsent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
91659
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
91660
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.hsUserId);
|
|
91661
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
91662
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
|
|
91663
|
+
return writer;
|
|
91664
|
+
};
|
|
91665
|
+
|
|
91666
|
+
/**
|
|
91667
|
+
* Encodes the specified B2bPartnerConsentRemovalRequested message, length delimited. Does not implicitly {@link B2bPartnerConsentRemovalRequested.verify|verify} messages.
|
|
91668
|
+
* @function encodeDelimited
|
|
91669
|
+
* @memberof B2bPartnerConsentRemovalRequested
|
|
91670
|
+
* @static
|
|
91671
|
+
* @param {IB2bPartnerConsentRemovalRequested} message B2bPartnerConsentRemovalRequested message or plain object to encode
|
|
91672
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
91673
|
+
* @returns {$protobuf.Writer} Writer
|
|
91674
|
+
*/
|
|
91675
|
+
B2bPartnerConsentRemovalRequested.encodeDelimited = function encodeDelimited(message, writer) {
|
|
91676
|
+
return this.encode(message, writer).ldelim();
|
|
91677
|
+
};
|
|
91678
|
+
|
|
91679
|
+
/**
|
|
91680
|
+
* Decodes a B2bPartnerConsentRemovalRequested message from the specified reader or buffer.
|
|
91681
|
+
* @function decode
|
|
91682
|
+
* @memberof B2bPartnerConsentRemovalRequested
|
|
91683
|
+
* @static
|
|
91684
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
91685
|
+
* @param {number} [length] Message length if known beforehand
|
|
91686
|
+
* @returns {B2bPartnerConsentRemovalRequested} B2bPartnerConsentRemovalRequested
|
|
91687
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
91688
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
91689
|
+
*/
|
|
91690
|
+
B2bPartnerConsentRemovalRequested.decode = function decode(reader, length) {
|
|
91691
|
+
if (!(reader instanceof $Reader))
|
|
91692
|
+
reader = $Reader.create(reader);
|
|
91693
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.B2bPartnerConsentRemovalRequested();
|
|
91694
|
+
while (reader.pos < end) {
|
|
91695
|
+
var tag = reader.uint32();
|
|
91696
|
+
switch (tag >>> 3) {
|
|
91697
|
+
case 1:
|
|
91698
|
+
message.partnerConsent = $root.b2b.PartnerConsent.decode(reader, reader.uint32());
|
|
91699
|
+
break;
|
|
91700
|
+
case 2:
|
|
91701
|
+
message.hsUserId = reader.string();
|
|
91702
|
+
break;
|
|
91703
|
+
case 3:
|
|
91704
|
+
message.timestamp = reader.uint64();
|
|
91705
|
+
break;
|
|
91706
|
+
default:
|
|
91707
|
+
reader.skipType(tag & 7);
|
|
91708
|
+
break;
|
|
91709
|
+
}
|
|
91710
|
+
}
|
|
91711
|
+
return message;
|
|
91712
|
+
};
|
|
91713
|
+
|
|
91714
|
+
/**
|
|
91715
|
+
* Decodes a B2bPartnerConsentRemovalRequested message from the specified reader or buffer, length delimited.
|
|
91716
|
+
* @function decodeDelimited
|
|
91717
|
+
* @memberof B2bPartnerConsentRemovalRequested
|
|
91718
|
+
* @static
|
|
91719
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
91720
|
+
* @returns {B2bPartnerConsentRemovalRequested} B2bPartnerConsentRemovalRequested
|
|
91721
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
91722
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
91723
|
+
*/
|
|
91724
|
+
B2bPartnerConsentRemovalRequested.decodeDelimited = function decodeDelimited(reader) {
|
|
91725
|
+
if (!(reader instanceof $Reader))
|
|
91726
|
+
reader = new $Reader(reader);
|
|
91727
|
+
return this.decode(reader, reader.uint32());
|
|
91728
|
+
};
|
|
91729
|
+
|
|
91730
|
+
/**
|
|
91731
|
+
* Verifies a B2bPartnerConsentRemovalRequested message.
|
|
91732
|
+
* @function verify
|
|
91733
|
+
* @memberof B2bPartnerConsentRemovalRequested
|
|
91734
|
+
* @static
|
|
91735
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
91736
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
91737
|
+
*/
|
|
91738
|
+
B2bPartnerConsentRemovalRequested.verify = function verify(message) {
|
|
91739
|
+
if (typeof message !== "object" || message === null)
|
|
91740
|
+
return "object expected";
|
|
91741
|
+
if (message.partnerConsent != null && message.hasOwnProperty("partnerConsent")) {
|
|
91742
|
+
var error = $root.b2b.PartnerConsent.verify(message.partnerConsent);
|
|
91743
|
+
if (error)
|
|
91744
|
+
return "partnerConsent." + error;
|
|
91745
|
+
}
|
|
91746
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
91747
|
+
if (!$util.isString(message.hsUserId))
|
|
91748
|
+
return "hsUserId: string expected";
|
|
91749
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
91750
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
91751
|
+
return "timestamp: integer|Long expected";
|
|
91752
|
+
return null;
|
|
91753
|
+
};
|
|
91754
|
+
|
|
91755
|
+
/**
|
|
91756
|
+
* Creates a B2bPartnerConsentRemovalRequested message from a plain object. Also converts values to their respective internal types.
|
|
91757
|
+
* @function fromObject
|
|
91758
|
+
* @memberof B2bPartnerConsentRemovalRequested
|
|
91759
|
+
* @static
|
|
91760
|
+
* @param {Object.<string,*>} object Plain object
|
|
91761
|
+
* @returns {B2bPartnerConsentRemovalRequested} B2bPartnerConsentRemovalRequested
|
|
91762
|
+
*/
|
|
91763
|
+
B2bPartnerConsentRemovalRequested.fromObject = function fromObject(object) {
|
|
91764
|
+
if (object instanceof $root.B2bPartnerConsentRemovalRequested)
|
|
91765
|
+
return object;
|
|
91766
|
+
var message = new $root.B2bPartnerConsentRemovalRequested();
|
|
91767
|
+
if (object.partnerConsent != null) {
|
|
91768
|
+
if (typeof object.partnerConsent !== "object")
|
|
91769
|
+
throw TypeError(".B2bPartnerConsentRemovalRequested.partnerConsent: object expected");
|
|
91770
|
+
message.partnerConsent = $root.b2b.PartnerConsent.fromObject(object.partnerConsent);
|
|
91771
|
+
}
|
|
91772
|
+
if (object.hsUserId != null)
|
|
91773
|
+
message.hsUserId = String(object.hsUserId);
|
|
91774
|
+
if (object.timestamp != null)
|
|
91775
|
+
if ($util.Long)
|
|
91776
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
91777
|
+
else if (typeof object.timestamp === "string")
|
|
91778
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
91779
|
+
else if (typeof object.timestamp === "number")
|
|
91780
|
+
message.timestamp = object.timestamp;
|
|
91781
|
+
else if (typeof object.timestamp === "object")
|
|
91782
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
91783
|
+
return message;
|
|
91784
|
+
};
|
|
91785
|
+
|
|
91786
|
+
/**
|
|
91787
|
+
* Creates a plain object from a B2bPartnerConsentRemovalRequested message. Also converts values to other types if specified.
|
|
91788
|
+
* @function toObject
|
|
91789
|
+
* @memberof B2bPartnerConsentRemovalRequested
|
|
91790
|
+
* @static
|
|
91791
|
+
* @param {B2bPartnerConsentRemovalRequested} message B2bPartnerConsentRemovalRequested
|
|
91792
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
91793
|
+
* @returns {Object.<string,*>} Plain object
|
|
91794
|
+
*/
|
|
91795
|
+
B2bPartnerConsentRemovalRequested.toObject = function toObject(message, options) {
|
|
91796
|
+
if (!options)
|
|
91797
|
+
options = {};
|
|
91798
|
+
var object = {};
|
|
91799
|
+
if (options.defaults) {
|
|
91800
|
+
object.partnerConsent = null;
|
|
91801
|
+
object.hsUserId = "";
|
|
91802
|
+
if ($util.Long) {
|
|
91803
|
+
var long = new $util.Long(0, 0, true);
|
|
91804
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
91805
|
+
} else
|
|
91806
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
91807
|
+
}
|
|
91808
|
+
if (message.partnerConsent != null && message.hasOwnProperty("partnerConsent"))
|
|
91809
|
+
object.partnerConsent = $root.b2b.PartnerConsent.toObject(message.partnerConsent, options);
|
|
91810
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
91811
|
+
object.hsUserId = message.hsUserId;
|
|
91812
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
91813
|
+
if (typeof message.timestamp === "number")
|
|
91814
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
91815
|
+
else
|
|
91816
|
+
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;
|
|
91817
|
+
return object;
|
|
91818
|
+
};
|
|
91819
|
+
|
|
91820
|
+
/**
|
|
91821
|
+
* Converts this B2bPartnerConsentRemovalRequested to JSON.
|
|
91822
|
+
* @function toJSON
|
|
91823
|
+
* @memberof B2bPartnerConsentRemovalRequested
|
|
91824
|
+
* @instance
|
|
91825
|
+
* @returns {Object.<string,*>} JSON object
|
|
91826
|
+
*/
|
|
91827
|
+
B2bPartnerConsentRemovalRequested.prototype.toJSON = function toJSON() {
|
|
91828
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
91829
|
+
};
|
|
91830
|
+
|
|
91831
|
+
return B2bPartnerConsentRemovalRequested;
|
|
91832
|
+
})();
|
|
91833
|
+
|
|
90985
91834
|
$root.HeadspaceContentShareCreated = (function() {
|
|
90986
91835
|
|
|
90987
91836
|
/**
|
package/package.json
CHANGED