theragist-ts 1.0.86 → 1.0.88
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/dist/admin/analytics.d.ts +8 -7
- package/dist/admin/analytics.js +64 -63
- package/dist/admin/enum.d.ts +305 -0
- package/dist/admin/enum.js +2141 -60
- package/dist/admin/message.d.ts +131 -131
- package/dist/admin/message.js +1148 -1136
- package/dist/admin/notification.d.ts +8 -7
- package/dist/admin/notification.js +55 -54
- package/dist/index.d.ts +2 -2
- package/dist/index.js +109 -6
- package/dist/lounge/message.d.ts +2 -0
- package/dist/lounge/message.js +34 -2
- package/dist/websocket/enum.d.ts +18 -0
- package/dist/websocket/enum.js +108 -0
- package/dist/websocket/message.d.ts +8 -0
- package/dist/websocket/message.js +121 -1
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
import { CallRoomType_Value, CallType_Value } from "../call/enum";
|
|
3
|
+
import { UserRole_Value } from "../enums";
|
|
3
4
|
import { AnalyticsPeriod } from "./message";
|
|
4
5
|
export declare const protobufPackage = "pb";
|
|
5
6
|
export interface MoodTrendsRequest {
|
|
@@ -23,7 +24,7 @@ export interface MoodDistributionByRoleRequest {
|
|
|
23
24
|
to: string;
|
|
24
25
|
}
|
|
25
26
|
export interface MoodDistributionByRoleEntry {
|
|
26
|
-
role:
|
|
27
|
+
role: UserRole_Value;
|
|
27
28
|
moodName: string;
|
|
28
29
|
moodSlug: string;
|
|
29
30
|
moodEmoji: string;
|
|
@@ -57,7 +58,7 @@ export interface MoodUserEngagementEntry {
|
|
|
57
58
|
userId: string;
|
|
58
59
|
username: string;
|
|
59
60
|
fullName: string;
|
|
60
|
-
role:
|
|
61
|
+
role: UserRole_Value;
|
|
61
62
|
totalEntries: number;
|
|
62
63
|
firstEntry: string;
|
|
63
64
|
latestEntry: string;
|
|
@@ -113,7 +114,7 @@ export interface K10ByRoleRequest {
|
|
|
113
114
|
to: string;
|
|
114
115
|
}
|
|
115
116
|
export interface K10ByRoleEntry {
|
|
116
|
-
role:
|
|
117
|
+
role: UserRole_Value;
|
|
117
118
|
totalAssessments: number;
|
|
118
119
|
uniqueUsers: number;
|
|
119
120
|
avgScore: number;
|
|
@@ -136,7 +137,7 @@ export interface K10UserProgressEntry {
|
|
|
136
137
|
userId: string;
|
|
137
138
|
username: string;
|
|
138
139
|
fullName: string;
|
|
139
|
-
role:
|
|
140
|
+
role: UserRole_Value;
|
|
140
141
|
totalAssessments: number;
|
|
141
142
|
bestScore: number;
|
|
142
143
|
worstScore: number;
|
|
@@ -229,7 +230,7 @@ export interface CallParticipationEntry {
|
|
|
229
230
|
userId: string;
|
|
230
231
|
username: string;
|
|
231
232
|
fullName: string;
|
|
232
|
-
role:
|
|
233
|
+
role: UserRole_Value;
|
|
233
234
|
callsParticipated: number;
|
|
234
235
|
totalDurationSeconds: number;
|
|
235
236
|
avgDurationSeconds: number;
|
|
@@ -281,7 +282,7 @@ export interface UserEngagementScoreEntry {
|
|
|
281
282
|
userId: string;
|
|
282
283
|
username: string;
|
|
283
284
|
fullName: string;
|
|
284
|
-
role:
|
|
285
|
+
role: UserRole_Value;
|
|
285
286
|
joinedAt: string;
|
|
286
287
|
engagementScore: number;
|
|
287
288
|
postsCount: number;
|
|
@@ -383,7 +384,7 @@ export interface TopJournalersEntry {
|
|
|
383
384
|
userId: string;
|
|
384
385
|
username: string;
|
|
385
386
|
fullName: string;
|
|
386
|
-
role:
|
|
387
|
+
role: UserRole_Value;
|
|
387
388
|
journalCount: number;
|
|
388
389
|
avgLength: number;
|
|
389
390
|
firstJournal: string;
|
package/dist/admin/analytics.js
CHANGED
|
@@ -10,6 +10,7 @@ exports.TopJournalersResponse = exports.TopJournalersEntry = exports.TopJournale
|
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
12
12
|
const enum_1 = require("../call/enum");
|
|
13
|
+
const enums_1 = require("../enums");
|
|
13
14
|
const message_1 = require("./message");
|
|
14
15
|
exports.protobufPackage = "pb";
|
|
15
16
|
function createBaseMoodTrendsRequest() {
|
|
@@ -354,12 +355,12 @@ exports.MoodDistributionByRoleRequest = {
|
|
|
354
355
|
},
|
|
355
356
|
};
|
|
356
357
|
function createBaseMoodDistributionByRoleEntry() {
|
|
357
|
-
return { role:
|
|
358
|
+
return { role: 0, moodName: "", moodSlug: "", moodEmoji: "", count: 0, uniqueUsers: 0 };
|
|
358
359
|
}
|
|
359
360
|
exports.MoodDistributionByRoleEntry = {
|
|
360
361
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
361
|
-
if (message.role !==
|
|
362
|
-
writer.uint32(
|
|
362
|
+
if (message.role !== 0) {
|
|
363
|
+
writer.uint32(8).int32(message.role);
|
|
363
364
|
}
|
|
364
365
|
if (message.moodName !== "") {
|
|
365
366
|
writer.uint32(18).string(message.moodName);
|
|
@@ -386,10 +387,10 @@ exports.MoodDistributionByRoleEntry = {
|
|
|
386
387
|
const tag = reader.uint32();
|
|
387
388
|
switch (tag >>> 3) {
|
|
388
389
|
case 1: {
|
|
389
|
-
if (tag !==
|
|
390
|
+
if (tag !== 8) {
|
|
390
391
|
break;
|
|
391
392
|
}
|
|
392
|
-
message.role = reader.
|
|
393
|
+
message.role = reader.int32();
|
|
393
394
|
continue;
|
|
394
395
|
}
|
|
395
396
|
case 2: {
|
|
@@ -437,7 +438,7 @@ exports.MoodDistributionByRoleEntry = {
|
|
|
437
438
|
},
|
|
438
439
|
fromJSON(object) {
|
|
439
440
|
return {
|
|
440
|
-
role: isSet(object.role) ?
|
|
441
|
+
role: isSet(object.role) ? (0, enums_1.userRole_ValueFromJSON)(object.role) : 0,
|
|
441
442
|
moodName: isSet(object.moodName) ? globalThis.String(object.moodName) : "",
|
|
442
443
|
moodSlug: isSet(object.moodSlug) ? globalThis.String(object.moodSlug) : "",
|
|
443
444
|
moodEmoji: isSet(object.moodEmoji) ? globalThis.String(object.moodEmoji) : "",
|
|
@@ -447,8 +448,8 @@ exports.MoodDistributionByRoleEntry = {
|
|
|
447
448
|
},
|
|
448
449
|
toJSON(message) {
|
|
449
450
|
const obj = {};
|
|
450
|
-
if (message.role !==
|
|
451
|
-
obj.role = message.role;
|
|
451
|
+
if (message.role !== 0) {
|
|
452
|
+
obj.role = (0, enums_1.userRole_ValueToJSON)(message.role);
|
|
452
453
|
}
|
|
453
454
|
if (message.moodName !== "") {
|
|
454
455
|
obj.moodName = message.moodName;
|
|
@@ -473,7 +474,7 @@ exports.MoodDistributionByRoleEntry = {
|
|
|
473
474
|
fromPartial(object) {
|
|
474
475
|
var _a, _b, _c, _d, _e, _f;
|
|
475
476
|
const message = createBaseMoodDistributionByRoleEntry();
|
|
476
|
-
message.role = (_a = object.role) !== null && _a !== void 0 ? _a :
|
|
477
|
+
message.role = (_a = object.role) !== null && _a !== void 0 ? _a : 0;
|
|
477
478
|
message.moodName = (_b = object.moodName) !== null && _b !== void 0 ? _b : "";
|
|
478
479
|
message.moodSlug = (_c = object.moodSlug) !== null && _c !== void 0 ? _c : "";
|
|
479
480
|
message.moodEmoji = (_d = object.moodEmoji) !== null && _d !== void 0 ? _d : "";
|
|
@@ -883,7 +884,7 @@ function createBaseMoodUserEngagementEntry() {
|
|
|
883
884
|
userId: "",
|
|
884
885
|
username: "",
|
|
885
886
|
fullName: "",
|
|
886
|
-
role:
|
|
887
|
+
role: 0,
|
|
887
888
|
totalEntries: 0,
|
|
888
889
|
firstEntry: "",
|
|
889
890
|
latestEntry: "",
|
|
@@ -902,8 +903,8 @@ exports.MoodUserEngagementEntry = {
|
|
|
902
903
|
if (message.fullName !== "") {
|
|
903
904
|
writer.uint32(26).string(message.fullName);
|
|
904
905
|
}
|
|
905
|
-
if (message.role !==
|
|
906
|
-
writer.uint32(
|
|
906
|
+
if (message.role !== 0) {
|
|
907
|
+
writer.uint32(32).int32(message.role);
|
|
907
908
|
}
|
|
908
909
|
if (message.totalEntries !== 0) {
|
|
909
910
|
writer.uint32(40).int64(message.totalEntries);
|
|
@@ -951,10 +952,10 @@ exports.MoodUserEngagementEntry = {
|
|
|
951
952
|
continue;
|
|
952
953
|
}
|
|
953
954
|
case 4: {
|
|
954
|
-
if (tag !==
|
|
955
|
+
if (tag !== 32) {
|
|
955
956
|
break;
|
|
956
957
|
}
|
|
957
|
-
message.role = reader.
|
|
958
|
+
message.role = reader.int32();
|
|
958
959
|
continue;
|
|
959
960
|
}
|
|
960
961
|
case 5: {
|
|
@@ -1005,7 +1006,7 @@ exports.MoodUserEngagementEntry = {
|
|
|
1005
1006
|
userId: isSet(object.userId) ? globalThis.String(object.userId) : "",
|
|
1006
1007
|
username: isSet(object.username) ? globalThis.String(object.username) : "",
|
|
1007
1008
|
fullName: isSet(object.fullName) ? globalThis.String(object.fullName) : "",
|
|
1008
|
-
role: isSet(object.role) ?
|
|
1009
|
+
role: isSet(object.role) ? (0, enums_1.userRole_ValueFromJSON)(object.role) : 0,
|
|
1009
1010
|
totalEntries: isSet(object.totalEntries) ? globalThis.Number(object.totalEntries) : 0,
|
|
1010
1011
|
firstEntry: isSet(object.firstEntry) ? globalThis.String(object.firstEntry) : "",
|
|
1011
1012
|
latestEntry: isSet(object.latestEntry) ? globalThis.String(object.latestEntry) : "",
|
|
@@ -1024,8 +1025,8 @@ exports.MoodUserEngagementEntry = {
|
|
|
1024
1025
|
if (message.fullName !== "") {
|
|
1025
1026
|
obj.fullName = message.fullName;
|
|
1026
1027
|
}
|
|
1027
|
-
if (message.role !==
|
|
1028
|
-
obj.role = message.role;
|
|
1028
|
+
if (message.role !== 0) {
|
|
1029
|
+
obj.role = (0, enums_1.userRole_ValueToJSON)(message.role);
|
|
1029
1030
|
}
|
|
1030
1031
|
if (message.totalEntries !== 0) {
|
|
1031
1032
|
obj.totalEntries = Math.round(message.totalEntries);
|
|
@@ -1053,7 +1054,7 @@ exports.MoodUserEngagementEntry = {
|
|
|
1053
1054
|
message.userId = (_a = object.userId) !== null && _a !== void 0 ? _a : "";
|
|
1054
1055
|
message.username = (_b = object.username) !== null && _b !== void 0 ? _b : "";
|
|
1055
1056
|
message.fullName = (_c = object.fullName) !== null && _c !== void 0 ? _c : "";
|
|
1056
|
-
message.role = (_d = object.role) !== null && _d !== void 0 ? _d :
|
|
1057
|
+
message.role = (_d = object.role) !== null && _d !== void 0 ? _d : 0;
|
|
1057
1058
|
message.totalEntries = (_e = object.totalEntries) !== null && _e !== void 0 ? _e : 0;
|
|
1058
1059
|
message.firstEntry = (_f = object.firstEntry) !== null && _f !== void 0 ? _f : "";
|
|
1059
1060
|
message.latestEntry = (_g = object.latestEntry) !== null && _g !== void 0 ? _g : "";
|
|
@@ -1883,7 +1884,7 @@ exports.K10ByRoleRequest = {
|
|
|
1883
1884
|
};
|
|
1884
1885
|
function createBaseK10ByRoleEntry() {
|
|
1885
1886
|
return {
|
|
1886
|
-
role:
|
|
1887
|
+
role: 0,
|
|
1887
1888
|
totalAssessments: 0,
|
|
1888
1889
|
uniqueUsers: 0,
|
|
1889
1890
|
avgScore: 0,
|
|
@@ -1895,8 +1896,8 @@ function createBaseK10ByRoleEntry() {
|
|
|
1895
1896
|
}
|
|
1896
1897
|
exports.K10ByRoleEntry = {
|
|
1897
1898
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1898
|
-
if (message.role !==
|
|
1899
|
-
writer.uint32(
|
|
1899
|
+
if (message.role !== 0) {
|
|
1900
|
+
writer.uint32(8).int32(message.role);
|
|
1900
1901
|
}
|
|
1901
1902
|
if (message.totalAssessments !== 0) {
|
|
1902
1903
|
writer.uint32(16).int64(message.totalAssessments);
|
|
@@ -1929,10 +1930,10 @@ exports.K10ByRoleEntry = {
|
|
|
1929
1930
|
const tag = reader.uint32();
|
|
1930
1931
|
switch (tag >>> 3) {
|
|
1931
1932
|
case 1: {
|
|
1932
|
-
if (tag !==
|
|
1933
|
+
if (tag !== 8) {
|
|
1933
1934
|
break;
|
|
1934
1935
|
}
|
|
1935
|
-
message.role = reader.
|
|
1936
|
+
message.role = reader.int32();
|
|
1936
1937
|
continue;
|
|
1937
1938
|
}
|
|
1938
1939
|
case 2: {
|
|
@@ -1994,7 +1995,7 @@ exports.K10ByRoleEntry = {
|
|
|
1994
1995
|
},
|
|
1995
1996
|
fromJSON(object) {
|
|
1996
1997
|
return {
|
|
1997
|
-
role: isSet(object.role) ?
|
|
1998
|
+
role: isSet(object.role) ? (0, enums_1.userRole_ValueFromJSON)(object.role) : 0,
|
|
1998
1999
|
totalAssessments: isSet(object.totalAssessments) ? globalThis.Number(object.totalAssessments) : 0,
|
|
1999
2000
|
uniqueUsers: isSet(object.uniqueUsers) ? globalThis.Number(object.uniqueUsers) : 0,
|
|
2000
2001
|
avgScore: isSet(object.avgScore) ? globalThis.Number(object.avgScore) : 0,
|
|
@@ -2006,8 +2007,8 @@ exports.K10ByRoleEntry = {
|
|
|
2006
2007
|
},
|
|
2007
2008
|
toJSON(message) {
|
|
2008
2009
|
const obj = {};
|
|
2009
|
-
if (message.role !==
|
|
2010
|
-
obj.role = message.role;
|
|
2010
|
+
if (message.role !== 0) {
|
|
2011
|
+
obj.role = (0, enums_1.userRole_ValueToJSON)(message.role);
|
|
2011
2012
|
}
|
|
2012
2013
|
if (message.totalAssessments !== 0) {
|
|
2013
2014
|
obj.totalAssessments = Math.round(message.totalAssessments);
|
|
@@ -2038,7 +2039,7 @@ exports.K10ByRoleEntry = {
|
|
|
2038
2039
|
fromPartial(object) {
|
|
2039
2040
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
2040
2041
|
const message = createBaseK10ByRoleEntry();
|
|
2041
|
-
message.role = (_a = object.role) !== null && _a !== void 0 ? _a :
|
|
2042
|
+
message.role = (_a = object.role) !== null && _a !== void 0 ? _a : 0;
|
|
2042
2043
|
message.totalAssessments = (_b = object.totalAssessments) !== null && _b !== void 0 ? _b : 0;
|
|
2043
2044
|
message.uniqueUsers = (_c = object.uniqueUsers) !== null && _c !== void 0 ? _c : 0;
|
|
2044
2045
|
message.avgScore = (_d = object.avgScore) !== null && _d !== void 0 ? _d : 0;
|
|
@@ -2227,7 +2228,7 @@ function createBaseK10UserProgressEntry() {
|
|
|
2227
2228
|
userId: "",
|
|
2228
2229
|
username: "",
|
|
2229
2230
|
fullName: "",
|
|
2230
|
-
role:
|
|
2231
|
+
role: 0,
|
|
2231
2232
|
totalAssessments: 0,
|
|
2232
2233
|
bestScore: 0,
|
|
2233
2234
|
worstScore: 0,
|
|
@@ -2248,8 +2249,8 @@ exports.K10UserProgressEntry = {
|
|
|
2248
2249
|
if (message.fullName !== "") {
|
|
2249
2250
|
writer.uint32(26).string(message.fullName);
|
|
2250
2251
|
}
|
|
2251
|
-
if (message.role !==
|
|
2252
|
-
writer.uint32(
|
|
2252
|
+
if (message.role !== 0) {
|
|
2253
|
+
writer.uint32(32).int32(message.role);
|
|
2253
2254
|
}
|
|
2254
2255
|
if (message.totalAssessments !== 0) {
|
|
2255
2256
|
writer.uint32(40).int64(message.totalAssessments);
|
|
@@ -2303,10 +2304,10 @@ exports.K10UserProgressEntry = {
|
|
|
2303
2304
|
continue;
|
|
2304
2305
|
}
|
|
2305
2306
|
case 4: {
|
|
2306
|
-
if (tag !==
|
|
2307
|
+
if (tag !== 32) {
|
|
2307
2308
|
break;
|
|
2308
2309
|
}
|
|
2309
|
-
message.role = reader.
|
|
2310
|
+
message.role = reader.int32();
|
|
2310
2311
|
continue;
|
|
2311
2312
|
}
|
|
2312
2313
|
case 5: {
|
|
@@ -2371,7 +2372,7 @@ exports.K10UserProgressEntry = {
|
|
|
2371
2372
|
userId: isSet(object.userId) ? globalThis.String(object.userId) : "",
|
|
2372
2373
|
username: isSet(object.username) ? globalThis.String(object.username) : "",
|
|
2373
2374
|
fullName: isSet(object.fullName) ? globalThis.String(object.fullName) : "",
|
|
2374
|
-
role: isSet(object.role) ?
|
|
2375
|
+
role: isSet(object.role) ? (0, enums_1.userRole_ValueFromJSON)(object.role) : 0,
|
|
2375
2376
|
totalAssessments: isSet(object.totalAssessments) ? globalThis.Number(object.totalAssessments) : 0,
|
|
2376
2377
|
bestScore: isSet(object.bestScore) ? globalThis.Number(object.bestScore) : 0,
|
|
2377
2378
|
worstScore: isSet(object.worstScore) ? globalThis.Number(object.worstScore) : 0,
|
|
@@ -2392,8 +2393,8 @@ exports.K10UserProgressEntry = {
|
|
|
2392
2393
|
if (message.fullName !== "") {
|
|
2393
2394
|
obj.fullName = message.fullName;
|
|
2394
2395
|
}
|
|
2395
|
-
if (message.role !==
|
|
2396
|
-
obj.role = message.role;
|
|
2396
|
+
if (message.role !== 0) {
|
|
2397
|
+
obj.role = (0, enums_1.userRole_ValueToJSON)(message.role);
|
|
2397
2398
|
}
|
|
2398
2399
|
if (message.totalAssessments !== 0) {
|
|
2399
2400
|
obj.totalAssessments = Math.round(message.totalAssessments);
|
|
@@ -2427,7 +2428,7 @@ exports.K10UserProgressEntry = {
|
|
|
2427
2428
|
message.userId = (_a = object.userId) !== null && _a !== void 0 ? _a : "";
|
|
2428
2429
|
message.username = (_b = object.username) !== null && _b !== void 0 ? _b : "";
|
|
2429
2430
|
message.fullName = (_c = object.fullName) !== null && _c !== void 0 ? _c : "";
|
|
2430
|
-
message.role = (_d = object.role) !== null && _d !== void 0 ? _d :
|
|
2431
|
+
message.role = (_d = object.role) !== null && _d !== void 0 ? _d : 0;
|
|
2431
2432
|
message.totalAssessments = (_e = object.totalAssessments) !== null && _e !== void 0 ? _e : 0;
|
|
2432
2433
|
message.bestScore = (_f = object.bestScore) !== null && _f !== void 0 ? _f : 0;
|
|
2433
2434
|
message.worstScore = (_g = object.worstScore) !== null && _g !== void 0 ? _g : 0;
|
|
@@ -3814,7 +3815,7 @@ function createBaseCallParticipationEntry() {
|
|
|
3814
3815
|
userId: "",
|
|
3815
3816
|
username: "",
|
|
3816
3817
|
fullName: "",
|
|
3817
|
-
role:
|
|
3818
|
+
role: 0,
|
|
3818
3819
|
callsParticipated: 0,
|
|
3819
3820
|
totalDurationSeconds: 0,
|
|
3820
3821
|
avgDurationSeconds: 0,
|
|
@@ -3834,8 +3835,8 @@ exports.CallParticipationEntry = {
|
|
|
3834
3835
|
if (message.fullName !== "") {
|
|
3835
3836
|
writer.uint32(26).string(message.fullName);
|
|
3836
3837
|
}
|
|
3837
|
-
if (message.role !==
|
|
3838
|
-
writer.uint32(
|
|
3838
|
+
if (message.role !== 0) {
|
|
3839
|
+
writer.uint32(32).int32(message.role);
|
|
3839
3840
|
}
|
|
3840
3841
|
if (message.callsParticipated !== 0) {
|
|
3841
3842
|
writer.uint32(40).int64(message.callsParticipated);
|
|
@@ -3886,10 +3887,10 @@ exports.CallParticipationEntry = {
|
|
|
3886
3887
|
continue;
|
|
3887
3888
|
}
|
|
3888
3889
|
case 4: {
|
|
3889
|
-
if (tag !==
|
|
3890
|
+
if (tag !== 32) {
|
|
3890
3891
|
break;
|
|
3891
3892
|
}
|
|
3892
|
-
message.role = reader.
|
|
3893
|
+
message.role = reader.int32();
|
|
3893
3894
|
continue;
|
|
3894
3895
|
}
|
|
3895
3896
|
case 5: {
|
|
@@ -3947,7 +3948,7 @@ exports.CallParticipationEntry = {
|
|
|
3947
3948
|
userId: isSet(object.userId) ? globalThis.String(object.userId) : "",
|
|
3948
3949
|
username: isSet(object.username) ? globalThis.String(object.username) : "",
|
|
3949
3950
|
fullName: isSet(object.fullName) ? globalThis.String(object.fullName) : "",
|
|
3950
|
-
role: isSet(object.role) ?
|
|
3951
|
+
role: isSet(object.role) ? (0, enums_1.userRole_ValueFromJSON)(object.role) : 0,
|
|
3951
3952
|
callsParticipated: isSet(object.callsParticipated) ? globalThis.Number(object.callsParticipated) : 0,
|
|
3952
3953
|
totalDurationSeconds: isSet(object.totalDurationSeconds) ? globalThis.Number(object.totalDurationSeconds) : 0,
|
|
3953
3954
|
avgDurationSeconds: isSet(object.avgDurationSeconds) ? globalThis.Number(object.avgDurationSeconds) : 0,
|
|
@@ -3967,8 +3968,8 @@ exports.CallParticipationEntry = {
|
|
|
3967
3968
|
if (message.fullName !== "") {
|
|
3968
3969
|
obj.fullName = message.fullName;
|
|
3969
3970
|
}
|
|
3970
|
-
if (message.role !==
|
|
3971
|
-
obj.role = message.role;
|
|
3971
|
+
if (message.role !== 0) {
|
|
3972
|
+
obj.role = (0, enums_1.userRole_ValueToJSON)(message.role);
|
|
3972
3973
|
}
|
|
3973
3974
|
if (message.callsParticipated !== 0) {
|
|
3974
3975
|
obj.callsParticipated = Math.round(message.callsParticipated);
|
|
@@ -3999,7 +4000,7 @@ exports.CallParticipationEntry = {
|
|
|
3999
4000
|
message.userId = (_a = object.userId) !== null && _a !== void 0 ? _a : "";
|
|
4000
4001
|
message.username = (_b = object.username) !== null && _b !== void 0 ? _b : "";
|
|
4001
4002
|
message.fullName = (_c = object.fullName) !== null && _c !== void 0 ? _c : "";
|
|
4002
|
-
message.role = (_d = object.role) !== null && _d !== void 0 ? _d :
|
|
4003
|
+
message.role = (_d = object.role) !== null && _d !== void 0 ? _d : 0;
|
|
4003
4004
|
message.callsParticipated = (_e = object.callsParticipated) !== null && _e !== void 0 ? _e : 0;
|
|
4004
4005
|
message.totalDurationSeconds = (_f = object.totalDurationSeconds) !== null && _f !== void 0 ? _f : 0;
|
|
4005
4006
|
message.avgDurationSeconds = (_g = object.avgDurationSeconds) !== null && _g !== void 0 ? _g : 0;
|
|
@@ -4694,7 +4695,7 @@ function createBaseUserEngagementScoreEntry() {
|
|
|
4694
4695
|
userId: "",
|
|
4695
4696
|
username: "",
|
|
4696
4697
|
fullName: "",
|
|
4697
|
-
role:
|
|
4698
|
+
role: 0,
|
|
4698
4699
|
joinedAt: "",
|
|
4699
4700
|
engagementScore: 0,
|
|
4700
4701
|
postsCount: 0,
|
|
@@ -4715,8 +4716,8 @@ exports.UserEngagementScoreEntry = {
|
|
|
4715
4716
|
if (message.fullName !== "") {
|
|
4716
4717
|
writer.uint32(26).string(message.fullName);
|
|
4717
4718
|
}
|
|
4718
|
-
if (message.role !==
|
|
4719
|
-
writer.uint32(
|
|
4719
|
+
if (message.role !== 0) {
|
|
4720
|
+
writer.uint32(32).int32(message.role);
|
|
4720
4721
|
}
|
|
4721
4722
|
if (message.joinedAt !== "") {
|
|
4722
4723
|
writer.uint32(42).string(message.joinedAt);
|
|
@@ -4770,10 +4771,10 @@ exports.UserEngagementScoreEntry = {
|
|
|
4770
4771
|
continue;
|
|
4771
4772
|
}
|
|
4772
4773
|
case 4: {
|
|
4773
|
-
if (tag !==
|
|
4774
|
+
if (tag !== 32) {
|
|
4774
4775
|
break;
|
|
4775
4776
|
}
|
|
4776
|
-
message.role = reader.
|
|
4777
|
+
message.role = reader.int32();
|
|
4777
4778
|
continue;
|
|
4778
4779
|
}
|
|
4779
4780
|
case 5: {
|
|
@@ -4838,7 +4839,7 @@ exports.UserEngagementScoreEntry = {
|
|
|
4838
4839
|
userId: isSet(object.userId) ? globalThis.String(object.userId) : "",
|
|
4839
4840
|
username: isSet(object.username) ? globalThis.String(object.username) : "",
|
|
4840
4841
|
fullName: isSet(object.fullName) ? globalThis.String(object.fullName) : "",
|
|
4841
|
-
role: isSet(object.role) ?
|
|
4842
|
+
role: isSet(object.role) ? (0, enums_1.userRole_ValueFromJSON)(object.role) : 0,
|
|
4842
4843
|
joinedAt: isSet(object.joinedAt) ? globalThis.String(object.joinedAt) : "",
|
|
4843
4844
|
engagementScore: isSet(object.engagementScore) ? globalThis.Number(object.engagementScore) : 0,
|
|
4844
4845
|
postsCount: isSet(object.postsCount) ? globalThis.Number(object.postsCount) : 0,
|
|
@@ -4859,8 +4860,8 @@ exports.UserEngagementScoreEntry = {
|
|
|
4859
4860
|
if (message.fullName !== "") {
|
|
4860
4861
|
obj.fullName = message.fullName;
|
|
4861
4862
|
}
|
|
4862
|
-
if (message.role !==
|
|
4863
|
-
obj.role = message.role;
|
|
4863
|
+
if (message.role !== 0) {
|
|
4864
|
+
obj.role = (0, enums_1.userRole_ValueToJSON)(message.role);
|
|
4864
4865
|
}
|
|
4865
4866
|
if (message.joinedAt !== "") {
|
|
4866
4867
|
obj.joinedAt = message.joinedAt;
|
|
@@ -4894,7 +4895,7 @@ exports.UserEngagementScoreEntry = {
|
|
|
4894
4895
|
message.userId = (_a = object.userId) !== null && _a !== void 0 ? _a : "";
|
|
4895
4896
|
message.username = (_b = object.username) !== null && _b !== void 0 ? _b : "";
|
|
4896
4897
|
message.fullName = (_c = object.fullName) !== null && _c !== void 0 ? _c : "";
|
|
4897
|
-
message.role = (_d = object.role) !== null && _d !== void 0 ? _d :
|
|
4898
|
+
message.role = (_d = object.role) !== null && _d !== void 0 ? _d : 0;
|
|
4898
4899
|
message.joinedAt = (_e = object.joinedAt) !== null && _e !== void 0 ? _e : "";
|
|
4899
4900
|
message.engagementScore = (_f = object.engagementScore) !== null && _f !== void 0 ? _f : 0;
|
|
4900
4901
|
message.postsCount = (_g = object.postsCount) !== null && _g !== void 0 ? _g : 0;
|
|
@@ -6433,7 +6434,7 @@ function createBaseTopJournalersEntry() {
|
|
|
6433
6434
|
userId: "",
|
|
6434
6435
|
username: "",
|
|
6435
6436
|
fullName: "",
|
|
6436
|
-
role:
|
|
6437
|
+
role: 0,
|
|
6437
6438
|
journalCount: 0,
|
|
6438
6439
|
avgLength: 0,
|
|
6439
6440
|
firstJournal: "",
|
|
@@ -6451,8 +6452,8 @@ exports.TopJournalersEntry = {
|
|
|
6451
6452
|
if (message.fullName !== "") {
|
|
6452
6453
|
writer.uint32(26).string(message.fullName);
|
|
6453
6454
|
}
|
|
6454
|
-
if (message.role !==
|
|
6455
|
-
writer.uint32(
|
|
6455
|
+
if (message.role !== 0) {
|
|
6456
|
+
writer.uint32(32).int32(message.role);
|
|
6456
6457
|
}
|
|
6457
6458
|
if (message.journalCount !== 0) {
|
|
6458
6459
|
writer.uint32(40).int64(message.journalCount);
|
|
@@ -6497,10 +6498,10 @@ exports.TopJournalersEntry = {
|
|
|
6497
6498
|
continue;
|
|
6498
6499
|
}
|
|
6499
6500
|
case 4: {
|
|
6500
|
-
if (tag !==
|
|
6501
|
+
if (tag !== 32) {
|
|
6501
6502
|
break;
|
|
6502
6503
|
}
|
|
6503
|
-
message.role = reader.
|
|
6504
|
+
message.role = reader.int32();
|
|
6504
6505
|
continue;
|
|
6505
6506
|
}
|
|
6506
6507
|
case 5: {
|
|
@@ -6544,7 +6545,7 @@ exports.TopJournalersEntry = {
|
|
|
6544
6545
|
userId: isSet(object.userId) ? globalThis.String(object.userId) : "",
|
|
6545
6546
|
username: isSet(object.username) ? globalThis.String(object.username) : "",
|
|
6546
6547
|
fullName: isSet(object.fullName) ? globalThis.String(object.fullName) : "",
|
|
6547
|
-
role: isSet(object.role) ?
|
|
6548
|
+
role: isSet(object.role) ? (0, enums_1.userRole_ValueFromJSON)(object.role) : 0,
|
|
6548
6549
|
journalCount: isSet(object.journalCount) ? globalThis.Number(object.journalCount) : 0,
|
|
6549
6550
|
avgLength: isSet(object.avgLength) ? globalThis.Number(object.avgLength) : 0,
|
|
6550
6551
|
firstJournal: isSet(object.firstJournal) ? globalThis.String(object.firstJournal) : "",
|
|
@@ -6562,8 +6563,8 @@ exports.TopJournalersEntry = {
|
|
|
6562
6563
|
if (message.fullName !== "") {
|
|
6563
6564
|
obj.fullName = message.fullName;
|
|
6564
6565
|
}
|
|
6565
|
-
if (message.role !==
|
|
6566
|
-
obj.role = message.role;
|
|
6566
|
+
if (message.role !== 0) {
|
|
6567
|
+
obj.role = (0, enums_1.userRole_ValueToJSON)(message.role);
|
|
6567
6568
|
}
|
|
6568
6569
|
if (message.journalCount !== 0) {
|
|
6569
6570
|
obj.journalCount = Math.round(message.journalCount);
|
|
@@ -6588,7 +6589,7 @@ exports.TopJournalersEntry = {
|
|
|
6588
6589
|
message.userId = (_a = object.userId) !== null && _a !== void 0 ? _a : "";
|
|
6589
6590
|
message.username = (_b = object.username) !== null && _b !== void 0 ? _b : "";
|
|
6590
6591
|
message.fullName = (_c = object.fullName) !== null && _c !== void 0 ? _c : "";
|
|
6591
|
-
message.role = (_d = object.role) !== null && _d !== void 0 ? _d :
|
|
6592
|
+
message.role = (_d = object.role) !== null && _d !== void 0 ? _d : 0;
|
|
6592
6593
|
message.journalCount = (_e = object.journalCount) !== null && _e !== void 0 ? _e : 0;
|
|
6593
6594
|
message.avgLength = (_f = object.avgLength) !== null && _f !== void 0 ? _f : 0;
|
|
6594
6595
|
message.firstJournal = (_g = object.firstJournal) !== null && _g !== void 0 ? _g : "";
|