@headspace/protos-events 1.785.0 → 1.787.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 +272 -0
- package/lib/index.js +737 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -59579,6 +59579,112 @@ export class UserConsentUpdated implements IUserConsentUpdated {
|
|
|
59579
59579
|
public toJSON(): { [k: string]: any };
|
|
59580
59580
|
}
|
|
59581
59581
|
|
|
59582
|
+
/** Properties of a UserAppleWatchNotificationSettingUpdated. */
|
|
59583
|
+
export interface IUserAppleWatchNotificationSettingUpdated {
|
|
59584
|
+
|
|
59585
|
+
/** UserAppleWatchNotificationSettingUpdated hsUserId */
|
|
59586
|
+
hsUserId?: (string|null);
|
|
59587
|
+
|
|
59588
|
+
/** UserAppleWatchNotificationSettingUpdated settingType */
|
|
59589
|
+
settingType?: (string|null);
|
|
59590
|
+
|
|
59591
|
+
/** UserAppleWatchNotificationSettingUpdated isEnabled */
|
|
59592
|
+
isEnabled?: (boolean|null);
|
|
59593
|
+
}
|
|
59594
|
+
|
|
59595
|
+
/**
|
|
59596
|
+
* Sent when a user updates their Apple Watch notification settings.
|
|
59597
|
+
* Responsible team: Consumer Growth
|
|
59598
|
+
*
|
|
59599
|
+
*/
|
|
59600
|
+
export class UserAppleWatchNotificationSettingUpdated implements IUserAppleWatchNotificationSettingUpdated {
|
|
59601
|
+
|
|
59602
|
+
/**
|
|
59603
|
+
* Constructs a new UserAppleWatchNotificationSettingUpdated.
|
|
59604
|
+
* @param [properties] Properties to set
|
|
59605
|
+
*/
|
|
59606
|
+
constructor(properties?: IUserAppleWatchNotificationSettingUpdated);
|
|
59607
|
+
|
|
59608
|
+
/** UserAppleWatchNotificationSettingUpdated hsUserId. */
|
|
59609
|
+
public hsUserId: string;
|
|
59610
|
+
|
|
59611
|
+
/** UserAppleWatchNotificationSettingUpdated settingType. */
|
|
59612
|
+
public settingType: string;
|
|
59613
|
+
|
|
59614
|
+
/** UserAppleWatchNotificationSettingUpdated isEnabled. */
|
|
59615
|
+
public isEnabled: boolean;
|
|
59616
|
+
|
|
59617
|
+
/**
|
|
59618
|
+
* Creates a new UserAppleWatchNotificationSettingUpdated instance using the specified properties.
|
|
59619
|
+
* @param [properties] Properties to set
|
|
59620
|
+
* @returns UserAppleWatchNotificationSettingUpdated instance
|
|
59621
|
+
*/
|
|
59622
|
+
public static create(properties?: IUserAppleWatchNotificationSettingUpdated): UserAppleWatchNotificationSettingUpdated;
|
|
59623
|
+
|
|
59624
|
+
/**
|
|
59625
|
+
* Encodes the specified UserAppleWatchNotificationSettingUpdated message. Does not implicitly {@link UserAppleWatchNotificationSettingUpdated.verify|verify} messages.
|
|
59626
|
+
* @param message UserAppleWatchNotificationSettingUpdated message or plain object to encode
|
|
59627
|
+
* @param [writer] Writer to encode to
|
|
59628
|
+
* @returns Writer
|
|
59629
|
+
*/
|
|
59630
|
+
public static encode(message: IUserAppleWatchNotificationSettingUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
59631
|
+
|
|
59632
|
+
/**
|
|
59633
|
+
* Encodes the specified UserAppleWatchNotificationSettingUpdated message, length delimited. Does not implicitly {@link UserAppleWatchNotificationSettingUpdated.verify|verify} messages.
|
|
59634
|
+
* @param message UserAppleWatchNotificationSettingUpdated message or plain object to encode
|
|
59635
|
+
* @param [writer] Writer to encode to
|
|
59636
|
+
* @returns Writer
|
|
59637
|
+
*/
|
|
59638
|
+
public static encodeDelimited(message: IUserAppleWatchNotificationSettingUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
59639
|
+
|
|
59640
|
+
/**
|
|
59641
|
+
* Decodes a UserAppleWatchNotificationSettingUpdated message from the specified reader or buffer.
|
|
59642
|
+
* @param reader Reader or buffer to decode from
|
|
59643
|
+
* @param [length] Message length if known beforehand
|
|
59644
|
+
* @returns UserAppleWatchNotificationSettingUpdated
|
|
59645
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59646
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59647
|
+
*/
|
|
59648
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserAppleWatchNotificationSettingUpdated;
|
|
59649
|
+
|
|
59650
|
+
/**
|
|
59651
|
+
* Decodes a UserAppleWatchNotificationSettingUpdated message from the specified reader or buffer, length delimited.
|
|
59652
|
+
* @param reader Reader or buffer to decode from
|
|
59653
|
+
* @returns UserAppleWatchNotificationSettingUpdated
|
|
59654
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59655
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59656
|
+
*/
|
|
59657
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserAppleWatchNotificationSettingUpdated;
|
|
59658
|
+
|
|
59659
|
+
/**
|
|
59660
|
+
* Verifies a UserAppleWatchNotificationSettingUpdated message.
|
|
59661
|
+
* @param message Plain object to verify
|
|
59662
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
59663
|
+
*/
|
|
59664
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
59665
|
+
|
|
59666
|
+
/**
|
|
59667
|
+
* Creates a UserAppleWatchNotificationSettingUpdated message from a plain object. Also converts values to their respective internal types.
|
|
59668
|
+
* @param object Plain object
|
|
59669
|
+
* @returns UserAppleWatchNotificationSettingUpdated
|
|
59670
|
+
*/
|
|
59671
|
+
public static fromObject(object: { [k: string]: any }): UserAppleWatchNotificationSettingUpdated;
|
|
59672
|
+
|
|
59673
|
+
/**
|
|
59674
|
+
* Creates a plain object from a UserAppleWatchNotificationSettingUpdated message. Also converts values to other types if specified.
|
|
59675
|
+
* @param message UserAppleWatchNotificationSettingUpdated
|
|
59676
|
+
* @param [options] Conversion options
|
|
59677
|
+
* @returns Plain object
|
|
59678
|
+
*/
|
|
59679
|
+
public static toObject(message: UserAppleWatchNotificationSettingUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
59680
|
+
|
|
59681
|
+
/**
|
|
59682
|
+
* Converts this UserAppleWatchNotificationSettingUpdated to JSON.
|
|
59683
|
+
* @returns JSON object
|
|
59684
|
+
*/
|
|
59685
|
+
public toJSON(): { [k: string]: any };
|
|
59686
|
+
}
|
|
59687
|
+
|
|
59582
59688
|
/** Properties of a UserDeletionRequested. */
|
|
59583
59689
|
export interface IUserDeletionRequested {
|
|
59584
59690
|
|
|
@@ -67331,6 +67437,172 @@ export namespace coaching {
|
|
|
67331
67437
|
COACHING_AVAILABILITY_TYPE_VIDEO = 2
|
|
67332
67438
|
}
|
|
67333
67439
|
|
|
67440
|
+
/** ItmsSessionCreatedReason enum. */
|
|
67441
|
+
enum ItmsSessionCreatedReason {
|
|
67442
|
+
ITMS_SESSION_CREATED_REASON_UNKNOWN = 0,
|
|
67443
|
+
ITMS_SESSION_CREATED_REASON_ITMS = 1,
|
|
67444
|
+
ITMS_SESSION_CREATED_REASON_SI = 2
|
|
67445
|
+
}
|
|
67446
|
+
|
|
67447
|
+
/** Properties of an ItmsCoachingSession. */
|
|
67448
|
+
interface IItmsCoachingSession {
|
|
67449
|
+
|
|
67450
|
+
/** ItmsCoachingSession dropinSessionId */
|
|
67451
|
+
dropinSessionId?: (string|null);
|
|
67452
|
+
|
|
67453
|
+
/** ItmsCoachingSession coachId */
|
|
67454
|
+
coachId?: (string|null);
|
|
67455
|
+
|
|
67456
|
+
/** ItmsCoachingSession gingerMemberId */
|
|
67457
|
+
gingerMemberId?: (number|null);
|
|
67458
|
+
|
|
67459
|
+
/** ItmsCoachingSession hsUserId */
|
|
67460
|
+
hsUserId?: (string|null);
|
|
67461
|
+
|
|
67462
|
+
/** ItmsCoachingSession createdAt */
|
|
67463
|
+
createdAt?: (number|Long|null);
|
|
67464
|
+
|
|
67465
|
+
/** ItmsCoachingSession engagedAt */
|
|
67466
|
+
engagedAt?: (number|Long|null);
|
|
67467
|
+
|
|
67468
|
+
/** ItmsCoachingSession coachEngagedAt */
|
|
67469
|
+
coachEngagedAt?: (number|Long|null);
|
|
67470
|
+
|
|
67471
|
+
/** ItmsCoachingSession closedAt */
|
|
67472
|
+
closedAt?: (number|Long|null);
|
|
67473
|
+
|
|
67474
|
+
/**
|
|
67475
|
+
* A conversation between a Listener and a Caller is represented by a unique ChatConversation
|
|
67476
|
+
* See apps.listenerapp.models.ChatConversation
|
|
67477
|
+
*/
|
|
67478
|
+
chatConversationId?: (string|null);
|
|
67479
|
+
|
|
67480
|
+
/** ItmsCoachingSession createdReason */
|
|
67481
|
+
createdReason?: (coaching.ItmsSessionCreatedReason|null);
|
|
67482
|
+
|
|
67483
|
+
/** ItmsCoachingSession createdReasonDetails */
|
|
67484
|
+
createdReasonDetails?: (string|null);
|
|
67485
|
+
}
|
|
67486
|
+
|
|
67487
|
+
/**
|
|
67488
|
+
* In-the-moment support / drop-in coaching session (not scheduled).
|
|
67489
|
+
* Model: listener-server.apps.listenerapp.models.OneTimeCheckin
|
|
67490
|
+
*/
|
|
67491
|
+
class ItmsCoachingSession implements IItmsCoachingSession {
|
|
67492
|
+
|
|
67493
|
+
/**
|
|
67494
|
+
* Constructs a new ItmsCoachingSession.
|
|
67495
|
+
* @param [properties] Properties to set
|
|
67496
|
+
*/
|
|
67497
|
+
constructor(properties?: coaching.IItmsCoachingSession);
|
|
67498
|
+
|
|
67499
|
+
/** ItmsCoachingSession dropinSessionId. */
|
|
67500
|
+
public dropinSessionId: string;
|
|
67501
|
+
|
|
67502
|
+
/** ItmsCoachingSession coachId. */
|
|
67503
|
+
public coachId: string;
|
|
67504
|
+
|
|
67505
|
+
/** ItmsCoachingSession gingerMemberId. */
|
|
67506
|
+
public gingerMemberId: number;
|
|
67507
|
+
|
|
67508
|
+
/** ItmsCoachingSession hsUserId. */
|
|
67509
|
+
public hsUserId: string;
|
|
67510
|
+
|
|
67511
|
+
/** ItmsCoachingSession createdAt. */
|
|
67512
|
+
public createdAt: (number|Long);
|
|
67513
|
+
|
|
67514
|
+
/** ItmsCoachingSession engagedAt. */
|
|
67515
|
+
public engagedAt: (number|Long);
|
|
67516
|
+
|
|
67517
|
+
/** ItmsCoachingSession coachEngagedAt. */
|
|
67518
|
+
public coachEngagedAt: (number|Long);
|
|
67519
|
+
|
|
67520
|
+
/** ItmsCoachingSession closedAt. */
|
|
67521
|
+
public closedAt: (number|Long);
|
|
67522
|
+
|
|
67523
|
+
/**
|
|
67524
|
+
* A conversation between a Listener and a Caller is represented by a unique ChatConversation
|
|
67525
|
+
* See apps.listenerapp.models.ChatConversation
|
|
67526
|
+
*/
|
|
67527
|
+
public chatConversationId: string;
|
|
67528
|
+
|
|
67529
|
+
/** ItmsCoachingSession createdReason. */
|
|
67530
|
+
public createdReason: coaching.ItmsSessionCreatedReason;
|
|
67531
|
+
|
|
67532
|
+
/** ItmsCoachingSession createdReasonDetails. */
|
|
67533
|
+
public createdReasonDetails: string;
|
|
67534
|
+
|
|
67535
|
+
/**
|
|
67536
|
+
* Creates a new ItmsCoachingSession instance using the specified properties.
|
|
67537
|
+
* @param [properties] Properties to set
|
|
67538
|
+
* @returns ItmsCoachingSession instance
|
|
67539
|
+
*/
|
|
67540
|
+
public static create(properties?: coaching.IItmsCoachingSession): coaching.ItmsCoachingSession;
|
|
67541
|
+
|
|
67542
|
+
/**
|
|
67543
|
+
* Encodes the specified ItmsCoachingSession message. Does not implicitly {@link coaching.ItmsCoachingSession.verify|verify} messages.
|
|
67544
|
+
* @param message ItmsCoachingSession message or plain object to encode
|
|
67545
|
+
* @param [writer] Writer to encode to
|
|
67546
|
+
* @returns Writer
|
|
67547
|
+
*/
|
|
67548
|
+
public static encode(message: coaching.IItmsCoachingSession, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
67549
|
+
|
|
67550
|
+
/**
|
|
67551
|
+
* Encodes the specified ItmsCoachingSession message, length delimited. Does not implicitly {@link coaching.ItmsCoachingSession.verify|verify} messages.
|
|
67552
|
+
* @param message ItmsCoachingSession message or plain object to encode
|
|
67553
|
+
* @param [writer] Writer to encode to
|
|
67554
|
+
* @returns Writer
|
|
67555
|
+
*/
|
|
67556
|
+
public static encodeDelimited(message: coaching.IItmsCoachingSession, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
67557
|
+
|
|
67558
|
+
/**
|
|
67559
|
+
* Decodes an ItmsCoachingSession message from the specified reader or buffer.
|
|
67560
|
+
* @param reader Reader or buffer to decode from
|
|
67561
|
+
* @param [length] Message length if known beforehand
|
|
67562
|
+
* @returns ItmsCoachingSession
|
|
67563
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
67564
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
67565
|
+
*/
|
|
67566
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): coaching.ItmsCoachingSession;
|
|
67567
|
+
|
|
67568
|
+
/**
|
|
67569
|
+
* Decodes an ItmsCoachingSession message from the specified reader or buffer, length delimited.
|
|
67570
|
+
* @param reader Reader or buffer to decode from
|
|
67571
|
+
* @returns ItmsCoachingSession
|
|
67572
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
67573
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
67574
|
+
*/
|
|
67575
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): coaching.ItmsCoachingSession;
|
|
67576
|
+
|
|
67577
|
+
/**
|
|
67578
|
+
* Verifies an ItmsCoachingSession message.
|
|
67579
|
+
* @param message Plain object to verify
|
|
67580
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
67581
|
+
*/
|
|
67582
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
67583
|
+
|
|
67584
|
+
/**
|
|
67585
|
+
* Creates an ItmsCoachingSession message from a plain object. Also converts values to their respective internal types.
|
|
67586
|
+
* @param object Plain object
|
|
67587
|
+
* @returns ItmsCoachingSession
|
|
67588
|
+
*/
|
|
67589
|
+
public static fromObject(object: { [k: string]: any }): coaching.ItmsCoachingSession;
|
|
67590
|
+
|
|
67591
|
+
/**
|
|
67592
|
+
* Creates a plain object from an ItmsCoachingSession message. Also converts values to other types if specified.
|
|
67593
|
+
* @param message ItmsCoachingSession
|
|
67594
|
+
* @param [options] Conversion options
|
|
67595
|
+
* @returns Plain object
|
|
67596
|
+
*/
|
|
67597
|
+
public static toObject(message: coaching.ItmsCoachingSession, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
67598
|
+
|
|
67599
|
+
/**
|
|
67600
|
+
* Converts this ItmsCoachingSession to JSON.
|
|
67601
|
+
* @returns JSON object
|
|
67602
|
+
*/
|
|
67603
|
+
public toJSON(): { [k: string]: any };
|
|
67604
|
+
}
|
|
67605
|
+
|
|
67334
67606
|
/** Properties of a ScheduledCoachingSession. */
|
|
67335
67607
|
interface IScheduledCoachingSession {
|
|
67336
67608
|
|
package/lib/index.js
CHANGED
|
@@ -170190,6 +170190,242 @@ $root.UserConsentUpdated = (function() {
|
|
|
170190
170190
|
return UserConsentUpdated;
|
|
170191
170191
|
})();
|
|
170192
170192
|
|
|
170193
|
+
$root.UserAppleWatchNotificationSettingUpdated = (function() {
|
|
170194
|
+
|
|
170195
|
+
/**
|
|
170196
|
+
* Properties of a UserAppleWatchNotificationSettingUpdated.
|
|
170197
|
+
* @name IUserAppleWatchNotificationSettingUpdated
|
|
170198
|
+
* @interface IUserAppleWatchNotificationSettingUpdated
|
|
170199
|
+
* @property {string|null} [hsUserId] UserAppleWatchNotificationSettingUpdated hsUserId
|
|
170200
|
+
* @property {string|null} [settingType] UserAppleWatchNotificationSettingUpdated settingType
|
|
170201
|
+
* @property {boolean|null} [isEnabled] UserAppleWatchNotificationSettingUpdated isEnabled
|
|
170202
|
+
*/
|
|
170203
|
+
|
|
170204
|
+
/**
|
|
170205
|
+
* Constructs a new UserAppleWatchNotificationSettingUpdated.
|
|
170206
|
+
* @name UserAppleWatchNotificationSettingUpdated
|
|
170207
|
+
* @classdesc Sent when a user updates their Apple Watch notification settings.
|
|
170208
|
+
* Responsible team: Consumer Growth
|
|
170209
|
+
*
|
|
170210
|
+
* @example User enables their haptic notifications for Apple Watch.
|
|
170211
|
+
* Apple Watch Notifications ticket: https://headspace.atlassian.net/browse/GROW-407
|
|
170212
|
+
* @implements IUserAppleWatchNotificationSettingUpdated
|
|
170213
|
+
* @constructor
|
|
170214
|
+
* @param {IUserAppleWatchNotificationSettingUpdated=} [properties] Properties to set
|
|
170215
|
+
*/
|
|
170216
|
+
function UserAppleWatchNotificationSettingUpdated(properties) {
|
|
170217
|
+
if (properties)
|
|
170218
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
170219
|
+
if (properties[keys[i]] != null)
|
|
170220
|
+
this[keys[i]] = properties[keys[i]];
|
|
170221
|
+
}
|
|
170222
|
+
|
|
170223
|
+
/**
|
|
170224
|
+
* UserAppleWatchNotificationSettingUpdated hsUserId.
|
|
170225
|
+
* @member {string} hsUserId
|
|
170226
|
+
* @memberof UserAppleWatchNotificationSettingUpdated
|
|
170227
|
+
* @instance
|
|
170228
|
+
*/
|
|
170229
|
+
UserAppleWatchNotificationSettingUpdated.prototype.hsUserId = "";
|
|
170230
|
+
|
|
170231
|
+
/**
|
|
170232
|
+
* UserAppleWatchNotificationSettingUpdated settingType.
|
|
170233
|
+
* @member {string} settingType
|
|
170234
|
+
* @memberof UserAppleWatchNotificationSettingUpdated
|
|
170235
|
+
* @instance
|
|
170236
|
+
*/
|
|
170237
|
+
UserAppleWatchNotificationSettingUpdated.prototype.settingType = "";
|
|
170238
|
+
|
|
170239
|
+
/**
|
|
170240
|
+
* UserAppleWatchNotificationSettingUpdated isEnabled.
|
|
170241
|
+
* @member {boolean} isEnabled
|
|
170242
|
+
* @memberof UserAppleWatchNotificationSettingUpdated
|
|
170243
|
+
* @instance
|
|
170244
|
+
*/
|
|
170245
|
+
UserAppleWatchNotificationSettingUpdated.prototype.isEnabled = false;
|
|
170246
|
+
|
|
170247
|
+
/**
|
|
170248
|
+
* Creates a new UserAppleWatchNotificationSettingUpdated instance using the specified properties.
|
|
170249
|
+
* @function create
|
|
170250
|
+
* @memberof UserAppleWatchNotificationSettingUpdated
|
|
170251
|
+
* @static
|
|
170252
|
+
* @param {IUserAppleWatchNotificationSettingUpdated=} [properties] Properties to set
|
|
170253
|
+
* @returns {UserAppleWatchNotificationSettingUpdated} UserAppleWatchNotificationSettingUpdated instance
|
|
170254
|
+
*/
|
|
170255
|
+
UserAppleWatchNotificationSettingUpdated.create = function create(properties) {
|
|
170256
|
+
return new UserAppleWatchNotificationSettingUpdated(properties);
|
|
170257
|
+
};
|
|
170258
|
+
|
|
170259
|
+
/**
|
|
170260
|
+
* Encodes the specified UserAppleWatchNotificationSettingUpdated message. Does not implicitly {@link UserAppleWatchNotificationSettingUpdated.verify|verify} messages.
|
|
170261
|
+
* @function encode
|
|
170262
|
+
* @memberof UserAppleWatchNotificationSettingUpdated
|
|
170263
|
+
* @static
|
|
170264
|
+
* @param {IUserAppleWatchNotificationSettingUpdated} message UserAppleWatchNotificationSettingUpdated message or plain object to encode
|
|
170265
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
170266
|
+
* @returns {$protobuf.Writer} Writer
|
|
170267
|
+
*/
|
|
170268
|
+
UserAppleWatchNotificationSettingUpdated.encode = function encode(message, writer) {
|
|
170269
|
+
if (!writer)
|
|
170270
|
+
writer = $Writer.create();
|
|
170271
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
170272
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
|
|
170273
|
+
if (message.settingType != null && message.hasOwnProperty("settingType"))
|
|
170274
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.settingType);
|
|
170275
|
+
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
170276
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isEnabled);
|
|
170277
|
+
return writer;
|
|
170278
|
+
};
|
|
170279
|
+
|
|
170280
|
+
/**
|
|
170281
|
+
* Encodes the specified UserAppleWatchNotificationSettingUpdated message, length delimited. Does not implicitly {@link UserAppleWatchNotificationSettingUpdated.verify|verify} messages.
|
|
170282
|
+
* @function encodeDelimited
|
|
170283
|
+
* @memberof UserAppleWatchNotificationSettingUpdated
|
|
170284
|
+
* @static
|
|
170285
|
+
* @param {IUserAppleWatchNotificationSettingUpdated} message UserAppleWatchNotificationSettingUpdated message or plain object to encode
|
|
170286
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
170287
|
+
* @returns {$protobuf.Writer} Writer
|
|
170288
|
+
*/
|
|
170289
|
+
UserAppleWatchNotificationSettingUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
170290
|
+
return this.encode(message, writer).ldelim();
|
|
170291
|
+
};
|
|
170292
|
+
|
|
170293
|
+
/**
|
|
170294
|
+
* Decodes a UserAppleWatchNotificationSettingUpdated message from the specified reader or buffer.
|
|
170295
|
+
* @function decode
|
|
170296
|
+
* @memberof UserAppleWatchNotificationSettingUpdated
|
|
170297
|
+
* @static
|
|
170298
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
170299
|
+
* @param {number} [length] Message length if known beforehand
|
|
170300
|
+
* @returns {UserAppleWatchNotificationSettingUpdated} UserAppleWatchNotificationSettingUpdated
|
|
170301
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
170302
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
170303
|
+
*/
|
|
170304
|
+
UserAppleWatchNotificationSettingUpdated.decode = function decode(reader, length) {
|
|
170305
|
+
if (!(reader instanceof $Reader))
|
|
170306
|
+
reader = $Reader.create(reader);
|
|
170307
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserAppleWatchNotificationSettingUpdated();
|
|
170308
|
+
while (reader.pos < end) {
|
|
170309
|
+
var tag = reader.uint32();
|
|
170310
|
+
switch (tag >>> 3) {
|
|
170311
|
+
case 1:
|
|
170312
|
+
message.hsUserId = reader.string();
|
|
170313
|
+
break;
|
|
170314
|
+
case 2:
|
|
170315
|
+
message.settingType = reader.string();
|
|
170316
|
+
break;
|
|
170317
|
+
case 3:
|
|
170318
|
+
message.isEnabled = reader.bool();
|
|
170319
|
+
break;
|
|
170320
|
+
default:
|
|
170321
|
+
reader.skipType(tag & 7);
|
|
170322
|
+
break;
|
|
170323
|
+
}
|
|
170324
|
+
}
|
|
170325
|
+
return message;
|
|
170326
|
+
};
|
|
170327
|
+
|
|
170328
|
+
/**
|
|
170329
|
+
* Decodes a UserAppleWatchNotificationSettingUpdated message from the specified reader or buffer, length delimited.
|
|
170330
|
+
* @function decodeDelimited
|
|
170331
|
+
* @memberof UserAppleWatchNotificationSettingUpdated
|
|
170332
|
+
* @static
|
|
170333
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
170334
|
+
* @returns {UserAppleWatchNotificationSettingUpdated} UserAppleWatchNotificationSettingUpdated
|
|
170335
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
170336
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
170337
|
+
*/
|
|
170338
|
+
UserAppleWatchNotificationSettingUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
170339
|
+
if (!(reader instanceof $Reader))
|
|
170340
|
+
reader = new $Reader(reader);
|
|
170341
|
+
return this.decode(reader, reader.uint32());
|
|
170342
|
+
};
|
|
170343
|
+
|
|
170344
|
+
/**
|
|
170345
|
+
* Verifies a UserAppleWatchNotificationSettingUpdated message.
|
|
170346
|
+
* @function verify
|
|
170347
|
+
* @memberof UserAppleWatchNotificationSettingUpdated
|
|
170348
|
+
* @static
|
|
170349
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
170350
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
170351
|
+
*/
|
|
170352
|
+
UserAppleWatchNotificationSettingUpdated.verify = function verify(message) {
|
|
170353
|
+
if (typeof message !== "object" || message === null)
|
|
170354
|
+
return "object expected";
|
|
170355
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
170356
|
+
if (!$util.isString(message.hsUserId))
|
|
170357
|
+
return "hsUserId: string expected";
|
|
170358
|
+
if (message.settingType != null && message.hasOwnProperty("settingType"))
|
|
170359
|
+
if (!$util.isString(message.settingType))
|
|
170360
|
+
return "settingType: string expected";
|
|
170361
|
+
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
170362
|
+
if (typeof message.isEnabled !== "boolean")
|
|
170363
|
+
return "isEnabled: boolean expected";
|
|
170364
|
+
return null;
|
|
170365
|
+
};
|
|
170366
|
+
|
|
170367
|
+
/**
|
|
170368
|
+
* Creates a UserAppleWatchNotificationSettingUpdated message from a plain object. Also converts values to their respective internal types.
|
|
170369
|
+
* @function fromObject
|
|
170370
|
+
* @memberof UserAppleWatchNotificationSettingUpdated
|
|
170371
|
+
* @static
|
|
170372
|
+
* @param {Object.<string,*>} object Plain object
|
|
170373
|
+
* @returns {UserAppleWatchNotificationSettingUpdated} UserAppleWatchNotificationSettingUpdated
|
|
170374
|
+
*/
|
|
170375
|
+
UserAppleWatchNotificationSettingUpdated.fromObject = function fromObject(object) {
|
|
170376
|
+
if (object instanceof $root.UserAppleWatchNotificationSettingUpdated)
|
|
170377
|
+
return object;
|
|
170378
|
+
var message = new $root.UserAppleWatchNotificationSettingUpdated();
|
|
170379
|
+
if (object.hsUserId != null)
|
|
170380
|
+
message.hsUserId = String(object.hsUserId);
|
|
170381
|
+
if (object.settingType != null)
|
|
170382
|
+
message.settingType = String(object.settingType);
|
|
170383
|
+
if (object.isEnabled != null)
|
|
170384
|
+
message.isEnabled = Boolean(object.isEnabled);
|
|
170385
|
+
return message;
|
|
170386
|
+
};
|
|
170387
|
+
|
|
170388
|
+
/**
|
|
170389
|
+
* Creates a plain object from a UserAppleWatchNotificationSettingUpdated message. Also converts values to other types if specified.
|
|
170390
|
+
* @function toObject
|
|
170391
|
+
* @memberof UserAppleWatchNotificationSettingUpdated
|
|
170392
|
+
* @static
|
|
170393
|
+
* @param {UserAppleWatchNotificationSettingUpdated} message UserAppleWatchNotificationSettingUpdated
|
|
170394
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
170395
|
+
* @returns {Object.<string,*>} Plain object
|
|
170396
|
+
*/
|
|
170397
|
+
UserAppleWatchNotificationSettingUpdated.toObject = function toObject(message, options) {
|
|
170398
|
+
if (!options)
|
|
170399
|
+
options = {};
|
|
170400
|
+
var object = {};
|
|
170401
|
+
if (options.defaults) {
|
|
170402
|
+
object.hsUserId = "";
|
|
170403
|
+
object.settingType = "";
|
|
170404
|
+
object.isEnabled = false;
|
|
170405
|
+
}
|
|
170406
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
170407
|
+
object.hsUserId = message.hsUserId;
|
|
170408
|
+
if (message.settingType != null && message.hasOwnProperty("settingType"))
|
|
170409
|
+
object.settingType = message.settingType;
|
|
170410
|
+
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
170411
|
+
object.isEnabled = message.isEnabled;
|
|
170412
|
+
return object;
|
|
170413
|
+
};
|
|
170414
|
+
|
|
170415
|
+
/**
|
|
170416
|
+
* Converts this UserAppleWatchNotificationSettingUpdated to JSON.
|
|
170417
|
+
* @function toJSON
|
|
170418
|
+
* @memberof UserAppleWatchNotificationSettingUpdated
|
|
170419
|
+
* @instance
|
|
170420
|
+
* @returns {Object.<string,*>} JSON object
|
|
170421
|
+
*/
|
|
170422
|
+
UserAppleWatchNotificationSettingUpdated.prototype.toJSON = function toJSON() {
|
|
170423
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
170424
|
+
};
|
|
170425
|
+
|
|
170426
|
+
return UserAppleWatchNotificationSettingUpdated;
|
|
170427
|
+
})();
|
|
170428
|
+
|
|
170193
170429
|
$root.UserDeletionRequested = (function() {
|
|
170194
170430
|
|
|
170195
170431
|
/**
|
|
@@ -194104,6 +194340,507 @@ $root.coaching = (function() {
|
|
|
194104
194340
|
return values;
|
|
194105
194341
|
})();
|
|
194106
194342
|
|
|
194343
|
+
/**
|
|
194344
|
+
* ItmsSessionCreatedReason enum.
|
|
194345
|
+
* @name coaching.ItmsSessionCreatedReason
|
|
194346
|
+
* @enum {string}
|
|
194347
|
+
* @property {number} ITMS_SESSION_CREATED_REASON_UNKNOWN=0 ITMS_SESSION_CREATED_REASON_UNKNOWN value
|
|
194348
|
+
* @property {number} ITMS_SESSION_CREATED_REASON_ITMS=1 ITMS_SESSION_CREATED_REASON_ITMS value
|
|
194349
|
+
* @property {number} ITMS_SESSION_CREATED_REASON_SI=2 ITMS_SESSION_CREATED_REASON_SI value
|
|
194350
|
+
*/
|
|
194351
|
+
coaching.ItmsSessionCreatedReason = (function() {
|
|
194352
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
194353
|
+
values[valuesById[0] = "ITMS_SESSION_CREATED_REASON_UNKNOWN"] = 0;
|
|
194354
|
+
values[valuesById[1] = "ITMS_SESSION_CREATED_REASON_ITMS"] = 1;
|
|
194355
|
+
values[valuesById[2] = "ITMS_SESSION_CREATED_REASON_SI"] = 2;
|
|
194356
|
+
return values;
|
|
194357
|
+
})();
|
|
194358
|
+
|
|
194359
|
+
coaching.ItmsCoachingSession = (function() {
|
|
194360
|
+
|
|
194361
|
+
/**
|
|
194362
|
+
* Properties of an ItmsCoachingSession.
|
|
194363
|
+
* @memberof coaching
|
|
194364
|
+
* @interface IItmsCoachingSession
|
|
194365
|
+
* @property {string|null} [dropinSessionId] ItmsCoachingSession dropinSessionId
|
|
194366
|
+
* @property {string|null} [coachId] ItmsCoachingSession coachId
|
|
194367
|
+
* @property {number|null} [gingerMemberId] ItmsCoachingSession gingerMemberId
|
|
194368
|
+
* @property {string|null} [hsUserId] ItmsCoachingSession hsUserId
|
|
194369
|
+
* @property {number|Long|null} [createdAt] ItmsCoachingSession createdAt
|
|
194370
|
+
* @property {number|Long|null} [engagedAt] ItmsCoachingSession engagedAt
|
|
194371
|
+
* @property {number|Long|null} [coachEngagedAt] ItmsCoachingSession coachEngagedAt
|
|
194372
|
+
* @property {number|Long|null} [closedAt] ItmsCoachingSession closedAt
|
|
194373
|
+
* @property {string|null} [chatConversationId] A conversation between a Listener and a Caller is represented by a unique ChatConversation
|
|
194374
|
+
* See apps.listenerapp.models.ChatConversation
|
|
194375
|
+
* @property {coaching.ItmsSessionCreatedReason|null} [createdReason] ItmsCoachingSession createdReason
|
|
194376
|
+
* @property {string|null} [createdReasonDetails] ItmsCoachingSession createdReasonDetails
|
|
194377
|
+
*/
|
|
194378
|
+
|
|
194379
|
+
/**
|
|
194380
|
+
* Constructs a new ItmsCoachingSession.
|
|
194381
|
+
* @memberof coaching
|
|
194382
|
+
* @classdesc In-the-moment support / drop-in coaching session (not scheduled).
|
|
194383
|
+
* Model: listener-server.apps.listenerapp.models.OneTimeCheckin
|
|
194384
|
+
* @implements IItmsCoachingSession
|
|
194385
|
+
* @constructor
|
|
194386
|
+
* @param {coaching.IItmsCoachingSession=} [properties] Properties to set
|
|
194387
|
+
*/
|
|
194388
|
+
function ItmsCoachingSession(properties) {
|
|
194389
|
+
if (properties)
|
|
194390
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
194391
|
+
if (properties[keys[i]] != null)
|
|
194392
|
+
this[keys[i]] = properties[keys[i]];
|
|
194393
|
+
}
|
|
194394
|
+
|
|
194395
|
+
/**
|
|
194396
|
+
* ItmsCoachingSession dropinSessionId.
|
|
194397
|
+
* @member {string} dropinSessionId
|
|
194398
|
+
* @memberof coaching.ItmsCoachingSession
|
|
194399
|
+
* @instance
|
|
194400
|
+
*/
|
|
194401
|
+
ItmsCoachingSession.prototype.dropinSessionId = "";
|
|
194402
|
+
|
|
194403
|
+
/**
|
|
194404
|
+
* ItmsCoachingSession coachId.
|
|
194405
|
+
* @member {string} coachId
|
|
194406
|
+
* @memberof coaching.ItmsCoachingSession
|
|
194407
|
+
* @instance
|
|
194408
|
+
*/
|
|
194409
|
+
ItmsCoachingSession.prototype.coachId = "";
|
|
194410
|
+
|
|
194411
|
+
/**
|
|
194412
|
+
* ItmsCoachingSession gingerMemberId.
|
|
194413
|
+
* @member {number} gingerMemberId
|
|
194414
|
+
* @memberof coaching.ItmsCoachingSession
|
|
194415
|
+
* @instance
|
|
194416
|
+
*/
|
|
194417
|
+
ItmsCoachingSession.prototype.gingerMemberId = 0;
|
|
194418
|
+
|
|
194419
|
+
/**
|
|
194420
|
+
* ItmsCoachingSession hsUserId.
|
|
194421
|
+
* @member {string} hsUserId
|
|
194422
|
+
* @memberof coaching.ItmsCoachingSession
|
|
194423
|
+
* @instance
|
|
194424
|
+
*/
|
|
194425
|
+
ItmsCoachingSession.prototype.hsUserId = "";
|
|
194426
|
+
|
|
194427
|
+
/**
|
|
194428
|
+
* ItmsCoachingSession createdAt.
|
|
194429
|
+
* @member {number|Long} createdAt
|
|
194430
|
+
* @memberof coaching.ItmsCoachingSession
|
|
194431
|
+
* @instance
|
|
194432
|
+
*/
|
|
194433
|
+
ItmsCoachingSession.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
194434
|
+
|
|
194435
|
+
/**
|
|
194436
|
+
* ItmsCoachingSession engagedAt.
|
|
194437
|
+
* @member {number|Long} engagedAt
|
|
194438
|
+
* @memberof coaching.ItmsCoachingSession
|
|
194439
|
+
* @instance
|
|
194440
|
+
*/
|
|
194441
|
+
ItmsCoachingSession.prototype.engagedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
194442
|
+
|
|
194443
|
+
/**
|
|
194444
|
+
* ItmsCoachingSession coachEngagedAt.
|
|
194445
|
+
* @member {number|Long} coachEngagedAt
|
|
194446
|
+
* @memberof coaching.ItmsCoachingSession
|
|
194447
|
+
* @instance
|
|
194448
|
+
*/
|
|
194449
|
+
ItmsCoachingSession.prototype.coachEngagedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
194450
|
+
|
|
194451
|
+
/**
|
|
194452
|
+
* ItmsCoachingSession closedAt.
|
|
194453
|
+
* @member {number|Long} closedAt
|
|
194454
|
+
* @memberof coaching.ItmsCoachingSession
|
|
194455
|
+
* @instance
|
|
194456
|
+
*/
|
|
194457
|
+
ItmsCoachingSession.prototype.closedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
194458
|
+
|
|
194459
|
+
/**
|
|
194460
|
+
* A conversation between a Listener and a Caller is represented by a unique ChatConversation
|
|
194461
|
+
* See apps.listenerapp.models.ChatConversation
|
|
194462
|
+
* @member {string} chatConversationId
|
|
194463
|
+
* @memberof coaching.ItmsCoachingSession
|
|
194464
|
+
* @instance
|
|
194465
|
+
*/
|
|
194466
|
+
ItmsCoachingSession.prototype.chatConversationId = "";
|
|
194467
|
+
|
|
194468
|
+
/**
|
|
194469
|
+
* ItmsCoachingSession createdReason.
|
|
194470
|
+
* @member {coaching.ItmsSessionCreatedReason} createdReason
|
|
194471
|
+
* @memberof coaching.ItmsCoachingSession
|
|
194472
|
+
* @instance
|
|
194473
|
+
*/
|
|
194474
|
+
ItmsCoachingSession.prototype.createdReason = 0;
|
|
194475
|
+
|
|
194476
|
+
/**
|
|
194477
|
+
* ItmsCoachingSession createdReasonDetails.
|
|
194478
|
+
* @member {string} createdReasonDetails
|
|
194479
|
+
* @memberof coaching.ItmsCoachingSession
|
|
194480
|
+
* @instance
|
|
194481
|
+
*/
|
|
194482
|
+
ItmsCoachingSession.prototype.createdReasonDetails = "";
|
|
194483
|
+
|
|
194484
|
+
/**
|
|
194485
|
+
* Creates a new ItmsCoachingSession instance using the specified properties.
|
|
194486
|
+
* @function create
|
|
194487
|
+
* @memberof coaching.ItmsCoachingSession
|
|
194488
|
+
* @static
|
|
194489
|
+
* @param {coaching.IItmsCoachingSession=} [properties] Properties to set
|
|
194490
|
+
* @returns {coaching.ItmsCoachingSession} ItmsCoachingSession instance
|
|
194491
|
+
*/
|
|
194492
|
+
ItmsCoachingSession.create = function create(properties) {
|
|
194493
|
+
return new ItmsCoachingSession(properties);
|
|
194494
|
+
};
|
|
194495
|
+
|
|
194496
|
+
/**
|
|
194497
|
+
* Encodes the specified ItmsCoachingSession message. Does not implicitly {@link coaching.ItmsCoachingSession.verify|verify} messages.
|
|
194498
|
+
* @function encode
|
|
194499
|
+
* @memberof coaching.ItmsCoachingSession
|
|
194500
|
+
* @static
|
|
194501
|
+
* @param {coaching.IItmsCoachingSession} message ItmsCoachingSession message or plain object to encode
|
|
194502
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
194503
|
+
* @returns {$protobuf.Writer} Writer
|
|
194504
|
+
*/
|
|
194505
|
+
ItmsCoachingSession.encode = function encode(message, writer) {
|
|
194506
|
+
if (!writer)
|
|
194507
|
+
writer = $Writer.create();
|
|
194508
|
+
if (message.dropinSessionId != null && message.hasOwnProperty("dropinSessionId"))
|
|
194509
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.dropinSessionId);
|
|
194510
|
+
if (message.coachId != null && message.hasOwnProperty("coachId"))
|
|
194511
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.coachId);
|
|
194512
|
+
if (message.gingerMemberId != null && message.hasOwnProperty("gingerMemberId"))
|
|
194513
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.gingerMemberId);
|
|
194514
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
194515
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.hsUserId);
|
|
194516
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
194517
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.createdAt);
|
|
194518
|
+
if (message.engagedAt != null && message.hasOwnProperty("engagedAt"))
|
|
194519
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.engagedAt);
|
|
194520
|
+
if (message.coachEngagedAt != null && message.hasOwnProperty("coachEngagedAt"))
|
|
194521
|
+
writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.coachEngagedAt);
|
|
194522
|
+
if (message.closedAt != null && message.hasOwnProperty("closedAt"))
|
|
194523
|
+
writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.closedAt);
|
|
194524
|
+
if (message.chatConversationId != null && message.hasOwnProperty("chatConversationId"))
|
|
194525
|
+
writer.uint32(/* id 9, wireType 2 =*/74).string(message.chatConversationId);
|
|
194526
|
+
if (message.createdReason != null && message.hasOwnProperty("createdReason"))
|
|
194527
|
+
writer.uint32(/* id 10, wireType 0 =*/80).int32(message.createdReason);
|
|
194528
|
+
if (message.createdReasonDetails != null && message.hasOwnProperty("createdReasonDetails"))
|
|
194529
|
+
writer.uint32(/* id 11, wireType 2 =*/90).string(message.createdReasonDetails);
|
|
194530
|
+
return writer;
|
|
194531
|
+
};
|
|
194532
|
+
|
|
194533
|
+
/**
|
|
194534
|
+
* Encodes the specified ItmsCoachingSession message, length delimited. Does not implicitly {@link coaching.ItmsCoachingSession.verify|verify} messages.
|
|
194535
|
+
* @function encodeDelimited
|
|
194536
|
+
* @memberof coaching.ItmsCoachingSession
|
|
194537
|
+
* @static
|
|
194538
|
+
* @param {coaching.IItmsCoachingSession} message ItmsCoachingSession message or plain object to encode
|
|
194539
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
194540
|
+
* @returns {$protobuf.Writer} Writer
|
|
194541
|
+
*/
|
|
194542
|
+
ItmsCoachingSession.encodeDelimited = function encodeDelimited(message, writer) {
|
|
194543
|
+
return this.encode(message, writer).ldelim();
|
|
194544
|
+
};
|
|
194545
|
+
|
|
194546
|
+
/**
|
|
194547
|
+
* Decodes an ItmsCoachingSession message from the specified reader or buffer.
|
|
194548
|
+
* @function decode
|
|
194549
|
+
* @memberof coaching.ItmsCoachingSession
|
|
194550
|
+
* @static
|
|
194551
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
194552
|
+
* @param {number} [length] Message length if known beforehand
|
|
194553
|
+
* @returns {coaching.ItmsCoachingSession} ItmsCoachingSession
|
|
194554
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
194555
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
194556
|
+
*/
|
|
194557
|
+
ItmsCoachingSession.decode = function decode(reader, length) {
|
|
194558
|
+
if (!(reader instanceof $Reader))
|
|
194559
|
+
reader = $Reader.create(reader);
|
|
194560
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.coaching.ItmsCoachingSession();
|
|
194561
|
+
while (reader.pos < end) {
|
|
194562
|
+
var tag = reader.uint32();
|
|
194563
|
+
switch (tag >>> 3) {
|
|
194564
|
+
case 1:
|
|
194565
|
+
message.dropinSessionId = reader.string();
|
|
194566
|
+
break;
|
|
194567
|
+
case 2:
|
|
194568
|
+
message.coachId = reader.string();
|
|
194569
|
+
break;
|
|
194570
|
+
case 3:
|
|
194571
|
+
message.gingerMemberId = reader.uint32();
|
|
194572
|
+
break;
|
|
194573
|
+
case 4:
|
|
194574
|
+
message.hsUserId = reader.string();
|
|
194575
|
+
break;
|
|
194576
|
+
case 5:
|
|
194577
|
+
message.createdAt = reader.uint64();
|
|
194578
|
+
break;
|
|
194579
|
+
case 6:
|
|
194580
|
+
message.engagedAt = reader.uint64();
|
|
194581
|
+
break;
|
|
194582
|
+
case 7:
|
|
194583
|
+
message.coachEngagedAt = reader.uint64();
|
|
194584
|
+
break;
|
|
194585
|
+
case 8:
|
|
194586
|
+
message.closedAt = reader.uint64();
|
|
194587
|
+
break;
|
|
194588
|
+
case 9:
|
|
194589
|
+
message.chatConversationId = reader.string();
|
|
194590
|
+
break;
|
|
194591
|
+
case 10:
|
|
194592
|
+
message.createdReason = reader.int32();
|
|
194593
|
+
break;
|
|
194594
|
+
case 11:
|
|
194595
|
+
message.createdReasonDetails = reader.string();
|
|
194596
|
+
break;
|
|
194597
|
+
default:
|
|
194598
|
+
reader.skipType(tag & 7);
|
|
194599
|
+
break;
|
|
194600
|
+
}
|
|
194601
|
+
}
|
|
194602
|
+
return message;
|
|
194603
|
+
};
|
|
194604
|
+
|
|
194605
|
+
/**
|
|
194606
|
+
* Decodes an ItmsCoachingSession message from the specified reader or buffer, length delimited.
|
|
194607
|
+
* @function decodeDelimited
|
|
194608
|
+
* @memberof coaching.ItmsCoachingSession
|
|
194609
|
+
* @static
|
|
194610
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
194611
|
+
* @returns {coaching.ItmsCoachingSession} ItmsCoachingSession
|
|
194612
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
194613
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
194614
|
+
*/
|
|
194615
|
+
ItmsCoachingSession.decodeDelimited = function decodeDelimited(reader) {
|
|
194616
|
+
if (!(reader instanceof $Reader))
|
|
194617
|
+
reader = new $Reader(reader);
|
|
194618
|
+
return this.decode(reader, reader.uint32());
|
|
194619
|
+
};
|
|
194620
|
+
|
|
194621
|
+
/**
|
|
194622
|
+
* Verifies an ItmsCoachingSession message.
|
|
194623
|
+
* @function verify
|
|
194624
|
+
* @memberof coaching.ItmsCoachingSession
|
|
194625
|
+
* @static
|
|
194626
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
194627
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
194628
|
+
*/
|
|
194629
|
+
ItmsCoachingSession.verify = function verify(message) {
|
|
194630
|
+
if (typeof message !== "object" || message === null)
|
|
194631
|
+
return "object expected";
|
|
194632
|
+
if (message.dropinSessionId != null && message.hasOwnProperty("dropinSessionId"))
|
|
194633
|
+
if (!$util.isString(message.dropinSessionId))
|
|
194634
|
+
return "dropinSessionId: string expected";
|
|
194635
|
+
if (message.coachId != null && message.hasOwnProperty("coachId"))
|
|
194636
|
+
if (!$util.isString(message.coachId))
|
|
194637
|
+
return "coachId: string expected";
|
|
194638
|
+
if (message.gingerMemberId != null && message.hasOwnProperty("gingerMemberId"))
|
|
194639
|
+
if (!$util.isInteger(message.gingerMemberId))
|
|
194640
|
+
return "gingerMemberId: integer expected";
|
|
194641
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
194642
|
+
if (!$util.isString(message.hsUserId))
|
|
194643
|
+
return "hsUserId: string expected";
|
|
194644
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
194645
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
194646
|
+
return "createdAt: integer|Long expected";
|
|
194647
|
+
if (message.engagedAt != null && message.hasOwnProperty("engagedAt"))
|
|
194648
|
+
if (!$util.isInteger(message.engagedAt) && !(message.engagedAt && $util.isInteger(message.engagedAt.low) && $util.isInteger(message.engagedAt.high)))
|
|
194649
|
+
return "engagedAt: integer|Long expected";
|
|
194650
|
+
if (message.coachEngagedAt != null && message.hasOwnProperty("coachEngagedAt"))
|
|
194651
|
+
if (!$util.isInteger(message.coachEngagedAt) && !(message.coachEngagedAt && $util.isInteger(message.coachEngagedAt.low) && $util.isInteger(message.coachEngagedAt.high)))
|
|
194652
|
+
return "coachEngagedAt: integer|Long expected";
|
|
194653
|
+
if (message.closedAt != null && message.hasOwnProperty("closedAt"))
|
|
194654
|
+
if (!$util.isInteger(message.closedAt) && !(message.closedAt && $util.isInteger(message.closedAt.low) && $util.isInteger(message.closedAt.high)))
|
|
194655
|
+
return "closedAt: integer|Long expected";
|
|
194656
|
+
if (message.chatConversationId != null && message.hasOwnProperty("chatConversationId"))
|
|
194657
|
+
if (!$util.isString(message.chatConversationId))
|
|
194658
|
+
return "chatConversationId: string expected";
|
|
194659
|
+
if (message.createdReason != null && message.hasOwnProperty("createdReason"))
|
|
194660
|
+
switch (message.createdReason) {
|
|
194661
|
+
default:
|
|
194662
|
+
return "createdReason: enum value expected";
|
|
194663
|
+
case 0:
|
|
194664
|
+
case 1:
|
|
194665
|
+
case 2:
|
|
194666
|
+
break;
|
|
194667
|
+
}
|
|
194668
|
+
if (message.createdReasonDetails != null && message.hasOwnProperty("createdReasonDetails"))
|
|
194669
|
+
if (!$util.isString(message.createdReasonDetails))
|
|
194670
|
+
return "createdReasonDetails: string expected";
|
|
194671
|
+
return null;
|
|
194672
|
+
};
|
|
194673
|
+
|
|
194674
|
+
/**
|
|
194675
|
+
* Creates an ItmsCoachingSession message from a plain object. Also converts values to their respective internal types.
|
|
194676
|
+
* @function fromObject
|
|
194677
|
+
* @memberof coaching.ItmsCoachingSession
|
|
194678
|
+
* @static
|
|
194679
|
+
* @param {Object.<string,*>} object Plain object
|
|
194680
|
+
* @returns {coaching.ItmsCoachingSession} ItmsCoachingSession
|
|
194681
|
+
*/
|
|
194682
|
+
ItmsCoachingSession.fromObject = function fromObject(object) {
|
|
194683
|
+
if (object instanceof $root.coaching.ItmsCoachingSession)
|
|
194684
|
+
return object;
|
|
194685
|
+
var message = new $root.coaching.ItmsCoachingSession();
|
|
194686
|
+
if (object.dropinSessionId != null)
|
|
194687
|
+
message.dropinSessionId = String(object.dropinSessionId);
|
|
194688
|
+
if (object.coachId != null)
|
|
194689
|
+
message.coachId = String(object.coachId);
|
|
194690
|
+
if (object.gingerMemberId != null)
|
|
194691
|
+
message.gingerMemberId = object.gingerMemberId >>> 0;
|
|
194692
|
+
if (object.hsUserId != null)
|
|
194693
|
+
message.hsUserId = String(object.hsUserId);
|
|
194694
|
+
if (object.createdAt != null)
|
|
194695
|
+
if ($util.Long)
|
|
194696
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
194697
|
+
else if (typeof object.createdAt === "string")
|
|
194698
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
194699
|
+
else if (typeof object.createdAt === "number")
|
|
194700
|
+
message.createdAt = object.createdAt;
|
|
194701
|
+
else if (typeof object.createdAt === "object")
|
|
194702
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
194703
|
+
if (object.engagedAt != null)
|
|
194704
|
+
if ($util.Long)
|
|
194705
|
+
(message.engagedAt = $util.Long.fromValue(object.engagedAt)).unsigned = true;
|
|
194706
|
+
else if (typeof object.engagedAt === "string")
|
|
194707
|
+
message.engagedAt = parseInt(object.engagedAt, 10);
|
|
194708
|
+
else if (typeof object.engagedAt === "number")
|
|
194709
|
+
message.engagedAt = object.engagedAt;
|
|
194710
|
+
else if (typeof object.engagedAt === "object")
|
|
194711
|
+
message.engagedAt = new $util.LongBits(object.engagedAt.low >>> 0, object.engagedAt.high >>> 0).toNumber(true);
|
|
194712
|
+
if (object.coachEngagedAt != null)
|
|
194713
|
+
if ($util.Long)
|
|
194714
|
+
(message.coachEngagedAt = $util.Long.fromValue(object.coachEngagedAt)).unsigned = true;
|
|
194715
|
+
else if (typeof object.coachEngagedAt === "string")
|
|
194716
|
+
message.coachEngagedAt = parseInt(object.coachEngagedAt, 10);
|
|
194717
|
+
else if (typeof object.coachEngagedAt === "number")
|
|
194718
|
+
message.coachEngagedAt = object.coachEngagedAt;
|
|
194719
|
+
else if (typeof object.coachEngagedAt === "object")
|
|
194720
|
+
message.coachEngagedAt = new $util.LongBits(object.coachEngagedAt.low >>> 0, object.coachEngagedAt.high >>> 0).toNumber(true);
|
|
194721
|
+
if (object.closedAt != null)
|
|
194722
|
+
if ($util.Long)
|
|
194723
|
+
(message.closedAt = $util.Long.fromValue(object.closedAt)).unsigned = true;
|
|
194724
|
+
else if (typeof object.closedAt === "string")
|
|
194725
|
+
message.closedAt = parseInt(object.closedAt, 10);
|
|
194726
|
+
else if (typeof object.closedAt === "number")
|
|
194727
|
+
message.closedAt = object.closedAt;
|
|
194728
|
+
else if (typeof object.closedAt === "object")
|
|
194729
|
+
message.closedAt = new $util.LongBits(object.closedAt.low >>> 0, object.closedAt.high >>> 0).toNumber(true);
|
|
194730
|
+
if (object.chatConversationId != null)
|
|
194731
|
+
message.chatConversationId = String(object.chatConversationId);
|
|
194732
|
+
switch (object.createdReason) {
|
|
194733
|
+
case "ITMS_SESSION_CREATED_REASON_UNKNOWN":
|
|
194734
|
+
case 0:
|
|
194735
|
+
message.createdReason = 0;
|
|
194736
|
+
break;
|
|
194737
|
+
case "ITMS_SESSION_CREATED_REASON_ITMS":
|
|
194738
|
+
case 1:
|
|
194739
|
+
message.createdReason = 1;
|
|
194740
|
+
break;
|
|
194741
|
+
case "ITMS_SESSION_CREATED_REASON_SI":
|
|
194742
|
+
case 2:
|
|
194743
|
+
message.createdReason = 2;
|
|
194744
|
+
break;
|
|
194745
|
+
}
|
|
194746
|
+
if (object.createdReasonDetails != null)
|
|
194747
|
+
message.createdReasonDetails = String(object.createdReasonDetails);
|
|
194748
|
+
return message;
|
|
194749
|
+
};
|
|
194750
|
+
|
|
194751
|
+
/**
|
|
194752
|
+
* Creates a plain object from an ItmsCoachingSession message. Also converts values to other types if specified.
|
|
194753
|
+
* @function toObject
|
|
194754
|
+
* @memberof coaching.ItmsCoachingSession
|
|
194755
|
+
* @static
|
|
194756
|
+
* @param {coaching.ItmsCoachingSession} message ItmsCoachingSession
|
|
194757
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
194758
|
+
* @returns {Object.<string,*>} Plain object
|
|
194759
|
+
*/
|
|
194760
|
+
ItmsCoachingSession.toObject = function toObject(message, options) {
|
|
194761
|
+
if (!options)
|
|
194762
|
+
options = {};
|
|
194763
|
+
var object = {};
|
|
194764
|
+
if (options.defaults) {
|
|
194765
|
+
object.dropinSessionId = "";
|
|
194766
|
+
object.coachId = "";
|
|
194767
|
+
object.gingerMemberId = 0;
|
|
194768
|
+
object.hsUserId = "";
|
|
194769
|
+
if ($util.Long) {
|
|
194770
|
+
var long = new $util.Long(0, 0, true);
|
|
194771
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
194772
|
+
} else
|
|
194773
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
194774
|
+
if ($util.Long) {
|
|
194775
|
+
var long = new $util.Long(0, 0, true);
|
|
194776
|
+
object.engagedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
194777
|
+
} else
|
|
194778
|
+
object.engagedAt = options.longs === String ? "0" : 0;
|
|
194779
|
+
if ($util.Long) {
|
|
194780
|
+
var long = new $util.Long(0, 0, true);
|
|
194781
|
+
object.coachEngagedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
194782
|
+
} else
|
|
194783
|
+
object.coachEngagedAt = options.longs === String ? "0" : 0;
|
|
194784
|
+
if ($util.Long) {
|
|
194785
|
+
var long = new $util.Long(0, 0, true);
|
|
194786
|
+
object.closedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
194787
|
+
} else
|
|
194788
|
+
object.closedAt = options.longs === String ? "0" : 0;
|
|
194789
|
+
object.chatConversationId = "";
|
|
194790
|
+
object.createdReason = options.enums === String ? "ITMS_SESSION_CREATED_REASON_UNKNOWN" : 0;
|
|
194791
|
+
object.createdReasonDetails = "";
|
|
194792
|
+
}
|
|
194793
|
+
if (message.dropinSessionId != null && message.hasOwnProperty("dropinSessionId"))
|
|
194794
|
+
object.dropinSessionId = message.dropinSessionId;
|
|
194795
|
+
if (message.coachId != null && message.hasOwnProperty("coachId"))
|
|
194796
|
+
object.coachId = message.coachId;
|
|
194797
|
+
if (message.gingerMemberId != null && message.hasOwnProperty("gingerMemberId"))
|
|
194798
|
+
object.gingerMemberId = message.gingerMemberId;
|
|
194799
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
194800
|
+
object.hsUserId = message.hsUserId;
|
|
194801
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
194802
|
+
if (typeof message.createdAt === "number")
|
|
194803
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
194804
|
+
else
|
|
194805
|
+
object.createdAt = options.longs === String ? $util.Long.prototype.toString.call(message.createdAt) : options.longs === Number ? new $util.LongBits(message.createdAt.low >>> 0, message.createdAt.high >>> 0).toNumber(true) : message.createdAt;
|
|
194806
|
+
if (message.engagedAt != null && message.hasOwnProperty("engagedAt"))
|
|
194807
|
+
if (typeof message.engagedAt === "number")
|
|
194808
|
+
object.engagedAt = options.longs === String ? String(message.engagedAt) : message.engagedAt;
|
|
194809
|
+
else
|
|
194810
|
+
object.engagedAt = options.longs === String ? $util.Long.prototype.toString.call(message.engagedAt) : options.longs === Number ? new $util.LongBits(message.engagedAt.low >>> 0, message.engagedAt.high >>> 0).toNumber(true) : message.engagedAt;
|
|
194811
|
+
if (message.coachEngagedAt != null && message.hasOwnProperty("coachEngagedAt"))
|
|
194812
|
+
if (typeof message.coachEngagedAt === "number")
|
|
194813
|
+
object.coachEngagedAt = options.longs === String ? String(message.coachEngagedAt) : message.coachEngagedAt;
|
|
194814
|
+
else
|
|
194815
|
+
object.coachEngagedAt = options.longs === String ? $util.Long.prototype.toString.call(message.coachEngagedAt) : options.longs === Number ? new $util.LongBits(message.coachEngagedAt.low >>> 0, message.coachEngagedAt.high >>> 0).toNumber(true) : message.coachEngagedAt;
|
|
194816
|
+
if (message.closedAt != null && message.hasOwnProperty("closedAt"))
|
|
194817
|
+
if (typeof message.closedAt === "number")
|
|
194818
|
+
object.closedAt = options.longs === String ? String(message.closedAt) : message.closedAt;
|
|
194819
|
+
else
|
|
194820
|
+
object.closedAt = options.longs === String ? $util.Long.prototype.toString.call(message.closedAt) : options.longs === Number ? new $util.LongBits(message.closedAt.low >>> 0, message.closedAt.high >>> 0).toNumber(true) : message.closedAt;
|
|
194821
|
+
if (message.chatConversationId != null && message.hasOwnProperty("chatConversationId"))
|
|
194822
|
+
object.chatConversationId = message.chatConversationId;
|
|
194823
|
+
if (message.createdReason != null && message.hasOwnProperty("createdReason"))
|
|
194824
|
+
object.createdReason = options.enums === String ? $root.coaching.ItmsSessionCreatedReason[message.createdReason] : message.createdReason;
|
|
194825
|
+
if (message.createdReasonDetails != null && message.hasOwnProperty("createdReasonDetails"))
|
|
194826
|
+
object.createdReasonDetails = message.createdReasonDetails;
|
|
194827
|
+
return object;
|
|
194828
|
+
};
|
|
194829
|
+
|
|
194830
|
+
/**
|
|
194831
|
+
* Converts this ItmsCoachingSession to JSON.
|
|
194832
|
+
* @function toJSON
|
|
194833
|
+
* @memberof coaching.ItmsCoachingSession
|
|
194834
|
+
* @instance
|
|
194835
|
+
* @returns {Object.<string,*>} JSON object
|
|
194836
|
+
*/
|
|
194837
|
+
ItmsCoachingSession.prototype.toJSON = function toJSON() {
|
|
194838
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
194839
|
+
};
|
|
194840
|
+
|
|
194841
|
+
return ItmsCoachingSession;
|
|
194842
|
+
})();
|
|
194843
|
+
|
|
194107
194844
|
coaching.ScheduledCoachingSession = (function() {
|
|
194108
194845
|
|
|
194109
194846
|
/**
|
package/package.json
CHANGED