@headspace/protos-events 1.579.0 → 1.581.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 +834 -0
- 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,
|
|
@@ -27310,6 +27430,9 @@ export interface ISurveyResponse {
|
|
|
27310
27430
|
|
|
27311
27431
|
/** SurveyResponse id */
|
|
27312
27432
|
id?: (string|null);
|
|
27433
|
+
|
|
27434
|
+
/** SurveyResponse gingerUserId */
|
|
27435
|
+
gingerUserId?: (number|null);
|
|
27313
27436
|
}
|
|
27314
27437
|
|
|
27315
27438
|
/** Represents a SurveyResponse. */
|
|
@@ -27342,6 +27465,9 @@ export class SurveyResponse implements ISurveyResponse {
|
|
|
27342
27465
|
/** SurveyResponse id. */
|
|
27343
27466
|
public id: string;
|
|
27344
27467
|
|
|
27468
|
+
/** SurveyResponse gingerUserId. */
|
|
27469
|
+
public gingerUserId: number;
|
|
27470
|
+
|
|
27345
27471
|
/**
|
|
27346
27472
|
* Creates a new SurveyResponse instance using the specified properties.
|
|
27347
27473
|
* @param [properties] Properties to set
|
|
@@ -32538,6 +32664,210 @@ export class GracefulExitCompleted implements IGracefulExitCompleted {
|
|
|
32538
32664
|
public toJSON(): { [k: string]: any };
|
|
32539
32665
|
}
|
|
32540
32666
|
|
|
32667
|
+
/** Properties of a B2bPartnerConsentRequested. */
|
|
32668
|
+
export interface IB2bPartnerConsentRequested {
|
|
32669
|
+
|
|
32670
|
+
/** B2bPartnerConsentRequested partnerConsentId */
|
|
32671
|
+
partnerConsentId?: (string|null);
|
|
32672
|
+
|
|
32673
|
+
/** B2bPartnerConsentRequested hsUserId */
|
|
32674
|
+
hsUserId?: (string|null);
|
|
32675
|
+
|
|
32676
|
+
/** B2bPartnerConsentRequested timestamp */
|
|
32677
|
+
timestamp?: (number|Long|null);
|
|
32678
|
+
}
|
|
32679
|
+
|
|
32680
|
+
/** Represents a B2bPartnerConsentRequested. */
|
|
32681
|
+
export class B2bPartnerConsentRequested implements IB2bPartnerConsentRequested {
|
|
32682
|
+
|
|
32683
|
+
/**
|
|
32684
|
+
* Constructs a new B2bPartnerConsentRequested.
|
|
32685
|
+
* @param [properties] Properties to set
|
|
32686
|
+
*/
|
|
32687
|
+
constructor(properties?: IB2bPartnerConsentRequested);
|
|
32688
|
+
|
|
32689
|
+
/** B2bPartnerConsentRequested partnerConsentId. */
|
|
32690
|
+
public partnerConsentId: string;
|
|
32691
|
+
|
|
32692
|
+
/** B2bPartnerConsentRequested hsUserId. */
|
|
32693
|
+
public hsUserId: string;
|
|
32694
|
+
|
|
32695
|
+
/** B2bPartnerConsentRequested timestamp. */
|
|
32696
|
+
public timestamp: (number|Long);
|
|
32697
|
+
|
|
32698
|
+
/**
|
|
32699
|
+
* Creates a new B2bPartnerConsentRequested instance using the specified properties.
|
|
32700
|
+
* @param [properties] Properties to set
|
|
32701
|
+
* @returns B2bPartnerConsentRequested instance
|
|
32702
|
+
*/
|
|
32703
|
+
public static create(properties?: IB2bPartnerConsentRequested): B2bPartnerConsentRequested;
|
|
32704
|
+
|
|
32705
|
+
/**
|
|
32706
|
+
* Encodes the specified B2bPartnerConsentRequested message. Does not implicitly {@link B2bPartnerConsentRequested.verify|verify} messages.
|
|
32707
|
+
* @param message B2bPartnerConsentRequested message or plain object to encode
|
|
32708
|
+
* @param [writer] Writer to encode to
|
|
32709
|
+
* @returns Writer
|
|
32710
|
+
*/
|
|
32711
|
+
public static encode(message: IB2bPartnerConsentRequested, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
32712
|
+
|
|
32713
|
+
/**
|
|
32714
|
+
* Encodes the specified B2bPartnerConsentRequested message, length delimited. Does not implicitly {@link B2bPartnerConsentRequested.verify|verify} messages.
|
|
32715
|
+
* @param message B2bPartnerConsentRequested message or plain object to encode
|
|
32716
|
+
* @param [writer] Writer to encode to
|
|
32717
|
+
* @returns Writer
|
|
32718
|
+
*/
|
|
32719
|
+
public static encodeDelimited(message: IB2bPartnerConsentRequested, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
32720
|
+
|
|
32721
|
+
/**
|
|
32722
|
+
* Decodes a B2bPartnerConsentRequested message from the specified reader or buffer.
|
|
32723
|
+
* @param reader Reader or buffer to decode from
|
|
32724
|
+
* @param [length] Message length if known beforehand
|
|
32725
|
+
* @returns B2bPartnerConsentRequested
|
|
32726
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
32727
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
32728
|
+
*/
|
|
32729
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): B2bPartnerConsentRequested;
|
|
32730
|
+
|
|
32731
|
+
/**
|
|
32732
|
+
* Decodes a B2bPartnerConsentRequested message from the specified reader or buffer, length delimited.
|
|
32733
|
+
* @param reader Reader or buffer to decode from
|
|
32734
|
+
* @returns B2bPartnerConsentRequested
|
|
32735
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
32736
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
32737
|
+
*/
|
|
32738
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): B2bPartnerConsentRequested;
|
|
32739
|
+
|
|
32740
|
+
/**
|
|
32741
|
+
* Verifies a B2bPartnerConsentRequested message.
|
|
32742
|
+
* @param message Plain object to verify
|
|
32743
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
32744
|
+
*/
|
|
32745
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
32746
|
+
|
|
32747
|
+
/**
|
|
32748
|
+
* Creates a B2bPartnerConsentRequested message from a plain object. Also converts values to their respective internal types.
|
|
32749
|
+
* @param object Plain object
|
|
32750
|
+
* @returns B2bPartnerConsentRequested
|
|
32751
|
+
*/
|
|
32752
|
+
public static fromObject(object: { [k: string]: any }): B2bPartnerConsentRequested;
|
|
32753
|
+
|
|
32754
|
+
/**
|
|
32755
|
+
* Creates a plain object from a B2bPartnerConsentRequested message. Also converts values to other types if specified.
|
|
32756
|
+
* @param message B2bPartnerConsentRequested
|
|
32757
|
+
* @param [options] Conversion options
|
|
32758
|
+
* @returns Plain object
|
|
32759
|
+
*/
|
|
32760
|
+
public static toObject(message: B2bPartnerConsentRequested, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
32761
|
+
|
|
32762
|
+
/**
|
|
32763
|
+
* Converts this B2bPartnerConsentRequested to JSON.
|
|
32764
|
+
* @returns JSON object
|
|
32765
|
+
*/
|
|
32766
|
+
public toJSON(): { [k: string]: any };
|
|
32767
|
+
}
|
|
32768
|
+
|
|
32769
|
+
/** Properties of a B2bPartnerConsentRemovalRequested. */
|
|
32770
|
+
export interface IB2bPartnerConsentRemovalRequested {
|
|
32771
|
+
|
|
32772
|
+
/** B2bPartnerConsentRemovalRequested partnerConsent */
|
|
32773
|
+
partnerConsent?: (b2b.IPartnerConsent|null);
|
|
32774
|
+
|
|
32775
|
+
/** B2bPartnerConsentRemovalRequested hsUserId */
|
|
32776
|
+
hsUserId?: (string|null);
|
|
32777
|
+
|
|
32778
|
+
/** B2bPartnerConsentRemovalRequested timestamp */
|
|
32779
|
+
timestamp?: (number|Long|null);
|
|
32780
|
+
}
|
|
32781
|
+
|
|
32782
|
+
/** Represents a B2bPartnerConsentRemovalRequested. */
|
|
32783
|
+
export class B2bPartnerConsentRemovalRequested implements IB2bPartnerConsentRemovalRequested {
|
|
32784
|
+
|
|
32785
|
+
/**
|
|
32786
|
+
* Constructs a new B2bPartnerConsentRemovalRequested.
|
|
32787
|
+
* @param [properties] Properties to set
|
|
32788
|
+
*/
|
|
32789
|
+
constructor(properties?: IB2bPartnerConsentRemovalRequested);
|
|
32790
|
+
|
|
32791
|
+
/** B2bPartnerConsentRemovalRequested partnerConsent. */
|
|
32792
|
+
public partnerConsent?: (b2b.IPartnerConsent|null);
|
|
32793
|
+
|
|
32794
|
+
/** B2bPartnerConsentRemovalRequested hsUserId. */
|
|
32795
|
+
public hsUserId: string;
|
|
32796
|
+
|
|
32797
|
+
/** B2bPartnerConsentRemovalRequested timestamp. */
|
|
32798
|
+
public timestamp: (number|Long);
|
|
32799
|
+
|
|
32800
|
+
/**
|
|
32801
|
+
* Creates a new B2bPartnerConsentRemovalRequested instance using the specified properties.
|
|
32802
|
+
* @param [properties] Properties to set
|
|
32803
|
+
* @returns B2bPartnerConsentRemovalRequested instance
|
|
32804
|
+
*/
|
|
32805
|
+
public static create(properties?: IB2bPartnerConsentRemovalRequested): B2bPartnerConsentRemovalRequested;
|
|
32806
|
+
|
|
32807
|
+
/**
|
|
32808
|
+
* Encodes the specified B2bPartnerConsentRemovalRequested message. Does not implicitly {@link B2bPartnerConsentRemovalRequested.verify|verify} messages.
|
|
32809
|
+
* @param message B2bPartnerConsentRemovalRequested message or plain object to encode
|
|
32810
|
+
* @param [writer] Writer to encode to
|
|
32811
|
+
* @returns Writer
|
|
32812
|
+
*/
|
|
32813
|
+
public static encode(message: IB2bPartnerConsentRemovalRequested, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
32814
|
+
|
|
32815
|
+
/**
|
|
32816
|
+
* Encodes the specified B2bPartnerConsentRemovalRequested message, length delimited. Does not implicitly {@link B2bPartnerConsentRemovalRequested.verify|verify} messages.
|
|
32817
|
+
* @param message B2bPartnerConsentRemovalRequested message or plain object to encode
|
|
32818
|
+
* @param [writer] Writer to encode to
|
|
32819
|
+
* @returns Writer
|
|
32820
|
+
*/
|
|
32821
|
+
public static encodeDelimited(message: IB2bPartnerConsentRemovalRequested, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
32822
|
+
|
|
32823
|
+
/**
|
|
32824
|
+
* Decodes a B2bPartnerConsentRemovalRequested message from the specified reader or buffer.
|
|
32825
|
+
* @param reader Reader or buffer to decode from
|
|
32826
|
+
* @param [length] Message length if known beforehand
|
|
32827
|
+
* @returns B2bPartnerConsentRemovalRequested
|
|
32828
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
32829
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
32830
|
+
*/
|
|
32831
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): B2bPartnerConsentRemovalRequested;
|
|
32832
|
+
|
|
32833
|
+
/**
|
|
32834
|
+
* Decodes a B2bPartnerConsentRemovalRequested message from the specified reader or buffer, length delimited.
|
|
32835
|
+
* @param reader Reader or buffer to decode from
|
|
32836
|
+
* @returns B2bPartnerConsentRemovalRequested
|
|
32837
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
32838
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
32839
|
+
*/
|
|
32840
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): B2bPartnerConsentRemovalRequested;
|
|
32841
|
+
|
|
32842
|
+
/**
|
|
32843
|
+
* Verifies a B2bPartnerConsentRemovalRequested message.
|
|
32844
|
+
* @param message Plain object to verify
|
|
32845
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
32846
|
+
*/
|
|
32847
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
32848
|
+
|
|
32849
|
+
/**
|
|
32850
|
+
* Creates a B2bPartnerConsentRemovalRequested message from a plain object. Also converts values to their respective internal types.
|
|
32851
|
+
* @param object Plain object
|
|
32852
|
+
* @returns B2bPartnerConsentRemovalRequested
|
|
32853
|
+
*/
|
|
32854
|
+
public static fromObject(object: { [k: string]: any }): B2bPartnerConsentRemovalRequested;
|
|
32855
|
+
|
|
32856
|
+
/**
|
|
32857
|
+
* Creates a plain object from a B2bPartnerConsentRemovalRequested message. Also converts values to other types if specified.
|
|
32858
|
+
* @param message B2bPartnerConsentRemovalRequested
|
|
32859
|
+
* @param [options] Conversion options
|
|
32860
|
+
* @returns Plain object
|
|
32861
|
+
*/
|
|
32862
|
+
public static toObject(message: B2bPartnerConsentRemovalRequested, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
32863
|
+
|
|
32864
|
+
/**
|
|
32865
|
+
* Converts this B2bPartnerConsentRemovalRequested to JSON.
|
|
32866
|
+
* @returns JSON object
|
|
32867
|
+
*/
|
|
32868
|
+
public toJSON(): { [k: string]: any };
|
|
32869
|
+
}
|
|
32870
|
+
|
|
32541
32871
|
/** Properties of a HeadspaceContentShareCreated. */
|
|
32542
32872
|
export interface IHeadspaceContentShareCreated {
|
|
32543
32873
|
|
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
|
|
@@ -76247,6 +76562,7 @@ $root.SurveyResponse = (function() {
|
|
|
76247
76562
|
* @property {string|null} [surveyType] SurveyResponse surveyType
|
|
76248
76563
|
* @property {string|null} [reflectionNote] SurveyResponse reflectionNote
|
|
76249
76564
|
* @property {string|null} [id] SurveyResponse id
|
|
76565
|
+
* @property {number|null} [gingerUserId] SurveyResponse gingerUserId
|
|
76250
76566
|
*/
|
|
76251
76567
|
|
|
76252
76568
|
/**
|
|
@@ -76321,6 +76637,14 @@ $root.SurveyResponse = (function() {
|
|
|
76321
76637
|
*/
|
|
76322
76638
|
SurveyResponse.prototype.id = "";
|
|
76323
76639
|
|
|
76640
|
+
/**
|
|
76641
|
+
* SurveyResponse gingerUserId.
|
|
76642
|
+
* @member {number} gingerUserId
|
|
76643
|
+
* @memberof SurveyResponse
|
|
76644
|
+
* @instance
|
|
76645
|
+
*/
|
|
76646
|
+
SurveyResponse.prototype.gingerUserId = 0;
|
|
76647
|
+
|
|
76324
76648
|
/**
|
|
76325
76649
|
* Creates a new SurveyResponse instance using the specified properties.
|
|
76326
76650
|
* @function create
|
|
@@ -76360,6 +76684,8 @@ $root.SurveyResponse = (function() {
|
|
|
76360
76684
|
writer.uint32(/* id 6, wireType 2 =*/50).string(message.reflectionNote);
|
|
76361
76685
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
76362
76686
|
writer.uint32(/* id 7, wireType 2 =*/58).string(message.id);
|
|
76687
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
76688
|
+
writer.uint32(/* id 8, wireType 0 =*/64).uint32(message.gingerUserId);
|
|
76363
76689
|
return writer;
|
|
76364
76690
|
};
|
|
76365
76691
|
|
|
@@ -76417,6 +76743,9 @@ $root.SurveyResponse = (function() {
|
|
|
76417
76743
|
case 7:
|
|
76418
76744
|
message.id = reader.string();
|
|
76419
76745
|
break;
|
|
76746
|
+
case 8:
|
|
76747
|
+
message.gingerUserId = reader.uint32();
|
|
76748
|
+
break;
|
|
76420
76749
|
default:
|
|
76421
76750
|
reader.skipType(tag & 7);
|
|
76422
76751
|
break;
|
|
@@ -76479,6 +76808,9 @@ $root.SurveyResponse = (function() {
|
|
|
76479
76808
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
76480
76809
|
if (!$util.isString(message.id))
|
|
76481
76810
|
return "id: string expected";
|
|
76811
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
76812
|
+
if (!$util.isInteger(message.gingerUserId))
|
|
76813
|
+
return "gingerUserId: integer expected";
|
|
76482
76814
|
return null;
|
|
76483
76815
|
};
|
|
76484
76816
|
|
|
@@ -76516,6 +76848,8 @@ $root.SurveyResponse = (function() {
|
|
|
76516
76848
|
message.reflectionNote = String(object.reflectionNote);
|
|
76517
76849
|
if (object.id != null)
|
|
76518
76850
|
message.id = String(object.id);
|
|
76851
|
+
if (object.gingerUserId != null)
|
|
76852
|
+
message.gingerUserId = object.gingerUserId >>> 0;
|
|
76519
76853
|
return message;
|
|
76520
76854
|
};
|
|
76521
76855
|
|
|
@@ -76541,6 +76875,7 @@ $root.SurveyResponse = (function() {
|
|
|
76541
76875
|
object.surveyType = "";
|
|
76542
76876
|
object.reflectionNote = "";
|
|
76543
76877
|
object.id = "";
|
|
76878
|
+
object.gingerUserId = 0;
|
|
76544
76879
|
}
|
|
76545
76880
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
76546
76881
|
object.userId = message.userId;
|
|
@@ -76559,6 +76894,8 @@ $root.SurveyResponse = (function() {
|
|
|
76559
76894
|
object.reflectionNote = message.reflectionNote;
|
|
76560
76895
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
76561
76896
|
object.id = message.id;
|
|
76897
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
76898
|
+
object.gingerUserId = message.gingerUserId;
|
|
76562
76899
|
return object;
|
|
76563
76900
|
};
|
|
76564
76901
|
|
|
@@ -91019,6 +91356,503 @@ $root.GracefulExitCompleted = (function() {
|
|
|
91019
91356
|
return GracefulExitCompleted;
|
|
91020
91357
|
})();
|
|
91021
91358
|
|
|
91359
|
+
$root.B2bPartnerConsentRequested = (function() {
|
|
91360
|
+
|
|
91361
|
+
/**
|
|
91362
|
+
* Properties of a B2bPartnerConsentRequested.
|
|
91363
|
+
* @name IB2bPartnerConsentRequested
|
|
91364
|
+
* @interface IB2bPartnerConsentRequested
|
|
91365
|
+
* @property {string|null} [partnerConsentId] B2bPartnerConsentRequested partnerConsentId
|
|
91366
|
+
* @property {string|null} [hsUserId] B2bPartnerConsentRequested hsUserId
|
|
91367
|
+
* @property {number|Long|null} [timestamp] B2bPartnerConsentRequested timestamp
|
|
91368
|
+
*/
|
|
91369
|
+
|
|
91370
|
+
/**
|
|
91371
|
+
* Constructs a new B2bPartnerConsentRequested.
|
|
91372
|
+
* @name B2bPartnerConsentRequested
|
|
91373
|
+
* @classdesc Represents a B2bPartnerConsentRequested.
|
|
91374
|
+
* @implements IB2bPartnerConsentRequested
|
|
91375
|
+
* @constructor
|
|
91376
|
+
* @param {IB2bPartnerConsentRequested=} [properties] Properties to set
|
|
91377
|
+
*/
|
|
91378
|
+
function B2bPartnerConsentRequested(properties) {
|
|
91379
|
+
if (properties)
|
|
91380
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
91381
|
+
if (properties[keys[i]] != null)
|
|
91382
|
+
this[keys[i]] = properties[keys[i]];
|
|
91383
|
+
}
|
|
91384
|
+
|
|
91385
|
+
/**
|
|
91386
|
+
* B2bPartnerConsentRequested partnerConsentId.
|
|
91387
|
+
* @member {string} partnerConsentId
|
|
91388
|
+
* @memberof B2bPartnerConsentRequested
|
|
91389
|
+
* @instance
|
|
91390
|
+
*/
|
|
91391
|
+
B2bPartnerConsentRequested.prototype.partnerConsentId = "";
|
|
91392
|
+
|
|
91393
|
+
/**
|
|
91394
|
+
* B2bPartnerConsentRequested hsUserId.
|
|
91395
|
+
* @member {string} hsUserId
|
|
91396
|
+
* @memberof B2bPartnerConsentRequested
|
|
91397
|
+
* @instance
|
|
91398
|
+
*/
|
|
91399
|
+
B2bPartnerConsentRequested.prototype.hsUserId = "";
|
|
91400
|
+
|
|
91401
|
+
/**
|
|
91402
|
+
* B2bPartnerConsentRequested timestamp.
|
|
91403
|
+
* @member {number|Long} timestamp
|
|
91404
|
+
* @memberof B2bPartnerConsentRequested
|
|
91405
|
+
* @instance
|
|
91406
|
+
*/
|
|
91407
|
+
B2bPartnerConsentRequested.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
91408
|
+
|
|
91409
|
+
/**
|
|
91410
|
+
* Creates a new B2bPartnerConsentRequested instance using the specified properties.
|
|
91411
|
+
* @function create
|
|
91412
|
+
* @memberof B2bPartnerConsentRequested
|
|
91413
|
+
* @static
|
|
91414
|
+
* @param {IB2bPartnerConsentRequested=} [properties] Properties to set
|
|
91415
|
+
* @returns {B2bPartnerConsentRequested} B2bPartnerConsentRequested instance
|
|
91416
|
+
*/
|
|
91417
|
+
B2bPartnerConsentRequested.create = function create(properties) {
|
|
91418
|
+
return new B2bPartnerConsentRequested(properties);
|
|
91419
|
+
};
|
|
91420
|
+
|
|
91421
|
+
/**
|
|
91422
|
+
* Encodes the specified B2bPartnerConsentRequested message. Does not implicitly {@link B2bPartnerConsentRequested.verify|verify} messages.
|
|
91423
|
+
* @function encode
|
|
91424
|
+
* @memberof B2bPartnerConsentRequested
|
|
91425
|
+
* @static
|
|
91426
|
+
* @param {IB2bPartnerConsentRequested} message B2bPartnerConsentRequested message or plain object to encode
|
|
91427
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
91428
|
+
* @returns {$protobuf.Writer} Writer
|
|
91429
|
+
*/
|
|
91430
|
+
B2bPartnerConsentRequested.encode = function encode(message, writer) {
|
|
91431
|
+
if (!writer)
|
|
91432
|
+
writer = $Writer.create();
|
|
91433
|
+
if (message.partnerConsentId != null && message.hasOwnProperty("partnerConsentId"))
|
|
91434
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.partnerConsentId);
|
|
91435
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
91436
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.hsUserId);
|
|
91437
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
91438
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
|
|
91439
|
+
return writer;
|
|
91440
|
+
};
|
|
91441
|
+
|
|
91442
|
+
/**
|
|
91443
|
+
* Encodes the specified B2bPartnerConsentRequested message, length delimited. Does not implicitly {@link B2bPartnerConsentRequested.verify|verify} messages.
|
|
91444
|
+
* @function encodeDelimited
|
|
91445
|
+
* @memberof B2bPartnerConsentRequested
|
|
91446
|
+
* @static
|
|
91447
|
+
* @param {IB2bPartnerConsentRequested} message B2bPartnerConsentRequested message or plain object to encode
|
|
91448
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
91449
|
+
* @returns {$protobuf.Writer} Writer
|
|
91450
|
+
*/
|
|
91451
|
+
B2bPartnerConsentRequested.encodeDelimited = function encodeDelimited(message, writer) {
|
|
91452
|
+
return this.encode(message, writer).ldelim();
|
|
91453
|
+
};
|
|
91454
|
+
|
|
91455
|
+
/**
|
|
91456
|
+
* Decodes a B2bPartnerConsentRequested message from the specified reader or buffer.
|
|
91457
|
+
* @function decode
|
|
91458
|
+
* @memberof B2bPartnerConsentRequested
|
|
91459
|
+
* @static
|
|
91460
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
91461
|
+
* @param {number} [length] Message length if known beforehand
|
|
91462
|
+
* @returns {B2bPartnerConsentRequested} B2bPartnerConsentRequested
|
|
91463
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
91464
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
91465
|
+
*/
|
|
91466
|
+
B2bPartnerConsentRequested.decode = function decode(reader, length) {
|
|
91467
|
+
if (!(reader instanceof $Reader))
|
|
91468
|
+
reader = $Reader.create(reader);
|
|
91469
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.B2bPartnerConsentRequested();
|
|
91470
|
+
while (reader.pos < end) {
|
|
91471
|
+
var tag = reader.uint32();
|
|
91472
|
+
switch (tag >>> 3) {
|
|
91473
|
+
case 1:
|
|
91474
|
+
message.partnerConsentId = reader.string();
|
|
91475
|
+
break;
|
|
91476
|
+
case 2:
|
|
91477
|
+
message.hsUserId = reader.string();
|
|
91478
|
+
break;
|
|
91479
|
+
case 3:
|
|
91480
|
+
message.timestamp = reader.uint64();
|
|
91481
|
+
break;
|
|
91482
|
+
default:
|
|
91483
|
+
reader.skipType(tag & 7);
|
|
91484
|
+
break;
|
|
91485
|
+
}
|
|
91486
|
+
}
|
|
91487
|
+
return message;
|
|
91488
|
+
};
|
|
91489
|
+
|
|
91490
|
+
/**
|
|
91491
|
+
* Decodes a B2bPartnerConsentRequested message from the specified reader or buffer, length delimited.
|
|
91492
|
+
* @function decodeDelimited
|
|
91493
|
+
* @memberof B2bPartnerConsentRequested
|
|
91494
|
+
* @static
|
|
91495
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
91496
|
+
* @returns {B2bPartnerConsentRequested} B2bPartnerConsentRequested
|
|
91497
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
91498
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
91499
|
+
*/
|
|
91500
|
+
B2bPartnerConsentRequested.decodeDelimited = function decodeDelimited(reader) {
|
|
91501
|
+
if (!(reader instanceof $Reader))
|
|
91502
|
+
reader = new $Reader(reader);
|
|
91503
|
+
return this.decode(reader, reader.uint32());
|
|
91504
|
+
};
|
|
91505
|
+
|
|
91506
|
+
/**
|
|
91507
|
+
* Verifies a B2bPartnerConsentRequested message.
|
|
91508
|
+
* @function verify
|
|
91509
|
+
* @memberof B2bPartnerConsentRequested
|
|
91510
|
+
* @static
|
|
91511
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
91512
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
91513
|
+
*/
|
|
91514
|
+
B2bPartnerConsentRequested.verify = function verify(message) {
|
|
91515
|
+
if (typeof message !== "object" || message === null)
|
|
91516
|
+
return "object expected";
|
|
91517
|
+
if (message.partnerConsentId != null && message.hasOwnProperty("partnerConsentId"))
|
|
91518
|
+
if (!$util.isString(message.partnerConsentId))
|
|
91519
|
+
return "partnerConsentId: string expected";
|
|
91520
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
91521
|
+
if (!$util.isString(message.hsUserId))
|
|
91522
|
+
return "hsUserId: string expected";
|
|
91523
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
91524
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
91525
|
+
return "timestamp: integer|Long expected";
|
|
91526
|
+
return null;
|
|
91527
|
+
};
|
|
91528
|
+
|
|
91529
|
+
/**
|
|
91530
|
+
* Creates a B2bPartnerConsentRequested message from a plain object. Also converts values to their respective internal types.
|
|
91531
|
+
* @function fromObject
|
|
91532
|
+
* @memberof B2bPartnerConsentRequested
|
|
91533
|
+
* @static
|
|
91534
|
+
* @param {Object.<string,*>} object Plain object
|
|
91535
|
+
* @returns {B2bPartnerConsentRequested} B2bPartnerConsentRequested
|
|
91536
|
+
*/
|
|
91537
|
+
B2bPartnerConsentRequested.fromObject = function fromObject(object) {
|
|
91538
|
+
if (object instanceof $root.B2bPartnerConsentRequested)
|
|
91539
|
+
return object;
|
|
91540
|
+
var message = new $root.B2bPartnerConsentRequested();
|
|
91541
|
+
if (object.partnerConsentId != null)
|
|
91542
|
+
message.partnerConsentId = String(object.partnerConsentId);
|
|
91543
|
+
if (object.hsUserId != null)
|
|
91544
|
+
message.hsUserId = String(object.hsUserId);
|
|
91545
|
+
if (object.timestamp != null)
|
|
91546
|
+
if ($util.Long)
|
|
91547
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
91548
|
+
else if (typeof object.timestamp === "string")
|
|
91549
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
91550
|
+
else if (typeof object.timestamp === "number")
|
|
91551
|
+
message.timestamp = object.timestamp;
|
|
91552
|
+
else if (typeof object.timestamp === "object")
|
|
91553
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
91554
|
+
return message;
|
|
91555
|
+
};
|
|
91556
|
+
|
|
91557
|
+
/**
|
|
91558
|
+
* Creates a plain object from a B2bPartnerConsentRequested message. Also converts values to other types if specified.
|
|
91559
|
+
* @function toObject
|
|
91560
|
+
* @memberof B2bPartnerConsentRequested
|
|
91561
|
+
* @static
|
|
91562
|
+
* @param {B2bPartnerConsentRequested} message B2bPartnerConsentRequested
|
|
91563
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
91564
|
+
* @returns {Object.<string,*>} Plain object
|
|
91565
|
+
*/
|
|
91566
|
+
B2bPartnerConsentRequested.toObject = function toObject(message, options) {
|
|
91567
|
+
if (!options)
|
|
91568
|
+
options = {};
|
|
91569
|
+
var object = {};
|
|
91570
|
+
if (options.defaults) {
|
|
91571
|
+
object.partnerConsentId = "";
|
|
91572
|
+
object.hsUserId = "";
|
|
91573
|
+
if ($util.Long) {
|
|
91574
|
+
var long = new $util.Long(0, 0, true);
|
|
91575
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
91576
|
+
} else
|
|
91577
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
91578
|
+
}
|
|
91579
|
+
if (message.partnerConsentId != null && message.hasOwnProperty("partnerConsentId"))
|
|
91580
|
+
object.partnerConsentId = message.partnerConsentId;
|
|
91581
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
91582
|
+
object.hsUserId = message.hsUserId;
|
|
91583
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
91584
|
+
if (typeof message.timestamp === "number")
|
|
91585
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
91586
|
+
else
|
|
91587
|
+
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;
|
|
91588
|
+
return object;
|
|
91589
|
+
};
|
|
91590
|
+
|
|
91591
|
+
/**
|
|
91592
|
+
* Converts this B2bPartnerConsentRequested to JSON.
|
|
91593
|
+
* @function toJSON
|
|
91594
|
+
* @memberof B2bPartnerConsentRequested
|
|
91595
|
+
* @instance
|
|
91596
|
+
* @returns {Object.<string,*>} JSON object
|
|
91597
|
+
*/
|
|
91598
|
+
B2bPartnerConsentRequested.prototype.toJSON = function toJSON() {
|
|
91599
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
91600
|
+
};
|
|
91601
|
+
|
|
91602
|
+
return B2bPartnerConsentRequested;
|
|
91603
|
+
})();
|
|
91604
|
+
|
|
91605
|
+
$root.B2bPartnerConsentRemovalRequested = (function() {
|
|
91606
|
+
|
|
91607
|
+
/**
|
|
91608
|
+
* Properties of a B2bPartnerConsentRemovalRequested.
|
|
91609
|
+
* @name IB2bPartnerConsentRemovalRequested
|
|
91610
|
+
* @interface IB2bPartnerConsentRemovalRequested
|
|
91611
|
+
* @property {b2b.IPartnerConsent|null} [partnerConsent] B2bPartnerConsentRemovalRequested partnerConsent
|
|
91612
|
+
* @property {string|null} [hsUserId] B2bPartnerConsentRemovalRequested hsUserId
|
|
91613
|
+
* @property {number|Long|null} [timestamp] B2bPartnerConsentRemovalRequested timestamp
|
|
91614
|
+
*/
|
|
91615
|
+
|
|
91616
|
+
/**
|
|
91617
|
+
* Constructs a new B2bPartnerConsentRemovalRequested.
|
|
91618
|
+
* @name B2bPartnerConsentRemovalRequested
|
|
91619
|
+
* @classdesc Represents a B2bPartnerConsentRemovalRequested.
|
|
91620
|
+
* @implements IB2bPartnerConsentRemovalRequested
|
|
91621
|
+
* @constructor
|
|
91622
|
+
* @param {IB2bPartnerConsentRemovalRequested=} [properties] Properties to set
|
|
91623
|
+
*/
|
|
91624
|
+
function B2bPartnerConsentRemovalRequested(properties) {
|
|
91625
|
+
if (properties)
|
|
91626
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
91627
|
+
if (properties[keys[i]] != null)
|
|
91628
|
+
this[keys[i]] = properties[keys[i]];
|
|
91629
|
+
}
|
|
91630
|
+
|
|
91631
|
+
/**
|
|
91632
|
+
* B2bPartnerConsentRemovalRequested partnerConsent.
|
|
91633
|
+
* @member {b2b.IPartnerConsent|null|undefined} partnerConsent
|
|
91634
|
+
* @memberof B2bPartnerConsentRemovalRequested
|
|
91635
|
+
* @instance
|
|
91636
|
+
*/
|
|
91637
|
+
B2bPartnerConsentRemovalRequested.prototype.partnerConsent = null;
|
|
91638
|
+
|
|
91639
|
+
/**
|
|
91640
|
+
* B2bPartnerConsentRemovalRequested hsUserId.
|
|
91641
|
+
* @member {string} hsUserId
|
|
91642
|
+
* @memberof B2bPartnerConsentRemovalRequested
|
|
91643
|
+
* @instance
|
|
91644
|
+
*/
|
|
91645
|
+
B2bPartnerConsentRemovalRequested.prototype.hsUserId = "";
|
|
91646
|
+
|
|
91647
|
+
/**
|
|
91648
|
+
* B2bPartnerConsentRemovalRequested timestamp.
|
|
91649
|
+
* @member {number|Long} timestamp
|
|
91650
|
+
* @memberof B2bPartnerConsentRemovalRequested
|
|
91651
|
+
* @instance
|
|
91652
|
+
*/
|
|
91653
|
+
B2bPartnerConsentRemovalRequested.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
91654
|
+
|
|
91655
|
+
/**
|
|
91656
|
+
* Creates a new B2bPartnerConsentRemovalRequested instance using the specified properties.
|
|
91657
|
+
* @function create
|
|
91658
|
+
* @memberof B2bPartnerConsentRemovalRequested
|
|
91659
|
+
* @static
|
|
91660
|
+
* @param {IB2bPartnerConsentRemovalRequested=} [properties] Properties to set
|
|
91661
|
+
* @returns {B2bPartnerConsentRemovalRequested} B2bPartnerConsentRemovalRequested instance
|
|
91662
|
+
*/
|
|
91663
|
+
B2bPartnerConsentRemovalRequested.create = function create(properties) {
|
|
91664
|
+
return new B2bPartnerConsentRemovalRequested(properties);
|
|
91665
|
+
};
|
|
91666
|
+
|
|
91667
|
+
/**
|
|
91668
|
+
* Encodes the specified B2bPartnerConsentRemovalRequested message. Does not implicitly {@link B2bPartnerConsentRemovalRequested.verify|verify} messages.
|
|
91669
|
+
* @function encode
|
|
91670
|
+
* @memberof B2bPartnerConsentRemovalRequested
|
|
91671
|
+
* @static
|
|
91672
|
+
* @param {IB2bPartnerConsentRemovalRequested} message B2bPartnerConsentRemovalRequested message or plain object to encode
|
|
91673
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
91674
|
+
* @returns {$protobuf.Writer} Writer
|
|
91675
|
+
*/
|
|
91676
|
+
B2bPartnerConsentRemovalRequested.encode = function encode(message, writer) {
|
|
91677
|
+
if (!writer)
|
|
91678
|
+
writer = $Writer.create();
|
|
91679
|
+
if (message.partnerConsent != null && message.hasOwnProperty("partnerConsent"))
|
|
91680
|
+
$root.b2b.PartnerConsent.encode(message.partnerConsent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
91681
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
91682
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.hsUserId);
|
|
91683
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
91684
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
|
|
91685
|
+
return writer;
|
|
91686
|
+
};
|
|
91687
|
+
|
|
91688
|
+
/**
|
|
91689
|
+
* Encodes the specified B2bPartnerConsentRemovalRequested message, length delimited. Does not implicitly {@link B2bPartnerConsentRemovalRequested.verify|verify} messages.
|
|
91690
|
+
* @function encodeDelimited
|
|
91691
|
+
* @memberof B2bPartnerConsentRemovalRequested
|
|
91692
|
+
* @static
|
|
91693
|
+
* @param {IB2bPartnerConsentRemovalRequested} message B2bPartnerConsentRemovalRequested message or plain object to encode
|
|
91694
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
91695
|
+
* @returns {$protobuf.Writer} Writer
|
|
91696
|
+
*/
|
|
91697
|
+
B2bPartnerConsentRemovalRequested.encodeDelimited = function encodeDelimited(message, writer) {
|
|
91698
|
+
return this.encode(message, writer).ldelim();
|
|
91699
|
+
};
|
|
91700
|
+
|
|
91701
|
+
/**
|
|
91702
|
+
* Decodes a B2bPartnerConsentRemovalRequested message from the specified reader or buffer.
|
|
91703
|
+
* @function decode
|
|
91704
|
+
* @memberof B2bPartnerConsentRemovalRequested
|
|
91705
|
+
* @static
|
|
91706
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
91707
|
+
* @param {number} [length] Message length if known beforehand
|
|
91708
|
+
* @returns {B2bPartnerConsentRemovalRequested} B2bPartnerConsentRemovalRequested
|
|
91709
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
91710
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
91711
|
+
*/
|
|
91712
|
+
B2bPartnerConsentRemovalRequested.decode = function decode(reader, length) {
|
|
91713
|
+
if (!(reader instanceof $Reader))
|
|
91714
|
+
reader = $Reader.create(reader);
|
|
91715
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.B2bPartnerConsentRemovalRequested();
|
|
91716
|
+
while (reader.pos < end) {
|
|
91717
|
+
var tag = reader.uint32();
|
|
91718
|
+
switch (tag >>> 3) {
|
|
91719
|
+
case 1:
|
|
91720
|
+
message.partnerConsent = $root.b2b.PartnerConsent.decode(reader, reader.uint32());
|
|
91721
|
+
break;
|
|
91722
|
+
case 2:
|
|
91723
|
+
message.hsUserId = reader.string();
|
|
91724
|
+
break;
|
|
91725
|
+
case 3:
|
|
91726
|
+
message.timestamp = reader.uint64();
|
|
91727
|
+
break;
|
|
91728
|
+
default:
|
|
91729
|
+
reader.skipType(tag & 7);
|
|
91730
|
+
break;
|
|
91731
|
+
}
|
|
91732
|
+
}
|
|
91733
|
+
return message;
|
|
91734
|
+
};
|
|
91735
|
+
|
|
91736
|
+
/**
|
|
91737
|
+
* Decodes a B2bPartnerConsentRemovalRequested message from the specified reader or buffer, length delimited.
|
|
91738
|
+
* @function decodeDelimited
|
|
91739
|
+
* @memberof B2bPartnerConsentRemovalRequested
|
|
91740
|
+
* @static
|
|
91741
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
91742
|
+
* @returns {B2bPartnerConsentRemovalRequested} B2bPartnerConsentRemovalRequested
|
|
91743
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
91744
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
91745
|
+
*/
|
|
91746
|
+
B2bPartnerConsentRemovalRequested.decodeDelimited = function decodeDelimited(reader) {
|
|
91747
|
+
if (!(reader instanceof $Reader))
|
|
91748
|
+
reader = new $Reader(reader);
|
|
91749
|
+
return this.decode(reader, reader.uint32());
|
|
91750
|
+
};
|
|
91751
|
+
|
|
91752
|
+
/**
|
|
91753
|
+
* Verifies a B2bPartnerConsentRemovalRequested message.
|
|
91754
|
+
* @function verify
|
|
91755
|
+
* @memberof B2bPartnerConsentRemovalRequested
|
|
91756
|
+
* @static
|
|
91757
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
91758
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
91759
|
+
*/
|
|
91760
|
+
B2bPartnerConsentRemovalRequested.verify = function verify(message) {
|
|
91761
|
+
if (typeof message !== "object" || message === null)
|
|
91762
|
+
return "object expected";
|
|
91763
|
+
if (message.partnerConsent != null && message.hasOwnProperty("partnerConsent")) {
|
|
91764
|
+
var error = $root.b2b.PartnerConsent.verify(message.partnerConsent);
|
|
91765
|
+
if (error)
|
|
91766
|
+
return "partnerConsent." + error;
|
|
91767
|
+
}
|
|
91768
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
91769
|
+
if (!$util.isString(message.hsUserId))
|
|
91770
|
+
return "hsUserId: string expected";
|
|
91771
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
91772
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
91773
|
+
return "timestamp: integer|Long expected";
|
|
91774
|
+
return null;
|
|
91775
|
+
};
|
|
91776
|
+
|
|
91777
|
+
/**
|
|
91778
|
+
* Creates a B2bPartnerConsentRemovalRequested message from a plain object. Also converts values to their respective internal types.
|
|
91779
|
+
* @function fromObject
|
|
91780
|
+
* @memberof B2bPartnerConsentRemovalRequested
|
|
91781
|
+
* @static
|
|
91782
|
+
* @param {Object.<string,*>} object Plain object
|
|
91783
|
+
* @returns {B2bPartnerConsentRemovalRequested} B2bPartnerConsentRemovalRequested
|
|
91784
|
+
*/
|
|
91785
|
+
B2bPartnerConsentRemovalRequested.fromObject = function fromObject(object) {
|
|
91786
|
+
if (object instanceof $root.B2bPartnerConsentRemovalRequested)
|
|
91787
|
+
return object;
|
|
91788
|
+
var message = new $root.B2bPartnerConsentRemovalRequested();
|
|
91789
|
+
if (object.partnerConsent != null) {
|
|
91790
|
+
if (typeof object.partnerConsent !== "object")
|
|
91791
|
+
throw TypeError(".B2bPartnerConsentRemovalRequested.partnerConsent: object expected");
|
|
91792
|
+
message.partnerConsent = $root.b2b.PartnerConsent.fromObject(object.partnerConsent);
|
|
91793
|
+
}
|
|
91794
|
+
if (object.hsUserId != null)
|
|
91795
|
+
message.hsUserId = String(object.hsUserId);
|
|
91796
|
+
if (object.timestamp != null)
|
|
91797
|
+
if ($util.Long)
|
|
91798
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
91799
|
+
else if (typeof object.timestamp === "string")
|
|
91800
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
91801
|
+
else if (typeof object.timestamp === "number")
|
|
91802
|
+
message.timestamp = object.timestamp;
|
|
91803
|
+
else if (typeof object.timestamp === "object")
|
|
91804
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
91805
|
+
return message;
|
|
91806
|
+
};
|
|
91807
|
+
|
|
91808
|
+
/**
|
|
91809
|
+
* Creates a plain object from a B2bPartnerConsentRemovalRequested message. Also converts values to other types if specified.
|
|
91810
|
+
* @function toObject
|
|
91811
|
+
* @memberof B2bPartnerConsentRemovalRequested
|
|
91812
|
+
* @static
|
|
91813
|
+
* @param {B2bPartnerConsentRemovalRequested} message B2bPartnerConsentRemovalRequested
|
|
91814
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
91815
|
+
* @returns {Object.<string,*>} Plain object
|
|
91816
|
+
*/
|
|
91817
|
+
B2bPartnerConsentRemovalRequested.toObject = function toObject(message, options) {
|
|
91818
|
+
if (!options)
|
|
91819
|
+
options = {};
|
|
91820
|
+
var object = {};
|
|
91821
|
+
if (options.defaults) {
|
|
91822
|
+
object.partnerConsent = null;
|
|
91823
|
+
object.hsUserId = "";
|
|
91824
|
+
if ($util.Long) {
|
|
91825
|
+
var long = new $util.Long(0, 0, true);
|
|
91826
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
91827
|
+
} else
|
|
91828
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
91829
|
+
}
|
|
91830
|
+
if (message.partnerConsent != null && message.hasOwnProperty("partnerConsent"))
|
|
91831
|
+
object.partnerConsent = $root.b2b.PartnerConsent.toObject(message.partnerConsent, options);
|
|
91832
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
91833
|
+
object.hsUserId = message.hsUserId;
|
|
91834
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
91835
|
+
if (typeof message.timestamp === "number")
|
|
91836
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
91837
|
+
else
|
|
91838
|
+
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;
|
|
91839
|
+
return object;
|
|
91840
|
+
};
|
|
91841
|
+
|
|
91842
|
+
/**
|
|
91843
|
+
* Converts this B2bPartnerConsentRemovalRequested to JSON.
|
|
91844
|
+
* @function toJSON
|
|
91845
|
+
* @memberof B2bPartnerConsentRemovalRequested
|
|
91846
|
+
* @instance
|
|
91847
|
+
* @returns {Object.<string,*>} JSON object
|
|
91848
|
+
*/
|
|
91849
|
+
B2bPartnerConsentRemovalRequested.prototype.toJSON = function toJSON() {
|
|
91850
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
91851
|
+
};
|
|
91852
|
+
|
|
91853
|
+
return B2bPartnerConsentRemovalRequested;
|
|
91854
|
+
})();
|
|
91855
|
+
|
|
91022
91856
|
$root.HeadspaceContentShareCreated = (function() {
|
|
91023
91857
|
|
|
91024
91858
|
/**
|
package/package.json
CHANGED