@openpeepshq/common 0.31.0 → 0.32.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/dist/types/analytics.d.ts +75 -0
- package/dist/types/analytics.js +16 -0
- package/package.json +1 -1
- package/src/types/analytics.ts +16 -0
|
@@ -258,6 +258,66 @@ export declare const analyticsOverviewSchema: z.ZodObject<{
|
|
|
258
258
|
value: z.ZodNumber;
|
|
259
259
|
}, z.core.$strip>>>;
|
|
260
260
|
}, z.core.$strip>;
|
|
261
|
+
jamSessions: z.ZodObject<{
|
|
262
|
+
key: z.ZodString;
|
|
263
|
+
value: z.ZodNumber;
|
|
264
|
+
previousValue: z.ZodNumber;
|
|
265
|
+
deltaPct: z.ZodNullable<z.ZodNumber>;
|
|
266
|
+
series: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
267
|
+
day: z.ZodString;
|
|
268
|
+
value: z.ZodNumber;
|
|
269
|
+
}, z.core.$strip>>>;
|
|
270
|
+
}, z.core.$strip>;
|
|
271
|
+
jamParticipants: z.ZodObject<{
|
|
272
|
+
key: z.ZodString;
|
|
273
|
+
value: z.ZodNumber;
|
|
274
|
+
previousValue: z.ZodNumber;
|
|
275
|
+
deltaPct: z.ZodNullable<z.ZodNumber>;
|
|
276
|
+
series: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
277
|
+
day: z.ZodString;
|
|
278
|
+
value: z.ZodNumber;
|
|
279
|
+
}, z.core.$strip>>>;
|
|
280
|
+
}, z.core.$strip>;
|
|
281
|
+
jamMinutes: z.ZodObject<{
|
|
282
|
+
key: z.ZodString;
|
|
283
|
+
value: z.ZodNumber;
|
|
284
|
+
previousValue: z.ZodNumber;
|
|
285
|
+
deltaPct: z.ZodNullable<z.ZodNumber>;
|
|
286
|
+
series: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
287
|
+
day: z.ZodString;
|
|
288
|
+
value: z.ZodNumber;
|
|
289
|
+
}, z.core.$strip>>>;
|
|
290
|
+
}, z.core.$strip>;
|
|
291
|
+
jamUniqueAttendees: z.ZodObject<{
|
|
292
|
+
key: z.ZodString;
|
|
293
|
+
value: z.ZodNumber;
|
|
294
|
+
previousValue: z.ZodNumber;
|
|
295
|
+
deltaPct: z.ZodNullable<z.ZodNumber>;
|
|
296
|
+
series: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
297
|
+
day: z.ZodString;
|
|
298
|
+
value: z.ZodNumber;
|
|
299
|
+
}, z.core.$strip>>>;
|
|
300
|
+
}, z.core.$strip>;
|
|
301
|
+
jamPeakConcurrent: z.ZodObject<{
|
|
302
|
+
key: z.ZodString;
|
|
303
|
+
value: z.ZodNumber;
|
|
304
|
+
previousValue: z.ZodNumber;
|
|
305
|
+
deltaPct: z.ZodNullable<z.ZodNumber>;
|
|
306
|
+
series: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
307
|
+
day: z.ZodString;
|
|
308
|
+
value: z.ZodNumber;
|
|
309
|
+
}, z.core.$strip>>>;
|
|
310
|
+
}, z.core.$strip>;
|
|
311
|
+
jamRecordings: z.ZodObject<{
|
|
312
|
+
key: z.ZodString;
|
|
313
|
+
value: z.ZodNumber;
|
|
314
|
+
previousValue: z.ZodNumber;
|
|
315
|
+
deltaPct: z.ZodNullable<z.ZodNumber>;
|
|
316
|
+
series: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
317
|
+
day: z.ZodString;
|
|
318
|
+
value: z.ZodNumber;
|
|
319
|
+
}, z.core.$strip>>>;
|
|
320
|
+
}, z.core.$strip>;
|
|
261
321
|
}, z.core.$strip>;
|
|
262
322
|
postsOverTime: z.ZodArray<z.ZodObject<{
|
|
263
323
|
day: z.ZodString;
|
|
@@ -285,6 +345,11 @@ export declare const analyticsOverviewSchema: z.ZodObject<{
|
|
|
285
345
|
label: z.ZodString;
|
|
286
346
|
value: z.ZodNumber;
|
|
287
347
|
}, z.core.$strip>>;
|
|
348
|
+
jamsOverTime: z.ZodArray<z.ZodObject<{
|
|
349
|
+
day: z.ZodString;
|
|
350
|
+
label: z.ZodString;
|
|
351
|
+
value: z.ZodNumber;
|
|
352
|
+
}, z.core.$strip>>;
|
|
288
353
|
topMembers: z.ZodArray<z.ZodObject<{
|
|
289
354
|
profileId: z.ZodString;
|
|
290
355
|
handle: z.ZodString;
|
|
@@ -401,6 +466,16 @@ export declare const analyticsGrowthSchema: z.ZodObject<{
|
|
|
401
466
|
value: z.ZodNumber;
|
|
402
467
|
}, z.core.$strip>>>;
|
|
403
468
|
}, z.core.$strip>;
|
|
469
|
+
jamMinutes: z.ZodObject<{
|
|
470
|
+
key: z.ZodString;
|
|
471
|
+
value: z.ZodNumber;
|
|
472
|
+
previousValue: z.ZodNumber;
|
|
473
|
+
deltaPct: z.ZodNullable<z.ZodNumber>;
|
|
474
|
+
series: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
475
|
+
day: z.ZodString;
|
|
476
|
+
value: z.ZodNumber;
|
|
477
|
+
}, z.core.$strip>>>;
|
|
478
|
+
}, z.core.$strip>;
|
|
404
479
|
}, z.core.$strip>;
|
|
405
480
|
signupsByDay: z.ZodArray<z.ZodObject<{
|
|
406
481
|
day: z.ZodString;
|
package/dist/types/analytics.js
CHANGED
|
@@ -142,10 +142,24 @@ export const analyticsOverviewSchema = z.object({
|
|
|
142
142
|
unverifiedMembers: analyticsMetricCardSchema,
|
|
143
143
|
activeMembers: analyticsMetricCardSchema,
|
|
144
144
|
totalGroups: analyticsMetricCardSchema,
|
|
145
|
+
/** Distinct (jam, occurrence) sessions started in the range. */
|
|
146
|
+
jamSessions: analyticsMetricCardSchema,
|
|
147
|
+
/** Distinct (member, jam) pairings from attended joins in the range. */
|
|
148
|
+
jamParticipants: analyticsMetricCardSchema,
|
|
149
|
+
/** Total minutes of jam sessions that started in the range. */
|
|
150
|
+
jamMinutes: analyticsMetricCardSchema,
|
|
151
|
+
/** Distinct members who joined at least one jam in the range. */
|
|
152
|
+
jamUniqueAttendees: analyticsMetricCardSchema,
|
|
153
|
+
/** Highest number of concurrent jam sessions overlapping in the range. */
|
|
154
|
+
jamPeakConcurrent: analyticsMetricCardSchema,
|
|
155
|
+
/** Jam recordings that reached "completed" in the range. */
|
|
156
|
+
jamRecordings: analyticsMetricCardSchema,
|
|
145
157
|
}),
|
|
146
158
|
postsOverTime: analyticsStackedPointSchema.array(),
|
|
147
159
|
postTypes: analyticsPostTypeCountSchema.array(),
|
|
148
160
|
activeUsersSeries: analyticsBucketedPointSchema.array(),
|
|
161
|
+
/** Jam sessions over time, bucketed like activeUsersSeries. */
|
|
162
|
+
jamsOverTime: analyticsBucketedPointSchema.array(),
|
|
149
163
|
topMembers: analyticsMemberRowSchema.array(),
|
|
150
164
|
topPosts: analyticsPostRowSchema.array(),
|
|
151
165
|
/** @deprecated kept for report/CSV compatibility */
|
|
@@ -163,6 +177,8 @@ export const analyticsGrowthSchema = z.object({
|
|
|
163
177
|
dau: analyticsMetricCardSchema,
|
|
164
178
|
mau: analyticsMetricCardSchema,
|
|
165
179
|
dauMau: analyticsMetricCardSchema,
|
|
180
|
+
/** Total minutes of jam sessions that started in the range. */
|
|
181
|
+
jamMinutes: analyticsMetricCardSchema,
|
|
166
182
|
}),
|
|
167
183
|
/** New-member counts for every day in the selected range. */
|
|
168
184
|
signupsByDay: analyticsDayHeatmapCellSchema.array(),
|
package/package.json
CHANGED
package/src/types/analytics.ts
CHANGED
|
@@ -189,10 +189,24 @@ export const analyticsOverviewSchema = z.object({
|
|
|
189
189
|
unverifiedMembers: analyticsMetricCardSchema,
|
|
190
190
|
activeMembers: analyticsMetricCardSchema,
|
|
191
191
|
totalGroups: analyticsMetricCardSchema,
|
|
192
|
+
/** Distinct (jam, occurrence) sessions started in the range. */
|
|
193
|
+
jamSessions: analyticsMetricCardSchema,
|
|
194
|
+
/** Distinct (member, jam) pairings from attended joins in the range. */
|
|
195
|
+
jamParticipants: analyticsMetricCardSchema,
|
|
196
|
+
/** Total minutes of jam sessions that started in the range. */
|
|
197
|
+
jamMinutes: analyticsMetricCardSchema,
|
|
198
|
+
/** Distinct members who joined at least one jam in the range. */
|
|
199
|
+
jamUniqueAttendees: analyticsMetricCardSchema,
|
|
200
|
+
/** Highest number of concurrent jam sessions overlapping in the range. */
|
|
201
|
+
jamPeakConcurrent: analyticsMetricCardSchema,
|
|
202
|
+
/** Jam recordings that reached "completed" in the range. */
|
|
203
|
+
jamRecordings: analyticsMetricCardSchema,
|
|
192
204
|
}),
|
|
193
205
|
postsOverTime: analyticsStackedPointSchema.array(),
|
|
194
206
|
postTypes: analyticsPostTypeCountSchema.array(),
|
|
195
207
|
activeUsersSeries: analyticsBucketedPointSchema.array(),
|
|
208
|
+
/** Jam sessions over time, bucketed like activeUsersSeries. */
|
|
209
|
+
jamsOverTime: analyticsBucketedPointSchema.array(),
|
|
196
210
|
topMembers: analyticsMemberRowSchema.array(),
|
|
197
211
|
topPosts: analyticsPostRowSchema.array(),
|
|
198
212
|
/** @deprecated kept for report/CSV compatibility */
|
|
@@ -212,6 +226,8 @@ export const analyticsGrowthSchema = z.object({
|
|
|
212
226
|
dau: analyticsMetricCardSchema,
|
|
213
227
|
mau: analyticsMetricCardSchema,
|
|
214
228
|
dauMau: analyticsMetricCardSchema,
|
|
229
|
+
/** Total minutes of jam sessions that started in the range. */
|
|
230
|
+
jamMinutes: analyticsMetricCardSchema,
|
|
215
231
|
}),
|
|
216
232
|
/** New-member counts for every day in the selected range. */
|
|
217
233
|
signupsByDay: analyticsDayHeatmapCellSchema.array(),
|