@streamlayer/sl-eslib 5.88.2 → 5.89.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamlayer/sl-eslib",
3
- "version": "5.88.2",
3
+ "version": "5.89.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -8,6 +8,26 @@ import { Message, proto3 } from "@bufbuild/protobuf";
8
8
  import type { Period, TopicType } from "../../v1/common/analytics.common_pb.js";
9
9
  import type { CardStatistics } from "../common/analytics.common_pb.js";
10
10
 
11
+ /**
12
+ * @generated from enum streamlayer.analytics.v2.studio.WpType
13
+ */
14
+ export declare enum WpType {
15
+ /**
16
+ * @generated from enum value: WP_TYPE_UNSET = 0;
17
+ */
18
+ UNSET = 0,
19
+
20
+ /**
21
+ * @generated from enum value: WP_TYPE_WP = 1;
22
+ */
23
+ WP = 1,
24
+
25
+ /**
26
+ * @generated from enum value: WP_TYPE_FWP = 2;
27
+ */
28
+ FWP = 2,
29
+ }
30
+
11
31
  /**
12
32
  * @generated from enum streamlayer.analytics.v2.studio.AggPeriod
13
33
  */
@@ -116,7 +136,7 @@ export declare class DashboardOverviewResponseData extends Message<DashboardOver
116
136
  interactionsPerEngagedUser: number;
117
137
 
118
138
  /**
119
- * WP metrics
139
+ * WP/FWP metrics
120
140
  *
121
141
  * Total Watch Parties Started (EMetric.TotalWpStarted)
122
142
  *
@@ -231,105 +251,6 @@ export declare class DashboardOverviewResponseData extends Message<DashboardOver
231
251
  */
232
252
  totalUsersStartedWp: number;
233
253
 
234
- /**
235
- * FWP metrics
236
- *
237
- * Total Users Engaged with FWP chat (w/o using consecutive Sessions)
238
- *
239
- * @generated from field: int32 total_fwp_chat_participants = 30;
240
- */
241
- totalFwpChatParticipants: number;
242
-
243
- /**
244
- * --- FWP room (chat + WP) ---
245
- *
246
- * [28. Total time spent in Fantasy League Rooms (h)] (totalTimeSpentInFantasyRooms)
247
- *
248
- * @generated from field: int32 total_users_engaged_with_fwp_room = 31;
249
- */
250
- totalUsersEngagedWithFwpRoom: number;
251
-
252
- /**
253
- * [29. Average time spent in Fantasy League room per Viewer (min)] // Average Minutes at FWP2+ (active FWP) room
254
- *
255
- * @generated from field: double avg_active_fwp_room_session_duration = 32;
256
- */
257
- avgActiveFwpRoomSessionDuration: number;
258
-
259
- /**
260
- * --- FWP WP ---
261
- *
262
- * Total Fantasy Watch Parties Started
263
- *
264
- * @generated from field: int32 total_fwp_started = 33;
265
- */
266
- totalFwpStarted: number;
267
-
268
- /**
269
- * EMetric.TotalActiveFwps
270
- *
271
- * @generated from field: int32 active_fwps = 34;
272
- */
273
- activeFwps: number;
274
-
275
- /**
276
- * EMetric.TotalUsersEngagedWithFwp2plus
277
- *
278
- * @generated from field: int32 users_engaged_with_active_fwp = 35;
279
- */
280
- usersEngagedWithActiveFwp: number;
281
-
282
- /**
283
- * EMetric.AvgParticipantsFwp2plus
284
- *
285
- * @generated from field: double avg_users_active_fwp = 36;
286
- */
287
- avgUsersActiveFwp: number;
288
-
289
- /**
290
- * Total minutes in FWP 2+ with X Participants
291
- *
292
- * totalMinFwp2Users (EMetric.TotalMinInFwp2plus2participants)
293
- *
294
- * @generated from field: double total_min_fwp2_users = 37;
295
- */
296
- totalMinFwp2Users: number;
297
-
298
- /**
299
- * @generated from field: double total_min_fwp3_users = 38;
300
- */
301
- totalMinFwp3Users: number;
302
-
303
- /**
304
- * @generated from field: double total_min_fwp4_users = 39;
305
- */
306
- totalMinFwp4Users: number;
307
-
308
- /**
309
- * @generated from field: double total_min_fwp5_users = 40;
310
- */
311
- totalMinFwp5Users: number;
312
-
313
- /**
314
- * @generated from field: double total_min_fwp6_users = 41;
315
- */
316
- totalMinFwp6Users: number;
317
-
318
- /**
319
- * @generated from field: double total_min_fwp7_users = 42;
320
- */
321
- totalMinFwp7Users: number;
322
-
323
- /**
324
- * @generated from field: double total_min_fwp8_users = 43;
325
- */
326
- totalMinFwp8Users: number;
327
-
328
- /**
329
- * @generated from field: double total_min_fwp9_users = 44;
330
- */
331
- totalMinFwp9Users: number;
332
-
333
254
  constructor(data?: PartialMessage<DashboardOverviewResponseData>);
334
255
 
335
256
  static readonly runtime: typeof proto3;
@@ -350,9 +271,9 @@ export declare class DashboardOverviewResponseData extends Message<DashboardOver
350
271
  */
351
272
  export declare class DashboardOverviewRequestFilter extends Message<DashboardOverviewRequestFilter> {
352
273
  /**
353
- * @generated from field: string organization_id = 1;
274
+ * @generated from field: optional string organization_id = 1;
354
275
  */
355
- organizationId: string;
276
+ organizationId?: string;
356
277
 
357
278
  /**
358
279
  * @generated from field: repeated uint64 event_ids = 2;
@@ -365,9 +286,9 @@ export declare class DashboardOverviewRequestFilter extends Message<DashboardOve
365
286
  period?: Period;
366
287
 
367
288
  /**
368
- * @generated from field: string date = 4;
289
+ * @generated from field: optional string date = 4;
369
290
  */
370
- date: string;
291
+ date?: string;
371
292
 
372
293
  /**
373
294
  * @generated from field: repeated string countries = 5;
@@ -375,14 +296,20 @@ export declare class DashboardOverviewRequestFilter extends Message<DashboardOve
375
296
  countries: string[];
376
297
 
377
298
  /**
378
- * @generated from field: bool live_metrics = 6;
299
+ * @generated from field: optional bool live_metrics = 6;
379
300
  */
380
- liveMetrics: boolean;
301
+ liveMetrics?: boolean;
381
302
 
382
303
  /**
383
- * @generated from field: bool fwp = 7;
304
+ * @generated from field: optional bool fwp = 7 [deprecated = true];
305
+ * @deprecated
384
306
  */
385
- fwp: boolean;
307
+ fwp?: boolean;
308
+
309
+ /**
310
+ * @generated from field: optional streamlayer.analytics.v2.studio.WpType wp_type = 8;
311
+ */
312
+ wpType?: WpType;
386
313
 
387
314
  constructor(data?: PartialMessage<DashboardOverviewRequestFilter>);
388
315
 
@@ -476,9 +403,9 @@ export declare class DashboardOverviewResponse_DashboardOverviewResponseMeta ext
476
403
  */
477
404
  export declare class FeaturedGroupsRequestFilter extends Message<FeaturedGroupsRequestFilter> {
478
405
  /**
479
- * @generated from field: string organization_id = 1;
406
+ * @generated from field: optional string organization_id = 1;
480
407
  */
481
- organizationId: string;
408
+ organizationId?: string;
482
409
 
483
410
  /**
484
411
  * @generated from field: repeated uint64 event_ids = 2;
@@ -666,9 +593,9 @@ export declare class FeaturedGroupsResponse_FeaturedGroupsResponseMeta extends M
666
593
  */
667
594
  export declare class MetricsByTimeLineRequestFilter extends Message<MetricsByTimeLineRequestFilter> {
668
595
  /**
669
- * @generated from field: string organization_id = 1;
596
+ * @generated from field: optional string organization_id = 1;
670
597
  */
671
- organizationId: string;
598
+ organizationId?: string;
672
599
 
673
600
  /**
674
601
  * @generated from field: repeated uint64 event_ids = 2;
@@ -681,14 +608,14 @@ export declare class MetricsByTimeLineRequestFilter extends Message<MetricsByTim
681
608
  countries: string[];
682
609
 
683
610
  /**
684
- * @generated from field: streamlayer.analytics.v1.common.Period period = 4;
611
+ * @generated from field: optional streamlayer.analytics.v1.common.Period period = 4;
685
612
  */
686
613
  period?: Period;
687
614
 
688
615
  /**
689
- * @generated from field: string date = 5;
616
+ * @generated from field: optional string date = 5;
690
617
  */
691
- date: string;
618
+ date?: string;
692
619
 
693
620
  /**
694
621
  * @generated from field: streamlayer.analytics.v2.studio.AggPeriod agg_period = 6;
@@ -895,9 +822,9 @@ export declare class UsersByTimeLineRequest extends Message<UsersByTimeLineReque
895
822
  */
896
823
  export declare class PollsStatsByTimeLineRequestFilter extends Message<PollsStatsByTimeLineRequestFilter> {
897
824
  /**
898
- * @generated from field: string organization_id = 1;
825
+ * @generated from field: optional string organization_id = 1;
899
826
  */
900
- organizationId: string;
827
+ organizationId?: string;
901
828
 
902
829
  /**
903
830
  * @generated from field: uint64 event_id = 2;
@@ -910,7 +837,9 @@ export declare class PollsStatsByTimeLineRequestFilter extends Message<PollsStat
910
837
  countries: string[];
911
838
 
912
839
  /**
913
- * @generated from field: streamlayer.analytics.v1.common.Period period = 4;
840
+ * dafault now() - interval 1H
841
+ *
842
+ * @generated from field: optional streamlayer.analytics.v1.common.Period period = 4;
914
843
  */
915
844
  period?: Period;
916
845
 
@@ -920,9 +849,9 @@ export declare class PollsStatsByTimeLineRequestFilter extends Message<PollsStat
920
849
  aggPeriod: AggPeriod;
921
850
 
922
851
  /**
923
- * @generated from field: streamlayer.analytics.v1.common.TopicType topic_type = 6;
852
+ * @generated from field: optional streamlayer.analytics.v1.common.TopicType topic_type = 6;
924
853
  */
925
- topicType: TopicType;
854
+ topicType?: TopicType;
926
855
 
927
856
  constructor(data?: PartialMessage<PollsStatsByTimeLineRequestFilter>);
928
857
 
@@ -1323,9 +1252,9 @@ export declare class DeviceInteractionsByTimeLineResponse_DeviceInteractionsByTi
1323
1252
  */
1324
1253
  export declare class ListCountriesRequestFilter extends Message<ListCountriesRequestFilter> {
1325
1254
  /**
1326
- * @generated from field: string organization_id = 1;
1255
+ * @generated from field: optional string organization_id = 1;
1327
1256
  */
1328
- organizationId: string;
1257
+ organizationId?: string;
1329
1258
 
1330
1259
  constructor(data?: PartialMessage<ListCountriesRequestFilter>);
1331
1260
 
@@ -7,6 +7,18 @@ import { proto3 } from "@bufbuild/protobuf";
7
7
  import { Period, TopicType } from "../../v1/common/analytics.common_pb.js";
8
8
  import { CardStatistics } from "../common/analytics.common_pb.js";
9
9
 
10
+ /**
11
+ * @generated from enum streamlayer.analytics.v2.studio.WpType
12
+ */
13
+ export const WpType = proto3.makeEnum(
14
+ "streamlayer.analytics.v2.studio.WpType",
15
+ [
16
+ {no: 0, name: "WP_TYPE_UNSET", localName: "UNSET"},
17
+ {no: 1, name: "WP_TYPE_WP", localName: "WP"},
18
+ {no: 2, name: "WP_TYPE_FWP", localName: "FWP"},
19
+ ],
20
+ );
21
+
10
22
  /**
11
23
  * @generated from enum streamlayer.analytics.v2.studio.AggPeriod
12
24
  */
@@ -52,21 +64,6 @@ export const DashboardOverviewResponseData = proto3.makeMessageType(
52
64
  { no: 22, name: "total_min_wp8_users", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
53
65
  { no: 23, name: "total_min_wp9_users", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
54
66
  { no: 24, name: "total_users_started_wp", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
55
- { no: 30, name: "total_fwp_chat_participants", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
56
- { no: 31, name: "total_users_engaged_with_fwp_room", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
57
- { no: 32, name: "avg_active_fwp_room_session_duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
58
- { no: 33, name: "total_fwp_started", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
59
- { no: 34, name: "active_fwps", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
60
- { no: 35, name: "users_engaged_with_active_fwp", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
61
- { no: 36, name: "avg_users_active_fwp", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
62
- { no: 37, name: "total_min_fwp2_users", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
63
- { no: 38, name: "total_min_fwp3_users", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
64
- { no: 39, name: "total_min_fwp4_users", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
65
- { no: 40, name: "total_min_fwp5_users", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
66
- { no: 41, name: "total_min_fwp6_users", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
67
- { no: 42, name: "total_min_fwp7_users", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
68
- { no: 43, name: "total_min_fwp8_users", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
69
- { no: 44, name: "total_min_fwp9_users", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
70
67
  ],
71
68
  );
72
69
 
@@ -76,13 +73,14 @@ export const DashboardOverviewResponseData = proto3.makeMessageType(
76
73
  export const DashboardOverviewRequestFilter = proto3.makeMessageType(
77
74
  "streamlayer.analytics.v2.studio.DashboardOverviewRequestFilter",
78
75
  () => [
79
- { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
76
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
80
77
  { no: 2, name: "event_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true },
81
78
  { no: 3, name: "period", kind: "message", T: Period },
82
- { no: 4, name: "date", kind: "scalar", T: 9 /* ScalarType.STRING */ },
79
+ { no: 4, name: "date", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
83
80
  { no: 5, name: "countries", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
84
- { no: 6, name: "live_metrics", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
85
- { no: 7, name: "fwp", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
81
+ { no: 6, name: "live_metrics", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
82
+ { no: 7, name: "fwp", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
83
+ { no: 8, name: "wp_type", kind: "enum", T: proto3.getEnumType(WpType), opt: true },
86
84
  ],
87
85
  );
88
86
 
@@ -122,7 +120,7 @@ export const DashboardOverviewResponse_DashboardOverviewResponseMeta = proto3.ma
122
120
  export const FeaturedGroupsRequestFilter = proto3.makeMessageType(
123
121
  "streamlayer.analytics.v2.studio.FeaturedGroupsRequestFilter",
124
122
  () => [
125
- { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
123
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
126
124
  { no: 2, name: "event_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true },
127
125
  { no: 3, name: "period", kind: "message", T: Period },
128
126
  ],
@@ -186,11 +184,11 @@ export const FeaturedGroupsResponse_FeaturedGroupsResponseMeta = proto3.makeMess
186
184
  export const MetricsByTimeLineRequestFilter = proto3.makeMessageType(
187
185
  "streamlayer.analytics.v2.studio.MetricsByTimeLineRequestFilter",
188
186
  () => [
189
- { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
187
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
190
188
  { no: 2, name: "event_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true },
191
189
  { no: 3, name: "countries", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
192
- { no: 4, name: "period", kind: "message", T: Period },
193
- { no: 5, name: "date", kind: "scalar", T: 9 /* ScalarType.STRING */ },
190
+ { no: 4, name: "period", kind: "message", T: Period, opt: true },
191
+ { no: 5, name: "date", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
194
192
  { no: 6, name: "agg_period", kind: "enum", T: proto3.getEnumType(AggPeriod) },
195
193
  ],
196
194
  );
@@ -259,12 +257,12 @@ export const UsersByTimeLineRequest = proto3.makeMessageType(
259
257
  export const PollsStatsByTimeLineRequestFilter = proto3.makeMessageType(
260
258
  "streamlayer.analytics.v2.studio.PollsStatsByTimeLineRequestFilter",
261
259
  () => [
262
- { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
260
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
263
261
  { no: 2, name: "event_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
264
262
  { no: 3, name: "countries", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
265
- { no: 4, name: "period", kind: "message", T: Period },
263
+ { no: 4, name: "period", kind: "message", T: Period, opt: true },
266
264
  { no: 5, name: "agg_period", kind: "enum", T: proto3.getEnumType(AggPeriod) },
267
- { no: 6, name: "topic_type", kind: "enum", T: proto3.getEnumType(TopicType) },
265
+ { no: 6, name: "topic_type", kind: "enum", T: proto3.getEnumType(TopicType), opt: true },
268
266
  ],
269
267
  );
270
268
 
@@ -411,7 +409,7 @@ export const DeviceInteractionsByTimeLineResponse_DeviceInteractionsByTimeLineRe
411
409
  export const ListCountriesRequestFilter = proto3.makeMessageType(
412
410
  "streamlayer.analytics.v2.studio.ListCountriesRequestFilter",
413
411
  () => [
414
- { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
412
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
415
413
  ],
416
414
  );
417
415
 
@@ -1093,6 +1093,13 @@ export declare class StatsRequest_StatsRequestFilter extends Message<StatsReques
1093
1093
  */
1094
1094
  types: QuestionType[];
1095
1095
 
1096
+ /**
1097
+ * questions ids
1098
+ *
1099
+ * @generated from field: repeated string ids = 5;
1100
+ */
1101
+ ids: string[];
1102
+
1096
1103
  constructor(data?: PartialMessage<StatsRequest_StatsRequestFilter>);
1097
1104
 
1098
1105
  static readonly runtime: typeof proto3;
@@ -397,6 +397,7 @@ export const StatsRequest_StatsRequestFilter = proto3.makeMessageType(
397
397
  { no: 2, name: "status", kind: "enum", T: proto3.getEnumType(QuestionStatus) },
398
398
  { no: 3, name: "statuses", kind: "enum", T: proto3.getEnumType(QuestionStatus), repeated: true },
399
399
  { no: 4, name: "types", kind: "enum", T: proto3.getEnumType(QuestionType), repeated: true },
400
+ { no: 5, name: "ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
400
401
  ],
401
402
  {localName: "StatsRequest_StatsRequestFilter"},
402
403
  );