@headspace/protos-events 1.630.0 → 1.631.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 +116 -0
- package/lib/index.js +309 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -52506,6 +52506,122 @@ export class EligibilityRecordRemoved implements IEligibilityRecordRemoved {
|
|
|
52506
52506
|
public toJSON(): { [k: string]: any };
|
|
52507
52507
|
}
|
|
52508
52508
|
|
|
52509
|
+
/** Properties of an EligibilitySelfVerificationCreated. */
|
|
52510
|
+
export interface IEligibilitySelfVerificationCreated {
|
|
52511
|
+
|
|
52512
|
+
/** EligibilitySelfVerificationCreated timestamp */
|
|
52513
|
+
timestamp?: (number|Long|null);
|
|
52514
|
+
|
|
52515
|
+
/** EligibilitySelfVerificationCreated hsUserId */
|
|
52516
|
+
hsUserId?: (string|null);
|
|
52517
|
+
|
|
52518
|
+
/** EligibilitySelfVerificationCreated eligibilityType */
|
|
52519
|
+
eligibilityType?: (EligibilityType|null);
|
|
52520
|
+
|
|
52521
|
+
/** EligibilitySelfVerificationCreated isVerified */
|
|
52522
|
+
isVerified?: (boolean|null);
|
|
52523
|
+
}
|
|
52524
|
+
|
|
52525
|
+
/** Represents an EligibilitySelfVerificationCreated. */
|
|
52526
|
+
export class EligibilitySelfVerificationCreated implements IEligibilitySelfVerificationCreated {
|
|
52527
|
+
|
|
52528
|
+
/**
|
|
52529
|
+
* Constructs a new EligibilitySelfVerificationCreated.
|
|
52530
|
+
* @param [properties] Properties to set
|
|
52531
|
+
*/
|
|
52532
|
+
constructor(properties?: IEligibilitySelfVerificationCreated);
|
|
52533
|
+
|
|
52534
|
+
/** EligibilitySelfVerificationCreated timestamp. */
|
|
52535
|
+
public timestamp: (number|Long);
|
|
52536
|
+
|
|
52537
|
+
/** EligibilitySelfVerificationCreated hsUserId. */
|
|
52538
|
+
public hsUserId: string;
|
|
52539
|
+
|
|
52540
|
+
/** EligibilitySelfVerificationCreated eligibilityType. */
|
|
52541
|
+
public eligibilityType: EligibilityType;
|
|
52542
|
+
|
|
52543
|
+
/** EligibilitySelfVerificationCreated isVerified. */
|
|
52544
|
+
public isVerified: boolean;
|
|
52545
|
+
|
|
52546
|
+
/**
|
|
52547
|
+
* Creates a new EligibilitySelfVerificationCreated instance using the specified properties.
|
|
52548
|
+
* @param [properties] Properties to set
|
|
52549
|
+
* @returns EligibilitySelfVerificationCreated instance
|
|
52550
|
+
*/
|
|
52551
|
+
public static create(properties?: IEligibilitySelfVerificationCreated): EligibilitySelfVerificationCreated;
|
|
52552
|
+
|
|
52553
|
+
/**
|
|
52554
|
+
* Encodes the specified EligibilitySelfVerificationCreated message. Does not implicitly {@link EligibilitySelfVerificationCreated.verify|verify} messages.
|
|
52555
|
+
* @param message EligibilitySelfVerificationCreated message or plain object to encode
|
|
52556
|
+
* @param [writer] Writer to encode to
|
|
52557
|
+
* @returns Writer
|
|
52558
|
+
*/
|
|
52559
|
+
public static encode(message: IEligibilitySelfVerificationCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
52560
|
+
|
|
52561
|
+
/**
|
|
52562
|
+
* Encodes the specified EligibilitySelfVerificationCreated message, length delimited. Does not implicitly {@link EligibilitySelfVerificationCreated.verify|verify} messages.
|
|
52563
|
+
* @param message EligibilitySelfVerificationCreated message or plain object to encode
|
|
52564
|
+
* @param [writer] Writer to encode to
|
|
52565
|
+
* @returns Writer
|
|
52566
|
+
*/
|
|
52567
|
+
public static encodeDelimited(message: IEligibilitySelfVerificationCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
52568
|
+
|
|
52569
|
+
/**
|
|
52570
|
+
* Decodes an EligibilitySelfVerificationCreated message from the specified reader or buffer.
|
|
52571
|
+
* @param reader Reader or buffer to decode from
|
|
52572
|
+
* @param [length] Message length if known beforehand
|
|
52573
|
+
* @returns EligibilitySelfVerificationCreated
|
|
52574
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
52575
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
52576
|
+
*/
|
|
52577
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): EligibilitySelfVerificationCreated;
|
|
52578
|
+
|
|
52579
|
+
/**
|
|
52580
|
+
* Decodes an EligibilitySelfVerificationCreated message from the specified reader or buffer, length delimited.
|
|
52581
|
+
* @param reader Reader or buffer to decode from
|
|
52582
|
+
* @returns EligibilitySelfVerificationCreated
|
|
52583
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
52584
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
52585
|
+
*/
|
|
52586
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): EligibilitySelfVerificationCreated;
|
|
52587
|
+
|
|
52588
|
+
/**
|
|
52589
|
+
* Verifies an EligibilitySelfVerificationCreated message.
|
|
52590
|
+
* @param message Plain object to verify
|
|
52591
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
52592
|
+
*/
|
|
52593
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
52594
|
+
|
|
52595
|
+
/**
|
|
52596
|
+
* Creates an EligibilitySelfVerificationCreated message from a plain object. Also converts values to their respective internal types.
|
|
52597
|
+
* @param object Plain object
|
|
52598
|
+
* @returns EligibilitySelfVerificationCreated
|
|
52599
|
+
*/
|
|
52600
|
+
public static fromObject(object: { [k: string]: any }): EligibilitySelfVerificationCreated;
|
|
52601
|
+
|
|
52602
|
+
/**
|
|
52603
|
+
* Creates a plain object from an EligibilitySelfVerificationCreated message. Also converts values to other types if specified.
|
|
52604
|
+
* @param message EligibilitySelfVerificationCreated
|
|
52605
|
+
* @param [options] Conversion options
|
|
52606
|
+
* @returns Plain object
|
|
52607
|
+
*/
|
|
52608
|
+
public static toObject(message: EligibilitySelfVerificationCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
52609
|
+
|
|
52610
|
+
/**
|
|
52611
|
+
* Converts this EligibilitySelfVerificationCreated to JSON.
|
|
52612
|
+
* @returns JSON object
|
|
52613
|
+
*/
|
|
52614
|
+
public toJSON(): { [k: string]: any };
|
|
52615
|
+
}
|
|
52616
|
+
|
|
52617
|
+
/** EligibilityType enum. */
|
|
52618
|
+
export enum EligibilityType {
|
|
52619
|
+
ELIGIBILITY_TYPE_UNKNOWN = 0,
|
|
52620
|
+
ELIGIBILITY_TYPE_D2C_COACHING = 1,
|
|
52621
|
+
ELIGIBILITY_TYPE_D2C_THERAPY = 2,
|
|
52622
|
+
ELIGIBILITY_TYPE_D2C_CARE_UPSELL = 3
|
|
52623
|
+
}
|
|
52624
|
+
|
|
52509
52625
|
/** Properties of an EnterpriseUserOnboarded. */
|
|
52510
52626
|
export interface IEnterpriseUserOnboarded {
|
|
52511
52627
|
|
package/lib/index.js
CHANGED
|
@@ -144901,6 +144901,315 @@ $root.EligibilityRecordRemoved = (function() {
|
|
|
144901
144901
|
return EligibilityRecordRemoved;
|
|
144902
144902
|
})();
|
|
144903
144903
|
|
|
144904
|
+
$root.EligibilitySelfVerificationCreated = (function() {
|
|
144905
|
+
|
|
144906
|
+
/**
|
|
144907
|
+
* Properties of an EligibilitySelfVerificationCreated.
|
|
144908
|
+
* @name IEligibilitySelfVerificationCreated
|
|
144909
|
+
* @interface IEligibilitySelfVerificationCreated
|
|
144910
|
+
* @property {number|Long|null} [timestamp] EligibilitySelfVerificationCreated timestamp
|
|
144911
|
+
* @property {string|null} [hsUserId] EligibilitySelfVerificationCreated hsUserId
|
|
144912
|
+
* @property {EligibilityType|null} [eligibilityType] EligibilitySelfVerificationCreated eligibilityType
|
|
144913
|
+
* @property {boolean|null} [isVerified] EligibilitySelfVerificationCreated isVerified
|
|
144914
|
+
*/
|
|
144915
|
+
|
|
144916
|
+
/**
|
|
144917
|
+
* Constructs a new EligibilitySelfVerificationCreated.
|
|
144918
|
+
* @name EligibilitySelfVerificationCreated
|
|
144919
|
+
* @classdesc Represents an EligibilitySelfVerificationCreated.
|
|
144920
|
+
* @implements IEligibilitySelfVerificationCreated
|
|
144921
|
+
* @constructor
|
|
144922
|
+
* @param {IEligibilitySelfVerificationCreated=} [properties] Properties to set
|
|
144923
|
+
*/
|
|
144924
|
+
function EligibilitySelfVerificationCreated(properties) {
|
|
144925
|
+
if (properties)
|
|
144926
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
144927
|
+
if (properties[keys[i]] != null)
|
|
144928
|
+
this[keys[i]] = properties[keys[i]];
|
|
144929
|
+
}
|
|
144930
|
+
|
|
144931
|
+
/**
|
|
144932
|
+
* EligibilitySelfVerificationCreated timestamp.
|
|
144933
|
+
* @member {number|Long} timestamp
|
|
144934
|
+
* @memberof EligibilitySelfVerificationCreated
|
|
144935
|
+
* @instance
|
|
144936
|
+
*/
|
|
144937
|
+
EligibilitySelfVerificationCreated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
144938
|
+
|
|
144939
|
+
/**
|
|
144940
|
+
* EligibilitySelfVerificationCreated hsUserId.
|
|
144941
|
+
* @member {string} hsUserId
|
|
144942
|
+
* @memberof EligibilitySelfVerificationCreated
|
|
144943
|
+
* @instance
|
|
144944
|
+
*/
|
|
144945
|
+
EligibilitySelfVerificationCreated.prototype.hsUserId = "";
|
|
144946
|
+
|
|
144947
|
+
/**
|
|
144948
|
+
* EligibilitySelfVerificationCreated eligibilityType.
|
|
144949
|
+
* @member {EligibilityType} eligibilityType
|
|
144950
|
+
* @memberof EligibilitySelfVerificationCreated
|
|
144951
|
+
* @instance
|
|
144952
|
+
*/
|
|
144953
|
+
EligibilitySelfVerificationCreated.prototype.eligibilityType = 0;
|
|
144954
|
+
|
|
144955
|
+
/**
|
|
144956
|
+
* EligibilitySelfVerificationCreated isVerified.
|
|
144957
|
+
* @member {boolean} isVerified
|
|
144958
|
+
* @memberof EligibilitySelfVerificationCreated
|
|
144959
|
+
* @instance
|
|
144960
|
+
*/
|
|
144961
|
+
EligibilitySelfVerificationCreated.prototype.isVerified = false;
|
|
144962
|
+
|
|
144963
|
+
/**
|
|
144964
|
+
* Creates a new EligibilitySelfVerificationCreated instance using the specified properties.
|
|
144965
|
+
* @function create
|
|
144966
|
+
* @memberof EligibilitySelfVerificationCreated
|
|
144967
|
+
* @static
|
|
144968
|
+
* @param {IEligibilitySelfVerificationCreated=} [properties] Properties to set
|
|
144969
|
+
* @returns {EligibilitySelfVerificationCreated} EligibilitySelfVerificationCreated instance
|
|
144970
|
+
*/
|
|
144971
|
+
EligibilitySelfVerificationCreated.create = function create(properties) {
|
|
144972
|
+
return new EligibilitySelfVerificationCreated(properties);
|
|
144973
|
+
};
|
|
144974
|
+
|
|
144975
|
+
/**
|
|
144976
|
+
* Encodes the specified EligibilitySelfVerificationCreated message. Does not implicitly {@link EligibilitySelfVerificationCreated.verify|verify} messages.
|
|
144977
|
+
* @function encode
|
|
144978
|
+
* @memberof EligibilitySelfVerificationCreated
|
|
144979
|
+
* @static
|
|
144980
|
+
* @param {IEligibilitySelfVerificationCreated} message EligibilitySelfVerificationCreated message or plain object to encode
|
|
144981
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
144982
|
+
* @returns {$protobuf.Writer} Writer
|
|
144983
|
+
*/
|
|
144984
|
+
EligibilitySelfVerificationCreated.encode = function encode(message, writer) {
|
|
144985
|
+
if (!writer)
|
|
144986
|
+
writer = $Writer.create();
|
|
144987
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
144988
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
|
|
144989
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
144990
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.hsUserId);
|
|
144991
|
+
if (message.eligibilityType != null && message.hasOwnProperty("eligibilityType"))
|
|
144992
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.eligibilityType);
|
|
144993
|
+
if (message.isVerified != null && message.hasOwnProperty("isVerified"))
|
|
144994
|
+
writer.uint32(/* id 5, wireType 0 =*/40).bool(message.isVerified);
|
|
144995
|
+
return writer;
|
|
144996
|
+
};
|
|
144997
|
+
|
|
144998
|
+
/**
|
|
144999
|
+
* Encodes the specified EligibilitySelfVerificationCreated message, length delimited. Does not implicitly {@link EligibilitySelfVerificationCreated.verify|verify} messages.
|
|
145000
|
+
* @function encodeDelimited
|
|
145001
|
+
* @memberof EligibilitySelfVerificationCreated
|
|
145002
|
+
* @static
|
|
145003
|
+
* @param {IEligibilitySelfVerificationCreated} message EligibilitySelfVerificationCreated message or plain object to encode
|
|
145004
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
145005
|
+
* @returns {$protobuf.Writer} Writer
|
|
145006
|
+
*/
|
|
145007
|
+
EligibilitySelfVerificationCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
145008
|
+
return this.encode(message, writer).ldelim();
|
|
145009
|
+
};
|
|
145010
|
+
|
|
145011
|
+
/**
|
|
145012
|
+
* Decodes an EligibilitySelfVerificationCreated message from the specified reader or buffer.
|
|
145013
|
+
* @function decode
|
|
145014
|
+
* @memberof EligibilitySelfVerificationCreated
|
|
145015
|
+
* @static
|
|
145016
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
145017
|
+
* @param {number} [length] Message length if known beforehand
|
|
145018
|
+
* @returns {EligibilitySelfVerificationCreated} EligibilitySelfVerificationCreated
|
|
145019
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
145020
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
145021
|
+
*/
|
|
145022
|
+
EligibilitySelfVerificationCreated.decode = function decode(reader, length) {
|
|
145023
|
+
if (!(reader instanceof $Reader))
|
|
145024
|
+
reader = $Reader.create(reader);
|
|
145025
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.EligibilitySelfVerificationCreated();
|
|
145026
|
+
while (reader.pos < end) {
|
|
145027
|
+
var tag = reader.uint32();
|
|
145028
|
+
switch (tag >>> 3) {
|
|
145029
|
+
case 1:
|
|
145030
|
+
message.timestamp = reader.uint64();
|
|
145031
|
+
break;
|
|
145032
|
+
case 3:
|
|
145033
|
+
message.hsUserId = reader.string();
|
|
145034
|
+
break;
|
|
145035
|
+
case 4:
|
|
145036
|
+
message.eligibilityType = reader.int32();
|
|
145037
|
+
break;
|
|
145038
|
+
case 5:
|
|
145039
|
+
message.isVerified = reader.bool();
|
|
145040
|
+
break;
|
|
145041
|
+
default:
|
|
145042
|
+
reader.skipType(tag & 7);
|
|
145043
|
+
break;
|
|
145044
|
+
}
|
|
145045
|
+
}
|
|
145046
|
+
return message;
|
|
145047
|
+
};
|
|
145048
|
+
|
|
145049
|
+
/**
|
|
145050
|
+
* Decodes an EligibilitySelfVerificationCreated message from the specified reader or buffer, length delimited.
|
|
145051
|
+
* @function decodeDelimited
|
|
145052
|
+
* @memberof EligibilitySelfVerificationCreated
|
|
145053
|
+
* @static
|
|
145054
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
145055
|
+
* @returns {EligibilitySelfVerificationCreated} EligibilitySelfVerificationCreated
|
|
145056
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
145057
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
145058
|
+
*/
|
|
145059
|
+
EligibilitySelfVerificationCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
145060
|
+
if (!(reader instanceof $Reader))
|
|
145061
|
+
reader = new $Reader(reader);
|
|
145062
|
+
return this.decode(reader, reader.uint32());
|
|
145063
|
+
};
|
|
145064
|
+
|
|
145065
|
+
/**
|
|
145066
|
+
* Verifies an EligibilitySelfVerificationCreated message.
|
|
145067
|
+
* @function verify
|
|
145068
|
+
* @memberof EligibilitySelfVerificationCreated
|
|
145069
|
+
* @static
|
|
145070
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
145071
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
145072
|
+
*/
|
|
145073
|
+
EligibilitySelfVerificationCreated.verify = function verify(message) {
|
|
145074
|
+
if (typeof message !== "object" || message === null)
|
|
145075
|
+
return "object expected";
|
|
145076
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
145077
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
145078
|
+
return "timestamp: integer|Long expected";
|
|
145079
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
145080
|
+
if (!$util.isString(message.hsUserId))
|
|
145081
|
+
return "hsUserId: string expected";
|
|
145082
|
+
if (message.eligibilityType != null && message.hasOwnProperty("eligibilityType"))
|
|
145083
|
+
switch (message.eligibilityType) {
|
|
145084
|
+
default:
|
|
145085
|
+
return "eligibilityType: enum value expected";
|
|
145086
|
+
case 0:
|
|
145087
|
+
case 1:
|
|
145088
|
+
case 2:
|
|
145089
|
+
case 3:
|
|
145090
|
+
break;
|
|
145091
|
+
}
|
|
145092
|
+
if (message.isVerified != null && message.hasOwnProperty("isVerified"))
|
|
145093
|
+
if (typeof message.isVerified !== "boolean")
|
|
145094
|
+
return "isVerified: boolean expected";
|
|
145095
|
+
return null;
|
|
145096
|
+
};
|
|
145097
|
+
|
|
145098
|
+
/**
|
|
145099
|
+
* Creates an EligibilitySelfVerificationCreated message from a plain object. Also converts values to their respective internal types.
|
|
145100
|
+
* @function fromObject
|
|
145101
|
+
* @memberof EligibilitySelfVerificationCreated
|
|
145102
|
+
* @static
|
|
145103
|
+
* @param {Object.<string,*>} object Plain object
|
|
145104
|
+
* @returns {EligibilitySelfVerificationCreated} EligibilitySelfVerificationCreated
|
|
145105
|
+
*/
|
|
145106
|
+
EligibilitySelfVerificationCreated.fromObject = function fromObject(object) {
|
|
145107
|
+
if (object instanceof $root.EligibilitySelfVerificationCreated)
|
|
145108
|
+
return object;
|
|
145109
|
+
var message = new $root.EligibilitySelfVerificationCreated();
|
|
145110
|
+
if (object.timestamp != null)
|
|
145111
|
+
if ($util.Long)
|
|
145112
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
145113
|
+
else if (typeof object.timestamp === "string")
|
|
145114
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
145115
|
+
else if (typeof object.timestamp === "number")
|
|
145116
|
+
message.timestamp = object.timestamp;
|
|
145117
|
+
else if (typeof object.timestamp === "object")
|
|
145118
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
145119
|
+
if (object.hsUserId != null)
|
|
145120
|
+
message.hsUserId = String(object.hsUserId);
|
|
145121
|
+
switch (object.eligibilityType) {
|
|
145122
|
+
case "ELIGIBILITY_TYPE_UNKNOWN":
|
|
145123
|
+
case 0:
|
|
145124
|
+
message.eligibilityType = 0;
|
|
145125
|
+
break;
|
|
145126
|
+
case "ELIGIBILITY_TYPE_D2C_COACHING":
|
|
145127
|
+
case 1:
|
|
145128
|
+
message.eligibilityType = 1;
|
|
145129
|
+
break;
|
|
145130
|
+
case "ELIGIBILITY_TYPE_D2C_THERAPY":
|
|
145131
|
+
case 2:
|
|
145132
|
+
message.eligibilityType = 2;
|
|
145133
|
+
break;
|
|
145134
|
+
case "ELIGIBILITY_TYPE_D2C_CARE_UPSELL":
|
|
145135
|
+
case 3:
|
|
145136
|
+
message.eligibilityType = 3;
|
|
145137
|
+
break;
|
|
145138
|
+
}
|
|
145139
|
+
if (object.isVerified != null)
|
|
145140
|
+
message.isVerified = Boolean(object.isVerified);
|
|
145141
|
+
return message;
|
|
145142
|
+
};
|
|
145143
|
+
|
|
145144
|
+
/**
|
|
145145
|
+
* Creates a plain object from an EligibilitySelfVerificationCreated message. Also converts values to other types if specified.
|
|
145146
|
+
* @function toObject
|
|
145147
|
+
* @memberof EligibilitySelfVerificationCreated
|
|
145148
|
+
* @static
|
|
145149
|
+
* @param {EligibilitySelfVerificationCreated} message EligibilitySelfVerificationCreated
|
|
145150
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
145151
|
+
* @returns {Object.<string,*>} Plain object
|
|
145152
|
+
*/
|
|
145153
|
+
EligibilitySelfVerificationCreated.toObject = function toObject(message, options) {
|
|
145154
|
+
if (!options)
|
|
145155
|
+
options = {};
|
|
145156
|
+
var object = {};
|
|
145157
|
+
if (options.defaults) {
|
|
145158
|
+
if ($util.Long) {
|
|
145159
|
+
var long = new $util.Long(0, 0, true);
|
|
145160
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
145161
|
+
} else
|
|
145162
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
145163
|
+
object.hsUserId = "";
|
|
145164
|
+
object.eligibilityType = options.enums === String ? "ELIGIBILITY_TYPE_UNKNOWN" : 0;
|
|
145165
|
+
object.isVerified = false;
|
|
145166
|
+
}
|
|
145167
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
145168
|
+
if (typeof message.timestamp === "number")
|
|
145169
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
145170
|
+
else
|
|
145171
|
+
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;
|
|
145172
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
145173
|
+
object.hsUserId = message.hsUserId;
|
|
145174
|
+
if (message.eligibilityType != null && message.hasOwnProperty("eligibilityType"))
|
|
145175
|
+
object.eligibilityType = options.enums === String ? $root.EligibilityType[message.eligibilityType] : message.eligibilityType;
|
|
145176
|
+
if (message.isVerified != null && message.hasOwnProperty("isVerified"))
|
|
145177
|
+
object.isVerified = message.isVerified;
|
|
145178
|
+
return object;
|
|
145179
|
+
};
|
|
145180
|
+
|
|
145181
|
+
/**
|
|
145182
|
+
* Converts this EligibilitySelfVerificationCreated to JSON.
|
|
145183
|
+
* @function toJSON
|
|
145184
|
+
* @memberof EligibilitySelfVerificationCreated
|
|
145185
|
+
* @instance
|
|
145186
|
+
* @returns {Object.<string,*>} JSON object
|
|
145187
|
+
*/
|
|
145188
|
+
EligibilitySelfVerificationCreated.prototype.toJSON = function toJSON() {
|
|
145189
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
145190
|
+
};
|
|
145191
|
+
|
|
145192
|
+
return EligibilitySelfVerificationCreated;
|
|
145193
|
+
})();
|
|
145194
|
+
|
|
145195
|
+
/**
|
|
145196
|
+
* EligibilityType enum.
|
|
145197
|
+
* @name EligibilityType
|
|
145198
|
+
* @enum {string}
|
|
145199
|
+
* @property {number} ELIGIBILITY_TYPE_UNKNOWN=0 ELIGIBILITY_TYPE_UNKNOWN value
|
|
145200
|
+
* @property {number} ELIGIBILITY_TYPE_D2C_COACHING=1 ELIGIBILITY_TYPE_D2C_COACHING value
|
|
145201
|
+
* @property {number} ELIGIBILITY_TYPE_D2C_THERAPY=2 ELIGIBILITY_TYPE_D2C_THERAPY value
|
|
145202
|
+
* @property {number} ELIGIBILITY_TYPE_D2C_CARE_UPSELL=3 ELIGIBILITY_TYPE_D2C_CARE_UPSELL value
|
|
145203
|
+
*/
|
|
145204
|
+
$root.EligibilityType = (function() {
|
|
145205
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
145206
|
+
values[valuesById[0] = "ELIGIBILITY_TYPE_UNKNOWN"] = 0;
|
|
145207
|
+
values[valuesById[1] = "ELIGIBILITY_TYPE_D2C_COACHING"] = 1;
|
|
145208
|
+
values[valuesById[2] = "ELIGIBILITY_TYPE_D2C_THERAPY"] = 2;
|
|
145209
|
+
values[valuesById[3] = "ELIGIBILITY_TYPE_D2C_CARE_UPSELL"] = 3;
|
|
145210
|
+
return values;
|
|
145211
|
+
})();
|
|
145212
|
+
|
|
144904
145213
|
$root.EnterpriseUserOnboarded = (function() {
|
|
144905
145214
|
|
|
144906
145215
|
/**
|
package/package.json
CHANGED