@vllnt/convex-analytics 0.1.0-canary.e8e8f2b → 0.1.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.
Files changed (63) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +198 -0
  3. package/dist/client/index.d.ts.map +1 -1
  4. package/dist/client/index.js.map +1 -1
  5. package/dist/component/_generated/api.d.ts +30 -6
  6. package/dist/component/_generated/api.d.ts.map +1 -1
  7. package/dist/component/_generated/api.js +21 -2
  8. package/dist/component/_generated/api.js.map +1 -1
  9. package/dist/component/_generated/component.d.ts +181 -0
  10. package/dist/component/_generated/component.d.ts.map +1 -0
  11. package/dist/component/_generated/component.js +11 -0
  12. package/dist/component/_generated/component.js.map +1 -0
  13. package/dist/component/_generated/dataModel.d.ts +33 -0
  14. package/dist/component/_generated/dataModel.d.ts.map +1 -1
  15. package/dist/component/_generated/dataModel.js +3 -0
  16. package/dist/component/_generated/dataModel.js.map +1 -1
  17. package/dist/component/_generated/server.d.ts +113 -0
  18. package/dist/component/_generated/server.d.ts.map +1 -1
  19. package/dist/component/_generated/server.js +65 -0
  20. package/dist/component/_generated/server.js.map +1 -1
  21. package/dist/component/convex.config.d.ts +1 -1
  22. package/dist/component/convex.config.d.ts.map +1 -1
  23. package/dist/component/crons.d.ts +3 -0
  24. package/dist/component/crons.d.ts.map +1 -0
  25. package/dist/component/crons.js +7 -0
  26. package/dist/component/crons.js.map +1 -0
  27. package/dist/component/http.d.ts.map +1 -1
  28. package/dist/component/internal_mutations.d.ts +5 -2
  29. package/dist/component/internal_mutations.d.ts.map +1 -1
  30. package/dist/component/internal_mutations.js +72 -42
  31. package/dist/component/internal_mutations.js.map +1 -1
  32. package/dist/component/mutations.d.ts +11 -11
  33. package/dist/component/mutations.d.ts.map +1 -1
  34. package/dist/component/mutations.js +24 -9
  35. package/dist/component/mutations.js.map +1 -1
  36. package/dist/component/queries.d.ts +21 -21
  37. package/dist/component/queries.d.ts.map +1 -1
  38. package/dist/component/queries.js +20 -20
  39. package/dist/component/queries.js.map +1 -1
  40. package/dist/component/schema.d.ts +35 -26
  41. package/dist/component/schema.d.ts.map +1 -1
  42. package/dist/component/schema.js +6 -1
  43. package/dist/component/schema.js.map +1 -1
  44. package/dist/component/validators.d.ts +40 -40
  45. package/dist/shared.d.ts +2 -0
  46. package/dist/shared.d.ts.map +1 -1
  47. package/dist/shared.js +4 -0
  48. package/dist/shared.js.map +1 -1
  49. package/dist/test.d.ts +35 -26
  50. package/dist/test.d.ts.map +1 -1
  51. package/dist/test.js.map +1 -1
  52. package/dist/web/index.d.ts.map +1 -1
  53. package/package.json +25 -20
  54. package/src/component/_generated/api.ts +36 -9
  55. package/src/component/_generated/component.ts +196 -0
  56. package/src/component/_generated/dataModel.ts +36 -0
  57. package/src/component/_generated/server.ts +130 -3
  58. package/src/component/crons.ts +19 -0
  59. package/src/component/internal_mutations.ts +102 -55
  60. package/src/component/mutations.ts +26 -9
  61. package/src/component/queries.ts +22 -20
  62. package/src/component/schema.ts +7 -1
  63. package/src/shared.ts +5 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 bntvllnt
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,198 @@
1
+ <!-- Badges -->
2
+ [![convex-component](https://img.shields.io/badge/convex-component-EE342F.svg)](https://www.convex.dev/components)
3
+ [![npm](https://img.shields.io/npm/v/@vllnt/convex-analytics.svg)](https://www.npmjs.com/package/@vllnt/convex-analytics)
4
+ [![CI](https://github.com/vllnt/convex-analytics/actions/workflows/ci.yml/badge.svg)](https://github.com/vllnt/convex-analytics/actions/workflows/ci.yml)
5
+ [![license](https://img.shields.io/npm/l/@vllnt/convex-analytics.svg)](LICENSE)
6
+
7
+ # @vllnt/convex-analytics
8
+
9
+ A generic, configurable, embedded analytics component for Convex — any event,
10
+ any dimension, any domain — with rollup-on-write so reads stay O(1).
11
+
12
+ ```ts
13
+ import { AnalyticsClient } from "@vllnt/convex-analytics";
14
+ import { components } from "./_generated/api";
15
+
16
+ const analytics = new AnalyticsClient(components.analytics, {
17
+ dimensions: ["plan", "country"], // prop keys to roll up on
18
+ });
19
+
20
+ await analytics.track(ctx, "signup", { subjectRef: userId, props: { plan: "pro", country: "FR" } });
21
+ const byPlan = await analytics.top(ctx, "signup", "plan"); // [{ value: "pro", count: 1 }]
22
+ ```
23
+
24
+ ## Features
25
+
26
+ - **Generic events** — free-string event name, opaque `subjectRef` / `sessionRef`, host-typed `props`.
27
+ - **Host-declared dimensions** — you pass the prop keys to roll up on; nothing is hardcoded.
28
+ - **Rollup-on-write** — counts are incremented as events land, so `metric` / `top` / `timeseries` read in O(1) (backed by `@convex-dev/aggregate` + `@convex-dev/sharded-counter`).
29
+ - **Rich verb set** — `metric`, `top`, `timeseries`, `uniques`, `funnel`, `retention`, `distribution`, plus paginated raw `list`.
30
+ - **Configurable** — `scope`, `dimensions`, `granularities`, `retentionDays`, `sampleRate`, `propsValidator`; sensible defaults, zero config required.
31
+ - **Per-session rate limiting + dedupe + sampling** built into `track`.
32
+ - **Opt-in web preset** — `@vllnt/convex-analytics/web` adds web dimensions + UA/geo helpers when you want them.
33
+ - **Optional React hooks** — `@vllnt/convex-analytics/react` for reactive aggregate reads.
34
+ - **Zero hardcoded domain** — no `v.any()`, no baked-in web fields; the host owns meaning and auth.
35
+
36
+ ## Generic core vs web preset
37
+
38
+ The core is domain-neutral: it knows nothing about web, mobile, or any vertical.
39
+ Web analytics — pageview dimensions (`path`, `referrer`, `device`, `browser`, `os`,
40
+ `country`, UTM) plus `parseUserAgent` / `geoFromHeaders` / `trackPageview` helpers —
41
+ lives in the opt-in `@vllnt/convex-analytics/web` preset. You turn it on by passing
42
+ `webDimensions` to the client's `dimensions` config; otherwise the core ships no web
43
+ fields. See [docs/web-preset.md](docs/web-preset.md).
44
+
45
+ ## Installation
46
+
47
+ ```bash
48
+ npm install @vllnt/convex-analytics
49
+ ```
50
+
51
+ ## Usage
52
+
53
+ ```ts
54
+ // convex/convex.config.ts
55
+ import { defineApp } from "convex/server";
56
+ import analytics from "@vllnt/convex-analytics/convex.config";
57
+
58
+ const app = defineApp();
59
+ app.use(analytics);
60
+ export default app;
61
+ ```
62
+
63
+ ```ts
64
+ // convex/analytics.ts — track + read, server-side
65
+ import { AnalyticsClient } from "@vllnt/convex-analytics";
66
+ import { components } from "./_generated/api";
67
+
68
+ type MyProps = { plan?: string; country?: string };
69
+
70
+ const analytics = new AnalyticsClient<MyProps>(components.analytics, {
71
+ dimensions: ["plan", "country"],
72
+ granularities: ["day"],
73
+ });
74
+
75
+ await analytics.track(ctx, "signup", { subjectRef: userId, props: { plan: "pro" } });
76
+ const total = await analytics.metric(ctx, "signup");
77
+ ```
78
+
79
+ ## Config
80
+
81
+ Passed to the `AnalyticsClient` constructor. All optional — the defaults work with zero config.
82
+
83
+ | Option | Type | Default | Purpose |
84
+ |--------|------|---------|---------|
85
+ | `scope` | `string` | `"default"` | Multi-tenant partition; isolates one tenant's data. |
86
+ | `dimensions` | `string[]` | `[]` | Prop keys to roll up on (drives rollup-on-write). Empty = count by event name only. |
87
+ | `granularities` | `("minute" \| "hour" \| "day")[]` | `["day"]` | Rollup bucket sizes (`minute` for short live windows). |
88
+ | `retentionDays` | `number` | `90` | Raw-event TTL in days (rollups are kept forever). Applied via `configure`. |
89
+ | `sampleRate` | `number` | `1` | Fraction `0..1` of events to keep at ingest. |
90
+ | `sessionIdleMs` | `number` | `1800000` | Idle timeout before a session is closed. Applied via `configure`. |
91
+ | `propsValidator` | Convex validator | typed scalar record | Optional host validator narrowing `props` at the boundary. |
92
+
93
+ `scope`, `dimensions`, `granularities`, and `sampleRate` apply per call from the client.
94
+ `retentionDays`, `sampleRate`, and `sessionIdleMs` are persisted for the prune/close-sessions
95
+ crons by calling `analytics.configure(ctx, { ... })` once.
96
+
97
+ ## API
98
+
99
+ | Verb | Kind | Purpose |
100
+ |------|------|---------|
101
+ | `track(ctx, name, opts)` | mutation | Ingest an event; rollup-on-write + raw event + counter. Returns `"tracked" \| "dropped" \| "duplicate"`. |
102
+ | `metric(ctx, name, opts)` | query | Total count over a range, optionally filtered by a dimension value. |
103
+ | `top(ctx, name, dimension, opts)` | query | Top values of a dimension (breakdown). |
104
+ | `timeseries(ctx, name, opts)` | query | Bucketed counts over a range. |
105
+ | `uniques(ctx, opts)` | query | DAU / WAU / MAU from subjects. |
106
+ | `funnel(ctx, steps, opts)` | query | Ordered step conversion, keyed by `subjectRef`. |
107
+ | `retention(ctx, opts)` | query | Cohort return rates by first-seen period. |
108
+ | `distribution(ctx, name, measure, opts)` | query | Histogram of a numeric measure over declared buckets + overflow (with `count` / `sum`). |
109
+ | `list(ctx, name, paginationOpts, opts)` | query | Paginated raw events, newest first. |
110
+ | `configure(ctx, opts)` | mutation | Persist cron-relevant config (retention / sampling / idle). |
111
+
112
+ Full reference: [docs/client-sdk.md](docs/client-sdk.md). REST surface: [docs/api-reference.md](docs/api-reference.md).
113
+
114
+ ## What it serves
115
+
116
+ The Convex-native, authoritative in-app aggregate layer — predefined-dimension rollups served
117
+ **reactively** in O(1). It complements a product-analytics warehouse; it doesn't replace one.
118
+ Declare the dimensions and measures you'll query and the rollups answer instantly; ad-hoc or
119
+ retroactive questions over **non-declared** dimensions, or beyond the raw-event retention window,
120
+ are an export concern. `metric` / `top` / `timeseries` read pre-aggregated rollups (kept forever);
121
+ `funnel` / `retention` / `distribution` read raw events in range (index-backed, bounded, TTL-pruned).
122
+
123
+ ## Web preset
124
+
125
+ ```ts
126
+ import { AnalyticsClient } from "@vllnt/convex-analytics";
127
+ import { webDimensions, trackPageview } from "@vllnt/convex-analytics/web";
128
+
129
+ const analytics = new AnalyticsClient(components.analytics, { dimensions: webDimensions });
130
+
131
+ await trackPageview(analytics, ctx, {
132
+ path: "/pricing",
133
+ ua: request.headers.get("user-agent") ?? undefined,
134
+ headers: request.headers,
135
+ });
136
+ ```
137
+
138
+ `webDimensions` opts the rollups into `path` / `referrer` / `device` / `browser` / `os` /
139
+ `country` / UTM; `parseUserAgent` and `geoFromHeaders` build those props from a request.
140
+ See [docs/web-preset.md](docs/web-preset.md).
141
+
142
+ ## React
143
+
144
+ ```tsx
145
+ import { useMetric, useTop } from "@vllnt/convex-analytics/react";
146
+ import { api } from "../convex/_generated/api";
147
+
148
+ const signups = useMetric(api.analytics.metric, { name: "signup" });
149
+ const byPlan = useTop(api.analytics.top, { name: "signup", dimension: "plan" });
150
+ ```
151
+
152
+ Thin reactive wrappers over the host's re-exported query refs (`metric`, `top`, `timeseries`,
153
+ `uniques`). `react` + `convex` are optional peer deps; backend-only consumers pull no React.
154
+
155
+ ## Security
156
+
157
+ - Auth-agnostic mount — the host gates access and passes opaque `subjectRef` / `sessionRef` in.
158
+ - Tables are sandboxed; the host reaches them only through the exported functions.
159
+ - REST endpoints require an `x-api-key` header, compared timing-safe.
160
+
161
+ See [docs/architecture.md](docs/architecture.md).
162
+
163
+ ## Testing
164
+
165
+ ```bash
166
+ pnpm test
167
+ ```
168
+
169
+ ```ts
170
+ import analyticsTest from "@vllnt/convex-analytics/test";
171
+ import { convexTest } from "convex-test";
172
+
173
+ const t = convexTest(hostSchema, hostModules);
174
+ analyticsTest.register(t);
175
+ ```
176
+
177
+ ## Documentation
178
+
179
+ [Schema](docs/schema.md) · [Client SDK](docs/client-sdk.md) · [REST API](docs/api-reference.md) ·
180
+ [Web Preset](docs/web-preset.md) · [Multi-Product](docs/multi-product.md) ·
181
+ [Architecture](docs/architecture.md). For AI agents:
182
+ [`llms.txt`](llms.txt) · [`llms-full.txt`](llms-full.txt).
183
+
184
+ ## Contributing
185
+
186
+ See [CONTRIBUTING.md](CONTRIBUTING.md).
187
+
188
+ ## Author
189
+
190
+ Built by [bntvllnt](https://github.com/bntvllnt) · [bntvllnt.com](https://bntvllnt.com) · [X @bntvllnt](https://x.com/bntvllnt)
191
+
192
+ Part of the [@vllnt](https://github.com/vllnt) Convex component fleet — [vllnt.com](https://vllnt.com)
193
+
194
+ If this is useful, [sponsor the work](https://github.com/sponsors/bntvllnt).
195
+
196
+ ## License
197
+
198
+ MIT — see [LICENSE](LICENSE).
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EACjB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EACV,eAAe,EACf,KAAK,EACL,WAAW,EACX,KAAK,EACL,KAAK,EACL,SAAS,EACT,WAAW,EACX,MAAM,EACN,eAAe,EACf,WAAW,EACX,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,SAAS,EACV,MAAM,YAAY,CAAC;AAEpB,YAAY,EACV,eAAe,EACf,KAAK,EACL,KAAK,EACL,SAAS,EACT,WAAW,EACX,MAAM,EACN,eAAe,EACf,WAAW,EACX,UAAU,EACV,eAAe,EACf,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OAAO,EAAE,MAAM,EAAE,CAAC;QAAC,KAAK,CAAC,EAAE,KAAK,CAAC;QAAC,KAAK,CAAC,EAAE,KAAK,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,GACxE,OAAO,CAAC,gBAAgB,CAAC;IAW5B,4DAA4D;IACtD,IAAI,CACR,GAAG,EAAE,QAAQ,EACb,IAAI,EAAE,MAAM,EACZ,cAAc,EAAE,cAAc,EAC9B,IAAI,GAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAO,GAC5B,OAAO,CAAC,SAAS,CAAC;IAQrB,4EAA4E;IACtE,SAAS,CACb,GAAG,EAAE,WAAW,EAChB,IAAI,GAAE;QACJ,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,KAAK,CAAC,EAAE,MAAM,CAAC;KACX,GACL,OAAO,CAAC,IAAI,CAAC;CAQjB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EACjB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EACV,eAAe,EACf,KAAK,EACL,WAAW,EACX,KAAK,EACL,KAAK,EACL,SAAS,EACT,WAAW,EACX,MAAM,EACN,eAAe,EACf,WAAW,EACX,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,SAAS,EACV,MAAM,YAAY,CAAC;AAEpB,YAAY,EACV,eAAe,EACf,KAAK,EACL,KAAK,EACL,SAAS,EACT,WAAW,EACX,MAAM,EACN,eAAe,EACf,WAAW,EACX,UAAU,EACV,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,SAAS,EACT,SAAS,GACV,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,E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
1
  /**
2
2
  * Generated `api` utility.
3
+ *
3
4
  * THIS CODE IS AUTOMATICALLY GENERATED.
5
+ *
6
+ * To regenerate, run `npx convex dev`.
4
7
  * @module
5
8
  */
9
+ import type * as http from "../http.js";
10
+ import type * as internal_mutations from "../internal_mutations.js";
6
11
  import type * as mutations from "../mutations.js";
7
12
  import type * as queries from "../queries.js";
8
- import type * as internal_mutations from "../internal_mutations.js";
9
- import type * as http from "../http.js";
13
+ import type * as validators from "../validators.js";
10
14
  import type { ApiFromModules, FilterApi, FunctionReference } from "convex/server";
11
- import { componentsGeneric } from "convex/server";
12
15
  declare const fullApi: ApiFromModules<{
16
+ http: typeof http;
17
+ internal_mutations: typeof internal_mutations;
13
18
  mutations: typeof mutations;
14
19
  queries: typeof queries;
15
- internal_mutations: typeof internal_mutations;
16
- http: typeof http;
20
+ validators: typeof validators;
17
21
  }>;
22
+ /**
23
+ * A utility for referencing Convex functions in your app's public API.
24
+ *
25
+ * Usage:
26
+ * ```js
27
+ * const myFunctionReference = api.myModule.myFunction;
28
+ * ```
29
+ */
18
30
  export declare const api: FilterApi<typeof fullApi, FunctionReference<any, "public">>;
31
+ /**
32
+ * A utility for referencing Convex functions in your app's internal API.
33
+ *
34
+ * Usage:
35
+ * ```js
36
+ * const myFunctionReference = internal.myModule.myFunction;
37
+ * ```
38
+ */
19
39
  export declare const internal: FilterApi<typeof fullApi, FunctionReference<any, "internal">>;
20
- export declare const components: ReturnType<typeof componentsGeneric>;
40
+ export declare const components: {
41
+ aggregate: import("@convex-dev/aggregate/_generated/component.js").ComponentApi<"aggregate">;
42
+ shardedCounter: import("@convex-dev/sharded-counter/_generated/component.js").ComponentApi<"shardedCounter">;
43
+ rateLimiter: import("@convex-dev/rate-limiter/_generated/component.js").ComponentApi<"rateLimiter">;
44
+ };
21
45
  export {};
22
46
  //# sourceMappingURL=api.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/component/_generated/api.ts"],"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EACV,cAAc,EACd,SAAS,EACT,iBAAiB,EAClB,MAAM,eAAe,CAAC;AAGvB,QAAA,MAAM,OAAO,EAAE,cAAc,CAAC;IAC5B,IAAI,EAAE,OAAO,IAAI,CAAC;IAClB,kBAAkB,EAAE,OAAO,kBAAkB,CAAC;IAC9C,SAAS,EAAE,OAAO,SAAS,CAAC;IAC5B,OAAO,EAAE,OAAO,OAAO,CAAC;IACxB,UAAU,EAAE,OAAO,UAAU,CAAC;CAC/B,CAAiB,CAAC;AAEnB;;;;;;;GAOG;AACH,eAAO,MAAM,GAAG,EAAE,SAAS,CACzB,OAAO,OAAO,EACd,iBAAiB,CAAC,GAAG,EAAE,QAAQ,CAAC,CACjB,CAAC;AAElB;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,EAAE,SAAS,CAC9B,OAAO,OAAO,EACd,iBAAiB,CAAC,GAAG,EAAE,UAAU,CAAC,CACnB,CAAC;AAElB,eAAO,MAAM,UAAU,EAAqC;IAC1D,SAAS,EAAE,OAAO,+CAA+C,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC;IAC7F,cAAc,EAAE,OAAO,qDAAqD,EAAE,YAAY,CAAC,gBAAgB,CAAC,CAAC;IAC7G,WAAW,EAAE,OAAO,kDAAkD,EAAE,YAAY,CAAC,aAAa,CAAC,CAAC;CACrG,CAAC"}
@@ -1,12 +1,31 @@
1
1
  /* eslint-disable */
2
2
  /**
3
3
  * Generated `api` utility.
4
+ *
4
5
  * THIS CODE IS AUTOMATICALLY GENERATED.
6
+ *
7
+ * To regenerate, run `npx convex dev`.
5
8
  * @module
6
9
  */
7
10
  import { anyApi, componentsGeneric } from "convex/server";
8
11
  const fullApi = anyApi;
9
- export const api = fullApi;
10
- export const internal = fullApi;
12
+ /**
13
+ * A utility for referencing Convex functions in your app's public API.
14
+ *
15
+ * Usage:
16
+ * ```js
17
+ * const myFunctionReference = api.myModule.myFunction;
18
+ * ```
19
+ */
20
+ export const api = anyApi;
21
+ /**
22
+ * A utility for referencing Convex functions in your app's internal API.
23
+ *
24
+ * Usage:
25
+ * ```js
26
+ * const myFunctionReference = internal.myModule.myFunction;
27
+ * ```
28
+ */
29
+ export const internal = anyApi;
11
30
  export const components = componentsGeneric();
12
31
  //# sourceMappingURL=api.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/component/_generated/api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;;GAIG;AAYH,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAE1D,MAAM,OAAO,GAKR,MAAa,CAAC;AAEnB,MAAM,CAAC,MAAM,GAAG,GACd,OAAc,CAAC;AACjB,MAAM,CAAC,MAAM,QAAQ,GAGjB,OAAc,CAAC;AAEnB,MAAM,CAAC,MAAM,UAAU,GACrB,iBAAiB,EAAS,CAAC"}
1
+ {"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/component/_generated/api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;;;;;GAOG;AAaH,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAE1D,MAAM,OAAO,GAMR,MAAa,CAAC;AAEnB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,GAAG,GAGZ,MAAa,CAAC;AAElB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,QAAQ,GAGjB,MAAa,CAAC;AAElB,MAAM,CAAC,MAAM,UAAU,GAAG,iBAAiB,EAI1C,CAAC"}
@@ -0,0 +1,181 @@
1
+ /**
2
+ * Generated `ComponentApi` utility.
3
+ *
4
+ * THIS CODE IS AUTOMATICALLY GENERATED.
5
+ *
6
+ * To regenerate, run `npx convex dev`.
7
+ * @module
8
+ */
9
+ import type { FunctionReference } from "convex/server";
10
+ /**
11
+ * A utility for referencing a Convex component's exposed API.
12
+ *
13
+ * Useful when expecting a parameter like `components.myComponent`.
14
+ * Usage:
15
+ * ```ts
16
+ * async function myFunction(ctx: QueryCtx, component: ComponentApi) {
17
+ * return ctx.runQuery(component.someFile.someQuery, { ...args });
18
+ * }
19
+ * ```
20
+ */
21
+ export type ComponentApi<Name extends string | undefined = string | undefined> = {
22
+ mutations: {
23
+ configSet: FunctionReference<"mutation", "internal", {
24
+ key: string;
25
+ scope: string;
26
+ value: string;
27
+ }, null, Name>;
28
+ configure: FunctionReference<"mutation", "internal", {
29
+ retentionDays?: number;
30
+ sampleRate?: number;
31
+ scope: string;
32
+ sessionIdleMs?: number;
33
+ }, null, Name>;
34
+ track: FunctionReference<"mutation", "internal", {
35
+ dedupeKey?: string;
36
+ dimensions: Array<string>;
37
+ granularities: Array<"minute" | "hour" | "day">;
38
+ name: string;
39
+ props?: Record<string, string | number | boolean | null>;
40
+ sampleRate?: number;
41
+ scope: string;
42
+ sessionRef?: string;
43
+ subjectRef?: string;
44
+ ts?: number;
45
+ }, "tracked" | "dropped" | "duplicate", Name>;
46
+ };
47
+ queries: {
48
+ configGet: FunctionReference<"query", "internal", {
49
+ key: string;
50
+ scope: string;
51
+ }, string | null, Name>;
52
+ distribution: FunctionReference<"query", "internal", {
53
+ buckets: Array<number>;
54
+ measure: string;
55
+ name: string;
56
+ range?: {
57
+ from?: number;
58
+ to?: number;
59
+ };
60
+ scope: string;
61
+ where?: {
62
+ dim: string;
63
+ val: string | number | boolean | null;
64
+ };
65
+ }, {
66
+ bins: Array<{
67
+ count: number;
68
+ upper: number;
69
+ }>;
70
+ count: number;
71
+ overflow: number;
72
+ sum: number;
73
+ }, Name>;
74
+ funnel: FunctionReference<"query", "internal", {
75
+ range: {
76
+ from?: number;
77
+ to?: number;
78
+ };
79
+ scope: string;
80
+ steps: Array<string>;
81
+ }, Array<{
82
+ count: number;
83
+ name: string;
84
+ rate: number;
85
+ }>, Name>;
86
+ list: FunctionReference<"query", "internal", {
87
+ name: string;
88
+ paginationOpts: {
89
+ cursor: string | null;
90
+ numItems: number;
91
+ };
92
+ scope: string;
93
+ }, {
94
+ continueCursor: string;
95
+ isDone: boolean;
96
+ page: Array<{
97
+ _creationTime: number;
98
+ _id: string;
99
+ dedupeKey?: string;
100
+ name: string;
101
+ props: Record<string, string | number | boolean | null>;
102
+ scope: string;
103
+ seq: number;
104
+ sessionRef?: string;
105
+ subjectRef?: string;
106
+ ts: number;
107
+ }>;
108
+ }, Name>;
109
+ metric: FunctionReference<"query", "internal", {
110
+ name: string;
111
+ range?: {
112
+ from?: number;
113
+ to?: number;
114
+ };
115
+ scope: string;
116
+ where?: {
117
+ dim: string;
118
+ val: string | number | boolean | null;
119
+ };
120
+ }, number, Name>;
121
+ retention: FunctionReference<"query", "internal", {
122
+ cohortRange: {
123
+ from?: number;
124
+ to?: number;
125
+ };
126
+ granularity?: "minute" | "hour" | "day";
127
+ periods: number;
128
+ scope: string;
129
+ }, Array<{
130
+ cohort: number;
131
+ retained: Array<number>;
132
+ size: number;
133
+ }>, Name>;
134
+ timeseries: FunctionReference<"query", "internal", {
135
+ granularity: "minute" | "hour" | "day";
136
+ name: string;
137
+ range: {
138
+ from?: number;
139
+ to?: number;
140
+ };
141
+ scope: string;
142
+ where?: {
143
+ dim: string;
144
+ val: string | number | boolean | null;
145
+ };
146
+ }, Array<{
147
+ bucket: number;
148
+ count: number;
149
+ }>, Name>;
150
+ top: FunctionReference<"query", "internal", {
151
+ dimension: string;
152
+ limit?: number;
153
+ name: string;
154
+ range?: {
155
+ from?: number;
156
+ to?: number;
157
+ };
158
+ scope: string;
159
+ }, Array<{
160
+ count: number;
161
+ value: string;
162
+ }>, Name>;
163
+ uniques: FunctionReference<"query", "internal", {
164
+ granularity: "minute" | "hour" | "day";
165
+ range: {
166
+ from?: number;
167
+ to?: number;
168
+ };
169
+ scope: string;
170
+ }, {
171
+ dau: number;
172
+ mau: number;
173
+ trend: Array<{
174
+ bucket: number;
175
+ uniques: number;
176
+ }>;
177
+ wau: number;
178
+ }, Name>;
179
+ };
180
+ };
181
+ //# sourceMappingURL=component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/component/_generated/component.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAEvD;;;;;;;;;;GAUG;AACH,MAAM,MAAM,YAAY,CAAC,IAAI,SAAS,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,IAC3E;IACE,SAAS,EAAE;QACT,SAAS,EAAE,iBAAiB,CAC1B,UAAU,EACV,UAAU,EACV;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,EAC7C,IAAI,EACJ,IAAI,CACL,CAAC;QACF,SAAS,EAAE,iBAAiB,CAC1B,UAAU,EACV,UAAU,EACV;YACE,aAAa,CAAC,EAAE,MAAM,CAAC;YACvB,UAAU,CAAC,EAAE,MAAM,CAAC;YACpB,KAAK,EAAE,MAAM,CAAC;YACd,aAAa,CAAC,EAAE,MAAM,CAAC;SACxB,EACD,IAAI,EACJ,IAAI,CACL,CAAC;QACF,KAAK,EAAE,iBAAiB,CACtB,UAAU,EACV,UAAU,EACV;YACE,SAAS,CAAC,EAAE,MAAM,CAAC;YACnB,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;YAC1B,aAAa,EAAE,KAAK,CAAC,QAAQ,GAAG,MAAM,GAAG,KAAK,CAAC,CAAC;YAChD,IAAI,EAAE,MAAM,CAAC;YACb,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC,CAAC;YACzD,UAAU,CAAC,EAAE,MAAM,CAAC;YACpB,KAAK,EAAE,MAAM,CAAC;YACd,UAAU,CAAC,EAAE,MAAM,CAAC;YACpB,UAAU,CAAC,EAAE,MAAM,CAAC;YACpB,EAAE,CAAC,EAAE,MAAM,CAAC;SACb,EACD,SAAS,GAAG,SAAS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ACD,KAAK,CAAC;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,CAAC,EACvC,IAAI,CACL,CAAC;QACF,OAAO,EAAE,iBAAiB,CACxB,OAAO,EACP,UAAU,EACV;YACE,WAAW,EAAE,QAAQ,GAAG,MAAM,GAAG,KAAK,CAAC;YACvC,KAAK,EAAE;gBAAE,IAAI,CAAC,EAAE,MAAM,CAAC;gBAAC,EAAE,CAAC,EAAE,MAAM,CAAA;aAAE,CAAC;YACtC,KAAK,EAAE,MAAM,CAAC;SACf,EACD;YACE,GAAG,EAAE,MAAM,CAAC;YACZ,GAAG,EAAE,MAAM,CAAC;YACZ,KAAK,EAAE,KAAK,CAAC;gBAAE,MAAM,EAAE,MAAM,CAAC;gBAAC,OAAO,EAAE,MAAM,CAAA;aAAE,CAAC,CAAC;YAClD,GAAG,EAAE,MAAM,CAAC;SACb,EACD,IAAI,CACL,CAAC;KACH,CAAC;CACH,CAAC"}
@@ -0,0 +1,11 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * Generated `ComponentApi` utility.
4
+ *
5
+ * THIS CODE IS AUTOMATICALLY GENERATED.
6
+ *
7
+ * To regenerate, run `npx convex dev`.
8
+ * @module
9
+ */
10
+ export {};
11
+ //# sourceMappingURL=component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component.js","sourceRoot":"","sources":["../../../src/component/_generated/component.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;;;;;GAOG"}
@@ -1,13 +1,46 @@
1
1
  /**
2
2
  * Generated data model types.
3
+ *
3
4
  * THIS CODE IS AUTOMATICALLY GENERATED.
5
+ *
6
+ * To regenerate, run `npx convex dev`.
4
7
  * @module
5
8
  */
6
9
  import type { DataModelFromSchemaDefinition, DocumentByName, TableNamesInDataModel, SystemTableNames } from "convex/server";
7
10
  import type { GenericId } from "convex/values";
8
11
  import schema from "../schema.js";
12
+ /**
13
+ * The names of all of your Convex tables.
14
+ */
9
15
  export type TableNames = TableNamesInDataModel<DataModel>;
16
+ /**
17
+ * The type of a document stored in Convex.
18
+ *
19
+ * @typeParam TableName - A string literal type of the table name (like "users").
20
+ */
10
21
  export type Doc<TableName extends TableNames> = DocumentByName<DataModel, TableName>;
22
+ /**
23
+ * An identifier for a document in Convex.
24
+ *
25
+ * Convex documents are uniquely identified by their `Id`, which is accessible
26
+ * on the `_id` field. To learn more, see [Document IDs](https://docs.convex.dev/using/document-ids).
27
+ *
28
+ * Documents can be loaded using `db.get(tableName, id)` in query and mutation functions.
29
+ *
30
+ * IDs are just strings at runtime, but this type can be used to distinguish them from other
31
+ * strings when type checking.
32
+ *
33
+ * @typeParam TableName - A string literal type of the table name (like "users").
34
+ */
11
35
  export type Id<TableName extends TableNames | SystemTableNames> = GenericId<TableName>;
36
+ /**
37
+ * A type describing your Convex data model.
38
+ *
39
+ * This type includes information about what tables you have, the type of
40
+ * documents stored in those tables, and the indexes defined on them.
41
+ *
42
+ * This type is used to parameterize methods like `queryGeneric` and
43
+ * `mutationGeneric` to make them type-safe.
44
+ */
12
45
  export type DataModel = DataModelFromSchemaDefinition<typeof schema>;
13
46
  //# sourceMappingURL=dataModel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dataModel.d.ts","sourceRoot":"","sources":["../../../src/component/_generated/dataModel.ts"],"names":[],"mappings":"AACA;;;;GAIG;AAEH,OAAO,KAAK,EACV,6BAA6B,EAC7B,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EACjB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,MAAM,UAAU,GAAG,qBAAqB,CAAC,SAAS,CAAC,CAAC;AAC1D,MAAM,MAAM,GAAG,CAAC,SAAS,SAAS,UAAU,IAAI,cAAc,CAC5D,SAAS,EACT,SAAS,CACV,CAAC;AACF,MAAM,MAAM,EAAE,CAAC,SAAS,SAAS,UAAU,GAAG,gBAAgB,IAC5D,SAAS,CAAC,SAAS,CAAC,CAAC;AACvB,MAAM,MAAM,SAAS,GAAG,6BAA6B,CAAC,OAAO,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"dataModel.d.ts","sourceRoot":"","sources":["../../../src/component/_generated/dataModel.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,KAAK,EACV,6BAA6B,EAC7B,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EACjB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,qBAAqB,CAAC,SAAS,CAAC,CAAC;AAE1D;;;;GAIG;AACH,MAAM,MAAM,GAAG,CAAC,SAAS,SAAS,UAAU,IAAI,cAAc,CAC5D,SAAS,EACT,SAAS,CACV,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,EAAE,CAAC,SAAS,SAAS,UAAU,GAAG,gBAAgB,IAC5D,SAAS,CAAC,SAAS,CAAC,CAAC;AAEvB;;;;;;;;GAQG;AACH,MAAM,MAAM,SAAS,GAAG,6BAA6B,CAAC,OAAO,MAAM,CAAC,CAAC"}
@@ -1,7 +1,10 @@
1
1
  /* eslint-disable */
2
2
  /**
3
3
  * Generated data model types.
4
+ *
4
5
  * THIS CODE IS AUTOMATICALLY GENERATED.
6
+ *
7
+ * To regenerate, run `npx convex dev`.
5
8
  * @module
6
9
  */
7
10
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"dataModel.js","sourceRoot":"","sources":["../../../src/component/_generated/dataModel.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;;GAIG"}
1
+ {"version":3,"file":"dataModel.js","sourceRoot":"","sources":["../../../src/component/_generated/dataModel.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;;;;;GAOG"}