mongoose-query-find 3.3.0 → 4.0.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/README.md +477 -1297
- package/dist/analytics.d.ts +267 -0
- package/dist/analytics.d.ts.map +1 -0
- package/dist/analytics.js +877 -0
- package/dist/analytics.js.map +1 -0
- package/dist/index.d.ts +8 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* QueryAnalytics - Advanced, allowlisted analytics builder for Mongoose (v8/v9)
|
|
3
|
+
*
|
|
4
|
+
* Sits alongside QueryFind (Model.find()) and QueryAggregate (generic pipeline
|
|
5
|
+
* builder). QueryAnalytics is purpose-built for dashboards/reporting.
|
|
6
|
+
* Assumes a modern MongoDB server (7.0+): uses $setWindowFields, $rank,
|
|
7
|
+
* $shift, $stdDevPop and $percentile natively — no manual fallbacks.
|
|
8
|
+
*
|
|
9
|
+
* Feature map:
|
|
10
|
+
* - timeSeries() bucketed metrics over time, gap-filled
|
|
11
|
+
* - cumulativeSeries() time series + native running-total column
|
|
12
|
+
* - compare() period-over-period, % change
|
|
13
|
+
* - breakdown() top-N by a dimension
|
|
14
|
+
* - rankedBreakdown() breakdown + dense rank per row (native $setWindowFields)
|
|
15
|
+
* - multiBreakdown() pivot by two dimensions
|
|
16
|
+
* - funnel() sequential step conversion
|
|
17
|
+
* - cohortRetention() cohort-by-cohort retention matrix
|
|
18
|
+
* - sessionize() gap-based event sessionization ($setWindowFields + $shift)
|
|
19
|
+
* - percentiles() p50/p90/p99/... via native $percentile
|
|
20
|
+
* - stdDevOutliers() flag documents beyond N std deviations
|
|
21
|
+
* - metrics() one-shot multi-metric summary (single round trip)
|
|
22
|
+
* - movingAverage/trend pure-JS post-processing on an existing series
|
|
23
|
+
* - forecast() simple linear-regression projection (pure JS)
|
|
24
|
+
* - heatmap() weekday x hour-of-day matrix
|
|
25
|
+
* - watch() live change-stream subscription for dashboards
|
|
26
|
+
* - toCSV/toNDJSON export helpers
|
|
27
|
+
* - dashboard() run several analytics calls in parallel, keyed
|
|
28
|
+
* - built-in TTL cache
|
|
29
|
+
*
|
|
30
|
+
* Usage:
|
|
31
|
+
* const qa = new QueryAnalytics(OrderModel, { timezone: 'Asia/Dhaka' })
|
|
32
|
+
* .match({ branchId, status: { $ne: 'CANCELLED' } })
|
|
33
|
+
* .dateRange('createdAt', { from: '2026-08-01', to: '2026-08-31' });
|
|
34
|
+
*
|
|
35
|
+
* const series = await qa.timeSeries({
|
|
36
|
+
* dateField: 'createdAt', interval: 'day',
|
|
37
|
+
* metrics: [{ name: 'revenue', op: 'sum', field: 'total' }, { name: 'orders', op: 'count' }],
|
|
38
|
+
* });
|
|
39
|
+
*/
|
|
40
|
+
import { Model, PipelineStage } from 'mongoose';
|
|
41
|
+
export type Interval = 'hour' | 'day' | 'week' | 'month';
|
|
42
|
+
export type ComparePreset = 'today' | 'thisWeek' | 'thisMonth' | 'last7Days' | 'last30Days';
|
|
43
|
+
export interface StatSpec {
|
|
44
|
+
name: string;
|
|
45
|
+
op: 'sum' | 'avg' | 'min' | 'max' | 'count' | 'distinctCount';
|
|
46
|
+
/** Required for every op except 'count'. */
|
|
47
|
+
field?: string;
|
|
48
|
+
}
|
|
49
|
+
export interface QueryAnalyticsOptions {
|
|
50
|
+
timezone?: string;
|
|
51
|
+
maxTimeMS?: number;
|
|
52
|
+
allowDiskUse?: boolean;
|
|
53
|
+
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
54
|
+
/** TTL in ms for the built-in in-memory cache. 0 disables caching (default). */
|
|
55
|
+
cacheTTLMs?: number;
|
|
56
|
+
}
|
|
57
|
+
export interface TimeSeriesPoint {
|
|
58
|
+
bucket: string;
|
|
59
|
+
[metric: string]: number | string;
|
|
60
|
+
}
|
|
61
|
+
export interface CompareResult {
|
|
62
|
+
current: Record<string, number>;
|
|
63
|
+
previous: Record<string, number>;
|
|
64
|
+
change: Record<string, number>;
|
|
65
|
+
changePct: Record<string, number | null>;
|
|
66
|
+
}
|
|
67
|
+
export interface BreakdownRow {
|
|
68
|
+
key: unknown;
|
|
69
|
+
[metric: string]: unknown;
|
|
70
|
+
}
|
|
71
|
+
export interface RankedBreakdownRow extends BreakdownRow {
|
|
72
|
+
rank: number;
|
|
73
|
+
}
|
|
74
|
+
export interface FunnelStep {
|
|
75
|
+
name: string;
|
|
76
|
+
match: Record<string, unknown>;
|
|
77
|
+
}
|
|
78
|
+
export interface FunnelResult {
|
|
79
|
+
name: string;
|
|
80
|
+
count: number;
|
|
81
|
+
conversionFromPrevious: number | null;
|
|
82
|
+
conversionFromStart: number | null;
|
|
83
|
+
}
|
|
84
|
+
export interface CohortRetentionOptions {
|
|
85
|
+
/** Field marking the cohort-defining event (e.g. signup date). */
|
|
86
|
+
cohortDateField: string;
|
|
87
|
+
/** Field marking each activity/return event (can be the same field for simple recurrence). */
|
|
88
|
+
activityDateField: string;
|
|
89
|
+
/** Unique identity to track across cohort and activity (e.g. userId). */
|
|
90
|
+
idField: string;
|
|
91
|
+
cohortInterval: Interval;
|
|
92
|
+
/** How many periods forward to measure retention for (e.g. 8 weeks). */
|
|
93
|
+
periods: number;
|
|
94
|
+
}
|
|
95
|
+
export interface CohortRow {
|
|
96
|
+
cohort: string;
|
|
97
|
+
cohortSize: number;
|
|
98
|
+
retention: (number | null)[];
|
|
99
|
+
retentionPct: (number | null)[];
|
|
100
|
+
}
|
|
101
|
+
export interface SessionizeOptions {
|
|
102
|
+
userField: string;
|
|
103
|
+
dateField: string;
|
|
104
|
+
/** Idle gap (minutes) after which a new session starts. */
|
|
105
|
+
gapMinutes: number;
|
|
106
|
+
}
|
|
107
|
+
export interface SessionSummary {
|
|
108
|
+
userId: unknown;
|
|
109
|
+
sessionStart: string;
|
|
110
|
+
sessionEnd: string;
|
|
111
|
+
eventCount: number;
|
|
112
|
+
durationSeconds: number;
|
|
113
|
+
}
|
|
114
|
+
export interface OutlierRow {
|
|
115
|
+
_id: unknown;
|
|
116
|
+
value: number;
|
|
117
|
+
zScore: number;
|
|
118
|
+
[key: string]: unknown;
|
|
119
|
+
}
|
|
120
|
+
export declare class QueryAnalyticsError extends Error {
|
|
121
|
+
constructor(message: string);
|
|
122
|
+
}
|
|
123
|
+
export declare class QueryAnalytics<T> {
|
|
124
|
+
private readonly model;
|
|
125
|
+
private readonly options;
|
|
126
|
+
private _serverConditions;
|
|
127
|
+
private _extraStages;
|
|
128
|
+
constructor(model: Model<T>, options?: QueryAnalyticsOptions);
|
|
129
|
+
get timezone(): string;
|
|
130
|
+
/** Adds/merges a hard condition into the base $match. Call as many times as needed. */
|
|
131
|
+
match(conditions: Partial<Record<keyof T, unknown>> | Record<string, unknown>): this;
|
|
132
|
+
/** Escape hatch for extra developer-authored stages spliced in before analytics-specific stages. Blocks $out/$merge. */
|
|
133
|
+
addStage(stage: PipelineStage): this;
|
|
134
|
+
/** Hard local-date range condition on `field`, e.g. { from: '2026-08-01', to: '2026-08-31' } (inclusive). */
|
|
135
|
+
dateRange(field: string, range: {
|
|
136
|
+
from: string;
|
|
137
|
+
to: string;
|
|
138
|
+
}): this;
|
|
139
|
+
clone(): QueryAnalytics<T>;
|
|
140
|
+
private baseMatchStage;
|
|
141
|
+
private basePipeline;
|
|
142
|
+
private run;
|
|
143
|
+
/** Clears every cached analytics result (across all instances/models). */
|
|
144
|
+
static clearCache(): void;
|
|
145
|
+
/**
|
|
146
|
+
* Buckets documents by `dateField` into `interval`-sized, timezone-aligned
|
|
147
|
+
* buckets and computes `metrics` per bucket. Fills gaps with zero-valued
|
|
148
|
+
* buckets so charts never show a broken line for empty days.
|
|
149
|
+
*/
|
|
150
|
+
timeSeries(opts: {
|
|
151
|
+
dateField: string;
|
|
152
|
+
interval: Interval;
|
|
153
|
+
metrics: StatSpec[];
|
|
154
|
+
fillGaps?: boolean;
|
|
155
|
+
}): Promise<TimeSeriesPoint[]>;
|
|
156
|
+
/**
|
|
157
|
+
* Same bucketing as timeSeries(), plus a native running-total column per
|
|
158
|
+
* metric (computed server-side via $setWindowFields — no JS post-pass).
|
|
159
|
+
*/
|
|
160
|
+
cumulativeSeries(opts: {
|
|
161
|
+
dateField: string;
|
|
162
|
+
interval: Interval;
|
|
163
|
+
metrics: StatSpec[];
|
|
164
|
+
}): Promise<TimeSeriesPoint[]>;
|
|
165
|
+
/**
|
|
166
|
+
* Computes `metrics` for the current preset period and the equivalent
|
|
167
|
+
* prior period, plus absolute and percentage change per metric.
|
|
168
|
+
* Ignores any .dateRange() already applied — the preset defines both windows.
|
|
169
|
+
*/
|
|
170
|
+
compare(opts: {
|
|
171
|
+
dateField: string;
|
|
172
|
+
metrics: StatSpec[];
|
|
173
|
+
preset: ComparePreset;
|
|
174
|
+
}): Promise<CompareResult>;
|
|
175
|
+
/** Groups by `field` and computes `metrics` per group, sorted and capped. */
|
|
176
|
+
breakdown(field: string, metrics: StatSpec[], opts?: {
|
|
177
|
+
limit?: number;
|
|
178
|
+
sortBy?: string;
|
|
179
|
+
sortDir?: 1 | -1;
|
|
180
|
+
}): Promise<BreakdownRow[]>;
|
|
181
|
+
/** Same as breakdown(), but adds a native dense-rank column (1-based) via $setWindowFields — no client-side re-sorting needed. */
|
|
182
|
+
rankedBreakdown(field: string, metrics: StatSpec[], opts?: {
|
|
183
|
+
limit?: number;
|
|
184
|
+
sortBy?: string;
|
|
185
|
+
sortDir?: 1 | -1;
|
|
186
|
+
}): Promise<RankedBreakdownRow[]>;
|
|
187
|
+
/** Pivot table: groups by two dimensions at once, returning one row per (dimA, dimB) pair with metrics. */
|
|
188
|
+
multiBreakdown(fields: [string, string], metrics: StatSpec[], opts?: {
|
|
189
|
+
limit?: number;
|
|
190
|
+
}): Promise<(BreakdownRow & {
|
|
191
|
+
key2: unknown;
|
|
192
|
+
})[]>;
|
|
193
|
+
/**
|
|
194
|
+
* Sequential funnel: each step's count is the number of base documents
|
|
195
|
+
* matching that step's `match` condition ANDed with the base filter.
|
|
196
|
+
* Steps are independent counts — pass cumulative conditions yourself if
|
|
197
|
+
* step N should imply step N-1.
|
|
198
|
+
*/
|
|
199
|
+
funnel(steps: FunnelStep[]): Promise<FunnelResult[]>;
|
|
200
|
+
/**
|
|
201
|
+
* Buckets entities by their cohort period (first occurrence of
|
|
202
|
+
* `cohortDateField`) and, for each cohort, counts distinct `idField`s with
|
|
203
|
+
* an activity (`activityDateField`) in each subsequent period offset
|
|
204
|
+
* (0 = the cohort period itself). Good for classic "% of signups still
|
|
205
|
+
* active N weeks later" retention tables.
|
|
206
|
+
*/
|
|
207
|
+
cohortRetention(opts: CohortRetentionOptions): Promise<CohortRow[]>;
|
|
208
|
+
/**
|
|
209
|
+
* Groups per-user events into sessions using native $setWindowFields +
|
|
210
|
+
* $shift gap detection (a session breaks when the idle gap since the
|
|
211
|
+
* previous event exceeds `gapMinutes`), then summarizes each session.
|
|
212
|
+
*/
|
|
213
|
+
sessionize(opts: SessionizeOptions): Promise<SessionSummary[]>;
|
|
214
|
+
/** Computes percentiles (0-100) of `field` over the current filter, using native $percentile. */
|
|
215
|
+
percentiles(field: string, ps: number[]): Promise<Record<string, number | null>>;
|
|
216
|
+
/**
|
|
217
|
+
* Flags documents whose `field` value is more than `threshold` standard
|
|
218
|
+
* deviations from the mean (native $stdDevPop, single extra pass to fetch
|
|
219
|
+
* the flagged rows). Good for a quick "anomalies" widget.
|
|
220
|
+
*/
|
|
221
|
+
stdDevOutliers(field: string, opts?: {
|
|
222
|
+
threshold?: number;
|
|
223
|
+
limit?: number;
|
|
224
|
+
}): Promise<OutlierRow[]>;
|
|
225
|
+
/** Computes several independent StatSpec metrics in one aggregate call — cheaper than N separate calls for a KPI-strip widget. */
|
|
226
|
+
metrics(specs: StatSpec[]): Promise<Record<string, number>>;
|
|
227
|
+
/** Adds a trailing moving average over an already-fetched time series. */
|
|
228
|
+
static movingAverage(series: TimeSeriesPoint[], metric: string, windowSize: number, outKey?: string): TimeSeriesPoint[];
|
|
229
|
+
/** Simple up/down/flat trend classification comparing the average of the last `n` points to the `n` before that. */
|
|
230
|
+
static trend(series: TimeSeriesPoint[], metric: string, n?: number, flatThresholdPct?: number): 'up' | 'down' | 'flat' | 'insufficient_data';
|
|
231
|
+
/** Simple linear-regression forecast for `periodsAhead` future buckets, based on the existing series' trend line. Good enough for a dashed projection line — not a substitute for real forecasting models. */
|
|
232
|
+
static forecast(series: TimeSeriesPoint[], metric: string, periodsAhead: number): {
|
|
233
|
+
index: number;
|
|
234
|
+
predicted: number;
|
|
235
|
+
}[];
|
|
236
|
+
/** Counts (or sums `valueField`) by weekday (0=Sun..6=Sat, local tz) x hour-of-day (0-23, local tz). */
|
|
237
|
+
heatmap(dateField: string, valueField?: string): Promise<{
|
|
238
|
+
weekday: number;
|
|
239
|
+
hour: number;
|
|
240
|
+
value: number;
|
|
241
|
+
}[]>;
|
|
242
|
+
/**
|
|
243
|
+
* Subscribes to a MongoDB change stream on this model's collection and
|
|
244
|
+
* invokes `onChange` for every insert/update/delete/replace matching the
|
|
245
|
+
* current .match() filter (translated to a $match on `fullDocument`
|
|
246
|
+
* fields). Returns the underlying ChangeStream so the caller can
|
|
247
|
+
* `.close()` it. Useful for pushing live dashboard updates over a
|
|
248
|
+
* websocket instead of polling.
|
|
249
|
+
*/
|
|
250
|
+
watch(onChange: (change: unknown) => void, opts?: {
|
|
251
|
+
operationTypes?: string[];
|
|
252
|
+
}): ReturnType<Model<T>['watch']>;
|
|
253
|
+
/** Flattens an array of plain-object rows into a CSV string (handy for timeSeries/breakdown results). */
|
|
254
|
+
static toCSV(rows: Record<string, unknown>[]): string;
|
|
255
|
+
/** Newline-delimited JSON export — friendlier than a giant JSON array for streaming large exports to disk/S3. */
|
|
256
|
+
static toNDJSON(rows: Record<string, unknown>[]): string;
|
|
257
|
+
/**
|
|
258
|
+
* Runs several named analytics calls in parallel and returns them keyed by
|
|
259
|
+
* name — for building a whole dashboard in one round trip from the
|
|
260
|
+
* caller's perspective.
|
|
261
|
+
*/
|
|
262
|
+
static dashboard<R extends Record<string, () => Promise<unknown>>>(tasks: R): Promise<{
|
|
263
|
+
[K in keyof R]: Awaited<ReturnType<R[K]>>;
|
|
264
|
+
}>;
|
|
265
|
+
}
|
|
266
|
+
export default QueryAnalytics;
|
|
267
|
+
//# sourceMappingURL=analytics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../src/analytics.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAYH,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAwBhD,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,CAAC;AACzD,MAAM,MAAM,aAAa,GACrB,OAAO,GACP,UAAU,GACV,WAAW,GACX,WAAW,GACX,YAAY,CAAC;AAEjB,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,GAAG,eAAe,CAAC;IAC9D,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACzC,gFAAgF;IAChF,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,C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