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