@headspace/protos-events 1.783.0 → 1.784.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 +210 -102
- package/lib/index.js +567 -297
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -36818,6 +36818,108 @@ export class ClinicalIntakeCompleted implements IClinicalIntakeCompleted {
|
|
|
36818
36818
|
public toJSON(): { [k: string]: any };
|
|
36819
36819
|
}
|
|
36820
36820
|
|
|
36821
|
+
/** Properties of a TaggedCustomField. */
|
|
36822
|
+
export interface ITaggedCustomField {
|
|
36823
|
+
|
|
36824
|
+
/** TaggedCustomField key */
|
|
36825
|
+
key?: (string|null);
|
|
36826
|
+
|
|
36827
|
+
/** TaggedCustomField value */
|
|
36828
|
+
value?: (string|null);
|
|
36829
|
+
|
|
36830
|
+
/** TaggedCustomField fieldTags */
|
|
36831
|
+
fieldTags?: (field_tags.FieldTags[]|null);
|
|
36832
|
+
}
|
|
36833
|
+
|
|
36834
|
+
/** Represents a TaggedCustomField. */
|
|
36835
|
+
export class TaggedCustomField implements ITaggedCustomField {
|
|
36836
|
+
|
|
36837
|
+
/**
|
|
36838
|
+
* Constructs a new TaggedCustomField.
|
|
36839
|
+
* @param [properties] Properties to set
|
|
36840
|
+
*/
|
|
36841
|
+
constructor(properties?: ITaggedCustomField);
|
|
36842
|
+
|
|
36843
|
+
/** TaggedCustomField key. */
|
|
36844
|
+
public key: string;
|
|
36845
|
+
|
|
36846
|
+
/** TaggedCustomField value. */
|
|
36847
|
+
public value: string;
|
|
36848
|
+
|
|
36849
|
+
/** TaggedCustomField fieldTags. */
|
|
36850
|
+
public fieldTags: field_tags.FieldTags[];
|
|
36851
|
+
|
|
36852
|
+
/**
|
|
36853
|
+
* Creates a new TaggedCustomField instance using the specified properties.
|
|
36854
|
+
* @param [properties] Properties to set
|
|
36855
|
+
* @returns TaggedCustomField instance
|
|
36856
|
+
*/
|
|
36857
|
+
public static create(properties?: ITaggedCustomField): TaggedCustomField;
|
|
36858
|
+
|
|
36859
|
+
/**
|
|
36860
|
+
* Encodes the specified TaggedCustomField message. Does not implicitly {@link TaggedCustomField.verify|verify} messages.
|
|
36861
|
+
* @param message TaggedCustomField message or plain object to encode
|
|
36862
|
+
* @param [writer] Writer to encode to
|
|
36863
|
+
* @returns Writer
|
|
36864
|
+
*/
|
|
36865
|
+
public static encode(message: ITaggedCustomField, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
36866
|
+
|
|
36867
|
+
/**
|
|
36868
|
+
* Encodes the specified TaggedCustomField message, length delimited. Does not implicitly {@link TaggedCustomField.verify|verify} messages.
|
|
36869
|
+
* @param message TaggedCustomField message or plain object to encode
|
|
36870
|
+
* @param [writer] Writer to encode to
|
|
36871
|
+
* @returns Writer
|
|
36872
|
+
*/
|
|
36873
|
+
public static encodeDelimited(message: ITaggedCustomField, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
36874
|
+
|
|
36875
|
+
/**
|
|
36876
|
+
* Decodes a TaggedCustomField message from the specified reader or buffer.
|
|
36877
|
+
* @param reader Reader or buffer to decode from
|
|
36878
|
+
* @param [length] Message length if known beforehand
|
|
36879
|
+
* @returns TaggedCustomField
|
|
36880
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
36881
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
36882
|
+
*/
|
|
36883
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TaggedCustomField;
|
|
36884
|
+
|
|
36885
|
+
/**
|
|
36886
|
+
* Decodes a TaggedCustomField message from the specified reader or buffer, length delimited.
|
|
36887
|
+
* @param reader Reader or buffer to decode from
|
|
36888
|
+
* @returns TaggedCustomField
|
|
36889
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
36890
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
36891
|
+
*/
|
|
36892
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): TaggedCustomField;
|
|
36893
|
+
|
|
36894
|
+
/**
|
|
36895
|
+
* Verifies a TaggedCustomField message.
|
|
36896
|
+
* @param message Plain object to verify
|
|
36897
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
36898
|
+
*/
|
|
36899
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
36900
|
+
|
|
36901
|
+
/**
|
|
36902
|
+
* Creates a TaggedCustomField message from a plain object. Also converts values to their respective internal types.
|
|
36903
|
+
* @param object Plain object
|
|
36904
|
+
* @returns TaggedCustomField
|
|
36905
|
+
*/
|
|
36906
|
+
public static fromObject(object: { [k: string]: any }): TaggedCustomField;
|
|
36907
|
+
|
|
36908
|
+
/**
|
|
36909
|
+
* Creates a plain object from a TaggedCustomField message. Also converts values to other types if specified.
|
|
36910
|
+
* @param message TaggedCustomField
|
|
36911
|
+
* @param [options] Conversion options
|
|
36912
|
+
* @returns Plain object
|
|
36913
|
+
*/
|
|
36914
|
+
public static toObject(message: TaggedCustomField, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
36915
|
+
|
|
36916
|
+
/**
|
|
36917
|
+
* Converts this TaggedCustomField to JSON.
|
|
36918
|
+
* @returns JSON object
|
|
36919
|
+
*/
|
|
36920
|
+
public toJSON(): { [k: string]: any };
|
|
36921
|
+
}
|
|
36922
|
+
|
|
36821
36923
|
/** GroupType enum. */
|
|
36822
36924
|
export enum GroupType {
|
|
36823
36925
|
GROUP_TYPE_UNKNOWN = 0,
|
|
@@ -41976,108 +42078,6 @@ export enum PartnerName {
|
|
|
41976
42078
|
PARTNER_NAME_PERSONIFY = 3
|
|
41977
42079
|
}
|
|
41978
42080
|
|
|
41979
|
-
/** Properties of a TaggedCustomField. */
|
|
41980
|
-
export interface ITaggedCustomField {
|
|
41981
|
-
|
|
41982
|
-
/** TaggedCustomField key */
|
|
41983
|
-
key?: (string|null);
|
|
41984
|
-
|
|
41985
|
-
/** TaggedCustomField value */
|
|
41986
|
-
value?: (string|null);
|
|
41987
|
-
|
|
41988
|
-
/** TaggedCustomField fieldTags */
|
|
41989
|
-
fieldTags?: (field_tags.FieldTags[]|null);
|
|
41990
|
-
}
|
|
41991
|
-
|
|
41992
|
-
/** Represents a TaggedCustomField. */
|
|
41993
|
-
export class TaggedCustomField implements ITaggedCustomField {
|
|
41994
|
-
|
|
41995
|
-
/**
|
|
41996
|
-
* Constructs a new TaggedCustomField.
|
|
41997
|
-
* @param [properties] Properties to set
|
|
41998
|
-
*/
|
|
41999
|
-
constructor(properties?: ITaggedCustomField);
|
|
42000
|
-
|
|
42001
|
-
/** TaggedCustomField key. */
|
|
42002
|
-
public key: string;
|
|
42003
|
-
|
|
42004
|
-
/** TaggedCustomField value. */
|
|
42005
|
-
public value: string;
|
|
42006
|
-
|
|
42007
|
-
/** TaggedCustomField fieldTags. */
|
|
42008
|
-
public fieldTags: field_tags.FieldTags[];
|
|
42009
|
-
|
|
42010
|
-
/**
|
|
42011
|
-
* Creates a new TaggedCustomField instance using the specified properties.
|
|
42012
|
-
* @param [properties] Properties to set
|
|
42013
|
-
* @returns TaggedCustomField instance
|
|
42014
|
-
*/
|
|
42015
|
-
public static create(properties?: ITaggedCustomField): TaggedCustomField;
|
|
42016
|
-
|
|
42017
|
-
/**
|
|
42018
|
-
* Encodes the specified TaggedCustomField message. Does not implicitly {@link TaggedCustomField.verify|verify} messages.
|
|
42019
|
-
* @param message TaggedCustomField message or plain object to encode
|
|
42020
|
-
* @param [writer] Writer to encode to
|
|
42021
|
-
* @returns Writer
|
|
42022
|
-
*/
|
|
42023
|
-
public static encode(message: ITaggedCustomField, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
42024
|
-
|
|
42025
|
-
/**
|
|
42026
|
-
* Encodes the specified TaggedCustomField message, length delimited. Does not implicitly {@link TaggedCustomField.verify|verify} messages.
|
|
42027
|
-
* @param message TaggedCustomField message or plain object to encode
|
|
42028
|
-
* @param [writer] Writer to encode to
|
|
42029
|
-
* @returns Writer
|
|
42030
|
-
*/
|
|
42031
|
-
public static encodeDelimited(message: ITaggedCustomField, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
42032
|
-
|
|
42033
|
-
/**
|
|
42034
|
-
* Decodes a TaggedCustomField message from the specified reader or buffer.
|
|
42035
|
-
* @param reader Reader or buffer to decode from
|
|
42036
|
-
* @param [length] Message length if known beforehand
|
|
42037
|
-
* @returns TaggedCustomField
|
|
42038
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
42039
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
42040
|
-
*/
|
|
42041
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TaggedCustomField;
|
|
42042
|
-
|
|
42043
|
-
/**
|
|
42044
|
-
* Decodes a TaggedCustomField message from the specified reader or buffer, length delimited.
|
|
42045
|
-
* @param reader Reader or buffer to decode from
|
|
42046
|
-
* @returns TaggedCustomField
|
|
42047
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
42048
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
42049
|
-
*/
|
|
42050
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): TaggedCustomField;
|
|
42051
|
-
|
|
42052
|
-
/**
|
|
42053
|
-
* Verifies a TaggedCustomField message.
|
|
42054
|
-
* @param message Plain object to verify
|
|
42055
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
42056
|
-
*/
|
|
42057
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
42058
|
-
|
|
42059
|
-
/**
|
|
42060
|
-
* Creates a TaggedCustomField message from a plain object. Also converts values to their respective internal types.
|
|
42061
|
-
* @param object Plain object
|
|
42062
|
-
* @returns TaggedCustomField
|
|
42063
|
-
*/
|
|
42064
|
-
public static fromObject(object: { [k: string]: any }): TaggedCustomField;
|
|
42065
|
-
|
|
42066
|
-
/**
|
|
42067
|
-
* Creates a plain object from a TaggedCustomField message. Also converts values to other types if specified.
|
|
42068
|
-
* @param message TaggedCustomField
|
|
42069
|
-
* @param [options] Conversion options
|
|
42070
|
-
* @returns Plain object
|
|
42071
|
-
*/
|
|
42072
|
-
public static toObject(message: TaggedCustomField, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
42073
|
-
|
|
42074
|
-
/**
|
|
42075
|
-
* Converts this TaggedCustomField to JSON.
|
|
42076
|
-
* @returns JSON object
|
|
42077
|
-
*/
|
|
42078
|
-
public toJSON(): { [k: string]: any };
|
|
42079
|
-
}
|
|
42080
|
-
|
|
42081
42081
|
/** Properties of an UtmParams. */
|
|
42082
42082
|
export interface IUtmParams {
|
|
42083
42083
|
|
|
@@ -51122,6 +51122,114 @@ export class PartnerRedemptionRevoked implements IPartnerRedemptionRevoked {
|
|
|
51122
51122
|
public toJSON(): { [k: string]: any };
|
|
51123
51123
|
}
|
|
51124
51124
|
|
|
51125
|
+
/** Properties of a PartnerEventUpdated. */
|
|
51126
|
+
export interface IPartnerEventUpdated {
|
|
51127
|
+
|
|
51128
|
+
/** Unique identifier of the partner. Formatted as a 24-char hex string. */
|
|
51129
|
+
partnerId?: (string|null);
|
|
51130
|
+
|
|
51131
|
+
/**
|
|
51132
|
+
* Extracted webhook fields with appropriate sensitivity tags.
|
|
51133
|
+
* Keeps the event schema generic and avoids leaking partner-specific implementation details.
|
|
51134
|
+
*/
|
|
51135
|
+
taggedCustomFields?: (ITaggedCustomField[]|null);
|
|
51136
|
+
|
|
51137
|
+
/** UTC epoch milliseconds - when the webhook was received. */
|
|
51138
|
+
receivedAtTimestamp?: (number|Long|null);
|
|
51139
|
+
}
|
|
51140
|
+
|
|
51141
|
+
/** Represents a PartnerEventUpdated. */
|
|
51142
|
+
export class PartnerEventUpdated implements IPartnerEventUpdated {
|
|
51143
|
+
|
|
51144
|
+
/**
|
|
51145
|
+
* Constructs a new PartnerEventUpdated.
|
|
51146
|
+
* @param [properties] Properties to set
|
|
51147
|
+
*/
|
|
51148
|
+
constructor(properties?: IPartnerEventUpdated);
|
|
51149
|
+
|
|
51150
|
+
/** Unique identifier of the partner. Formatted as a 24-char hex string. */
|
|
51151
|
+
public partnerId: string;
|
|
51152
|
+
|
|
51153
|
+
/**
|
|
51154
|
+
* Extracted webhook fields with appropriate sensitivity tags.
|
|
51155
|
+
* Keeps the event schema generic and avoids leaking partner-specific implementation details.
|
|
51156
|
+
*/
|
|
51157
|
+
public taggedCustomFields: ITaggedCustomField[];
|
|
51158
|
+
|
|
51159
|
+
/** UTC epoch milliseconds - when the webhook was received. */
|
|
51160
|
+
public receivedAtTimestamp: (number|Long);
|
|
51161
|
+
|
|
51162
|
+
/**
|
|
51163
|
+
* Creates a new PartnerEventUpdated instance using the specified properties.
|
|
51164
|
+
* @param [properties] Properties to set
|
|
51165
|
+
* @returns PartnerEventUpdated instance
|
|
51166
|
+
*/
|
|
51167
|
+
public static create(properties?: IPartnerEventUpdated): PartnerEventUpdated;
|
|
51168
|
+
|
|
51169
|
+
/**
|
|
51170
|
+
* Encodes the specified PartnerEventUpdated message. Does not implicitly {@link PartnerEventUpdated.verify|verify} messages.
|
|
51171
|
+
* @param message PartnerEventUpdated message or plain object to encode
|
|
51172
|
+
* @param [writer] Writer to encode to
|
|
51173
|
+
* @returns Writer
|
|
51174
|
+
*/
|
|
51175
|
+
public static encode(message: IPartnerEventUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
51176
|
+
|
|
51177
|
+
/**
|
|
51178
|
+
* Encodes the specified PartnerEventUpdated message, length delimited. Does not implicitly {@link PartnerEventUpdated.verify|verify} messages.
|
|
51179
|
+
* @param message PartnerEventUpdated message or plain object to encode
|
|
51180
|
+
* @param [writer] Writer to encode to
|
|
51181
|
+
* @returns Writer
|
|
51182
|
+
*/
|
|
51183
|
+
public static encodeDelimited(message: IPartnerEventUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
51184
|
+
|
|
51185
|
+
/**
|
|
51186
|
+
* Decodes a PartnerEventUpdated message from the specified reader or buffer.
|
|
51187
|
+
* @param reader Reader or buffer to decode from
|
|
51188
|
+
* @param [length] Message length if known beforehand
|
|
51189
|
+
* @returns PartnerEventUpdated
|
|
51190
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
51191
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
51192
|
+
*/
|
|
51193
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PartnerEventUpdated;
|
|
51194
|
+
|
|
51195
|
+
/**
|
|
51196
|
+
* Decodes a PartnerEventUpdated message from the specified reader or buffer, length delimited.
|
|
51197
|
+
* @param reader Reader or buffer to decode from
|
|
51198
|
+
* @returns PartnerEventUpdated
|
|
51199
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
51200
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
51201
|
+
*/
|
|
51202
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PartnerEventUpdated;
|
|
51203
|
+
|
|
51204
|
+
/**
|
|
51205
|
+
* Verifies a PartnerEventUpdated message.
|
|
51206
|
+
* @param message Plain object to verify
|
|
51207
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
51208
|
+
*/
|
|
51209
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
51210
|
+
|
|
51211
|
+
/**
|
|
51212
|
+
* Creates a PartnerEventUpdated message from a plain object. Also converts values to their respective internal types.
|
|
51213
|
+
* @param object Plain object
|
|
51214
|
+
* @returns PartnerEventUpdated
|
|
51215
|
+
*/
|
|
51216
|
+
public static fromObject(object: { [k: string]: any }): PartnerEventUpdated;
|
|
51217
|
+
|
|
51218
|
+
/**
|
|
51219
|
+
* Creates a plain object from a PartnerEventUpdated message. Also converts values to other types if specified.
|
|
51220
|
+
* @param message PartnerEventUpdated
|
|
51221
|
+
* @param [options] Conversion options
|
|
51222
|
+
* @returns Plain object
|
|
51223
|
+
*/
|
|
51224
|
+
public static toObject(message: PartnerEventUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
51225
|
+
|
|
51226
|
+
/**
|
|
51227
|
+
* Converts this PartnerEventUpdated to JSON.
|
|
51228
|
+
* @returns JSON object
|
|
51229
|
+
*/
|
|
51230
|
+
public toJSON(): { [k: string]: any };
|
|
51231
|
+
}
|
|
51232
|
+
|
|
51125
51233
|
/** Properties of a PHQAssessmentAssigned. */
|
|
51126
51234
|
export interface IPHQAssessmentAssigned {
|
|
51127
51235
|
|
package/lib/index.js
CHANGED
|
@@ -103213,6 +103213,303 @@ $root.ClinicalIntakeCompleted = (function() {
|
|
|
103213
103213
|
return ClinicalIntakeCompleted;
|
|
103214
103214
|
})();
|
|
103215
103215
|
|
|
103216
|
+
$root.TaggedCustomField = (function() {
|
|
103217
|
+
|
|
103218
|
+
/**
|
|
103219
|
+
* Properties of a TaggedCustomField.
|
|
103220
|
+
* @name ITaggedCustomField
|
|
103221
|
+
* @interface ITaggedCustomField
|
|
103222
|
+
* @property {string|null} [key] TaggedCustomField key
|
|
103223
|
+
* @property {string|null} [value] TaggedCustomField value
|
|
103224
|
+
* @property {Array.<field_tags.FieldTags>|null} [fieldTags] TaggedCustomField fieldTags
|
|
103225
|
+
*/
|
|
103226
|
+
|
|
103227
|
+
/**
|
|
103228
|
+
* Constructs a new TaggedCustomField.
|
|
103229
|
+
* @name TaggedCustomField
|
|
103230
|
+
* @classdesc Represents a TaggedCustomField.
|
|
103231
|
+
* @implements ITaggedCustomField
|
|
103232
|
+
* @constructor
|
|
103233
|
+
* @param {ITaggedCustomField=} [properties] Properties to set
|
|
103234
|
+
*/
|
|
103235
|
+
function TaggedCustomField(properties) {
|
|
103236
|
+
this.fieldTags = [];
|
|
103237
|
+
if (properties)
|
|
103238
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
103239
|
+
if (properties[keys[i]] != null)
|
|
103240
|
+
this[keys[i]] = properties[keys[i]];
|
|
103241
|
+
}
|
|
103242
|
+
|
|
103243
|
+
/**
|
|
103244
|
+
* TaggedCustomField key.
|
|
103245
|
+
* @member {string} key
|
|
103246
|
+
* @memberof TaggedCustomField
|
|
103247
|
+
* @instance
|
|
103248
|
+
*/
|
|
103249
|
+
TaggedCustomField.prototype.key = "";
|
|
103250
|
+
|
|
103251
|
+
/**
|
|
103252
|
+
* TaggedCustomField value.
|
|
103253
|
+
* @member {string} value
|
|
103254
|
+
* @memberof TaggedCustomField
|
|
103255
|
+
* @instance
|
|
103256
|
+
*/
|
|
103257
|
+
TaggedCustomField.prototype.value = "";
|
|
103258
|
+
|
|
103259
|
+
/**
|
|
103260
|
+
* TaggedCustomField fieldTags.
|
|
103261
|
+
* @member {Array.<field_tags.FieldTags>} fieldTags
|
|
103262
|
+
* @memberof TaggedCustomField
|
|
103263
|
+
* @instance
|
|
103264
|
+
*/
|
|
103265
|
+
TaggedCustomField.prototype.fieldTags = $util.emptyArray;
|
|
103266
|
+
|
|
103267
|
+
/**
|
|
103268
|
+
* Creates a new TaggedCustomField instance using the specified properties.
|
|
103269
|
+
* @function create
|
|
103270
|
+
* @memberof TaggedCustomField
|
|
103271
|
+
* @static
|
|
103272
|
+
* @param {ITaggedCustomField=} [properties] Properties to set
|
|
103273
|
+
* @returns {TaggedCustomField} TaggedCustomField instance
|
|
103274
|
+
*/
|
|
103275
|
+
TaggedCustomField.create = function create(properties) {
|
|
103276
|
+
return new TaggedCustomField(properties);
|
|
103277
|
+
};
|
|
103278
|
+
|
|
103279
|
+
/**
|
|
103280
|
+
* Encodes the specified TaggedCustomField message. Does not implicitly {@link TaggedCustomField.verify|verify} messages.
|
|
103281
|
+
* @function encode
|
|
103282
|
+
* @memberof TaggedCustomField
|
|
103283
|
+
* @static
|
|
103284
|
+
* @param {ITaggedCustomField} message TaggedCustomField message or plain object to encode
|
|
103285
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
103286
|
+
* @returns {$protobuf.Writer} Writer
|
|
103287
|
+
*/
|
|
103288
|
+
TaggedCustomField.encode = function encode(message, writer) {
|
|
103289
|
+
if (!writer)
|
|
103290
|
+
writer = $Writer.create();
|
|
103291
|
+
if (message.key != null && message.hasOwnProperty("key"))
|
|
103292
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.key);
|
|
103293
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
103294
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.value);
|
|
103295
|
+
if (message.fieldTags != null && message.fieldTags.length) {
|
|
103296
|
+
writer.uint32(/* id 3, wireType 2 =*/26).fork();
|
|
103297
|
+
for (var i = 0; i < message.fieldTags.length; ++i)
|
|
103298
|
+
writer.int32(message.fieldTags[i]);
|
|
103299
|
+
writer.ldelim();
|
|
103300
|
+
}
|
|
103301
|
+
return writer;
|
|
103302
|
+
};
|
|
103303
|
+
|
|
103304
|
+
/**
|
|
103305
|
+
* Encodes the specified TaggedCustomField message, length delimited. Does not implicitly {@link TaggedCustomField.verify|verify} messages.
|
|
103306
|
+
* @function encodeDelimited
|
|
103307
|
+
* @memberof TaggedCustomField
|
|
103308
|
+
* @static
|
|
103309
|
+
* @param {ITaggedCustomField} message TaggedCustomField message or plain object to encode
|
|
103310
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
103311
|
+
* @returns {$protobuf.Writer} Writer
|
|
103312
|
+
*/
|
|
103313
|
+
TaggedCustomField.encodeDelimited = function encodeDelimited(message, writer) {
|
|
103314
|
+
return this.encode(message, writer).ldelim();
|
|
103315
|
+
};
|
|
103316
|
+
|
|
103317
|
+
/**
|
|
103318
|
+
* Decodes a TaggedCustomField message from the specified reader or buffer.
|
|
103319
|
+
* @function decode
|
|
103320
|
+
* @memberof TaggedCustomField
|
|
103321
|
+
* @static
|
|
103322
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
103323
|
+
* @param {number} [length] Message length if known beforehand
|
|
103324
|
+
* @returns {TaggedCustomField} TaggedCustomField
|
|
103325
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
103326
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
103327
|
+
*/
|
|
103328
|
+
TaggedCustomField.decode = function decode(reader, length) {
|
|
103329
|
+
if (!(reader instanceof $Reader))
|
|
103330
|
+
reader = $Reader.create(reader);
|
|
103331
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TaggedCustomField();
|
|
103332
|
+
while (reader.pos < end) {
|
|
103333
|
+
var tag = reader.uint32();
|
|
103334
|
+
switch (tag >>> 3) {
|
|
103335
|
+
case 1:
|
|
103336
|
+
message.key = reader.string();
|
|
103337
|
+
break;
|
|
103338
|
+
case 2:
|
|
103339
|
+
message.value = reader.string();
|
|
103340
|
+
break;
|
|
103341
|
+
case 3:
|
|
103342
|
+
if (!(message.fieldTags && message.fieldTags.length))
|
|
103343
|
+
message.fieldTags = [];
|
|
103344
|
+
if ((tag & 7) === 2) {
|
|
103345
|
+
var end2 = reader.uint32() + reader.pos;
|
|
103346
|
+
while (reader.pos < end2)
|
|
103347
|
+
message.fieldTags.push(reader.int32());
|
|
103348
|
+
} else
|
|
103349
|
+
message.fieldTags.push(reader.int32());
|
|
103350
|
+
break;
|
|
103351
|
+
default:
|
|
103352
|
+
reader.skipType(tag & 7);
|
|
103353
|
+
break;
|
|
103354
|
+
}
|
|
103355
|
+
}
|
|
103356
|
+
return message;
|
|
103357
|
+
};
|
|
103358
|
+
|
|
103359
|
+
/**
|
|
103360
|
+
* Decodes a TaggedCustomField message from the specified reader or buffer, length delimited.
|
|
103361
|
+
* @function decodeDelimited
|
|
103362
|
+
* @memberof TaggedCustomField
|
|
103363
|
+
* @static
|
|
103364
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
103365
|
+
* @returns {TaggedCustomField} TaggedCustomField
|
|
103366
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
103367
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
103368
|
+
*/
|
|
103369
|
+
TaggedCustomField.decodeDelimited = function decodeDelimited(reader) {
|
|
103370
|
+
if (!(reader instanceof $Reader))
|
|
103371
|
+
reader = new $Reader(reader);
|
|
103372
|
+
return this.decode(reader, reader.uint32());
|
|
103373
|
+
};
|
|
103374
|
+
|
|
103375
|
+
/**
|
|
103376
|
+
* Verifies a TaggedCustomField message.
|
|
103377
|
+
* @function verify
|
|
103378
|
+
* @memberof TaggedCustomField
|
|
103379
|
+
* @static
|
|
103380
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
103381
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
103382
|
+
*/
|
|
103383
|
+
TaggedCustomField.verify = function verify(message) {
|
|
103384
|
+
if (typeof message !== "object" || message === null)
|
|
103385
|
+
return "object expected";
|
|
103386
|
+
if (message.key != null && message.hasOwnProperty("key"))
|
|
103387
|
+
if (!$util.isString(message.key))
|
|
103388
|
+
return "key: string expected";
|
|
103389
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
103390
|
+
if (!$util.isString(message.value))
|
|
103391
|
+
return "value: string expected";
|
|
103392
|
+
if (message.fieldTags != null && message.hasOwnProperty("fieldTags")) {
|
|
103393
|
+
if (!Array.isArray(message.fieldTags))
|
|
103394
|
+
return "fieldTags: array expected";
|
|
103395
|
+
for (var i = 0; i < message.fieldTags.length; ++i)
|
|
103396
|
+
switch (message.fieldTags[i]) {
|
|
103397
|
+
default:
|
|
103398
|
+
return "fieldTags: enum value[] expected";
|
|
103399
|
+
case 0:
|
|
103400
|
+
case 1:
|
|
103401
|
+
case 2:
|
|
103402
|
+
case 3:
|
|
103403
|
+
case 4:
|
|
103404
|
+
case 5:
|
|
103405
|
+
case 6:
|
|
103406
|
+
break;
|
|
103407
|
+
}
|
|
103408
|
+
}
|
|
103409
|
+
return null;
|
|
103410
|
+
};
|
|
103411
|
+
|
|
103412
|
+
/**
|
|
103413
|
+
* Creates a TaggedCustomField message from a plain object. Also converts values to their respective internal types.
|
|
103414
|
+
* @function fromObject
|
|
103415
|
+
* @memberof TaggedCustomField
|
|
103416
|
+
* @static
|
|
103417
|
+
* @param {Object.<string,*>} object Plain object
|
|
103418
|
+
* @returns {TaggedCustomField} TaggedCustomField
|
|
103419
|
+
*/
|
|
103420
|
+
TaggedCustomField.fromObject = function fromObject(object) {
|
|
103421
|
+
if (object instanceof $root.TaggedCustomField)
|
|
103422
|
+
return object;
|
|
103423
|
+
var message = new $root.TaggedCustomField();
|
|
103424
|
+
if (object.key != null)
|
|
103425
|
+
message.key = String(object.key);
|
|
103426
|
+
if (object.value != null)
|
|
103427
|
+
message.value = String(object.value);
|
|
103428
|
+
if (object.fieldTags) {
|
|
103429
|
+
if (!Array.isArray(object.fieldTags))
|
|
103430
|
+
throw TypeError(".TaggedCustomField.fieldTags: array expected");
|
|
103431
|
+
message.fieldTags = [];
|
|
103432
|
+
for (var i = 0; i < object.fieldTags.length; ++i)
|
|
103433
|
+
switch (object.fieldTags[i]) {
|
|
103434
|
+
default:
|
|
103435
|
+
case "FIELD_TAGS_UNKNOWN":
|
|
103436
|
+
case 0:
|
|
103437
|
+
message.fieldTags[i] = 0;
|
|
103438
|
+
break;
|
|
103439
|
+
case "FIELD_TAGS_UNSTRUCTURED_HEALTH_INFORMATION":
|
|
103440
|
+
case 1:
|
|
103441
|
+
message.fieldTags[i] = 1;
|
|
103442
|
+
break;
|
|
103443
|
+
case "FIELD_TAGS_EXTERNAL_DIRECT_IDENTIFIER":
|
|
103444
|
+
case 2:
|
|
103445
|
+
message.fieldTags[i] = 2;
|
|
103446
|
+
break;
|
|
103447
|
+
case "FIELD_TAGS_EXTERNAL_INDIRECT_IDENTIFIER":
|
|
103448
|
+
case 3:
|
|
103449
|
+
message.fieldTags[i] = 3;
|
|
103450
|
+
break;
|
|
103451
|
+
case "FIELD_TAGS_INTERNAL_DIRECT_IDENTIFIER":
|
|
103452
|
+
case 4:
|
|
103453
|
+
message.fieldTags[i] = 4;
|
|
103454
|
+
break;
|
|
103455
|
+
case "FIELD_TAGS_INTERNAL_INDIRECT_IDENTIFIER":
|
|
103456
|
+
case 5:
|
|
103457
|
+
message.fieldTags[i] = 5;
|
|
103458
|
+
break;
|
|
103459
|
+
case "FIELD_TAGS_STRUCTURED_HEALTH_INFORMATION":
|
|
103460
|
+
case 6:
|
|
103461
|
+
message.fieldTags[i] = 6;
|
|
103462
|
+
break;
|
|
103463
|
+
}
|
|
103464
|
+
}
|
|
103465
|
+
return message;
|
|
103466
|
+
};
|
|
103467
|
+
|
|
103468
|
+
/**
|
|
103469
|
+
* Creates a plain object from a TaggedCustomField message. Also converts values to other types if specified.
|
|
103470
|
+
* @function toObject
|
|
103471
|
+
* @memberof TaggedCustomField
|
|
103472
|
+
* @static
|
|
103473
|
+
* @param {TaggedCustomField} message TaggedCustomField
|
|
103474
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
103475
|
+
* @returns {Object.<string,*>} Plain object
|
|
103476
|
+
*/
|
|
103477
|
+
TaggedCustomField.toObject = function toObject(message, options) {
|
|
103478
|
+
if (!options)
|
|
103479
|
+
options = {};
|
|
103480
|
+
var object = {};
|
|
103481
|
+
if (options.arrays || options.defaults)
|
|
103482
|
+
object.fieldTags = [];
|
|
103483
|
+
if (options.defaults) {
|
|
103484
|
+
object.key = "";
|
|
103485
|
+
object.value = "";
|
|
103486
|
+
}
|
|
103487
|
+
if (message.key != null && message.hasOwnProperty("key"))
|
|
103488
|
+
object.key = message.key;
|
|
103489
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
103490
|
+
object.value = message.value;
|
|
103491
|
+
if (message.fieldTags && message.fieldTags.length) {
|
|
103492
|
+
object.fieldTags = [];
|
|
103493
|
+
for (var j = 0; j < message.fieldTags.length; ++j)
|
|
103494
|
+
object.fieldTags[j] = options.enums === String ? $root.field_tags.FieldTags[message.fieldTags[j]] : message.fieldTags[j];
|
|
103495
|
+
}
|
|
103496
|
+
return object;
|
|
103497
|
+
};
|
|
103498
|
+
|
|
103499
|
+
/**
|
|
103500
|
+
* Converts this TaggedCustomField to JSON.
|
|
103501
|
+
* @function toJSON
|
|
103502
|
+
* @memberof TaggedCustomField
|
|
103503
|
+
* @instance
|
|
103504
|
+
* @returns {Object.<string,*>} JSON object
|
|
103505
|
+
*/
|
|
103506
|
+
TaggedCustomField.prototype.toJSON = function toJSON() {
|
|
103507
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
103508
|
+
};
|
|
103509
|
+
|
|
103510
|
+
return TaggedCustomField;
|
|
103511
|
+
})();
|
|
103512
|
+
|
|
103216
103513
|
/**
|
|
103217
103514
|
* GroupType enum.
|
|
103218
103515
|
* @name GroupType
|
|
@@ -118031,303 +118328,6 @@ $root.PartnerName = (function() {
|
|
|
118031
118328
|
return values;
|
|
118032
118329
|
})();
|
|
118033
118330
|
|
|
118034
|
-
$root.TaggedCustomField = (function() {
|
|
118035
|
-
|
|
118036
|
-
/**
|
|
118037
|
-
* Properties of a TaggedCustomField.
|
|
118038
|
-
* @name ITaggedCustomField
|
|
118039
|
-
* @interface ITaggedCustomField
|
|
118040
|
-
* @property {string|null} [key] TaggedCustomField key
|
|
118041
|
-
* @property {string|null} [value] TaggedCustomField value
|
|
118042
|
-
* @property {Array.<field_tags.FieldTags>|null} [fieldTags] TaggedCustomField fieldTags
|
|
118043
|
-
*/
|
|
118044
|
-
|
|
118045
|
-
/**
|
|
118046
|
-
* Constructs a new TaggedCustomField.
|
|
118047
|
-
* @name TaggedCustomField
|
|
118048
|
-
* @classdesc Represents a TaggedCustomField.
|
|
118049
|
-
* @implements ITaggedCustomField
|
|
118050
|
-
* @constructor
|
|
118051
|
-
* @param {ITaggedCustomField=} [properties] Properties to set
|
|
118052
|
-
*/
|
|
118053
|
-
function TaggedCustomField(properties) {
|
|
118054
|
-
this.fieldTags = [];
|
|
118055
|
-
if (properties)
|
|
118056
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
118057
|
-
if (properties[keys[i]] != null)
|
|
118058
|
-
this[keys[i]] = properties[keys[i]];
|
|
118059
|
-
}
|
|
118060
|
-
|
|
118061
|
-
/**
|
|
118062
|
-
* TaggedCustomField key.
|
|
118063
|
-
* @member {string} key
|
|
118064
|
-
* @memberof TaggedCustomField
|
|
118065
|
-
* @instance
|
|
118066
|
-
*/
|
|
118067
|
-
TaggedCustomField.prototype.key = "";
|
|
118068
|
-
|
|
118069
|
-
/**
|
|
118070
|
-
* TaggedCustomField value.
|
|
118071
|
-
* @member {string} value
|
|
118072
|
-
* @memberof TaggedCustomField
|
|
118073
|
-
* @instance
|
|
118074
|
-
*/
|
|
118075
|
-
TaggedCustomField.prototype.value = "";
|
|
118076
|
-
|
|
118077
|
-
/**
|
|
118078
|
-
* TaggedCustomField fieldTags.
|
|
118079
|
-
* @member {Array.<field_tags.FieldTags>} fieldTags
|
|
118080
|
-
* @memberof TaggedCustomField
|
|
118081
|
-
* @instance
|
|
118082
|
-
*/
|
|
118083
|
-
TaggedCustomField.prototype.fieldTags = $util.emptyArray;
|
|
118084
|
-
|
|
118085
|
-
/**
|
|
118086
|
-
* Creates a new TaggedCustomField instance using the specified properties.
|
|
118087
|
-
* @function create
|
|
118088
|
-
* @memberof TaggedCustomField
|
|
118089
|
-
* @static
|
|
118090
|
-
* @param {ITaggedCustomField=} [properties] Properties to set
|
|
118091
|
-
* @returns {TaggedCustomField} TaggedCustomField instance
|
|
118092
|
-
*/
|
|
118093
|
-
TaggedCustomField.create = function create(properties) {
|
|
118094
|
-
return new TaggedCustomField(properties);
|
|
118095
|
-
};
|
|
118096
|
-
|
|
118097
|
-
/**
|
|
118098
|
-
* Encodes the specified TaggedCustomField message. Does not implicitly {@link TaggedCustomField.verify|verify} messages.
|
|
118099
|
-
* @function encode
|
|
118100
|
-
* @memberof TaggedCustomField
|
|
118101
|
-
* @static
|
|
118102
|
-
* @param {ITaggedCustomField} message TaggedCustomField message or plain object to encode
|
|
118103
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
118104
|
-
* @returns {$protobuf.Writer} Writer
|
|
118105
|
-
*/
|
|
118106
|
-
TaggedCustomField.encode = function encode(message, writer) {
|
|
118107
|
-
if (!writer)
|
|
118108
|
-
writer = $Writer.create();
|
|
118109
|
-
if (message.key != null && message.hasOwnProperty("key"))
|
|
118110
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.key);
|
|
118111
|
-
if (message.value != null && message.hasOwnProperty("value"))
|
|
118112
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.value);
|
|
118113
|
-
if (message.fieldTags != null && message.fieldTags.length) {
|
|
118114
|
-
writer.uint32(/* id 3, wireType 2 =*/26).fork();
|
|
118115
|
-
for (var i = 0; i < message.fieldTags.length; ++i)
|
|
118116
|
-
writer.int32(message.fieldTags[i]);
|
|
118117
|
-
writer.ldelim();
|
|
118118
|
-
}
|
|
118119
|
-
return writer;
|
|
118120
|
-
};
|
|
118121
|
-
|
|
118122
|
-
/**
|
|
118123
|
-
* Encodes the specified TaggedCustomField message, length delimited. Does not implicitly {@link TaggedCustomField.verify|verify} messages.
|
|
118124
|
-
* @function encodeDelimited
|
|
118125
|
-
* @memberof TaggedCustomField
|
|
118126
|
-
* @static
|
|
118127
|
-
* @param {ITaggedCustomField} message TaggedCustomField message or plain object to encode
|
|
118128
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
118129
|
-
* @returns {$protobuf.Writer} Writer
|
|
118130
|
-
*/
|
|
118131
|
-
TaggedCustomField.encodeDelimited = function encodeDelimited(message, writer) {
|
|
118132
|
-
return this.encode(message, writer).ldelim();
|
|
118133
|
-
};
|
|
118134
|
-
|
|
118135
|
-
/**
|
|
118136
|
-
* Decodes a TaggedCustomField message from the specified reader or buffer.
|
|
118137
|
-
* @function decode
|
|
118138
|
-
* @memberof TaggedCustomField
|
|
118139
|
-
* @static
|
|
118140
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
118141
|
-
* @param {number} [length] Message length if known beforehand
|
|
118142
|
-
* @returns {TaggedCustomField} TaggedCustomField
|
|
118143
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
118144
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
118145
|
-
*/
|
|
118146
|
-
TaggedCustomField.decode = function decode(reader, length) {
|
|
118147
|
-
if (!(reader instanceof $Reader))
|
|
118148
|
-
reader = $Reader.create(reader);
|
|
118149
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TaggedCustomField();
|
|
118150
|
-
while (reader.pos < end) {
|
|
118151
|
-
var tag = reader.uint32();
|
|
118152
|
-
switch (tag >>> 3) {
|
|
118153
|
-
case 1:
|
|
118154
|
-
message.key = reader.string();
|
|
118155
|
-
break;
|
|
118156
|
-
case 2:
|
|
118157
|
-
message.value = reader.string();
|
|
118158
|
-
break;
|
|
118159
|
-
case 3:
|
|
118160
|
-
if (!(message.fieldTags && message.fieldTags.length))
|
|
118161
|
-
message.fieldTags = [];
|
|
118162
|
-
if ((tag & 7) === 2) {
|
|
118163
|
-
var end2 = reader.uint32() + reader.pos;
|
|
118164
|
-
while (reader.pos < end2)
|
|
118165
|
-
message.fieldTags.push(reader.int32());
|
|
118166
|
-
} else
|
|
118167
|
-
message.fieldTags.push(reader.int32());
|
|
118168
|
-
break;
|
|
118169
|
-
default:
|
|
118170
|
-
reader.skipType(tag & 7);
|
|
118171
|
-
break;
|
|
118172
|
-
}
|
|
118173
|
-
}
|
|
118174
|
-
return message;
|
|
118175
|
-
};
|
|
118176
|
-
|
|
118177
|
-
/**
|
|
118178
|
-
* Decodes a TaggedCustomField message from the specified reader or buffer, length delimited.
|
|
118179
|
-
* @function decodeDelimited
|
|
118180
|
-
* @memberof TaggedCustomField
|
|
118181
|
-
* @static
|
|
118182
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
118183
|
-
* @returns {TaggedCustomField} TaggedCustomField
|
|
118184
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
118185
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
118186
|
-
*/
|
|
118187
|
-
TaggedCustomField.decodeDelimited = function decodeDelimited(reader) {
|
|
118188
|
-
if (!(reader instanceof $Reader))
|
|
118189
|
-
reader = new $Reader(reader);
|
|
118190
|
-
return this.decode(reader, reader.uint32());
|
|
118191
|
-
};
|
|
118192
|
-
|
|
118193
|
-
/**
|
|
118194
|
-
* Verifies a TaggedCustomField message.
|
|
118195
|
-
* @function verify
|
|
118196
|
-
* @memberof TaggedCustomField
|
|
118197
|
-
* @static
|
|
118198
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
118199
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
118200
|
-
*/
|
|
118201
|
-
TaggedCustomField.verify = function verify(message) {
|
|
118202
|
-
if (typeof message !== "object" || message === null)
|
|
118203
|
-
return "object expected";
|
|
118204
|
-
if (message.key != null && message.hasOwnProperty("key"))
|
|
118205
|
-
if (!$util.isString(message.key))
|
|
118206
|
-
return "key: string expected";
|
|
118207
|
-
if (message.value != null && message.hasOwnProperty("value"))
|
|
118208
|
-
if (!$util.isString(message.value))
|
|
118209
|
-
return "value: string expected";
|
|
118210
|
-
if (message.fieldTags != null && message.hasOwnProperty("fieldTags")) {
|
|
118211
|
-
if (!Array.isArray(message.fieldTags))
|
|
118212
|
-
return "fieldTags: array expected";
|
|
118213
|
-
for (var i = 0; i < message.fieldTags.length; ++i)
|
|
118214
|
-
switch (message.fieldTags[i]) {
|
|
118215
|
-
default:
|
|
118216
|
-
return "fieldTags: enum value[] expected";
|
|
118217
|
-
case 0:
|
|
118218
|
-
case 1:
|
|
118219
|
-
case 2:
|
|
118220
|
-
case 3:
|
|
118221
|
-
case 4:
|
|
118222
|
-
case 5:
|
|
118223
|
-
case 6:
|
|
118224
|
-
break;
|
|
118225
|
-
}
|
|
118226
|
-
}
|
|
118227
|
-
return null;
|
|
118228
|
-
};
|
|
118229
|
-
|
|
118230
|
-
/**
|
|
118231
|
-
* Creates a TaggedCustomField message from a plain object. Also converts values to their respective internal types.
|
|
118232
|
-
* @function fromObject
|
|
118233
|
-
* @memberof TaggedCustomField
|
|
118234
|
-
* @static
|
|
118235
|
-
* @param {Object.<string,*>} object Plain object
|
|
118236
|
-
* @returns {TaggedCustomField} TaggedCustomField
|
|
118237
|
-
*/
|
|
118238
|
-
TaggedCustomField.fromObject = function fromObject(object) {
|
|
118239
|
-
if (object instanceof $root.TaggedCustomField)
|
|
118240
|
-
return object;
|
|
118241
|
-
var message = new $root.TaggedCustomField();
|
|
118242
|
-
if (object.key != null)
|
|
118243
|
-
message.key = String(object.key);
|
|
118244
|
-
if (object.value != null)
|
|
118245
|
-
message.value = String(object.value);
|
|
118246
|
-
if (object.fieldTags) {
|
|
118247
|
-
if (!Array.isArray(object.fieldTags))
|
|
118248
|
-
throw TypeError(".TaggedCustomField.fieldTags: array expected");
|
|
118249
|
-
message.fieldTags = [];
|
|
118250
|
-
for (var i = 0; i < object.fieldTags.length; ++i)
|
|
118251
|
-
switch (object.fieldTags[i]) {
|
|
118252
|
-
default:
|
|
118253
|
-
case "FIELD_TAGS_UNKNOWN":
|
|
118254
|
-
case 0:
|
|
118255
|
-
message.fieldTags[i] = 0;
|
|
118256
|
-
break;
|
|
118257
|
-
case "FIELD_TAGS_UNSTRUCTURED_HEALTH_INFORMATION":
|
|
118258
|
-
case 1:
|
|
118259
|
-
message.fieldTags[i] = 1;
|
|
118260
|
-
break;
|
|
118261
|
-
case "FIELD_TAGS_EXTERNAL_DIRECT_IDENTIFIER":
|
|
118262
|
-
case 2:
|
|
118263
|
-
message.fieldTags[i] = 2;
|
|
118264
|
-
break;
|
|
118265
|
-
case "FIELD_TAGS_EXTERNAL_INDIRECT_IDENTIFIER":
|
|
118266
|
-
case 3:
|
|
118267
|
-
message.fieldTags[i] = 3;
|
|
118268
|
-
break;
|
|
118269
|
-
case "FIELD_TAGS_INTERNAL_DIRECT_IDENTIFIER":
|
|
118270
|
-
case 4:
|
|
118271
|
-
message.fieldTags[i] = 4;
|
|
118272
|
-
break;
|
|
118273
|
-
case "FIELD_TAGS_INTERNAL_INDIRECT_IDENTIFIER":
|
|
118274
|
-
case 5:
|
|
118275
|
-
message.fieldTags[i] = 5;
|
|
118276
|
-
break;
|
|
118277
|
-
case "FIELD_TAGS_STRUCTURED_HEALTH_INFORMATION":
|
|
118278
|
-
case 6:
|
|
118279
|
-
message.fieldTags[i] = 6;
|
|
118280
|
-
break;
|
|
118281
|
-
}
|
|
118282
|
-
}
|
|
118283
|
-
return message;
|
|
118284
|
-
};
|
|
118285
|
-
|
|
118286
|
-
/**
|
|
118287
|
-
* Creates a plain object from a TaggedCustomField message. Also converts values to other types if specified.
|
|
118288
|
-
* @function toObject
|
|
118289
|
-
* @memberof TaggedCustomField
|
|
118290
|
-
* @static
|
|
118291
|
-
* @param {TaggedCustomField} message TaggedCustomField
|
|
118292
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
118293
|
-
* @returns {Object.<string,*>} Plain object
|
|
118294
|
-
*/
|
|
118295
|
-
TaggedCustomField.toObject = function toObject(message, options) {
|
|
118296
|
-
if (!options)
|
|
118297
|
-
options = {};
|
|
118298
|
-
var object = {};
|
|
118299
|
-
if (options.arrays || options.defaults)
|
|
118300
|
-
object.fieldTags = [];
|
|
118301
|
-
if (options.defaults) {
|
|
118302
|
-
object.key = "";
|
|
118303
|
-
object.value = "";
|
|
118304
|
-
}
|
|
118305
|
-
if (message.key != null && message.hasOwnProperty("key"))
|
|
118306
|
-
object.key = message.key;
|
|
118307
|
-
if (message.value != null && message.hasOwnProperty("value"))
|
|
118308
|
-
object.value = message.value;
|
|
118309
|
-
if (message.fieldTags && message.fieldTags.length) {
|
|
118310
|
-
object.fieldTags = [];
|
|
118311
|
-
for (var j = 0; j < message.fieldTags.length; ++j)
|
|
118312
|
-
object.fieldTags[j] = options.enums === String ? $root.field_tags.FieldTags[message.fieldTags[j]] : message.fieldTags[j];
|
|
118313
|
-
}
|
|
118314
|
-
return object;
|
|
118315
|
-
};
|
|
118316
|
-
|
|
118317
|
-
/**
|
|
118318
|
-
* Converts this TaggedCustomField to JSON.
|
|
118319
|
-
* @function toJSON
|
|
118320
|
-
* @memberof TaggedCustomField
|
|
118321
|
-
* @instance
|
|
118322
|
-
* @returns {Object.<string,*>} JSON object
|
|
118323
|
-
*/
|
|
118324
|
-
TaggedCustomField.prototype.toJSON = function toJSON() {
|
|
118325
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
118326
|
-
};
|
|
118327
|
-
|
|
118328
|
-
return TaggedCustomField;
|
|
118329
|
-
})();
|
|
118330
|
-
|
|
118331
118331
|
$root.UtmParams = (function() {
|
|
118332
118332
|
|
|
118333
118333
|
/**
|
|
@@ -145542,6 +145542,276 @@ $root.PartnerRedemptionRevoked = (function() {
|
|
|
145542
145542
|
return PartnerRedemptionRevoked;
|
|
145543
145543
|
})();
|
|
145544
145544
|
|
|
145545
|
+
$root.PartnerEventUpdated = (function() {
|
|
145546
|
+
|
|
145547
|
+
/**
|
|
145548
|
+
* Properties of a PartnerEventUpdated.
|
|
145549
|
+
* @name IPartnerEventUpdated
|
|
145550
|
+
* @interface IPartnerEventUpdated
|
|
145551
|
+
* @property {string|null} [partnerId] Unique identifier of the partner. Formatted as a 24-char hex string.
|
|
145552
|
+
* @property {Array.<ITaggedCustomField>|null} [taggedCustomFields] Extracted webhook fields with appropriate sensitivity tags.
|
|
145553
|
+
* Keeps the event schema generic and avoids leaking partner-specific implementation details.
|
|
145554
|
+
* @property {number|Long|null} [receivedAtTimestamp] UTC epoch milliseconds - when the webhook was received.
|
|
145555
|
+
*/
|
|
145556
|
+
|
|
145557
|
+
/**
|
|
145558
|
+
* Constructs a new PartnerEventUpdated.
|
|
145559
|
+
* @name PartnerEventUpdated
|
|
145560
|
+
* @classdesc Represents a PartnerEventUpdated.
|
|
145561
|
+
* @implements IPartnerEventUpdated
|
|
145562
|
+
* @constructor
|
|
145563
|
+
* @param {IPartnerEventUpdated=} [properties] Properties to set
|
|
145564
|
+
*/
|
|
145565
|
+
function PartnerEventUpdated(properties) {
|
|
145566
|
+
this.taggedCustomFields = [];
|
|
145567
|
+
if (properties)
|
|
145568
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
145569
|
+
if (properties[keys[i]] != null)
|
|
145570
|
+
this[keys[i]] = properties[keys[i]];
|
|
145571
|
+
}
|
|
145572
|
+
|
|
145573
|
+
/**
|
|
145574
|
+
* Unique identifier of the partner. Formatted as a 24-char hex string.
|
|
145575
|
+
* @member {string} partnerId
|
|
145576
|
+
* @memberof PartnerEventUpdated
|
|
145577
|
+
* @instance
|
|
145578
|
+
*/
|
|
145579
|
+
PartnerEventUpdated.prototype.partnerId = "";
|
|
145580
|
+
|
|
145581
|
+
/**
|
|
145582
|
+
* Extracted webhook fields with appropriate sensitivity tags.
|
|
145583
|
+
* Keeps the event schema generic and avoids leaking partner-specific implementation details.
|
|
145584
|
+
* @member {Array.<ITaggedCustomField>} taggedCustomFields
|
|
145585
|
+
* @memberof PartnerEventUpdated
|
|
145586
|
+
* @instance
|
|
145587
|
+
*/
|
|
145588
|
+
PartnerEventUpdated.prototype.taggedCustomFields = $util.emptyArray;
|
|
145589
|
+
|
|
145590
|
+
/**
|
|
145591
|
+
* UTC epoch milliseconds - when the webhook was received.
|
|
145592
|
+
* @member {number|Long} receivedAtTimestamp
|
|
145593
|
+
* @memberof PartnerEventUpdated
|
|
145594
|
+
* @instance
|
|
145595
|
+
*/
|
|
145596
|
+
PartnerEventUpdated.prototype.receivedAtTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
145597
|
+
|
|
145598
|
+
/**
|
|
145599
|
+
* Creates a new PartnerEventUpdated instance using the specified properties.
|
|
145600
|
+
* @function create
|
|
145601
|
+
* @memberof PartnerEventUpdated
|
|
145602
|
+
* @static
|
|
145603
|
+
* @param {IPartnerEventUpdated=} [properties] Properties to set
|
|
145604
|
+
* @returns {PartnerEventUpdated} PartnerEventUpdated instance
|
|
145605
|
+
*/
|
|
145606
|
+
PartnerEventUpdated.create = function create(properties) {
|
|
145607
|
+
return new PartnerEventUpdated(properties);
|
|
145608
|
+
};
|
|
145609
|
+
|
|
145610
|
+
/**
|
|
145611
|
+
* Encodes the specified PartnerEventUpdated message. Does not implicitly {@link PartnerEventUpdated.verify|verify} messages.
|
|
145612
|
+
* @function encode
|
|
145613
|
+
* @memberof PartnerEventUpdated
|
|
145614
|
+
* @static
|
|
145615
|
+
* @param {IPartnerEventUpdated} message PartnerEventUpdated message or plain object to encode
|
|
145616
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
145617
|
+
* @returns {$protobuf.Writer} Writer
|
|
145618
|
+
*/
|
|
145619
|
+
PartnerEventUpdated.encode = function encode(message, writer) {
|
|
145620
|
+
if (!writer)
|
|
145621
|
+
writer = $Writer.create();
|
|
145622
|
+
if (message.partnerId != null && message.hasOwnProperty("partnerId"))
|
|
145623
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.partnerId);
|
|
145624
|
+
if (message.taggedCustomFields != null && message.taggedCustomFields.length)
|
|
145625
|
+
for (var i = 0; i < message.taggedCustomFields.length; ++i)
|
|
145626
|
+
$root.TaggedCustomField.encode(message.taggedCustomFields[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
145627
|
+
if (message.receivedAtTimestamp != null && message.hasOwnProperty("receivedAtTimestamp"))
|
|
145628
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.receivedAtTimestamp);
|
|
145629
|
+
return writer;
|
|
145630
|
+
};
|
|
145631
|
+
|
|
145632
|
+
/**
|
|
145633
|
+
* Encodes the specified PartnerEventUpdated message, length delimited. Does not implicitly {@link PartnerEventUpdated.verify|verify} messages.
|
|
145634
|
+
* @function encodeDelimited
|
|
145635
|
+
* @memberof PartnerEventUpdated
|
|
145636
|
+
* @static
|
|
145637
|
+
* @param {IPartnerEventUpdated} message PartnerEventUpdated message or plain object to encode
|
|
145638
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
145639
|
+
* @returns {$protobuf.Writer} Writer
|
|
145640
|
+
*/
|
|
145641
|
+
PartnerEventUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
145642
|
+
return this.encode(message, writer).ldelim();
|
|
145643
|
+
};
|
|
145644
|
+
|
|
145645
|
+
/**
|
|
145646
|
+
* Decodes a PartnerEventUpdated message from the specified reader or buffer.
|
|
145647
|
+
* @function decode
|
|
145648
|
+
* @memberof PartnerEventUpdated
|
|
145649
|
+
* @static
|
|
145650
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
145651
|
+
* @param {number} [length] Message length if known beforehand
|
|
145652
|
+
* @returns {PartnerEventUpdated} PartnerEventUpdated
|
|
145653
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
145654
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
145655
|
+
*/
|
|
145656
|
+
PartnerEventUpdated.decode = function decode(reader, length) {
|
|
145657
|
+
if (!(reader instanceof $Reader))
|
|
145658
|
+
reader = $Reader.create(reader);
|
|
145659
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.PartnerEventUpdated();
|
|
145660
|
+
while (reader.pos < end) {
|
|
145661
|
+
var tag = reader.uint32();
|
|
145662
|
+
switch (tag >>> 3) {
|
|
145663
|
+
case 1:
|
|
145664
|
+
message.partnerId = reader.string();
|
|
145665
|
+
break;
|
|
145666
|
+
case 2:
|
|
145667
|
+
if (!(message.taggedCustomFields && message.taggedCustomFields.length))
|
|
145668
|
+
message.taggedCustomFields = [];
|
|
145669
|
+
message.taggedCustomFields.push($root.TaggedCustomField.decode(reader, reader.uint32()));
|
|
145670
|
+
break;
|
|
145671
|
+
case 3:
|
|
145672
|
+
message.receivedAtTimestamp = reader.uint64();
|
|
145673
|
+
break;
|
|
145674
|
+
default:
|
|
145675
|
+
reader.skipType(tag & 7);
|
|
145676
|
+
break;
|
|
145677
|
+
}
|
|
145678
|
+
}
|
|
145679
|
+
return message;
|
|
145680
|
+
};
|
|
145681
|
+
|
|
145682
|
+
/**
|
|
145683
|
+
* Decodes a PartnerEventUpdated message from the specified reader or buffer, length delimited.
|
|
145684
|
+
* @function decodeDelimited
|
|
145685
|
+
* @memberof PartnerEventUpdated
|
|
145686
|
+
* @static
|
|
145687
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
145688
|
+
* @returns {PartnerEventUpdated} PartnerEventUpdated
|
|
145689
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
145690
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
145691
|
+
*/
|
|
145692
|
+
PartnerEventUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
145693
|
+
if (!(reader instanceof $Reader))
|
|
145694
|
+
reader = new $Reader(reader);
|
|
145695
|
+
return this.decode(reader, reader.uint32());
|
|
145696
|
+
};
|
|
145697
|
+
|
|
145698
|
+
/**
|
|
145699
|
+
* Verifies a PartnerEventUpdated message.
|
|
145700
|
+
* @function verify
|
|
145701
|
+
* @memberof PartnerEventUpdated
|
|
145702
|
+
* @static
|
|
145703
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
145704
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
145705
|
+
*/
|
|
145706
|
+
PartnerEventUpdated.verify = function verify(message) {
|
|
145707
|
+
if (typeof message !== "object" || message === null)
|
|
145708
|
+
return "object expected";
|
|
145709
|
+
if (message.partnerId != null && message.hasOwnProperty("partnerId"))
|
|
145710
|
+
if (!$util.isString(message.partnerId))
|
|
145711
|
+
return "partnerId: string expected";
|
|
145712
|
+
if (message.taggedCustomFields != null && message.hasOwnProperty("taggedCustomFields")) {
|
|
145713
|
+
if (!Array.isArray(message.taggedCustomFields))
|
|
145714
|
+
return "taggedCustomFields: array expected";
|
|
145715
|
+
for (var i = 0; i < message.taggedCustomFields.length; ++i) {
|
|
145716
|
+
var error = $root.TaggedCustomField.verify(message.taggedCustomFields[i]);
|
|
145717
|
+
if (error)
|
|
145718
|
+
return "taggedCustomFields." + error;
|
|
145719
|
+
}
|
|
145720
|
+
}
|
|
145721
|
+
if (message.receivedAtTimestamp != null && message.hasOwnProperty("receivedAtTimestamp"))
|
|
145722
|
+
if (!$util.isInteger(message.receivedAtTimestamp) && !(message.receivedAtTimestamp && $util.isInteger(message.receivedAtTimestamp.low) && $util.isInteger(message.receivedAtTimestamp.high)))
|
|
145723
|
+
return "receivedAtTimestamp: integer|Long expected";
|
|
145724
|
+
return null;
|
|
145725
|
+
};
|
|
145726
|
+
|
|
145727
|
+
/**
|
|
145728
|
+
* Creates a PartnerEventUpdated message from a plain object. Also converts values to their respective internal types.
|
|
145729
|
+
* @function fromObject
|
|
145730
|
+
* @memberof PartnerEventUpdated
|
|
145731
|
+
* @static
|
|
145732
|
+
* @param {Object.<string,*>} object Plain object
|
|
145733
|
+
* @returns {PartnerEventUpdated} PartnerEventUpdated
|
|
145734
|
+
*/
|
|
145735
|
+
PartnerEventUpdated.fromObject = function fromObject(object) {
|
|
145736
|
+
if (object instanceof $root.PartnerEventUpdated)
|
|
145737
|
+
return object;
|
|
145738
|
+
var message = new $root.PartnerEventUpdated();
|
|
145739
|
+
if (object.partnerId != null)
|
|
145740
|
+
message.partnerId = String(object.partnerId);
|
|
145741
|
+
if (object.taggedCustomFields) {
|
|
145742
|
+
if (!Array.isArray(object.taggedCustomFields))
|
|
145743
|
+
throw TypeError(".PartnerEventUpdated.taggedCustomFields: array expected");
|
|
145744
|
+
message.taggedCustomFields = [];
|
|
145745
|
+
for (var i = 0; i < object.taggedCustomFields.length; ++i) {
|
|
145746
|
+
if (typeof object.taggedCustomFields[i] !== "object")
|
|
145747
|
+
throw TypeError(".PartnerEventUpdated.taggedCustomFields: object expected");
|
|
145748
|
+
message.taggedCustomFields[i] = $root.TaggedCustomField.fromObject(object.taggedCustomFields[i]);
|
|
145749
|
+
}
|
|
145750
|
+
}
|
|
145751
|
+
if (object.receivedAtTimestamp != null)
|
|
145752
|
+
if ($util.Long)
|
|
145753
|
+
(message.receivedAtTimestamp = $util.Long.fromValue(object.receivedAtTimestamp)).unsigned = true;
|
|
145754
|
+
else if (typeof object.receivedAtTimestamp === "string")
|
|
145755
|
+
message.receivedAtTimestamp = parseInt(object.receivedAtTimestamp, 10);
|
|
145756
|
+
else if (typeof object.receivedAtTimestamp === "number")
|
|
145757
|
+
message.receivedAtTimestamp = object.receivedAtTimestamp;
|
|
145758
|
+
else if (typeof object.receivedAtTimestamp === "object")
|
|
145759
|
+
message.receivedAtTimestamp = new $util.LongBits(object.receivedAtTimestamp.low >>> 0, object.receivedAtTimestamp.high >>> 0).toNumber(true);
|
|
145760
|
+
return message;
|
|
145761
|
+
};
|
|
145762
|
+
|
|
145763
|
+
/**
|
|
145764
|
+
* Creates a plain object from a PartnerEventUpdated message. Also converts values to other types if specified.
|
|
145765
|
+
* @function toObject
|
|
145766
|
+
* @memberof PartnerEventUpdated
|
|
145767
|
+
* @static
|
|
145768
|
+
* @param {PartnerEventUpdated} message PartnerEventUpdated
|
|
145769
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
145770
|
+
* @returns {Object.<string,*>} Plain object
|
|
145771
|
+
*/
|
|
145772
|
+
PartnerEventUpdated.toObject = function toObject(message, options) {
|
|
145773
|
+
if (!options)
|
|
145774
|
+
options = {};
|
|
145775
|
+
var object = {};
|
|
145776
|
+
if (options.arrays || options.defaults)
|
|
145777
|
+
object.taggedCustomFields = [];
|
|
145778
|
+
if (options.defaults) {
|
|
145779
|
+
object.partnerId = "";
|
|
145780
|
+
if ($util.Long) {
|
|
145781
|
+
var long = new $util.Long(0, 0, true);
|
|
145782
|
+
object.receivedAtTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
145783
|
+
} else
|
|
145784
|
+
object.receivedAtTimestamp = options.longs === String ? "0" : 0;
|
|
145785
|
+
}
|
|
145786
|
+
if (message.partnerId != null && message.hasOwnProperty("partnerId"))
|
|
145787
|
+
object.partnerId = message.partnerId;
|
|
145788
|
+
if (message.taggedCustomFields && message.taggedCustomFields.length) {
|
|
145789
|
+
object.taggedCustomFields = [];
|
|
145790
|
+
for (var j = 0; j < message.taggedCustomFields.length; ++j)
|
|
145791
|
+
object.taggedCustomFields[j] = $root.TaggedCustomField.toObject(message.taggedCustomFields[j], options);
|
|
145792
|
+
}
|
|
145793
|
+
if (message.receivedAtTimestamp != null && message.hasOwnProperty("receivedAtTimestamp"))
|
|
145794
|
+
if (typeof message.receivedAtTimestamp === "number")
|
|
145795
|
+
object.receivedAtTimestamp = options.longs === String ? String(message.receivedAtTimestamp) : message.receivedAtTimestamp;
|
|
145796
|
+
else
|
|
145797
|
+
object.receivedAtTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.receivedAtTimestamp) : options.longs === Number ? new $util.LongBits(message.receivedAtTimestamp.low >>> 0, message.receivedAtTimestamp.high >>> 0).toNumber(true) : message.receivedAtTimestamp;
|
|
145798
|
+
return object;
|
|
145799
|
+
};
|
|
145800
|
+
|
|
145801
|
+
/**
|
|
145802
|
+
* Converts this PartnerEventUpdated to JSON.
|
|
145803
|
+
* @function toJSON
|
|
145804
|
+
* @memberof PartnerEventUpdated
|
|
145805
|
+
* @instance
|
|
145806
|
+
* @returns {Object.<string,*>} JSON object
|
|
145807
|
+
*/
|
|
145808
|
+
PartnerEventUpdated.prototype.toJSON = function toJSON() {
|
|
145809
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
145810
|
+
};
|
|
145811
|
+
|
|
145812
|
+
return PartnerEventUpdated;
|
|
145813
|
+
})();
|
|
145814
|
+
|
|
145545
145815
|
$root.PHQAssessmentAssigned = (function() {
|
|
145546
145816
|
|
|
145547
145817
|
/**
|
package/package.json
CHANGED