@headspace/protos-events 1.630.0 → 1.632.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 +129 -0
- package/lib/index.js +365 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -3298,6 +3298,9 @@ export namespace coaching {
|
|
|
3298
3298
|
* See apps.listenerapp.models.ChatConversation
|
|
3299
3299
|
*/
|
|
3300
3300
|
chatConversationId?: (string|null);
|
|
3301
|
+
|
|
3302
|
+
/** The medium format of the session. */
|
|
3303
|
+
sessionFormat?: (coaching.CoachingSessionFormat|null);
|
|
3301
3304
|
}
|
|
3302
3305
|
|
|
3303
3306
|
/**
|
|
@@ -3369,6 +3372,9 @@ export namespace coaching {
|
|
|
3369
3372
|
*/
|
|
3370
3373
|
public chatConversationId: string;
|
|
3371
3374
|
|
|
3375
|
+
/** The medium format of the session. */
|
|
3376
|
+
public sessionFormat: coaching.CoachingSessionFormat;
|
|
3377
|
+
|
|
3372
3378
|
/**
|
|
3373
3379
|
* Creates a new ScheduledCoachingSession instance using the specified properties.
|
|
3374
3380
|
* @param [properties] Properties to set
|
|
@@ -3448,6 +3454,13 @@ export namespace coaching {
|
|
|
3448
3454
|
COACHING_SESSION_EVENT_TYPE_REMINDER = 3
|
|
3449
3455
|
}
|
|
3450
3456
|
|
|
3457
|
+
/** The medium used for a coaching session. */
|
|
3458
|
+
enum CoachingSessionFormat {
|
|
3459
|
+
COACHING_SESSION_FORMAT_UNKNOWN = 0,
|
|
3460
|
+
COACHING_SESSION_FORMAT_CHAT = 1,
|
|
3461
|
+
COACHING_SESSION_FORMAT_VIDEO = 2
|
|
3462
|
+
}
|
|
3463
|
+
|
|
3451
3464
|
/** Properties of a SuicidalIdeationAlert. */
|
|
3452
3465
|
interface ISuicidalIdeationAlert {
|
|
3453
3466
|
|
|
@@ -52506,6 +52519,122 @@ export class EligibilityRecordRemoved implements IEligibilityRecordRemoved {
|
|
|
52506
52519
|
public toJSON(): { [k: string]: any };
|
|
52507
52520
|
}
|
|
52508
52521
|
|
|
52522
|
+
/** Properties of an EligibilitySelfVerificationCreated. */
|
|
52523
|
+
export interface IEligibilitySelfVerificationCreated {
|
|
52524
|
+
|
|
52525
|
+
/** EligibilitySelfVerificationCreated timestamp */
|
|
52526
|
+
timestamp?: (number|Long|null);
|
|
52527
|
+
|
|
52528
|
+
/** EligibilitySelfVerificationCreated hsUserId */
|
|
52529
|
+
hsUserId?: (string|null);
|
|
52530
|
+
|
|
52531
|
+
/** EligibilitySelfVerificationCreated eligibilityType */
|
|
52532
|
+
eligibilityType?: (EligibilityType|null);
|
|
52533
|
+
|
|
52534
|
+
/** EligibilitySelfVerificationCreated isVerified */
|
|
52535
|
+
isVerified?: (boolean|null);
|
|
52536
|
+
}
|
|
52537
|
+
|
|
52538
|
+
/** Represents an EligibilitySelfVerificationCreated. */
|
|
52539
|
+
export class EligibilitySelfVerificationCreated implements IEligibilitySelfVerificationCreated {
|
|
52540
|
+
|
|
52541
|
+
/**
|
|
52542
|
+
* Constructs a new EligibilitySelfVerificationCreated.
|
|
52543
|
+
* @param [properties] Properties to set
|
|
52544
|
+
*/
|
|
52545
|
+
constructor(properties?: IEligibilitySelfVerificationCreated);
|
|
52546
|
+
|
|
52547
|
+
/** EligibilitySelfVerificationCreated timestamp. */
|
|
52548
|
+
public timestamp: (number|Long);
|
|
52549
|
+
|
|
52550
|
+
/** EligibilitySelfVerificationCreated hsUserId. */
|
|
52551
|
+
public hsUserId: string;
|
|
52552
|
+
|
|
52553
|
+
/** EligibilitySelfVerificationCreated eligibilityType. */
|
|
52554
|
+
public eligibilityType: EligibilityType;
|
|
52555
|
+
|
|
52556
|
+
/** EligibilitySelfVerificationCreated isVerified. */
|
|
52557
|
+
public isVerified: boolean;
|
|
52558
|
+
|
|
52559
|
+
/**
|
|
52560
|
+
* Creates a new EligibilitySelfVerificationCreated instance using the specified properties.
|
|
52561
|
+
* @param [properties] Properties to set
|
|
52562
|
+
* @returns EligibilitySelfVerificationCreated instance
|
|
52563
|
+
*/
|
|
52564
|
+
public static create(properties?: IEligibilitySelfVerificationCreated): EligibilitySelfVerificationCreated;
|
|
52565
|
+
|
|
52566
|
+
/**
|
|
52567
|
+
* Encodes the specified EligibilitySelfVerificationCreated message. Does not implicitly {@link EligibilitySelfVerificationCreated.verify|verify} messages.
|
|
52568
|
+
* @param message EligibilitySelfVerificationCreated message or plain object to encode
|
|
52569
|
+
* @param [writer] Writer to encode to
|
|
52570
|
+
* @returns Writer
|
|
52571
|
+
*/
|
|
52572
|
+
public static encode(message: IEligibilitySelfVerificationCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
52573
|
+
|
|
52574
|
+
/**
|
|
52575
|
+
* Encodes the specified EligibilitySelfVerificationCreated message, length delimited. Does not implicitly {@link EligibilitySelfVerificationCreated.verify|verify} messages.
|
|
52576
|
+
* @param message EligibilitySelfVerificationCreated message or plain object to encode
|
|
52577
|
+
* @param [writer] Writer to encode to
|
|
52578
|
+
* @returns Writer
|
|
52579
|
+
*/
|
|
52580
|
+
public static encodeDelimited(message: IEligibilitySelfVerificationCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
52581
|
+
|
|
52582
|
+
/**
|
|
52583
|
+
* Decodes an EligibilitySelfVerificationCreated message from the specified reader or buffer.
|
|
52584
|
+
* @param reader Reader or buffer to decode from
|
|
52585
|
+
* @param [length] Message length if known beforehand
|
|
52586
|
+
* @returns EligibilitySelfVerificationCreated
|
|
52587
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
52588
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
52589
|
+
*/
|
|
52590
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): EligibilitySelfVerificationCreated;
|
|
52591
|
+
|
|
52592
|
+
/**
|
|
52593
|
+
* Decodes an EligibilitySelfVerificationCreated message from the specified reader or buffer, length delimited.
|
|
52594
|
+
* @param reader Reader or buffer to decode from
|
|
52595
|
+
* @returns EligibilitySelfVerificationCreated
|
|
52596
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
52597
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
52598
|
+
*/
|
|
52599
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): EligibilitySelfVerificationCreated;
|
|
52600
|
+
|
|
52601
|
+
/**
|
|
52602
|
+
* Verifies an EligibilitySelfVerificationCreated message.
|
|
52603
|
+
* @param message Plain object to verify
|
|
52604
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
52605
|
+
*/
|
|
52606
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
52607
|
+
|
|
52608
|
+
/**
|
|
52609
|
+
* Creates an EligibilitySelfVerificationCreated message from a plain object. Also converts values to their respective internal types.
|
|
52610
|
+
* @param object Plain object
|
|
52611
|
+
* @returns EligibilitySelfVerificationCreated
|
|
52612
|
+
*/
|
|
52613
|
+
public static fromObject(object: { [k: string]: any }): EligibilitySelfVerificationCreated;
|
|
52614
|
+
|
|
52615
|
+
/**
|
|
52616
|
+
* Creates a plain object from an EligibilitySelfVerificationCreated message. Also converts values to other types if specified.
|
|
52617
|
+
* @param message EligibilitySelfVerificationCreated
|
|
52618
|
+
* @param [options] Conversion options
|
|
52619
|
+
* @returns Plain object
|
|
52620
|
+
*/
|
|
52621
|
+
public static toObject(message: EligibilitySelfVerificationCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
52622
|
+
|
|
52623
|
+
/**
|
|
52624
|
+
* Converts this EligibilitySelfVerificationCreated to JSON.
|
|
52625
|
+
* @returns JSON object
|
|
52626
|
+
*/
|
|
52627
|
+
public toJSON(): { [k: string]: any };
|
|
52628
|
+
}
|
|
52629
|
+
|
|
52630
|
+
/** EligibilityType enum. */
|
|
52631
|
+
export enum EligibilityType {
|
|
52632
|
+
ELIGIBILITY_TYPE_UNKNOWN = 0,
|
|
52633
|
+
ELIGIBILITY_TYPE_D2C_COACHING = 1,
|
|
52634
|
+
ELIGIBILITY_TYPE_D2C_THERAPY = 2,
|
|
52635
|
+
ELIGIBILITY_TYPE_D2C_CARE_UPSELL = 3
|
|
52636
|
+
}
|
|
52637
|
+
|
|
52509
52638
|
/** Properties of an EnterpriseUserOnboarded. */
|
|
52510
52639
|
export interface IEnterpriseUserOnboarded {
|
|
52511
52640
|
|
package/lib/index.js
CHANGED
|
@@ -10574,6 +10574,7 @@ $root.coaching = (function() {
|
|
|
10574
10574
|
* a new record is created for the new date/time
|
|
10575
10575
|
* @property {string|null} [chatConversationId] A conversation between a Listener and a Caller is represented by a unique ChatConversation
|
|
10576
10576
|
* See apps.listenerapp.models.ChatConversation
|
|
10577
|
+
* @property {coaching.CoachingSessionFormat|null} [sessionFormat] The medium format of the session.
|
|
10577
10578
|
*/
|
|
10578
10579
|
|
|
10579
10580
|
/**
|
|
@@ -10710,6 +10711,14 @@ $root.coaching = (function() {
|
|
|
10710
10711
|
*/
|
|
10711
10712
|
ScheduledCoachingSession.prototype.chatConversationId = "";
|
|
10712
10713
|
|
|
10714
|
+
/**
|
|
10715
|
+
* The medium format of the session.
|
|
10716
|
+
* @member {coaching.CoachingSessionFormat} sessionFormat
|
|
10717
|
+
* @memberof coaching.ScheduledCoachingSession
|
|
10718
|
+
* @instance
|
|
10719
|
+
*/
|
|
10720
|
+
ScheduledCoachingSession.prototype.sessionFormat = 0;
|
|
10721
|
+
|
|
10713
10722
|
/**
|
|
10714
10723
|
* Creates a new ScheduledCoachingSession instance using the specified properties.
|
|
10715
10724
|
* @function create
|
|
@@ -10760,6 +10769,8 @@ $root.coaching = (function() {
|
|
|
10760
10769
|
writer.uint32(/* id 12, wireType 0 =*/96).bool(message.rescheduled);
|
|
10761
10770
|
if (message.chatConversationId != null && message.hasOwnProperty("chatConversationId"))
|
|
10762
10771
|
writer.uint32(/* id 13, wireType 2 =*/106).string(message.chatConversationId);
|
|
10772
|
+
if (message.sessionFormat != null && message.hasOwnProperty("sessionFormat"))
|
|
10773
|
+
writer.uint32(/* id 14, wireType 0 =*/112).int32(message.sessionFormat);
|
|
10763
10774
|
return writer;
|
|
10764
10775
|
};
|
|
10765
10776
|
|
|
@@ -10833,6 +10844,9 @@ $root.coaching = (function() {
|
|
|
10833
10844
|
case 13:
|
|
10834
10845
|
message.chatConversationId = reader.string();
|
|
10835
10846
|
break;
|
|
10847
|
+
case 14:
|
|
10848
|
+
message.sessionFormat = reader.int32();
|
|
10849
|
+
break;
|
|
10836
10850
|
default:
|
|
10837
10851
|
reader.skipType(tag & 7);
|
|
10838
10852
|
break;
|
|
@@ -10914,6 +10928,15 @@ $root.coaching = (function() {
|
|
|
10914
10928
|
if (message.chatConversationId != null && message.hasOwnProperty("chatConversationId"))
|
|
10915
10929
|
if (!$util.isString(message.chatConversationId))
|
|
10916
10930
|
return "chatConversationId: string expected";
|
|
10931
|
+
if (message.sessionFormat != null && message.hasOwnProperty("sessionFormat"))
|
|
10932
|
+
switch (message.sessionFormat) {
|
|
10933
|
+
default:
|
|
10934
|
+
return "sessionFormat: enum value expected";
|
|
10935
|
+
case 0:
|
|
10936
|
+
case 1:
|
|
10937
|
+
case 2:
|
|
10938
|
+
break;
|
|
10939
|
+
}
|
|
10917
10940
|
return null;
|
|
10918
10941
|
};
|
|
10919
10942
|
|
|
@@ -11006,6 +11029,20 @@ $root.coaching = (function() {
|
|
|
11006
11029
|
message.rescheduled = Boolean(object.rescheduled);
|
|
11007
11030
|
if (object.chatConversationId != null)
|
|
11008
11031
|
message.chatConversationId = String(object.chatConversationId);
|
|
11032
|
+
switch (object.sessionFormat) {
|
|
11033
|
+
case "COACHING_SESSION_FORMAT_UNKNOWN":
|
|
11034
|
+
case 0:
|
|
11035
|
+
message.sessionFormat = 0;
|
|
11036
|
+
break;
|
|
11037
|
+
case "COACHING_SESSION_FORMAT_CHAT":
|
|
11038
|
+
case 1:
|
|
11039
|
+
message.sessionFormat = 1;
|
|
11040
|
+
break;
|
|
11041
|
+
case "COACHING_SESSION_FORMAT_VIDEO":
|
|
11042
|
+
case 2:
|
|
11043
|
+
message.sessionFormat = 2;
|
|
11044
|
+
break;
|
|
11045
|
+
}
|
|
11009
11046
|
return message;
|
|
11010
11047
|
};
|
|
11011
11048
|
|
|
@@ -11056,6 +11093,7 @@ $root.coaching = (function() {
|
|
|
11056
11093
|
object.eventType = options.enums === String ? "COACHING_SESSION_EVENT_TYPE_UNKNOWN" : 0;
|
|
11057
11094
|
object.rescheduled = false;
|
|
11058
11095
|
object.chatConversationId = "";
|
|
11096
|
+
object.sessionFormat = options.enums === String ? "COACHING_SESSION_FORMAT_UNKNOWN" : 0;
|
|
11059
11097
|
}
|
|
11060
11098
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
11061
11099
|
object.id = message.id;
|
|
@@ -11098,6 +11136,8 @@ $root.coaching = (function() {
|
|
|
11098
11136
|
object.rescheduled = message.rescheduled;
|
|
11099
11137
|
if (message.chatConversationId != null && message.hasOwnProperty("chatConversationId"))
|
|
11100
11138
|
object.chatConversationId = message.chatConversationId;
|
|
11139
|
+
if (message.sessionFormat != null && message.hasOwnProperty("sessionFormat"))
|
|
11140
|
+
object.sessionFormat = options.enums === String ? $root.coaching.CoachingSessionFormat[message.sessionFormat] : message.sessionFormat;
|
|
11101
11141
|
return object;
|
|
11102
11142
|
};
|
|
11103
11143
|
|
|
@@ -11133,6 +11173,22 @@ $root.coaching = (function() {
|
|
|
11133
11173
|
return values;
|
|
11134
11174
|
})();
|
|
11135
11175
|
|
|
11176
|
+
/**
|
|
11177
|
+
* The medium used for a coaching session.
|
|
11178
|
+
* @name coaching.CoachingSessionFormat
|
|
11179
|
+
* @enum {string}
|
|
11180
|
+
* @property {number} COACHING_SESSION_FORMAT_UNKNOWN=0 COACHING_SESSION_FORMAT_UNKNOWN value
|
|
11181
|
+
* @property {number} COACHING_SESSION_FORMAT_CHAT=1 COACHING_SESSION_FORMAT_CHAT value
|
|
11182
|
+
* @property {number} COACHING_SESSION_FORMAT_VIDEO=2 COACHING_SESSION_FORMAT_VIDEO value
|
|
11183
|
+
*/
|
|
11184
|
+
coaching.CoachingSessionFormat = (function() {
|
|
11185
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
11186
|
+
values[valuesById[0] = "COACHING_SESSION_FORMAT_UNKNOWN"] = 0;
|
|
11187
|
+
values[valuesById[1] = "COACHING_SESSION_FORMAT_CHAT"] = 1;
|
|
11188
|
+
values[valuesById[2] = "COACHING_SESSION_FORMAT_VIDEO"] = 2;
|
|
11189
|
+
return values;
|
|
11190
|
+
})();
|
|
11191
|
+
|
|
11136
11192
|
coaching.SuicidalIdeationAlert = (function() {
|
|
11137
11193
|
|
|
11138
11194
|
/**
|
|
@@ -144901,6 +144957,315 @@ $root.EligibilityRecordRemoved = (function() {
|
|
|
144901
144957
|
return EligibilityRecordRemoved;
|
|
144902
144958
|
})();
|
|
144903
144959
|
|
|
144960
|
+
$root.EligibilitySelfVerificationCreated = (function() {
|
|
144961
|
+
|
|
144962
|
+
/**
|
|
144963
|
+
* Properties of an EligibilitySelfVerificationCreated.
|
|
144964
|
+
* @name IEligibilitySelfVerificationCreated
|
|
144965
|
+
* @interface IEligibilitySelfVerificationCreated
|
|
144966
|
+
* @property {number|Long|null} [timestamp] EligibilitySelfVerificationCreated timestamp
|
|
144967
|
+
* @property {string|null} [hsUserId] EligibilitySelfVerificationCreated hsUserId
|
|
144968
|
+
* @property {EligibilityType|null} [eligibilityType] EligibilitySelfVerificationCreated eligibilityType
|
|
144969
|
+
* @property {boolean|null} [isVerified] EligibilitySelfVerificationCreated isVerified
|
|
144970
|
+
*/
|
|
144971
|
+
|
|
144972
|
+
/**
|
|
144973
|
+
* Constructs a new EligibilitySelfVerificationCreated.
|
|
144974
|
+
* @name EligibilitySelfVerificationCreated
|
|
144975
|
+
* @classdesc Represents an EligibilitySelfVerificationCreated.
|
|
144976
|
+
* @implements IEligibilitySelfVerificationCreated
|
|
144977
|
+
* @constructor
|
|
144978
|
+
* @param {IEligibilitySelfVerificationCreated=} [properties] Properties to set
|
|
144979
|
+
*/
|
|
144980
|
+
function EligibilitySelfVerificationCreated(properties) {
|
|
144981
|
+
if (properties)
|
|
144982
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
144983
|
+
if (properties[keys[i]] != null)
|
|
144984
|
+
this[keys[i]] = properties[keys[i]];
|
|
144985
|
+
}
|
|
144986
|
+
|
|
144987
|
+
/**
|
|
144988
|
+
* EligibilitySelfVerificationCreated timestamp.
|
|
144989
|
+
* @member {number|Long} timestamp
|
|
144990
|
+
* @memberof EligibilitySelfVerificationCreated
|
|
144991
|
+
* @instance
|
|
144992
|
+
*/
|
|
144993
|
+
EligibilitySelfVerificationCreated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
144994
|
+
|
|
144995
|
+
/**
|
|
144996
|
+
* EligibilitySelfVerificationCreated hsUserId.
|
|
144997
|
+
* @member {string} hsUserId
|
|
144998
|
+
* @memberof EligibilitySelfVerificationCreated
|
|
144999
|
+
* @instance
|
|
145000
|
+
*/
|
|
145001
|
+
EligibilitySelfVerificationCreated.prototype.hsUserId = "";
|
|
145002
|
+
|
|
145003
|
+
/**
|
|
145004
|
+
* EligibilitySelfVerificationCreated eligibilityType.
|
|
145005
|
+
* @member {EligibilityType} eligibilityType
|
|
145006
|
+
* @memberof EligibilitySelfVerificationCreated
|
|
145007
|
+
* @instance
|
|
145008
|
+
*/
|
|
145009
|
+
EligibilitySelfVerificationCreated.prototype.eligibilityType = 0;
|
|
145010
|
+
|
|
145011
|
+
/**
|
|
145012
|
+
* EligibilitySelfVerificationCreated isVerified.
|
|
145013
|
+
* @member {boolean} isVerified
|
|
145014
|
+
* @memberof EligibilitySelfVerificationCreated
|
|
145015
|
+
* @instance
|
|
145016
|
+
*/
|
|
145017
|
+
EligibilitySelfVerificationCreated.prototype.isVerified = false;
|
|
145018
|
+
|
|
145019
|
+
/**
|
|
145020
|
+
* Creates a new EligibilitySelfVerificationCreated instance using the specified properties.
|
|
145021
|
+
* @function create
|
|
145022
|
+
* @memberof EligibilitySelfVerificationCreated
|
|
145023
|
+
* @static
|
|
145024
|
+
* @param {IEligibilitySelfVerificationCreated=} [properties] Properties to set
|
|
145025
|
+
* @returns {EligibilitySelfVerificationCreated} EligibilitySelfVerificationCreated instance
|
|
145026
|
+
*/
|
|
145027
|
+
EligibilitySelfVerificationCreated.create = function create(properties) {
|
|
145028
|
+
return new EligibilitySelfVerificationCreated(properties);
|
|
145029
|
+
};
|
|
145030
|
+
|
|
145031
|
+
/**
|
|
145032
|
+
* Encodes the specified EligibilitySelfVerificationCreated message. Does not implicitly {@link EligibilitySelfVerificationCreated.verify|verify} messages.
|
|
145033
|
+
* @function encode
|
|
145034
|
+
* @memberof EligibilitySelfVerificationCreated
|
|
145035
|
+
* @static
|
|
145036
|
+
* @param {IEligibilitySelfVerificationCreated} message EligibilitySelfVerificationCreated message or plain object to encode
|
|
145037
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
145038
|
+
* @returns {$protobuf.Writer} Writer
|
|
145039
|
+
*/
|
|
145040
|
+
EligibilitySelfVerificationCreated.encode = function encode(message, writer) {
|
|
145041
|
+
if (!writer)
|
|
145042
|
+
writer = $Writer.create();
|
|
145043
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
145044
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
|
|
145045
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
145046
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.hsUserId);
|
|
145047
|
+
if (message.eligibilityType != null && message.hasOwnProperty("eligibilityType"))
|
|
145048
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.eligibilityType);
|
|
145049
|
+
if (message.isVerified != null && message.hasOwnProperty("isVerified"))
|
|
145050
|
+
writer.uint32(/* id 5, wireType 0 =*/40).bool(message.isVerified);
|
|
145051
|
+
return writer;
|
|
145052
|
+
};
|
|
145053
|
+
|
|
145054
|
+
/**
|
|
145055
|
+
* Encodes the specified EligibilitySelfVerificationCreated message, length delimited. Does not implicitly {@link EligibilitySelfVerificationCreated.verify|verify} messages.
|
|
145056
|
+
* @function encodeDelimited
|
|
145057
|
+
* @memberof EligibilitySelfVerificationCreated
|
|
145058
|
+
* @static
|
|
145059
|
+
* @param {IEligibilitySelfVerificationCreated} message EligibilitySelfVerificationCreated message or plain object to encode
|
|
145060
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
145061
|
+
* @returns {$protobuf.Writer} Writer
|
|
145062
|
+
*/
|
|
145063
|
+
EligibilitySelfVerificationCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
145064
|
+
return this.encode(message, writer).ldelim();
|
|
145065
|
+
};
|
|
145066
|
+
|
|
145067
|
+
/**
|
|
145068
|
+
* Decodes an EligibilitySelfVerificationCreated message from the specified reader or buffer.
|
|
145069
|
+
* @function decode
|
|
145070
|
+
* @memberof EligibilitySelfVerificationCreated
|
|
145071
|
+
* @static
|
|
145072
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
145073
|
+
* @param {number} [length] Message length if known beforehand
|
|
145074
|
+
* @returns {EligibilitySelfVerificationCreated} EligibilitySelfVerificationCreated
|
|
145075
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
145076
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
145077
|
+
*/
|
|
145078
|
+
EligibilitySelfVerificationCreated.decode = function decode(reader, length) {
|
|
145079
|
+
if (!(reader instanceof $Reader))
|
|
145080
|
+
reader = $Reader.create(reader);
|
|
145081
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.EligibilitySelfVerificationCreated();
|
|
145082
|
+
while (reader.pos < end) {
|
|
145083
|
+
var tag = reader.uint32();
|
|
145084
|
+
switch (tag >>> 3) {
|
|
145085
|
+
case 1:
|
|
145086
|
+
message.timestamp = reader.uint64();
|
|
145087
|
+
break;
|
|
145088
|
+
case 3:
|
|
145089
|
+
message.hsUserId = reader.string();
|
|
145090
|
+
break;
|
|
145091
|
+
case 4:
|
|
145092
|
+
message.eligibilityType = reader.int32();
|
|
145093
|
+
break;
|
|
145094
|
+
case 5:
|
|
145095
|
+
message.isVerified = reader.bool();
|
|
145096
|
+
break;
|
|
145097
|
+
default:
|
|
145098
|
+
reader.skipType(tag & 7);
|
|
145099
|
+
break;
|
|
145100
|
+
}
|
|
145101
|
+
}
|
|
145102
|
+
return message;
|
|
145103
|
+
};
|
|
145104
|
+
|
|
145105
|
+
/**
|
|
145106
|
+
* Decodes an EligibilitySelfVerificationCreated message from the specified reader or buffer, length delimited.
|
|
145107
|
+
* @function decodeDelimited
|
|
145108
|
+
* @memberof EligibilitySelfVerificationCreated
|
|
145109
|
+
* @static
|
|
145110
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
145111
|
+
* @returns {EligibilitySelfVerificationCreated} EligibilitySelfVerificationCreated
|
|
145112
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
145113
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
145114
|
+
*/
|
|
145115
|
+
EligibilitySelfVerificationCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
145116
|
+
if (!(reader instanceof $Reader))
|
|
145117
|
+
reader = new $Reader(reader);
|
|
145118
|
+
return this.decode(reader, reader.uint32());
|
|
145119
|
+
};
|
|
145120
|
+
|
|
145121
|
+
/**
|
|
145122
|
+
* Verifies an EligibilitySelfVerificationCreated message.
|
|
145123
|
+
* @function verify
|
|
145124
|
+
* @memberof EligibilitySelfVerificationCreated
|
|
145125
|
+
* @static
|
|
145126
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
145127
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
145128
|
+
*/
|
|
145129
|
+
EligibilitySelfVerificationCreated.verify = function verify(message) {
|
|
145130
|
+
if (typeof message !== "object" || message === null)
|
|
145131
|
+
return "object expected";
|
|
145132
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
145133
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
145134
|
+
return "timestamp: integer|Long expected";
|
|
145135
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
145136
|
+
if (!$util.isString(message.hsUserId))
|
|
145137
|
+
return "hsUserId: string expected";
|
|
145138
|
+
if (message.eligibilityType != null && message.hasOwnProperty("eligibilityType"))
|
|
145139
|
+
switch (message.eligibilityType) {
|
|
145140
|
+
default:
|
|
145141
|
+
return "eligibilityType: enum value expected";
|
|
145142
|
+
case 0:
|
|
145143
|
+
case 1:
|
|
145144
|
+
case 2:
|
|
145145
|
+
case 3:
|
|
145146
|
+
break;
|
|
145147
|
+
}
|
|
145148
|
+
if (message.isVerified != null && message.hasOwnProperty("isVerified"))
|
|
145149
|
+
if (typeof message.isVerified !== "boolean")
|
|
145150
|
+
return "isVerified: boolean expected";
|
|
145151
|
+
return null;
|
|
145152
|
+
};
|
|
145153
|
+
|
|
145154
|
+
/**
|
|
145155
|
+
* Creates an EligibilitySelfVerificationCreated message from a plain object. Also converts values to their respective internal types.
|
|
145156
|
+
* @function fromObject
|
|
145157
|
+
* @memberof EligibilitySelfVerificationCreated
|
|
145158
|
+
* @static
|
|
145159
|
+
* @param {Object.<string,*>} object Plain object
|
|
145160
|
+
* @returns {EligibilitySelfVerificationCreated} EligibilitySelfVerificationCreated
|
|
145161
|
+
*/
|
|
145162
|
+
EligibilitySelfVerificationCreated.fromObject = function fromObject(object) {
|
|
145163
|
+
if (object instanceof $root.EligibilitySelfVerificationCreated)
|
|
145164
|
+
return object;
|
|
145165
|
+
var message = new $root.EligibilitySelfVerificationCreated();
|
|
145166
|
+
if (object.timestamp != null)
|
|
145167
|
+
if ($util.Long)
|
|
145168
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
145169
|
+
else if (typeof object.timestamp === "string")
|
|
145170
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
145171
|
+
else if (typeof object.timestamp === "number")
|
|
145172
|
+
message.timestamp = object.timestamp;
|
|
145173
|
+
else if (typeof object.timestamp === "object")
|
|
145174
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
145175
|
+
if (object.hsUserId != null)
|
|
145176
|
+
message.hsUserId = String(object.hsUserId);
|
|
145177
|
+
switch (object.eligibilityType) {
|
|
145178
|
+
case "ELIGIBILITY_TYPE_UNKNOWN":
|
|
145179
|
+
case 0:
|
|
145180
|
+
message.eligibilityType = 0;
|
|
145181
|
+
break;
|
|
145182
|
+
case "ELIGIBILITY_TYPE_D2C_COACHING":
|
|
145183
|
+
case 1:
|
|
145184
|
+
message.eligibilityType = 1;
|
|
145185
|
+
break;
|
|
145186
|
+
case "ELIGIBILITY_TYPE_D2C_THERAPY":
|
|
145187
|
+
case 2:
|
|
145188
|
+
message.eligibilityType = 2;
|
|
145189
|
+
break;
|
|
145190
|
+
case "ELIGIBILITY_TYPE_D2C_CARE_UPSELL":
|
|
145191
|
+
case 3:
|
|
145192
|
+
message.eligibilityType = 3;
|
|
145193
|
+
break;
|
|
145194
|
+
}
|
|
145195
|
+
if (object.isVerified != null)
|
|
145196
|
+
message.isVerified = Boolean(object.isVerified);
|
|
145197
|
+
return message;
|
|
145198
|
+
};
|
|
145199
|
+
|
|
145200
|
+
/**
|
|
145201
|
+
* Creates a plain object from an EligibilitySelfVerificationCreated message. Also converts values to other types if specified.
|
|
145202
|
+
* @function toObject
|
|
145203
|
+
* @memberof EligibilitySelfVerificationCreated
|
|
145204
|
+
* @static
|
|
145205
|
+
* @param {EligibilitySelfVerificationCreated} message EligibilitySelfVerificationCreated
|
|
145206
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
145207
|
+
* @returns {Object.<string,*>} Plain object
|
|
145208
|
+
*/
|
|
145209
|
+
EligibilitySelfVerificationCreated.toObject = function toObject(message, options) {
|
|
145210
|
+
if (!options)
|
|
145211
|
+
options = {};
|
|
145212
|
+
var object = {};
|
|
145213
|
+
if (options.defaults) {
|
|
145214
|
+
if ($util.Long) {
|
|
145215
|
+
var long = new $util.Long(0, 0, true);
|
|
145216
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
145217
|
+
} else
|
|
145218
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
145219
|
+
object.hsUserId = "";
|
|
145220
|
+
object.eligibilityType = options.enums === String ? "ELIGIBILITY_TYPE_UNKNOWN" : 0;
|
|
145221
|
+
object.isVerified = false;
|
|
145222
|
+
}
|
|
145223
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
145224
|
+
if (typeof message.timestamp === "number")
|
|
145225
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
145226
|
+
else
|
|
145227
|
+
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;
|
|
145228
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
145229
|
+
object.hsUserId = message.hsUserId;
|
|
145230
|
+
if (message.eligibilityType != null && message.hasOwnProperty("eligibilityType"))
|
|
145231
|
+
object.eligibilityType = options.enums === String ? $root.EligibilityType[message.eligibilityType] : message.eligibilityType;
|
|
145232
|
+
if (message.isVerified != null && message.hasOwnProperty("isVerified"))
|
|
145233
|
+
object.isVerified = message.isVerified;
|
|
145234
|
+
return object;
|
|
145235
|
+
};
|
|
145236
|
+
|
|
145237
|
+
/**
|
|
145238
|
+
* Converts this EligibilitySelfVerificationCreated to JSON.
|
|
145239
|
+
* @function toJSON
|
|
145240
|
+
* @memberof EligibilitySelfVerificationCreated
|
|
145241
|
+
* @instance
|
|
145242
|
+
* @returns {Object.<string,*>} JSON object
|
|
145243
|
+
*/
|
|
145244
|
+
EligibilitySelfVerificationCreated.prototype.toJSON = function toJSON() {
|
|
145245
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
145246
|
+
};
|
|
145247
|
+
|
|
145248
|
+
return EligibilitySelfVerificationCreated;
|
|
145249
|
+
})();
|
|
145250
|
+
|
|
145251
|
+
/**
|
|
145252
|
+
* EligibilityType enum.
|
|
145253
|
+
* @name EligibilityType
|
|
145254
|
+
* @enum {string}
|
|
145255
|
+
* @property {number} ELIGIBILITY_TYPE_UNKNOWN=0 ELIGIBILITY_TYPE_UNKNOWN value
|
|
145256
|
+
* @property {number} ELIGIBILITY_TYPE_D2C_COACHING=1 ELIGIBILITY_TYPE_D2C_COACHING value
|
|
145257
|
+
* @property {number} ELIGIBILITY_TYPE_D2C_THERAPY=2 ELIGIBILITY_TYPE_D2C_THERAPY value
|
|
145258
|
+
* @property {number} ELIGIBILITY_TYPE_D2C_CARE_UPSELL=3 ELIGIBILITY_TYPE_D2C_CARE_UPSELL value
|
|
145259
|
+
*/
|
|
145260
|
+
$root.EligibilityType = (function() {
|
|
145261
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
145262
|
+
values[valuesById[0] = "ELIGIBILITY_TYPE_UNKNOWN"] = 0;
|
|
145263
|
+
values[valuesById[1] = "ELIGIBILITY_TYPE_D2C_COACHING"] = 1;
|
|
145264
|
+
values[valuesById[2] = "ELIGIBILITY_TYPE_D2C_THERAPY"] = 2;
|
|
145265
|
+
values[valuesById[3] = "ELIGIBILITY_TYPE_D2C_CARE_UPSELL"] = 3;
|
|
145266
|
+
return values;
|
|
145267
|
+
})();
|
|
145268
|
+
|
|
144904
145269
|
$root.EnterpriseUserOnboarded = (function() {
|
|
144905
145270
|
|
|
144906
145271
|
/**
|
package/package.json
CHANGED