@sentry/junior-memory 0.194.0 → 0.196.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/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/api.ts +6 -4
package/dist/index.js
CHANGED
|
@@ -2112,11 +2112,11 @@ var memoryCostDaySchema = z5.object({
|
|
|
2112
2112
|
var memoryDashboardResponseSchema = z5.object({
|
|
2113
2113
|
days: z5.array(memoryDashboardDaySchema).length(90),
|
|
2114
2114
|
extractionDays: z5.array(memoryCostDaySchema).length(90),
|
|
2115
|
-
extractionHours: z5.array(memoryCostDaySchema).
|
|
2115
|
+
extractionHours: z5.array(memoryCostDaySchema).min(24).optional(),
|
|
2116
2116
|
generatedAt: z5.iso.datetime(),
|
|
2117
|
-
hours: z5.array(memoryDashboardDaySchema).
|
|
2117
|
+
hours: z5.array(memoryDashboardDaySchema).min(24).optional(),
|
|
2118
2118
|
recallDays: z5.array(memoryCostDaySchema).length(90),
|
|
2119
|
-
recallHours: z5.array(memoryCostDaySchema).
|
|
2119
|
+
recallHours: z5.array(memoryCostDaySchema).min(24).optional(),
|
|
2120
2120
|
stats: z5.object({
|
|
2121
2121
|
active: z5.number().int().min(0),
|
|
2122
2122
|
automatic: z5.number().int().min(0),
|
|
@@ -2195,20 +2195,22 @@ function createMemoryApi(options) {
|
|
|
2195
2195
|
] = await Promise.all([
|
|
2196
2196
|
getMemoryStats(options.db, userId),
|
|
2197
2197
|
getMemoryTimeline(options.db, userId, 90),
|
|
2198
|
-
getMemoryTimelineHours(options.db, userId, 24),
|
|
2198
|
+
getMemoryTimelineHours(options.db, userId, 7 * 24),
|
|
2199
2199
|
options.eventStats.costsByDay({
|
|
2200
2200
|
days: 90,
|
|
2201
2201
|
eventName: "memories_captured"
|
|
2202
2202
|
}),
|
|
2203
2203
|
options.eventStats.costsByHour({
|
|
2204
|
-
eventName: "memories_captured"
|
|
2204
|
+
eventName: "memories_captured",
|
|
2205
|
+
hours: 7 * 24
|
|
2205
2206
|
}),
|
|
2206
2207
|
options.eventStats.costsByDay({
|
|
2207
2208
|
days: 90,
|
|
2208
2209
|
eventName: "memories_recalled"
|
|
2209
2210
|
}),
|
|
2210
2211
|
options.eventStats.costsByHour({
|
|
2211
|
-
eventName: "memories_recalled"
|
|
2212
|
+
eventName: "memories_recalled",
|
|
2213
|
+
hours: 7 * 24
|
|
2212
2214
|
})
|
|
2213
2215
|
]);
|
|
2214
2216
|
const { private: personal, ...dashboardStats } = stats;
|