@headspace/protos-events 1.597.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 +6 -228
- package/lib/index.js +44 -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,
|
|
@@ -32138,6 +32018,9 @@ export interface IClinicalAppointment {
|
|
|
32138
32018
|
|
|
32139
32019
|
/** ClinicalAppointment clinicalNote */
|
|
32140
32020
|
clinicalNote?: (ClinicalAppointment.IClinicalAppointmentNote|null);
|
|
32021
|
+
|
|
32022
|
+
/** ClinicalAppointment availabilities */
|
|
32023
|
+
availabilities?: (clinical.IClinicalAvailability[]|null);
|
|
32141
32024
|
}
|
|
32142
32025
|
|
|
32143
32026
|
/** Represents a ClinicalAppointment. */
|
|
@@ -32242,6 +32125,9 @@ export class ClinicalAppointment implements IClinicalAppointment {
|
|
|
32242
32125
|
/** ClinicalAppointment clinicalNote. */
|
|
32243
32126
|
public clinicalNote?: (ClinicalAppointment.IClinicalAppointmentNote|null);
|
|
32244
32127
|
|
|
32128
|
+
/** ClinicalAppointment availabilities. */
|
|
32129
|
+
public availabilities: clinical.IClinicalAvailability[];
|
|
32130
|
+
|
|
32245
32131
|
/**
|
|
32246
32132
|
* Creates a new ClinicalAppointment instance using the specified properties.
|
|
32247
32133
|
* @param [properties] Properties to set
|
|
@@ -44567,114 +44453,6 @@ export class GracefulExitCompleted implements IGracefulExitCompleted {
|
|
|
44567
44453
|
public toJSON(): { [k: string]: any };
|
|
44568
44454
|
}
|
|
44569
44455
|
|
|
44570
|
-
/** Properties of a B2BPartnerConsentCreated. */
|
|
44571
|
-
export interface IB2BPartnerConsentCreated {
|
|
44572
|
-
|
|
44573
|
-
/** B2BPartnerConsentCreated partnerConsent */
|
|
44574
|
-
partnerConsent?: (b2b.IPartnerConsent|null);
|
|
44575
|
-
|
|
44576
|
-
/** B2BPartnerConsentCreated orgIds */
|
|
44577
|
-
orgIds?: (number[]|null);
|
|
44578
|
-
|
|
44579
|
-
/** B2BPartnerConsentCreated timestamp */
|
|
44580
|
-
timestamp?: (number|Long|null);
|
|
44581
|
-
|
|
44582
|
-
/** B2BPartnerConsentCreated consentCode */
|
|
44583
|
-
consentCode?: (string|null);
|
|
44584
|
-
}
|
|
44585
|
-
|
|
44586
|
-
/** Represents a B2BPartnerConsentCreated. */
|
|
44587
|
-
export class B2BPartnerConsentCreated implements IB2BPartnerConsentCreated {
|
|
44588
|
-
|
|
44589
|
-
/**
|
|
44590
|
-
* Constructs a new B2BPartnerConsentCreated.
|
|
44591
|
-
* @param [properties] Properties to set
|
|
44592
|
-
*/
|
|
44593
|
-
constructor(properties?: IB2BPartnerConsentCreated);
|
|
44594
|
-
|
|
44595
|
-
/** B2BPartnerConsentCreated partnerConsent. */
|
|
44596
|
-
public partnerConsent?: (b2b.IPartnerConsent|null);
|
|
44597
|
-
|
|
44598
|
-
/** B2BPartnerConsentCreated orgIds. */
|
|
44599
|
-
public orgIds: number[];
|
|
44600
|
-
|
|
44601
|
-
/** B2BPartnerConsentCreated timestamp. */
|
|
44602
|
-
public timestamp: (number|Long);
|
|
44603
|
-
|
|
44604
|
-
/** B2BPartnerConsentCreated consentCode. */
|
|
44605
|
-
public consentCode: string;
|
|
44606
|
-
|
|
44607
|
-
/**
|
|
44608
|
-
* Creates a new B2BPartnerConsentCreated instance using the specified properties.
|
|
44609
|
-
* @param [properties] Properties to set
|
|
44610
|
-
* @returns B2BPartnerConsentCreated instance
|
|
44611
|
-
*/
|
|
44612
|
-
public static create(properties?: IB2BPartnerConsentCreated): B2BPartnerConsentCreated;
|
|
44613
|
-
|
|
44614
|
-
/**
|
|
44615
|
-
* Encodes the specified B2BPartnerConsentCreated message. Does not implicitly {@link B2BPartnerConsentCreated.verify|verify} messages.
|
|
44616
|
-
* @param message B2BPartnerConsentCreated message or plain object to encode
|
|
44617
|
-
* @param [writer] Writer to encode to
|
|
44618
|
-
* @returns Writer
|
|
44619
|
-
*/
|
|
44620
|
-
public static encode(message: IB2BPartnerConsentCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
44621
|
-
|
|
44622
|
-
/**
|
|
44623
|
-
* Encodes the specified B2BPartnerConsentCreated message, length delimited. Does not implicitly {@link B2BPartnerConsentCreated.verify|verify} messages.
|
|
44624
|
-
* @param message B2BPartnerConsentCreated message or plain object to encode
|
|
44625
|
-
* @param [writer] Writer to encode to
|
|
44626
|
-
* @returns Writer
|
|
44627
|
-
*/
|
|
44628
|
-
public static encodeDelimited(message: IB2BPartnerConsentCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
44629
|
-
|
|
44630
|
-
/**
|
|
44631
|
-
* Decodes a B2BPartnerConsentCreated message from the specified reader or buffer.
|
|
44632
|
-
* @param reader Reader or buffer to decode from
|
|
44633
|
-
* @param [length] Message length if known beforehand
|
|
44634
|
-
* @returns B2BPartnerConsentCreated
|
|
44635
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
44636
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
44637
|
-
*/
|
|
44638
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): B2BPartnerConsentCreated;
|
|
44639
|
-
|
|
44640
|
-
/**
|
|
44641
|
-
* Decodes a B2BPartnerConsentCreated message from the specified reader or buffer, length delimited.
|
|
44642
|
-
* @param reader Reader or buffer to decode from
|
|
44643
|
-
* @returns B2BPartnerConsentCreated
|
|
44644
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
44645
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
44646
|
-
*/
|
|
44647
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): B2BPartnerConsentCreated;
|
|
44648
|
-
|
|
44649
|
-
/**
|
|
44650
|
-
* Verifies a B2BPartnerConsentCreated message.
|
|
44651
|
-
* @param message Plain object to verify
|
|
44652
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
44653
|
-
*/
|
|
44654
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
44655
|
-
|
|
44656
|
-
/**
|
|
44657
|
-
* Creates a B2BPartnerConsentCreated message from a plain object. Also converts values to their respective internal types.
|
|
44658
|
-
* @param object Plain object
|
|
44659
|
-
* @returns B2BPartnerConsentCreated
|
|
44660
|
-
*/
|
|
44661
|
-
public static fromObject(object: { [k: string]: any }): B2BPartnerConsentCreated;
|
|
44662
|
-
|
|
44663
|
-
/**
|
|
44664
|
-
* Creates a plain object from a B2BPartnerConsentCreated message. Also converts values to other types if specified.
|
|
44665
|
-
* @param message B2BPartnerConsentCreated
|
|
44666
|
-
* @param [options] Conversion options
|
|
44667
|
-
* @returns Plain object
|
|
44668
|
-
*/
|
|
44669
|
-
public static toObject(message: B2BPartnerConsentCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
44670
|
-
|
|
44671
|
-
/**
|
|
44672
|
-
* Converts this B2BPartnerConsentCreated to JSON.
|
|
44673
|
-
* @returns JSON object
|
|
44674
|
-
*/
|
|
44675
|
-
public toJSON(): { [k: string]: any };
|
|
44676
|
-
}
|
|
44677
|
-
|
|
44678
44456
|
/** Properties of a B2BMemberPartnerConsentRequested. */
|
|
44679
44457
|
export interface IB2BMemberPartnerConsentRequested {
|
|
44680
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
|
|
@@ -91237,6 +90922,7 @@ $root.ClinicalAppointment = (function() {
|
|
|
91237
90922
|
* @property {string|null} [userStateShort] ClinicalAppointment userStateShort
|
|
91238
90923
|
* @property {string|null} [userInsuranceId] ClinicalAppointment userInsuranceId
|
|
91239
90924
|
* @property {ClinicalAppointment.IClinicalAppointmentNote|null} [clinicalNote] ClinicalAppointment clinicalNote
|
|
90925
|
+
* @property {Array.<clinical.IClinicalAvailability>|null} [availabilities] ClinicalAppointment availabilities
|
|
91240
90926
|
*/
|
|
91241
90927
|
|
|
91242
90928
|
/**
|
|
@@ -91248,6 +90934,7 @@ $root.ClinicalAppointment = (function() {
|
|
|
91248
90934
|
* @param {IClinicalAppointment=} [properties] Properties to set
|
|
91249
90935
|
*/
|
|
91250
90936
|
function ClinicalAppointment(properties) {
|
|
90937
|
+
this.availabilities = [];
|
|
91251
90938
|
if (properties)
|
|
91252
90939
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
91253
90940
|
if (properties[keys[i]] != null)
|
|
@@ -91502,6 +91189,14 @@ $root.ClinicalAppointment = (function() {
|
|
|
91502
91189
|
*/
|
|
91503
91190
|
ClinicalAppointment.prototype.clinicalNote = null;
|
|
91504
91191
|
|
|
91192
|
+
/**
|
|
91193
|
+
* ClinicalAppointment availabilities.
|
|
91194
|
+
* @member {Array.<clinical.IClinicalAvailability>} availabilities
|
|
91195
|
+
* @memberof ClinicalAppointment
|
|
91196
|
+
* @instance
|
|
91197
|
+
*/
|
|
91198
|
+
ClinicalAppointment.prototype.availabilities = $util.emptyArray;
|
|
91199
|
+
|
|
91505
91200
|
/**
|
|
91506
91201
|
* Creates a new ClinicalAppointment instance using the specified properties.
|
|
91507
91202
|
* @function create
|
|
@@ -91588,6 +91283,9 @@ $root.ClinicalAppointment = (function() {
|
|
|
91588
91283
|
writer.uint32(/* id 42, wireType 2 =*/338).string(message.userInsuranceId);
|
|
91589
91284
|
if (message.clinicalNote != null && message.hasOwnProperty("clinicalNote"))
|
|
91590
91285
|
$root.ClinicalAppointment.ClinicalAppointmentNote.encode(message.clinicalNote, writer.uint32(/* id 43, wireType 2 =*/346).fork()).ldelim();
|
|
91286
|
+
if (message.availabilities != null && message.availabilities.length)
|
|
91287
|
+
for (var i = 0; i < message.availabilities.length; ++i)
|
|
91288
|
+
$root.clinical.ClinicalAvailability.encode(message.availabilities[i], writer.uint32(/* id 44, wireType 2 =*/354).fork()).ldelim();
|
|
91591
91289
|
return writer;
|
|
91592
91290
|
};
|
|
91593
91291
|
|
|
@@ -91715,6 +91413,11 @@ $root.ClinicalAppointment = (function() {
|
|
|
91715
91413
|
case 43:
|
|
91716
91414
|
message.clinicalNote = $root.ClinicalAppointment.ClinicalAppointmentNote.decode(reader, reader.uint32());
|
|
91717
91415
|
break;
|
|
91416
|
+
case 44:
|
|
91417
|
+
if (!(message.availabilities && message.availabilities.length))
|
|
91418
|
+
message.availabilities = [];
|
|
91419
|
+
message.availabilities.push($root.clinical.ClinicalAvailability.decode(reader, reader.uint32()));
|
|
91420
|
+
break;
|
|
91718
91421
|
default:
|
|
91719
91422
|
reader.skipType(tag & 7);
|
|
91720
91423
|
break;
|
|
@@ -91949,6 +91652,15 @@ $root.ClinicalAppointment = (function() {
|
|
|
91949
91652
|
if (error)
|
|
91950
91653
|
return "clinicalNote." + error;
|
|
91951
91654
|
}
|
|
91655
|
+
if (message.availabilities != null && message.hasOwnProperty("availabilities")) {
|
|
91656
|
+
if (!Array.isArray(message.availabilities))
|
|
91657
|
+
return "availabilities: array expected";
|
|
91658
|
+
for (var i = 0; i < message.availabilities.length; ++i) {
|
|
91659
|
+
var error = $root.clinical.ClinicalAvailability.verify(message.availabilities[i]);
|
|
91660
|
+
if (error)
|
|
91661
|
+
return "availabilities." + error;
|
|
91662
|
+
}
|
|
91663
|
+
}
|
|
91952
91664
|
return null;
|
|
91953
91665
|
};
|
|
91954
91666
|
|
|
@@ -92429,6 +92141,16 @@ $root.ClinicalAppointment = (function() {
|
|
|
92429
92141
|
throw TypeError(".ClinicalAppointment.clinicalNote: object expected");
|
|
92430
92142
|
message.clinicalNote = $root.ClinicalAppointment.ClinicalAppointmentNote.fromObject(object.clinicalNote);
|
|
92431
92143
|
}
|
|
92144
|
+
if (object.availabilities) {
|
|
92145
|
+
if (!Array.isArray(object.availabilities))
|
|
92146
|
+
throw TypeError(".ClinicalAppointment.availabilities: array expected");
|
|
92147
|
+
message.availabilities = [];
|
|
92148
|
+
for (var i = 0; i < object.availabilities.length; ++i) {
|
|
92149
|
+
if (typeof object.availabilities[i] !== "object")
|
|
92150
|
+
throw TypeError(".ClinicalAppointment.availabilities: object expected");
|
|
92151
|
+
message.availabilities[i] = $root.clinical.ClinicalAvailability.fromObject(object.availabilities[i]);
|
|
92152
|
+
}
|
|
92153
|
+
}
|
|
92432
92154
|
return message;
|
|
92433
92155
|
};
|
|
92434
92156
|
|
|
@@ -92445,6 +92167,8 @@ $root.ClinicalAppointment = (function() {
|
|
|
92445
92167
|
if (!options)
|
|
92446
92168
|
options = {};
|
|
92447
92169
|
var object = {};
|
|
92170
|
+
if (options.arrays || options.defaults)
|
|
92171
|
+
object.availabilities = [];
|
|
92448
92172
|
if (options.defaults) {
|
|
92449
92173
|
object.gingerMemberId = "";
|
|
92450
92174
|
object.clinicianId = "";
|
|
@@ -92589,6 +92313,11 @@ $root.ClinicalAppointment = (function() {
|
|
|
92589
92313
|
object.userInsuranceId = message.userInsuranceId;
|
|
92590
92314
|
if (message.clinicalNote != null && message.hasOwnProperty("clinicalNote"))
|
|
92591
92315
|
object.clinicalNote = $root.ClinicalAppointment.ClinicalAppointmentNote.toObject(message.clinicalNote, options);
|
|
92316
|
+
if (message.availabilities && message.availabilities.length) {
|
|
92317
|
+
object.availabilities = [];
|
|
92318
|
+
for (var j = 0; j < message.availabilities.length; ++j)
|
|
92319
|
+
object.availabilities[j] = $root.clinical.ClinicalAvailability.toObject(message.availabilities[j], options);
|
|
92320
|
+
}
|
|
92592
92321
|
return object;
|
|
92593
92322
|
};
|
|
92594
92323
|
|
|
@@ -122497,304 +122226,6 @@ $root.GracefulExitCompleted = (function() {
|
|
|
122497
122226
|
return GracefulExitCompleted;
|
|
122498
122227
|
})();
|
|
122499
122228
|
|
|
122500
|
-
$root.B2BPartnerConsentCreated = (function() {
|
|
122501
|
-
|
|
122502
|
-
/**
|
|
122503
|
-
* Properties of a B2BPartnerConsentCreated.
|
|
122504
|
-
* @name IB2BPartnerConsentCreated
|
|
122505
|
-
* @interface IB2BPartnerConsentCreated
|
|
122506
|
-
* @property {b2b.IPartnerConsent|null} [partnerConsent] B2BPartnerConsentCreated partnerConsent
|
|
122507
|
-
* @property {Array.<number>|null} [orgIds] B2BPartnerConsentCreated orgIds
|
|
122508
|
-
* @property {number|Long|null} [timestamp] B2BPartnerConsentCreated timestamp
|
|
122509
|
-
* @property {string|null} [consentCode] B2BPartnerConsentCreated consentCode
|
|
122510
|
-
*/
|
|
122511
|
-
|
|
122512
|
-
/**
|
|
122513
|
-
* Constructs a new B2BPartnerConsentCreated.
|
|
122514
|
-
* @name B2BPartnerConsentCreated
|
|
122515
|
-
* @classdesc Represents a B2BPartnerConsentCreated.
|
|
122516
|
-
* @implements IB2BPartnerConsentCreated
|
|
122517
|
-
* @constructor
|
|
122518
|
-
* @param {IB2BPartnerConsentCreated=} [properties] Properties to set
|
|
122519
|
-
*/
|
|
122520
|
-
function B2BPartnerConsentCreated(properties) {
|
|
122521
|
-
this.orgIds = [];
|
|
122522
|
-
if (properties)
|
|
122523
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
122524
|
-
if (properties[keys[i]] != null)
|
|
122525
|
-
this[keys[i]] = properties[keys[i]];
|
|
122526
|
-
}
|
|
122527
|
-
|
|
122528
|
-
/**
|
|
122529
|
-
* B2BPartnerConsentCreated partnerConsent.
|
|
122530
|
-
* @member {b2b.IPartnerConsent|null|undefined} partnerConsent
|
|
122531
|
-
* @memberof B2BPartnerConsentCreated
|
|
122532
|
-
* @instance
|
|
122533
|
-
*/
|
|
122534
|
-
B2BPartnerConsentCreated.prototype.partnerConsent = null;
|
|
122535
|
-
|
|
122536
|
-
/**
|
|
122537
|
-
* B2BPartnerConsentCreated orgIds.
|
|
122538
|
-
* @member {Array.<number>} orgIds
|
|
122539
|
-
* @memberof B2BPartnerConsentCreated
|
|
122540
|
-
* @instance
|
|
122541
|
-
*/
|
|
122542
|
-
B2BPartnerConsentCreated.prototype.orgIds = $util.emptyArray;
|
|
122543
|
-
|
|
122544
|
-
/**
|
|
122545
|
-
* B2BPartnerConsentCreated timestamp.
|
|
122546
|
-
* @member {number|Long} timestamp
|
|
122547
|
-
* @memberof B2BPartnerConsentCreated
|
|
122548
|
-
* @instance
|
|
122549
|
-
*/
|
|
122550
|
-
B2BPartnerConsentCreated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
122551
|
-
|
|
122552
|
-
/**
|
|
122553
|
-
* B2BPartnerConsentCreated consentCode.
|
|
122554
|
-
* @member {string} consentCode
|
|
122555
|
-
* @memberof B2BPartnerConsentCreated
|
|
122556
|
-
* @instance
|
|
122557
|
-
*/
|
|
122558
|
-
B2BPartnerConsentCreated.prototype.consentCode = "";
|
|
122559
|
-
|
|
122560
|
-
/**
|
|
122561
|
-
* Creates a new B2BPartnerConsentCreated instance using the specified properties.
|
|
122562
|
-
* @function create
|
|
122563
|
-
* @memberof B2BPartnerConsentCreated
|
|
122564
|
-
* @static
|
|
122565
|
-
* @param {IB2BPartnerConsentCreated=} [properties] Properties to set
|
|
122566
|
-
* @returns {B2BPartnerConsentCreated} B2BPartnerConsentCreated instance
|
|
122567
|
-
*/
|
|
122568
|
-
B2BPartnerConsentCreated.create = function create(properties) {
|
|
122569
|
-
return new B2BPartnerConsentCreated(properties);
|
|
122570
|
-
};
|
|
122571
|
-
|
|
122572
|
-
/**
|
|
122573
|
-
* Encodes the specified B2BPartnerConsentCreated message. Does not implicitly {@link B2BPartnerConsentCreated.verify|verify} messages.
|
|
122574
|
-
* @function encode
|
|
122575
|
-
* @memberof B2BPartnerConsentCreated
|
|
122576
|
-
* @static
|
|
122577
|
-
* @param {IB2BPartnerConsentCreated} message B2BPartnerConsentCreated message or plain object to encode
|
|
122578
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
122579
|
-
* @returns {$protobuf.Writer} Writer
|
|
122580
|
-
*/
|
|
122581
|
-
B2BPartnerConsentCreated.encode = function encode(message, writer) {
|
|
122582
|
-
if (!writer)
|
|
122583
|
-
writer = $Writer.create();
|
|
122584
|
-
if (message.partnerConsent != null && message.hasOwnProperty("partnerConsent"))
|
|
122585
|
-
$root.b2b.PartnerConsent.encode(message.partnerConsent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
122586
|
-
if (message.orgIds != null && message.orgIds.length) {
|
|
122587
|
-
writer.uint32(/* id 2, wireType 2 =*/18).fork();
|
|
122588
|
-
for (var i = 0; i < message.orgIds.length; ++i)
|
|
122589
|
-
writer.uint32(message.orgIds[i]);
|
|
122590
|
-
writer.ldelim();
|
|
122591
|
-
}
|
|
122592
|
-
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
122593
|
-
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
|
|
122594
|
-
if (message.consentCode != null && message.hasOwnProperty("consentCode"))
|
|
122595
|
-
writer.uint32(/* id 4, wireType 2 =*/34).string(message.consentCode);
|
|
122596
|
-
return writer;
|
|
122597
|
-
};
|
|
122598
|
-
|
|
122599
|
-
/**
|
|
122600
|
-
* Encodes the specified B2BPartnerConsentCreated message, length delimited. Does not implicitly {@link B2BPartnerConsentCreated.verify|verify} messages.
|
|
122601
|
-
* @function encodeDelimited
|
|
122602
|
-
* @memberof B2BPartnerConsentCreated
|
|
122603
|
-
* @static
|
|
122604
|
-
* @param {IB2BPartnerConsentCreated} message B2BPartnerConsentCreated message or plain object to encode
|
|
122605
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
122606
|
-
* @returns {$protobuf.Writer} Writer
|
|
122607
|
-
*/
|
|
122608
|
-
B2BPartnerConsentCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
122609
|
-
return this.encode(message, writer).ldelim();
|
|
122610
|
-
};
|
|
122611
|
-
|
|
122612
|
-
/**
|
|
122613
|
-
* Decodes a B2BPartnerConsentCreated message from the specified reader or buffer.
|
|
122614
|
-
* @function decode
|
|
122615
|
-
* @memberof B2BPartnerConsentCreated
|
|
122616
|
-
* @static
|
|
122617
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
122618
|
-
* @param {number} [length] Message length if known beforehand
|
|
122619
|
-
* @returns {B2BPartnerConsentCreated} B2BPartnerConsentCreated
|
|
122620
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
122621
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
122622
|
-
*/
|
|
122623
|
-
B2BPartnerConsentCreated.decode = function decode(reader, length) {
|
|
122624
|
-
if (!(reader instanceof $Reader))
|
|
122625
|
-
reader = $Reader.create(reader);
|
|
122626
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.B2BPartnerConsentCreated();
|
|
122627
|
-
while (reader.pos < end) {
|
|
122628
|
-
var tag = reader.uint32();
|
|
122629
|
-
switch (tag >>> 3) {
|
|
122630
|
-
case 1:
|
|
122631
|
-
message.partnerConsent = $root.b2b.PartnerConsent.decode(reader, reader.uint32());
|
|
122632
|
-
break;
|
|
122633
|
-
case 2:
|
|
122634
|
-
if (!(message.orgIds && message.orgIds.length))
|
|
122635
|
-
message.orgIds = [];
|
|
122636
|
-
if ((tag & 7) === 2) {
|
|
122637
|
-
var end2 = reader.uint32() + reader.pos;
|
|
122638
|
-
while (reader.pos < end2)
|
|
122639
|
-
message.orgIds.push(reader.uint32());
|
|
122640
|
-
} else
|
|
122641
|
-
message.orgIds.push(reader.uint32());
|
|
122642
|
-
break;
|
|
122643
|
-
case 3:
|
|
122644
|
-
message.timestamp = reader.uint64();
|
|
122645
|
-
break;
|
|
122646
|
-
case 4:
|
|
122647
|
-
message.consentCode = reader.string();
|
|
122648
|
-
break;
|
|
122649
|
-
default:
|
|
122650
|
-
reader.skipType(tag & 7);
|
|
122651
|
-
break;
|
|
122652
|
-
}
|
|
122653
|
-
}
|
|
122654
|
-
return message;
|
|
122655
|
-
};
|
|
122656
|
-
|
|
122657
|
-
/**
|
|
122658
|
-
* Decodes a B2BPartnerConsentCreated message from the specified reader or buffer, length delimited.
|
|
122659
|
-
* @function decodeDelimited
|
|
122660
|
-
* @memberof B2BPartnerConsentCreated
|
|
122661
|
-
* @static
|
|
122662
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
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.decodeDelimited = function decodeDelimited(reader) {
|
|
122668
|
-
if (!(reader instanceof $Reader))
|
|
122669
|
-
reader = new $Reader(reader);
|
|
122670
|
-
return this.decode(reader, reader.uint32());
|
|
122671
|
-
};
|
|
122672
|
-
|
|
122673
|
-
/**
|
|
122674
|
-
* Verifies a B2BPartnerConsentCreated message.
|
|
122675
|
-
* @function verify
|
|
122676
|
-
* @memberof B2BPartnerConsentCreated
|
|
122677
|
-
* @static
|
|
122678
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
122679
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
122680
|
-
*/
|
|
122681
|
-
B2BPartnerConsentCreated.verify = function verify(message) {
|
|
122682
|
-
if (typeof message !== "object" || message === null)
|
|
122683
|
-
return "object expected";
|
|
122684
|
-
if (message.partnerConsent != null && message.hasOwnProperty("partnerConsent")) {
|
|
122685
|
-
var error = $root.b2b.PartnerConsent.verify(message.partnerConsent);
|
|
122686
|
-
if (error)
|
|
122687
|
-
return "partnerConsent." + error;
|
|
122688
|
-
}
|
|
122689
|
-
if (message.orgIds != null && message.hasOwnProperty("orgIds")) {
|
|
122690
|
-
if (!Array.isArray(message.orgIds))
|
|
122691
|
-
return "orgIds: array expected";
|
|
122692
|
-
for (var i = 0; i < message.orgIds.length; ++i)
|
|
122693
|
-
if (!$util.isInteger(message.orgIds[i]))
|
|
122694
|
-
return "orgIds: integer[] expected";
|
|
122695
|
-
}
|
|
122696
|
-
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
122697
|
-
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
122698
|
-
return "timestamp: integer|Long expected";
|
|
122699
|
-
if (message.consentCode != null && message.hasOwnProperty("consentCode"))
|
|
122700
|
-
if (!$util.isString(message.consentCode))
|
|
122701
|
-
return "consentCode: string expected";
|
|
122702
|
-
return null;
|
|
122703
|
-
};
|
|
122704
|
-
|
|
122705
|
-
/**
|
|
122706
|
-
* Creates a B2BPartnerConsentCreated message from a plain object. Also converts values to their respective internal types.
|
|
122707
|
-
* @function fromObject
|
|
122708
|
-
* @memberof B2BPartnerConsentCreated
|
|
122709
|
-
* @static
|
|
122710
|
-
* @param {Object.<string,*>} object Plain object
|
|
122711
|
-
* @returns {B2BPartnerConsentCreated} B2BPartnerConsentCreated
|
|
122712
|
-
*/
|
|
122713
|
-
B2BPartnerConsentCreated.fromObject = function fromObject(object) {
|
|
122714
|
-
if (object instanceof $root.B2BPartnerConsentCreated)
|
|
122715
|
-
return object;
|
|
122716
|
-
var message = new $root.B2BPartnerConsentCreated();
|
|
122717
|
-
if (object.partnerConsent != null) {
|
|
122718
|
-
if (typeof object.partnerConsent !== "object")
|
|
122719
|
-
throw TypeError(".B2BPartnerConsentCreated.partnerConsent: object expected");
|
|
122720
|
-
message.partnerConsent = $root.b2b.PartnerConsent.fromObject(object.partnerConsent);
|
|
122721
|
-
}
|
|
122722
|
-
if (object.orgIds) {
|
|
122723
|
-
if (!Array.isArray(object.orgIds))
|
|
122724
|
-
throw TypeError(".B2BPartnerConsentCreated.orgIds: array expected");
|
|
122725
|
-
message.orgIds = [];
|
|
122726
|
-
for (var i = 0; i < object.orgIds.length; ++i)
|
|
122727
|
-
message.orgIds[i] = object.orgIds[i] >>> 0;
|
|
122728
|
-
}
|
|
122729
|
-
if (object.timestamp != null)
|
|
122730
|
-
if ($util.Long)
|
|
122731
|
-
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
122732
|
-
else if (typeof object.timestamp === "string")
|
|
122733
|
-
message.timestamp = parseInt(object.timestamp, 10);
|
|
122734
|
-
else if (typeof object.timestamp === "number")
|
|
122735
|
-
message.timestamp = object.timestamp;
|
|
122736
|
-
else if (typeof object.timestamp === "object")
|
|
122737
|
-
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
122738
|
-
if (object.consentCode != null)
|
|
122739
|
-
message.consentCode = String(object.consentCode);
|
|
122740
|
-
return message;
|
|
122741
|
-
};
|
|
122742
|
-
|
|
122743
|
-
/**
|
|
122744
|
-
* Creates a plain object from a B2BPartnerConsentCreated message. Also converts values to other types if specified.
|
|
122745
|
-
* @function toObject
|
|
122746
|
-
* @memberof B2BPartnerConsentCreated
|
|
122747
|
-
* @static
|
|
122748
|
-
* @param {B2BPartnerConsentCreated} message B2BPartnerConsentCreated
|
|
122749
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
122750
|
-
* @returns {Object.<string,*>} Plain object
|
|
122751
|
-
*/
|
|
122752
|
-
B2BPartnerConsentCreated.toObject = function toObject(message, options) {
|
|
122753
|
-
if (!options)
|
|
122754
|
-
options = {};
|
|
122755
|
-
var object = {};
|
|
122756
|
-
if (options.arrays || options.defaults)
|
|
122757
|
-
object.orgIds = [];
|
|
122758
|
-
if (options.defaults) {
|
|
122759
|
-
object.partnerConsent = null;
|
|
122760
|
-
if ($util.Long) {
|
|
122761
|
-
var long = new $util.Long(0, 0, true);
|
|
122762
|
-
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
122763
|
-
} else
|
|
122764
|
-
object.timestamp = options.longs === String ? "0" : 0;
|
|
122765
|
-
object.consentCode = "";
|
|
122766
|
-
}
|
|
122767
|
-
if (message.partnerConsent != null && message.hasOwnProperty("partnerConsent"))
|
|
122768
|
-
object.partnerConsent = $root.b2b.PartnerConsent.toObject(message.partnerConsent, options);
|
|
122769
|
-
if (message.orgIds && message.orgIds.length) {
|
|
122770
|
-
object.orgIds = [];
|
|
122771
|
-
for (var j = 0; j < message.orgIds.length; ++j)
|
|
122772
|
-
object.orgIds[j] = message.orgIds[j];
|
|
122773
|
-
}
|
|
122774
|
-
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
122775
|
-
if (typeof message.timestamp === "number")
|
|
122776
|
-
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
122777
|
-
else
|
|
122778
|
-
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;
|
|
122779
|
-
if (message.consentCode != null && message.hasOwnProperty("consentCode"))
|
|
122780
|
-
object.consentCode = message.consentCode;
|
|
122781
|
-
return object;
|
|
122782
|
-
};
|
|
122783
|
-
|
|
122784
|
-
/**
|
|
122785
|
-
* Converts this B2BPartnerConsentCreated to JSON.
|
|
122786
|
-
* @function toJSON
|
|
122787
|
-
* @memberof B2BPartnerConsentCreated
|
|
122788
|
-
* @instance
|
|
122789
|
-
* @returns {Object.<string,*>} JSON object
|
|
122790
|
-
*/
|
|
122791
|
-
B2BPartnerConsentCreated.prototype.toJSON = function toJSON() {
|
|
122792
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
122793
|
-
};
|
|
122794
|
-
|
|
122795
|
-
return B2BPartnerConsentCreated;
|
|
122796
|
-
})();
|
|
122797
|
-
|
|
122798
122229
|
$root.B2BMemberPartnerConsentRequested = (function() {
|
|
122799
122230
|
|
|
122800
122231
|
/**
|
package/package.json
CHANGED