@headspace/protos-events 1.590.0 → 1.592.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 +18 -0
- package/lib/index.js +60 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -3069,6 +3069,12 @@ export namespace coaching {
|
|
|
3069
3069
|
* a new record is created for the new date/time
|
|
3070
3070
|
*/
|
|
3071
3071
|
rescheduled?: (boolean|null);
|
|
3072
|
+
|
|
3073
|
+
/**
|
|
3074
|
+
* A conversation between a Listener and a Caller is represented by a unique ChatConversation
|
|
3075
|
+
* See apps.listenerapp.models.ChatConversation
|
|
3076
|
+
*/
|
|
3077
|
+
chatConversationId?: (string|null);
|
|
3072
3078
|
}
|
|
3073
3079
|
|
|
3074
3080
|
/**
|
|
@@ -3134,6 +3140,12 @@ export namespace coaching {
|
|
|
3134
3140
|
*/
|
|
3135
3141
|
public rescheduled: boolean;
|
|
3136
3142
|
|
|
3143
|
+
/**
|
|
3144
|
+
* A conversation between a Listener and a Caller is represented by a unique ChatConversation
|
|
3145
|
+
* See apps.listenerapp.models.ChatConversation
|
|
3146
|
+
*/
|
|
3147
|
+
public chatConversationId: string;
|
|
3148
|
+
|
|
3137
3149
|
/**
|
|
3138
3150
|
* Creates a new ScheduledCoachingSession instance using the specified properties.
|
|
3139
3151
|
* @param [properties] Properties to set
|
|
@@ -44348,6 +44360,9 @@ export interface IGingerMemberUpgraded {
|
|
|
44348
44360
|
|
|
44349
44361
|
/** GingerMemberUpgraded b2bRootOrgId */
|
|
44350
44362
|
b2bRootOrgId?: (number|null);
|
|
44363
|
+
|
|
44364
|
+
/** GingerMemberUpgraded firstEnrolledAt */
|
|
44365
|
+
firstEnrolledAt?: (number|Long|null);
|
|
44351
44366
|
}
|
|
44352
44367
|
|
|
44353
44368
|
/**
|
|
@@ -44396,6 +44411,9 @@ export class GingerMemberUpgraded implements IGingerMemberUpgraded {
|
|
|
44396
44411
|
/** GingerMemberUpgraded b2bRootOrgId. */
|
|
44397
44412
|
public b2bRootOrgId: number;
|
|
44398
44413
|
|
|
44414
|
+
/** GingerMemberUpgraded firstEnrolledAt. */
|
|
44415
|
+
public firstEnrolledAt: (number|Long);
|
|
44416
|
+
|
|
44399
44417
|
/**
|
|
44400
44418
|
* Creates a new GingerMemberUpgraded instance using the specified properties.
|
|
44401
44419
|
* @param [properties] Properties to set
|
package/lib/index.js
CHANGED
|
@@ -10023,6 +10023,8 @@ $root.coaching = (function() {
|
|
|
10023
10023
|
* So what will happen on reschedules going forward is that:
|
|
10024
10024
|
* the old/current record is cancelled (i.e. cancelled_at is set, and rescheduled is set to True)
|
|
10025
10025
|
* a new record is created for the new date/time
|
|
10026
|
+
* @property {string|null} [chatConversationId] A conversation between a Listener and a Caller is represented by a unique ChatConversation
|
|
10027
|
+
* See apps.listenerapp.models.ChatConversation
|
|
10026
10028
|
*/
|
|
10027
10029
|
|
|
10028
10030
|
/**
|
|
@@ -10150,6 +10152,15 @@ $root.coaching = (function() {
|
|
|
10150
10152
|
*/
|
|
10151
10153
|
ScheduledCoachingSession.prototype.rescheduled = false;
|
|
10152
10154
|
|
|
10155
|
+
/**
|
|
10156
|
+
* A conversation between a Listener and a Caller is represented by a unique ChatConversation
|
|
10157
|
+
* See apps.listenerapp.models.ChatConversation
|
|
10158
|
+
* @member {string} chatConversationId
|
|
10159
|
+
* @memberof coaching.ScheduledCoachingSession
|
|
10160
|
+
* @instance
|
|
10161
|
+
*/
|
|
10162
|
+
ScheduledCoachingSession.prototype.chatConversationId = "";
|
|
10163
|
+
|
|
10153
10164
|
/**
|
|
10154
10165
|
* Creates a new ScheduledCoachingSession instance using the specified properties.
|
|
10155
10166
|
* @function create
|
|
@@ -10198,6 +10209,8 @@ $root.coaching = (function() {
|
|
|
10198
10209
|
writer.uint32(/* id 11, wireType 0 =*/88).int32(message.eventType);
|
|
10199
10210
|
if (message.rescheduled != null && message.hasOwnProperty("rescheduled"))
|
|
10200
10211
|
writer.uint32(/* id 12, wireType 0 =*/96).bool(message.rescheduled);
|
|
10212
|
+
if (message.chatConversationId != null && message.hasOwnProperty("chatConversationId"))
|
|
10213
|
+
writer.uint32(/* id 13, wireType 2 =*/106).string(message.chatConversationId);
|
|
10201
10214
|
return writer;
|
|
10202
10215
|
};
|
|
10203
10216
|
|
|
@@ -10268,6 +10281,9 @@ $root.coaching = (function() {
|
|
|
10268
10281
|
case 12:
|
|
10269
10282
|
message.rescheduled = reader.bool();
|
|
10270
10283
|
break;
|
|
10284
|
+
case 13:
|
|
10285
|
+
message.chatConversationId = reader.string();
|
|
10286
|
+
break;
|
|
10271
10287
|
default:
|
|
10272
10288
|
reader.skipType(tag & 7);
|
|
10273
10289
|
break;
|
|
@@ -10346,6 +10362,9 @@ $root.coaching = (function() {
|
|
|
10346
10362
|
if (message.rescheduled != null && message.hasOwnProperty("rescheduled"))
|
|
10347
10363
|
if (typeof message.rescheduled !== "boolean")
|
|
10348
10364
|
return "rescheduled: boolean expected";
|
|
10365
|
+
if (message.chatConversationId != null && message.hasOwnProperty("chatConversationId"))
|
|
10366
|
+
if (!$util.isString(message.chatConversationId))
|
|
10367
|
+
return "chatConversationId: string expected";
|
|
10349
10368
|
return null;
|
|
10350
10369
|
};
|
|
10351
10370
|
|
|
@@ -10436,6 +10455,8 @@ $root.coaching = (function() {
|
|
|
10436
10455
|
}
|
|
10437
10456
|
if (object.rescheduled != null)
|
|
10438
10457
|
message.rescheduled = Boolean(object.rescheduled);
|
|
10458
|
+
if (object.chatConversationId != null)
|
|
10459
|
+
message.chatConversationId = String(object.chatConversationId);
|
|
10439
10460
|
return message;
|
|
10440
10461
|
};
|
|
10441
10462
|
|
|
@@ -10485,6 +10506,7 @@ $root.coaching = (function() {
|
|
|
10485
10506
|
object.isRecurring = false;
|
|
10486
10507
|
object.eventType = options.enums === String ? "COACHING_SESSION_EVENT_TYPE_UNKNOWN" : 0;
|
|
10487
10508
|
object.rescheduled = false;
|
|
10509
|
+
object.chatConversationId = "";
|
|
10488
10510
|
}
|
|
10489
10511
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
10490
10512
|
object.id = message.id;
|
|
@@ -10525,6 +10547,8 @@ $root.coaching = (function() {
|
|
|
10525
10547
|
object.eventType = options.enums === String ? $root.coaching.CoachingSessionEventType[message.eventType] : message.eventType;
|
|
10526
10548
|
if (message.rescheduled != null && message.hasOwnProperty("rescheduled"))
|
|
10527
10549
|
object.rescheduled = message.rescheduled;
|
|
10550
|
+
if (message.chatConversationId != null && message.hasOwnProperty("chatConversationId"))
|
|
10551
|
+
object.chatConversationId = message.chatConversationId;
|
|
10528
10552
|
return object;
|
|
10529
10553
|
};
|
|
10530
10554
|
|
|
@@ -127203,6 +127227,7 @@ $root.GingerMemberUpgraded = (function() {
|
|
|
127203
127227
|
* @property {b2b.EnrollmentFlow|null} [priorEnrollmentFlow] GingerMemberUpgraded priorEnrollmentFlow
|
|
127204
127228
|
* @property {b2b.EnrollmentFlow|null} [enrollmentFlow] GingerMemberUpgraded enrollmentFlow
|
|
127205
127229
|
* @property {number|null} [b2bRootOrgId] GingerMemberUpgraded b2bRootOrgId
|
|
127230
|
+
* @property {number|Long|null} [firstEnrolledAt] GingerMemberUpgraded firstEnrolledAt
|
|
127206
127231
|
*/
|
|
127207
127232
|
|
|
127208
127233
|
/**
|
|
@@ -127310,6 +127335,14 @@ $root.GingerMemberUpgraded = (function() {
|
|
|
127310
127335
|
*/
|
|
127311
127336
|
GingerMemberUpgraded.prototype.b2bRootOrgId = 0;
|
|
127312
127337
|
|
|
127338
|
+
/**
|
|
127339
|
+
* GingerMemberUpgraded firstEnrolledAt.
|
|
127340
|
+
* @member {number|Long} firstEnrolledAt
|
|
127341
|
+
* @memberof GingerMemberUpgraded
|
|
127342
|
+
* @instance
|
|
127343
|
+
*/
|
|
127344
|
+
GingerMemberUpgraded.prototype.firstEnrolledAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
127345
|
+
|
|
127313
127346
|
/**
|
|
127314
127347
|
* Creates a new GingerMemberUpgraded instance using the specified properties.
|
|
127315
127348
|
* @function create
|
|
@@ -127356,6 +127389,8 @@ $root.GingerMemberUpgraded = (function() {
|
|
|
127356
127389
|
writer.uint32(/* id 10, wireType 0 =*/80).int32(message.enrollmentFlow);
|
|
127357
127390
|
if (message.b2bRootOrgId != null && message.hasOwnProperty("b2bRootOrgId"))
|
|
127358
127391
|
writer.uint32(/* id 11, wireType 0 =*/88).uint32(message.b2bRootOrgId);
|
|
127392
|
+
if (message.firstEnrolledAt != null && message.hasOwnProperty("firstEnrolledAt"))
|
|
127393
|
+
writer.uint32(/* id 12, wireType 0 =*/96).uint64(message.firstEnrolledAt);
|
|
127359
127394
|
return writer;
|
|
127360
127395
|
};
|
|
127361
127396
|
|
|
@@ -127423,6 +127458,9 @@ $root.GingerMemberUpgraded = (function() {
|
|
|
127423
127458
|
case 11:
|
|
127424
127459
|
message.b2bRootOrgId = reader.uint32();
|
|
127425
127460
|
break;
|
|
127461
|
+
case 12:
|
|
127462
|
+
message.firstEnrolledAt = reader.uint64();
|
|
127463
|
+
break;
|
|
127426
127464
|
default:
|
|
127427
127465
|
reader.skipType(tag & 7);
|
|
127428
127466
|
break;
|
|
@@ -127509,6 +127547,9 @@ $root.GingerMemberUpgraded = (function() {
|
|
|
127509
127547
|
if (message.b2bRootOrgId != null && message.hasOwnProperty("b2bRootOrgId"))
|
|
127510
127548
|
if (!$util.isInteger(message.b2bRootOrgId))
|
|
127511
127549
|
return "b2bRootOrgId: integer expected";
|
|
127550
|
+
if (message.firstEnrolledAt != null && message.hasOwnProperty("firstEnrolledAt"))
|
|
127551
|
+
if (!$util.isInteger(message.firstEnrolledAt) && !(message.firstEnrolledAt && $util.isInteger(message.firstEnrolledAt.low) && $util.isInteger(message.firstEnrolledAt.high)))
|
|
127552
|
+
return "firstEnrolledAt: integer|Long expected";
|
|
127512
127553
|
return null;
|
|
127513
127554
|
};
|
|
127514
127555
|
|
|
@@ -127594,6 +127635,15 @@ $root.GingerMemberUpgraded = (function() {
|
|
|
127594
127635
|
}
|
|
127595
127636
|
if (object.b2bRootOrgId != null)
|
|
127596
127637
|
message.b2bRootOrgId = object.b2bRootOrgId >>> 0;
|
|
127638
|
+
if (object.firstEnrolledAt != null)
|
|
127639
|
+
if ($util.Long)
|
|
127640
|
+
(message.firstEnrolledAt = $util.Long.fromValue(object.firstEnrolledAt)).unsigned = true;
|
|
127641
|
+
else if (typeof object.firstEnrolledAt === "string")
|
|
127642
|
+
message.firstEnrolledAt = parseInt(object.firstEnrolledAt, 10);
|
|
127643
|
+
else if (typeof object.firstEnrolledAt === "number")
|
|
127644
|
+
message.firstEnrolledAt = object.firstEnrolledAt;
|
|
127645
|
+
else if (typeof object.firstEnrolledAt === "object")
|
|
127646
|
+
message.firstEnrolledAt = new $util.LongBits(object.firstEnrolledAt.low >>> 0, object.firstEnrolledAt.high >>> 0).toNumber(true);
|
|
127597
127647
|
return message;
|
|
127598
127648
|
};
|
|
127599
127649
|
|
|
@@ -127622,6 +127672,11 @@ $root.GingerMemberUpgraded = (function() {
|
|
|
127622
127672
|
object.priorEnrollmentFlow = options.enums === String ? "ENROLLMENT_FLOW_UNKNOWN" : 0;
|
|
127623
127673
|
object.enrollmentFlow = options.enums === String ? "ENROLLMENT_FLOW_UNKNOWN" : 0;
|
|
127624
127674
|
object.b2bRootOrgId = 0;
|
|
127675
|
+
if ($util.Long) {
|
|
127676
|
+
var long = new $util.Long(0, 0, true);
|
|
127677
|
+
object.firstEnrolledAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
127678
|
+
} else
|
|
127679
|
+
object.firstEnrolledAt = options.longs === String ? "0" : 0;
|
|
127625
127680
|
}
|
|
127626
127681
|
if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
|
|
127627
127682
|
object.headspaceHealthOrgId = message.headspaceHealthOrgId;
|
|
@@ -127645,6 +127700,11 @@ $root.GingerMemberUpgraded = (function() {
|
|
|
127645
127700
|
object.enrollmentFlow = options.enums === String ? $root.b2b.EnrollmentFlow[message.enrollmentFlow] : message.enrollmentFlow;
|
|
127646
127701
|
if (message.b2bRootOrgId != null && message.hasOwnProperty("b2bRootOrgId"))
|
|
127647
127702
|
object.b2bRootOrgId = message.b2bRootOrgId;
|
|
127703
|
+
if (message.firstEnrolledAt != null && message.hasOwnProperty("firstEnrolledAt"))
|
|
127704
|
+
if (typeof message.firstEnrolledAt === "number")
|
|
127705
|
+
object.firstEnrolledAt = options.longs === String ? String(message.firstEnrolledAt) : message.firstEnrolledAt;
|
|
127706
|
+
else
|
|
127707
|
+
object.firstEnrolledAt = options.longs === String ? $util.Long.prototype.toString.call(message.firstEnrolledAt) : options.longs === Number ? new $util.LongBits(message.firstEnrolledAt.low >>> 0, message.firstEnrolledAt.high >>> 0).toNumber(true) : message.firstEnrolledAt;
|
|
127648
127708
|
return object;
|
|
127649
127709
|
};
|
|
127650
127710
|
|
package/package.json
CHANGED