clivly 0.16.0 → 0.17.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 +21 -27
- package/{adapter-BMAUq4hf.d.mts → adapter-C63F9VZL.d.mts} +1 -3
- package/{adapter-IH3r_I8v.d.cts → adapter-OO5g17qF.d.cts} +1 -3
- package/{auth-adapter-CiEXcweZ.cjs → auth-adapter-CNVuxT9W.cjs} +1 -2
- package/{auth-adapter-Bt1GZiag.d.cts → auth-adapter-COMP0Fud.d.cts} +1 -3
- package/{auth-adapter-CHy273qb.d.mts → auth-adapter-ZlhllVpm.d.mts} +1 -3
- package/{auth-adapter-gfVDxf3d.mjs → auth-adapter-u91PByaw.mjs} +1 -2
- package/auth-better-auth.cjs +2 -4
- package/auth-better-auth.d.cts +1 -5
- package/auth-better-auth.d.mts +1 -5
- package/auth-better-auth.mjs +2 -4
- package/auth-clerk.cjs +2 -4
- package/auth-clerk.d.cts +1 -5
- package/auth-clerk.d.mts +1 -5
- package/auth-clerk.mjs +2 -4
- package/auth-workos.cjs +2 -4
- package/auth-workos.d.cts +1 -5
- package/auth-workos.d.mts +1 -5
- package/auth-workos.mjs +2 -4
- package/core-adapter.cjs +2 -3
- package/core-adapter.d.cts +1 -1
- package/core-adapter.d.mts +1 -1
- package/core-adapter.mjs +2 -3
- package/core-auth-adapter.cjs +3 -4
- package/core-auth-adapter.d.cts +1 -1
- package/core-auth-adapter.d.mts +1 -1
- package/core-auth-adapter.mjs +3 -5
- package/core-drizzle.cjs +3 -4
- package/core-drizzle.d.cts +1 -1
- package/core-drizzle.d.mts +1 -1
- package/core-drizzle.mjs +3 -5
- package/core-entity-config.cjs +3 -4
- package/core-entity-config.d.cts +1 -1
- package/core-entity-config.d.mts +1 -1
- package/core-entity-config.mjs +3 -5
- package/core-entity-heuristics.cjs +18 -18
- package/core-entity-heuristics.d.cts +3 -3
- package/core-entity-heuristics.d.mts +3 -3
- package/core-entity-heuristics.mjs +3 -5
- package/core-mapping-form.cjs +3 -4
- package/core-mapping-form.d.cts +1 -1
- package/core-mapping-form.d.mts +1 -1
- package/core-mapping-form.mjs +3 -5
- package/core-mapping-score.cjs +3 -4
- package/core-mapping-score.d.cts +1 -1
- package/core-mapping-score.d.mts +1 -1
- package/core-mapping-score.mjs +3 -5
- package/core-mappings-config.cjs +3 -4
- package/core-mappings-config.d.cts +1 -1
- package/core-mappings-config.d.mts +1 -1
- package/core-mappings-config.mjs +3 -5
- package/core-sync-engine.cjs +3 -4
- package/core-sync-engine.d.cts +1 -1
- package/core-sync-engine.d.mts +1 -1
- package/core-sync-engine.mjs +3 -5
- package/core-types.cjs +3 -4
- package/core-types.d.cts +1 -1
- package/core-types.d.mts +1 -1
- package/core-types.mjs +3 -5
- package/core-view-compiler.cjs +3 -4
- package/core-view-compiler.d.cts +1 -1
- package/core-view-compiler.d.mts +1 -1
- package/core-view-compiler.mjs +3 -5
- package/core.cjs +13 -13
- package/core.d.cts +11 -11
- package/core.d.mts +11 -11
- package/core.mjs +13 -14
- package/{deprecate-subpath-CmvZtCpE.mjs → deprecate-subpath-CK37DKXH.mjs} +1 -2
- package/{deprecate-subpath-B9ngvizt.cjs → deprecate-subpath-dGwDiHKV.cjs} +1 -2
- package/{drizzle-CiK37zJm.d.cts → drizzle-B9cjBavj.d.cts} +1 -3
- package/{drizzle-DcB7OfBp.cjs → drizzle-C0bfX-6a.cjs} +1 -2
- package/{drizzle-wbcuG-cy.mjs → drizzle-CZuOzIu4.mjs} +1 -2
- package/{drizzle-ehVWLSrN.d.mts → drizzle-L5FOGe_-.d.mts} +1 -3
- package/{drizzle-meta-Bb1JWYqf.cjs → drizzle-meta-BPnRLpsB.cjs} +1 -2
- package/{drizzle-meta-D-5k3n0i.mjs → drizzle-meta-D00lFvAk.mjs} +1 -2
- package/drizzle.cjs +7 -10
- package/drizzle.d.cts +3 -7
- package/drizzle.d.mts +3 -7
- package/drizzle.mjs +7 -10
- package/{entity-config-BI4RYNKL.cjs → entity-config-DiCJ6mhI.cjs} +8 -11
- package/entity-config-X-KlnYXX.d.mts +632 -0
- package/entity-config-dNclLyBM.d.cts +632 -0
- package/{entity-config-Ccfb2IL9.mjs → entity-config-g_oMPXlN.mjs} +8 -11
- package/entity-heuristics-CIParuQe.cjs +655 -0
- package/entity-heuristics-DE5ujoHw.mjs +566 -0
- package/index.cjs +65 -111
- package/index.d.cts +1 -12
- package/index.d.mts +1 -12
- package/index.mjs +53 -99
- package/{integration-state-BA4c0RbD.d.mts → integration-state-xK4PLm5T.d.cts} +0 -2
- package/{integration-state-BA4c0RbD.d.cts → integration-state-xK4PLm5T.d.mts} +0 -2
- package/{internal-CLvZdVj5.mjs → internal-9oDwwbNg.mjs} +37 -9
- package/{internal-DsArcqkP.cjs → internal-BKYt5j0l.cjs} +42 -8
- package/{internal-C7NlPM3M.d.mts → internal-COALpgov.d.cts} +1 -17
- package/{internal-D2J4VQWT.d.cts → internal-D3q4FPcA.d.mts} +1 -17
- package/internal-adapter.d.cts +1 -1
- package/internal-adapter.d.mts +1 -1
- package/internal-auth-adapter.cjs +1 -1
- package/internal-auth-adapter.d.cts +1 -1
- package/internal-auth-adapter.d.mts +1 -1
- package/internal-auth-adapter.mjs +1 -2
- package/internal-drizzle.cjs +1 -1
- package/internal-drizzle.d.cts +1 -1
- package/internal-drizzle.d.mts +1 -1
- package/internal-drizzle.mjs +1 -2
- package/internal-entity-config.cjs +1 -1
- package/internal-entity-config.d.cts +1 -1
- package/internal-entity-config.d.mts +1 -1
- package/internal-entity-config.mjs +1 -2
- package/internal-entity-heuristics.cjs +16 -576
- package/internal-entity-heuristics.d.cts +4 -4
- package/internal-entity-heuristics.d.mts +4 -4
- package/internal-entity-heuristics.mjs +1 -563
- package/internal-mapping-form.cjs +1 -1
- package/internal-mapping-form.d.cts +1 -1
- package/internal-mapping-form.d.mts +1 -1
- package/internal-mapping-form.mjs +1 -2
- package/internal-mapping-score.cjs +1 -1
- package/internal-mapping-score.d.cts +1 -1
- package/internal-mapping-score.d.mts +1 -1
- package/internal-mapping-score.mjs +1 -2
- package/internal-mappings-config.cjs +1 -1
- package/internal-mappings-config.d.cts +1 -1
- package/internal-mappings-config.d.mts +1 -1
- package/internal-mappings-config.mjs +1 -2
- package/internal-sync-engine.cjs +1 -1
- package/internal-sync-engine.d.cts +1 -1
- package/internal-sync-engine.d.mts +1 -1
- package/internal-sync-engine.mjs +1 -2
- package/internal-types.cjs +1 -1
- package/internal-types.d.cts +1 -1
- package/internal-types.d.mts +1 -1
- package/internal-types.mjs +1 -2
- package/internal-view-compiler.cjs +1 -1
- package/internal-view-compiler.d.cts +1 -1
- package/internal-view-compiler.d.mts +1 -1
- package/internal-view-compiler.mjs +1 -2
- package/internal.cjs +11 -10
- package/internal.d.cts +11 -11
- package/internal.d.mts +11 -11
- package/internal.mjs +11 -11
- package/{mapping-form-XsLLCqW_.d.cts → mapping-form-Bpvgf5b8.d.mts} +1 -3
- package/{mapping-form-BpfON_ME.cjs → mapping-form-Bs6JQurC.cjs} +1 -2
- package/{mapping-form-DigkuvFc.mjs → mapping-form-C7kDMWzp.mjs} +1 -2
- package/{mapping-form-Btn-7gzv.d.mts → mapping-form-CV7y6qox.d.cts} +1 -3
- package/{mapping-score-D7Gzg7Ii.d.cts → mapping-score-BKrxddz0.d.cts} +0 -2
- package/{mapping-score-D7Gzg7Ii.d.mts → mapping-score-BKrxddz0.d.mts} +0 -2
- package/{mapping-score-C68uAqGB.mjs → mapping-score-CS-MTDL9.mjs} +1 -2
- package/{mapping-score-CaB3F4Uu.cjs → mapping-score-D2TCQiOr.cjs} +1 -2
- package/{mappings-config-D6_oCi2Q.d.mts → mappings-config-BBppW9fp.d.cts} +1 -3
- package/{mappings-config-BCsRLohT.cjs → mappings-config-CNxBrbt9.cjs} +3 -4
- package/{mappings-config-CwQNQ6bA.mjs → mappings-config-D_g20PyS.mjs} +3 -4
- package/{mappings-config-iJzbcUMp.d.cts → mappings-config-Dmm0H6p_.d.mts} +1 -3
- package/{namespace-probe-DykR0kgh.d.mts → namespace-probe-BHk3NcyI.d.cts} +32 -9
- package/{namespace-probe-H7yWc0JV.d.cts → namespace-probe-Dt_HXcI-.d.mts} +32 -9
- package/package.json +1 -7
- package/{projection-DvNewmI1.mjs → projection-BkYXvjTr.mjs} +2444 -1166
- package/{projection-BELgANG2.cjs → projection-By63gMC-.cjs} +2447 -1163
- package/{projection-sql-DweUaWRc.mjs → projection-sql-C3gZE3GS.mjs} +2 -3
- package/{projection-sql-DuCtFE9t.cjs → projection-sql-CHz7KzNS.cjs} +2 -3
- package/schemas-BSuo_eZQ.d.cts +2160 -0
- package/schemas-BSuo_eZQ.d.mts +2160 -0
- package/{sdk-ZMy4C4VK.cjs → sdk-BZSTXPyK.cjs} +185 -74
- package/{sdk-DLoVPlGB.mjs → sdk-KzHpSf7F.mjs} +185 -74
- package/sdk.cjs +2 -2
- package/sdk.d.cts +4 -12
- package/sdk.d.mts +4 -12
- package/sdk.mjs +2 -2
- package/{sync-engine-C_5TpvfX.d.mts → sync-engine-C7W0Gkq0.d.cts} +2 -4
- package/{sync-engine-CYsWOujz.d.cts → sync-engine-C9Q2FkR9.d.mts} +2 -4
- package/{sync-engine-DH058G3w.mjs → sync-engine-CwdLkmch.mjs} +2 -3
- package/{sync-engine-BGVDsrOQ.cjs → sync-engine-Di-vF26b.cjs} +2 -3
- package/{types-YJTkXKzU.mjs → types-8KSw2AWg.mjs} +1 -2
- package/{types-Cq5gHCTq.cjs → types-B8m39L1s.cjs} +1 -2
- package/{types-CpAtAtxd.d.cts → types-C9_2vW5a.d.mts} +30 -3
- package/{types-CpAtAtxd.d.mts → types-CQ2DgEH7.d.cts} +30 -3
- package/{view-compiler-C-6RydKK.mjs → view-compiler-CLTi1VL-.mjs} +3 -4
- package/{view-compiler-xiwm5iar.cjs → view-compiler-DaOz5QVl.cjs} +3 -4
- package/{view-compiler-CwKVoK1w.d.mts → view-compiler-M23WiVGG.d.mts} +1 -3
- package/{view-compiler-Cq8apvZ4.d.cts → view-compiler-cXqt4X-c.d.cts} +1 -3
- package/vite.cjs +1 -2
- package/vite.d.cts +2 -4
- package/vite.d.mts +2 -4
- package/vite.mjs +1 -2
- package/entity-config-ApnT5j3X.d.cts +0 -4472
- package/entity-config-CKcj4-M_.d.mts +0 -4473
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ lives inside your app. It is two things in one install:
|
|
|
9
9
|
`clivly/vite`, `clivly/auth/*`).
|
|
10
10
|
|
|
11
11
|
> **The canonical end-to-end integration guide is
|
|
12
|
-
> [Connecting to Clivly Cloud](https://
|
|
12
|
+
> [Connecting to Clivly Cloud](https://clivly.com/docs/getting-started/quickstart).**
|
|
13
13
|
> This README is the command-level reference.
|
|
14
14
|
|
|
15
15
|
## Prerequisites
|
|
@@ -75,7 +75,7 @@ Every command accepts `--help` (or `-h`), which **describes without acting**.
|
|
|
75
75
|
npx clivly init [--force] [--dry-run] [--diff] [--yes] [--no-login] [--no-browser]
|
|
76
76
|
[--schema <path|package>] [--db-import <specifier>]
|
|
77
77
|
[--auth-import <specifier>] [--contact-table <table>]
|
|
78
|
-
[--company-table <table>]
|
|
78
|
+
[--company-table <table>] [--framework <name>]
|
|
79
79
|
```
|
|
80
80
|
|
|
81
81
|
Detects your framework, ORM, auth adapter and app layout, then scaffolds:
|
|
@@ -112,6 +112,7 @@ on your side. It costs nothing if you never author one.
|
|
|
112
112
|
| `--auth-import <specifier>` | Where your better-auth instance lives. Same `#exportName` form. Overrides on-disk probing, which cannot see across a package boundary |
|
|
113
113
|
| `--contact-table <name>` | Use this table as the contact entity, skipping the naming heuristics |
|
|
114
114
|
| `--company-table <name>` | Same for companies |
|
|
115
|
+
| `--framework <name>` | State the framework outright instead of detecting it: `nextjs`, `tanstack-start`, `sveltekit`, `remix` or `nuxt` |
|
|
115
116
|
|
|
116
117
|
`--contact-table` and `--company-table` accept either the SQL table name or the
|
|
117
118
|
name it is exported under in your schema module — whichever you have in front of
|
|
@@ -157,7 +158,7 @@ for the tick route unless they are on Nuxt.
|
|
|
157
158
|
|
|
158
159
|
`init` generates a config for **Drizzle only**. Prisma and Kysely projects
|
|
159
160
|
integrate through a hand-written `fetchPage` source — see the
|
|
160
|
-
[Non-Drizzle sources](https://
|
|
161
|
+
[Non-Drizzle sources](https://clivly.com/docs/getting-started/quickstart)
|
|
161
162
|
section of the guide.
|
|
162
163
|
|
|
163
164
|
Use `--schema` when your Drizzle schema is not in a common location or in
|
|
@@ -214,7 +215,9 @@ Pairs this machine with a Clivly workspace and writes `CLIVLY_SECRET_KEY` and
|
|
|
214
215
|
`CLIVLY_SYNC_TRIGGER_SECRET` into your project's env file. It creates a pairing
|
|
215
216
|
session, prints (and by default opens) an approval link, and waits while you
|
|
216
217
|
approve it in a signed-in browser. The approval link is always printed, so an
|
|
217
|
-
SSH or headless session can be approved by opening the link elsewhere.
|
|
218
|
+
SSH or headless session can be approved by opening the link elsewhere. The
|
|
219
|
+
approval page asks for a short code, which the CLI prints beside the link; enter
|
|
220
|
+
it only on a page you opened from this terminal, and never share it.
|
|
218
221
|
|
|
219
222
|
| Flag | Effect |
|
|
220
223
|
| --- | --- |
|
|
@@ -243,11 +246,9 @@ would never load.
|
|
|
243
246
|
|
|
244
247
|
#### Pairing availability
|
|
245
248
|
|
|
246
|
-
|
|
247
|
-
(
|
|
248
|
-
|
|
249
|
-
with the flag off, `clivly login` says so and exits non-zero; use the manual
|
|
250
|
-
credential path below.
|
|
249
|
+
`clivly login` is the normal path against Clivly Cloud. If pairing is
|
|
250
|
+
unavailable (the command says so and exits non-zero), use the manual credential
|
|
251
|
+
path below.
|
|
251
252
|
|
|
252
253
|
#### Manual credential path
|
|
253
254
|
|
|
@@ -264,12 +265,6 @@ the CLI requires pairing.
|
|
|
264
265
|
Write them into the env file of the package that imports `clivly`, then re-run
|
|
265
266
|
`clivly status` to confirm each step goes green.
|
|
266
267
|
|
|
267
|
-
> **Running your own Clivly backend?** `CLIVLY_TRIGGER_SECRET_WRAPPING_KEY` (a
|
|
268
|
-
> 32-byte hex key) is a **hard production prerequisite** for pairing. The
|
|
269
|
-
> trigger secret is stored encrypted with it, so without the key set on the
|
|
270
|
-
> server, `clivly login` fails with a 500 at the moment it would hand over
|
|
271
|
-
> credentials. Set it before enabling `CLIVLY_CLI_PAIRING_ENABLED`.
|
|
272
|
-
|
|
273
268
|
---
|
|
274
269
|
|
|
275
270
|
### `clivly status`
|
|
@@ -371,7 +366,7 @@ Writes the route that mints chat-widget sessions, for your detected framework
|
|
|
371
366
|
|
|
372
367
|
It creates **no widget record** — that lives in the Clivly dashboard under
|
|
373
368
|
**Settings → Chat widget**. See
|
|
374
|
-
[Adding the chat widget](https://
|
|
369
|
+
[Adding the chat widget](https://clivly.com/docs/guides/chat-widget)
|
|
375
370
|
for the full flow.
|
|
376
371
|
|
|
377
372
|
| Flag | Effect |
|
|
@@ -593,7 +588,7 @@ only what your app actually uses:
|
|
|
593
588
|
`clivly/core/*` is deprecated in favour of `clivly/internal/*`. It still
|
|
594
589
|
resolves, and emits a one-time `process.emitWarning` naming the replacement (so
|
|
595
590
|
it stays off stdout and cannot corrupt machine-readable CLI output). See
|
|
596
|
-
[
|
|
591
|
+
[the stability page](https://clivly.com/docs/reference/stability).
|
|
597
592
|
|
|
598
593
|
For a long-lived Node host, the runtime can opt into WebSocket presence with
|
|
599
594
|
`presence: { transport: "websocket" }` in `clivly.config.ts`. It keeps
|
|
@@ -610,14 +605,14 @@ socket reconnect. The CLI does not enable this setting on your behalf.
|
|
|
610
605
|
| `init` refuses to write, "No usable contact entity" | Pass `--contact-table <name>` |
|
|
611
606
|
| `init` cannot find your schema | Pass `--schema <path\|package>` |
|
|
612
607
|
| `init` scaffolded a `db` import that doesn't resolve | The probe cannot evaluate a db module that throws without `DATABASE_URL`. Fix the `TODO(clivly)` import path it left, or pass `--db-import` |
|
|
613
|
-
| `clivly login` exits non-zero, pairing unavailable |
|
|
608
|
+
| `clivly login` exits non-zero, pairing unavailable | Use the manual credential path above |
|
|
614
609
|
| App runs, no errors, dashboard stays silent | Run `clivly status` — the **Boot hook wired** step names the cause. On Next.js below 15 it is almost always the missing `experimental: { instrumentationHook: true }` in `next.config` |
|
|
615
610
|
| `Clivly reachable` fails with `invalid_api_key` (401) | The key is not one this org accepts. Re-run `npx clivly login` to re-pair, and check the key belongs to the org whose dashboard you are watching |
|
|
616
611
|
| `clivly dev` cannot start | Install `cloudflared`, or set `CLIVLY_SYNC_TRIGGER_URL` to a tunnel you run yourself |
|
|
617
612
|
| Credentials written but the app never loads them | Wrong env file for your framework — see the table under `clivly login` |
|
|
618
613
|
|
|
619
614
|
The full troubleshooting table is in the
|
|
620
|
-
[integration guide](https://
|
|
615
|
+
[integration guide](https://clivly.com/docs/troubleshooting/common-errors).
|
|
621
616
|
|
|
622
617
|
---
|
|
623
618
|
|
|
@@ -626,17 +621,16 @@ The full troubleshooting table is in the
|
|
|
626
621
|
The CLI itself emits no usage analytics or crash reports. It makes network
|
|
627
622
|
requests only to the Clivly API you point it at, and only to do what you asked:
|
|
628
623
|
pairing, heartbeats, schema pushes, and status checks. Opt-in SDK WebSocket
|
|
629
|
-
presence records bounded reliability metrics
|
|
630
|
-
|
|
624
|
+
presence records bounded reliability metrics (never credentials, identifiers,
|
|
625
|
+
row data or error text).
|
|
631
626
|
|
|
632
627
|
## Related documentation
|
|
633
628
|
|
|
634
|
-
- **[Connecting to Clivly Cloud](https://
|
|
635
|
-
- [Adding the chat widget](https://
|
|
636
|
-
- [`@clivly/sdk`
|
|
637
|
-
- [
|
|
638
|
-
- [
|
|
639
|
-
- [CHANGELOG.md](https://github.com/amani-joseph/clivly.com/blob/master/CHANGELOG.md)
|
|
629
|
+
- **[Connecting to Clivly Cloud](https://clivly.com/docs/getting-started/quickstart)** — the canonical end-to-end guide
|
|
630
|
+
- [Adding the chat widget](https://clivly.com/docs/guides/chat-widget)
|
|
631
|
+
- [`@clivly/sdk` reference](https://clivly.com/docs/reference/packages) — the runtime API surface
|
|
632
|
+
- [Stability](https://clivly.com/docs/reference/stability) — import tiers
|
|
633
|
+
- [Changelog](https://clivly.com/changelog)
|
|
640
634
|
|
|
641
635
|
## License
|
|
642
636
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { A as UpdateCompanyInput, C as RecordSource, D as TaskFilters, M as UpdateDealInput, N as UpdateTaskInput, T as Task, a as Contact, c as CreateActivityInput, d as CreateDealInput, f as CreateTaskInput, i as CompanyFilters, j as UpdateContactInput, l as CreateCompanyInput, m as Deal, o as ContactFilters, r as Company, t as Activity, u as CreateContactInput, v as Page, y as PageRequest } from "./types-
|
|
2
|
-
//#region ../core/src/adapter.d.ts
|
|
1
|
+
import { A as UpdateCompanyInput, C as RecordSource, D as TaskFilters, M as UpdateDealInput, N as UpdateTaskInput, T as Task, a as Contact, c as CreateActivityInput, d as CreateDealInput, f as CreateTaskInput, i as CompanyFilters, j as UpdateContactInput, l as CreateCompanyInput, m as Deal, o as ContactFilters, r as Company, t as Activity, u as CreateContactInput, v as Page, y as PageRequest } from "./types-C9_2vW5a.mjs";
|
|
3
2
|
/**
|
|
4
3
|
* The contract every ORM implementation fulfils. `packages/drizzle` is the first
|
|
5
4
|
* implementation; Prisma/Kysely/TypeORM can follow without changes to consumers.
|
|
@@ -124,5 +123,4 @@ interface CRMAdapter {
|
|
|
124
123
|
updateTask(orgId: string, id: string, data: UpdateTaskInput): Promise<Task>;
|
|
125
124
|
updateTaskStatus(orgId: string, id: string, status: Task["status"]): Promise<Task>;
|
|
126
125
|
}
|
|
127
|
-
//#endregion
|
|
128
126
|
export { CRMAdapter as t };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { A as UpdateCompanyInput, C as RecordSource, D as TaskFilters, M as UpdateDealInput, N as UpdateTaskInput, T as Task, a as Contact, c as CreateActivityInput, d as CreateDealInput, f as CreateTaskInput, i as CompanyFilters, j as UpdateContactInput, l as CreateCompanyInput, m as Deal, o as ContactFilters, r as Company, t as Activity, u as CreateContactInput, v as Page, y as PageRequest } from "./types-
|
|
2
|
-
//#region ../core/src/adapter.d.ts
|
|
1
|
+
import { A as UpdateCompanyInput, C as RecordSource, D as TaskFilters, M as UpdateDealInput, N as UpdateTaskInput, T as Task, a as Contact, c as CreateActivityInput, d as CreateDealInput, f as CreateTaskInput, i as CompanyFilters, j as UpdateContactInput, l as CreateCompanyInput, m as Deal, o as ContactFilters, r as Company, t as Activity, u as CreateContactInput, v as Page, y as PageRequest } from "./types-CQ2DgEH7.cjs";
|
|
3
2
|
/**
|
|
4
3
|
* The contract every ORM implementation fulfils. `packages/drizzle` is the first
|
|
5
4
|
* implementation; Prisma/Kysely/TypeORM can follow without changes to consumers.
|
|
@@ -124,5 +123,4 @@ interface CRMAdapter {
|
|
|
124
123
|
updateTask(orgId: string, id: string, data: UpdateTaskInput): Promise<Task>;
|
|
125
124
|
updateTaskStatus(orgId: string, id: string, status: Task["status"]): Promise<Task>;
|
|
126
125
|
}
|
|
127
|
-
//#endregion
|
|
128
126
|
export { CRMAdapter as t };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
// ../core/src/auth-adapter.ts
|
|
2
2
|
function authCustom(resolver) {
|
|
3
3
|
return { getUser: async (req) => await resolver(req) };
|
|
4
4
|
}
|
|
5
|
-
//#endregion
|
|
6
5
|
Object.defineProperty(exports, "authCustom", {
|
|
7
6
|
enumerable: true,
|
|
8
7
|
get: function() {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { p as CrmRole } from "./types-
|
|
2
|
-
//#region ../core/src/auth-adapter.d.ts
|
|
1
|
+
import { p as CrmRole } from "./types-CQ2DgEH7.cjs";
|
|
3
2
|
interface ClivlyUser {
|
|
4
3
|
email: string;
|
|
5
4
|
id: string;
|
|
@@ -25,5 +24,4 @@ interface CrmMembership {
|
|
|
25
24
|
interface MembershipResolver {
|
|
26
25
|
getMembership(userId: string, orgId: string): Promise<CrmMembership | null>;
|
|
27
26
|
}
|
|
28
|
-
//#endregion
|
|
29
27
|
export { authCustom as a, MembershipResolver as i, ClivlyUser as n, CrmMembership as r, ClivlyAuthAdapter as t };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { p as CrmRole } from "./types-
|
|
2
|
-
//#region ../core/src/auth-adapter.d.ts
|
|
1
|
+
import { p as CrmRole } from "./types-C9_2vW5a.mjs";
|
|
3
2
|
interface ClivlyUser {
|
|
4
3
|
email: string;
|
|
5
4
|
id: string;
|
|
@@ -25,5 +24,4 @@ interface CrmMembership {
|
|
|
25
24
|
interface MembershipResolver {
|
|
26
25
|
getMembership(userId: string, orgId: string): Promise<CrmMembership | null>;
|
|
27
26
|
}
|
|
28
|
-
//#endregion
|
|
29
27
|
export { authCustom as a, MembershipResolver as i, ClivlyUser as n, CrmMembership as r, ClivlyAuthAdapter as t };
|
package/auth-better-auth.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
|
|
2
|
+
// ../auth-better-auth/src/map.ts
|
|
3
3
|
function betterAuthUserToClivlyUser(user) {
|
|
4
4
|
if (!user.email) return null;
|
|
5
5
|
return {
|
|
@@ -8,8 +8,7 @@ function betterAuthUserToClivlyUser(user) {
|
|
|
8
8
|
name: user.name ?? void 0
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
|
-
|
|
12
|
-
//#region ../auth-better-auth/src/index.ts
|
|
11
|
+
// ../auth-better-auth/src/index.ts
|
|
13
12
|
/**
|
|
14
13
|
* better-auth → ClivlyAuthAdapter. Resolves the CRM end-user's identity from the
|
|
15
14
|
* host app's better-auth session on each request, via `auth.api.getSession`.
|
|
@@ -23,6 +22,5 @@ function createBetterAuthAdapter(options) {
|
|
|
23
22
|
return betterAuthUserToClivlyUser(session.user);
|
|
24
23
|
} };
|
|
25
24
|
}
|
|
26
|
-
//#endregion
|
|
27
25
|
exports.betterAuthUserToClivlyUser = betterAuthUserToClivlyUser;
|
|
28
26
|
exports.createBetterAuthAdapter = createBetterAuthAdapter;
|
package/auth-better-auth.d.cts
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import { n as ClivlyUser, t as ClivlyAuthAdapter } from "./auth-adapter-
|
|
2
|
-
//#region ../auth-better-auth/src/map.d.ts
|
|
1
|
+
import { n as ClivlyUser, t as ClivlyAuthAdapter } from "./auth-adapter-COMP0Fud.cjs";
|
|
3
2
|
interface BetterAuthLikeUser {
|
|
4
3
|
email?: string | null;
|
|
5
4
|
id: string;
|
|
6
5
|
name?: string | null;
|
|
7
6
|
}
|
|
8
7
|
export declare function betterAuthUserToClivlyUser(user: BetterAuthLikeUser): ClivlyUser | null;
|
|
9
|
-
//#endregion
|
|
10
|
-
//#region ../auth-better-auth/src/index.d.ts
|
|
11
8
|
export interface BetterAuthLike {
|
|
12
9
|
api: {
|
|
13
10
|
getSession(args: {
|
|
@@ -28,5 +25,4 @@ export interface BetterAuthAdapterOptions {
|
|
|
28
25
|
* `crm_members` layer.
|
|
29
26
|
*/
|
|
30
27
|
export declare function createBetterAuthAdapter(options: BetterAuthAdapterOptions): ClivlyAuthAdapter;
|
|
31
|
-
//#endregion
|
|
32
28
|
export type { BetterAuthLikeUser };
|
package/auth-better-auth.d.mts
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import { n as ClivlyUser, t as ClivlyAuthAdapter } from "./auth-adapter-
|
|
2
|
-
//#region ../auth-better-auth/src/map.d.ts
|
|
1
|
+
import { n as ClivlyUser, t as ClivlyAuthAdapter } from "./auth-adapter-ZlhllVpm.mjs";
|
|
3
2
|
interface BetterAuthLikeUser {
|
|
4
3
|
email?: string | null;
|
|
5
4
|
id: string;
|
|
6
5
|
name?: string | null;
|
|
7
6
|
}
|
|
8
7
|
export declare function betterAuthUserToClivlyUser(user: BetterAuthLikeUser): ClivlyUser | null;
|
|
9
|
-
//#endregion
|
|
10
|
-
//#region ../auth-better-auth/src/index.d.ts
|
|
11
8
|
export interface BetterAuthLike {
|
|
12
9
|
api: {
|
|
13
10
|
getSession(args: {
|
|
@@ -28,5 +25,4 @@ export interface BetterAuthAdapterOptions {
|
|
|
28
25
|
* `crm_members` layer.
|
|
29
26
|
*/
|
|
30
27
|
export declare function createBetterAuthAdapter(options: BetterAuthAdapterOptions): ClivlyAuthAdapter;
|
|
31
|
-
//#endregion
|
|
32
28
|
export type { BetterAuthLikeUser };
|
package/auth-better-auth.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// ../auth-better-auth/src/map.ts
|
|
2
2
|
function betterAuthUserToClivlyUser(user) {
|
|
3
3
|
if (!user.email) return null;
|
|
4
4
|
return {
|
|
@@ -7,8 +7,7 @@ function betterAuthUserToClivlyUser(user) {
|
|
|
7
7
|
name: user.name ?? void 0
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
-
|
|
11
|
-
//#region ../auth-better-auth/src/index.ts
|
|
10
|
+
// ../auth-better-auth/src/index.ts
|
|
12
11
|
/**
|
|
13
12
|
* better-auth → ClivlyAuthAdapter. Resolves the CRM end-user's identity from the
|
|
14
13
|
* host app's better-auth session on each request, via `auth.api.getSession`.
|
|
@@ -22,5 +21,4 @@ function createBetterAuthAdapter(options) {
|
|
|
22
21
|
return betterAuthUserToClivlyUser(session.user);
|
|
23
22
|
} };
|
|
24
23
|
}
|
|
25
|
-
//#endregion
|
|
26
24
|
export { betterAuthUserToClivlyUser, createBetterAuthAdapter };
|
package/auth-clerk.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
let _clerk_backend = require("@clerk/backend");
|
|
3
|
-
|
|
3
|
+
// ../auth-clerk/src/map.ts
|
|
4
4
|
function clerkUserToClivlyUser(user) {
|
|
5
5
|
const email = (user.emailAddresses?.find((address) => address.id === user.primaryEmailAddressId))?.emailAddress ?? user.emailAddresses?.[0]?.emailAddress;
|
|
6
6
|
if (!email) return null;
|
|
@@ -11,8 +11,7 @@ function clerkUserToClivlyUser(user) {
|
|
|
11
11
|
name
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
//#region ../auth-clerk/src/index.ts
|
|
14
|
+
// ../auth-clerk/src/index.ts
|
|
16
15
|
/**
|
|
17
16
|
* Clerk → ClivlyAuthAdapter. Resolves the CRM end-user's identity from the host
|
|
18
17
|
* app's Clerk session on each request. Answers "who is this person?" only —
|
|
@@ -29,6 +28,5 @@ function createClerkAuthAdapter(options) {
|
|
|
29
28
|
return clerkUserToClivlyUser(await client.users.getUser(auth.userId));
|
|
30
29
|
} };
|
|
31
30
|
}
|
|
32
|
-
//#endregion
|
|
33
31
|
exports.clerkUserToClivlyUser = clerkUserToClivlyUser;
|
|
34
32
|
exports.createClerkAuthAdapter = createClerkAuthAdapter;
|
package/auth-clerk.d.cts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { n as ClivlyUser, t as ClivlyAuthAdapter } from "./auth-adapter-
|
|
2
|
-
//#region ../auth-clerk/src/map.d.ts
|
|
1
|
+
import { n as ClivlyUser, t as ClivlyAuthAdapter } from "./auth-adapter-COMP0Fud.cjs";
|
|
3
2
|
interface ClerkLikeUser {
|
|
4
3
|
emailAddresses?: Array<{
|
|
5
4
|
id: string;
|
|
@@ -11,8 +10,6 @@ interface ClerkLikeUser {
|
|
|
11
10
|
primaryEmailAddressId?: string | null;
|
|
12
11
|
}
|
|
13
12
|
export declare function clerkUserToClivlyUser(user: ClerkLikeUser): ClivlyUser | null;
|
|
14
|
-
//#endregion
|
|
15
|
-
//#region ../auth-clerk/src/index.d.ts
|
|
16
13
|
export interface ClerkAuthAdapterOptions {
|
|
17
14
|
/** Origins allowed to make authenticated requests (CSRF protection). */
|
|
18
15
|
authorizedParties?: string[];
|
|
@@ -27,5 +24,4 @@ export interface ClerkAuthAdapterOptions {
|
|
|
27
24
|
* CRM authorization lives in the separate `crm_members` layer.
|
|
28
25
|
*/
|
|
29
26
|
export declare function createClerkAuthAdapter(options: ClerkAuthAdapterOptions): ClivlyAuthAdapter;
|
|
30
|
-
//#endregion
|
|
31
27
|
export type { ClerkLikeUser };
|
package/auth-clerk.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { n as ClivlyUser, t as ClivlyAuthAdapter } from "./auth-adapter-
|
|
2
|
-
//#region ../auth-clerk/src/map.d.ts
|
|
1
|
+
import { n as ClivlyUser, t as ClivlyAuthAdapter } from "./auth-adapter-ZlhllVpm.mjs";
|
|
3
2
|
interface ClerkLikeUser {
|
|
4
3
|
emailAddresses?: Array<{
|
|
5
4
|
id: string;
|
|
@@ -11,8 +10,6 @@ interface ClerkLikeUser {
|
|
|
11
10
|
primaryEmailAddressId?: string | null;
|
|
12
11
|
}
|
|
13
12
|
export declare function clerkUserToClivlyUser(user: ClerkLikeUser): ClivlyUser | null;
|
|
14
|
-
//#endregion
|
|
15
|
-
//#region ../auth-clerk/src/index.d.ts
|
|
16
13
|
export interface ClerkAuthAdapterOptions {
|
|
17
14
|
/** Origins allowed to make authenticated requests (CSRF protection). */
|
|
18
15
|
authorizedParties?: string[];
|
|
@@ -27,5 +24,4 @@ export interface ClerkAuthAdapterOptions {
|
|
|
27
24
|
* CRM authorization lives in the separate `crm_members` layer.
|
|
28
25
|
*/
|
|
29
26
|
export declare function createClerkAuthAdapter(options: ClerkAuthAdapterOptions): ClivlyAuthAdapter;
|
|
30
|
-
//#endregion
|
|
31
27
|
export type { ClerkLikeUser };
|
package/auth-clerk.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createClerkClient } from "@clerk/backend";
|
|
2
|
-
|
|
2
|
+
// ../auth-clerk/src/map.ts
|
|
3
3
|
function clerkUserToClivlyUser(user) {
|
|
4
4
|
const email = (user.emailAddresses?.find((address) => address.id === user.primaryEmailAddressId))?.emailAddress ?? user.emailAddresses?.[0]?.emailAddress;
|
|
5
5
|
if (!email) return null;
|
|
@@ -10,8 +10,7 @@ function clerkUserToClivlyUser(user) {
|
|
|
10
10
|
name
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
|
-
|
|
14
|
-
//#region ../auth-clerk/src/index.ts
|
|
13
|
+
// ../auth-clerk/src/index.ts
|
|
15
14
|
/**
|
|
16
15
|
* Clerk → ClivlyAuthAdapter. Resolves the CRM end-user's identity from the host
|
|
17
16
|
* app's Clerk session on each request. Answers "who is this person?" only —
|
|
@@ -28,5 +27,4 @@ function createClerkAuthAdapter(options) {
|
|
|
28
27
|
return clerkUserToClivlyUser(await client.users.getUser(auth.userId));
|
|
29
28
|
} };
|
|
30
29
|
}
|
|
31
|
-
//#endregion
|
|
32
30
|
export { clerkUserToClivlyUser, createClerkAuthAdapter };
|
package/auth-workos.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
let _workos_inc_node = require("@workos-inc/node");
|
|
3
|
-
|
|
3
|
+
// ../auth-workos/src/map.ts
|
|
4
4
|
function workosUserToClivlyUser(user) {
|
|
5
5
|
if (!user.email) return null;
|
|
6
6
|
const name = [user.firstName, user.lastName].filter(Boolean).join(" ") || void 0;
|
|
@@ -20,8 +20,7 @@ function readCookie(req, name) {
|
|
|
20
20
|
}
|
|
21
21
|
return null;
|
|
22
22
|
}
|
|
23
|
-
|
|
24
|
-
//#region ../auth-workos/src/index.ts
|
|
23
|
+
// ../auth-workos/src/index.ts
|
|
25
24
|
const DEFAULT_COOKIE_NAME = "wos-session";
|
|
26
25
|
/**
|
|
27
26
|
* WorkOS → ClivlyAuthAdapter. Unseals the host app's AuthKit session cookie and
|
|
@@ -42,6 +41,5 @@ function createWorkOSAuthAdapter(options) {
|
|
|
42
41
|
return workosUserToClivlyUser(result.user);
|
|
43
42
|
} };
|
|
44
43
|
}
|
|
45
|
-
//#endregion
|
|
46
44
|
exports.createWorkOSAuthAdapter = createWorkOSAuthAdapter;
|
|
47
45
|
exports.workosUserToClivlyUser = workosUserToClivlyUser;
|
package/auth-workos.d.cts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { n as ClivlyUser, t as ClivlyAuthAdapter } from "./auth-adapter-
|
|
2
|
-
//#region ../auth-workos/src/map.d.ts
|
|
1
|
+
import { n as ClivlyUser, t as ClivlyAuthAdapter } from "./auth-adapter-COMP0Fud.cjs";
|
|
3
2
|
interface WorkOSLikeUser {
|
|
4
3
|
email: string;
|
|
5
4
|
firstName?: string | null;
|
|
@@ -7,8 +6,6 @@ interface WorkOSLikeUser {
|
|
|
7
6
|
lastName?: string | null;
|
|
8
7
|
}
|
|
9
8
|
export declare function workosUserToClivlyUser(user: WorkOSLikeUser): ClivlyUser | null;
|
|
10
|
-
//#endregion
|
|
11
|
-
//#region ../auth-workos/src/index.d.ts
|
|
12
9
|
export interface WorkOSAuthAdapterOptions {
|
|
13
10
|
/** WorkOS API key (sk_…). */
|
|
14
11
|
apiKey: string;
|
|
@@ -25,5 +22,4 @@ export interface WorkOSAuthAdapterOptions {
|
|
|
25
22
|
* CRM authorization lives in the separate `crm_members` layer.
|
|
26
23
|
*/
|
|
27
24
|
export declare function createWorkOSAuthAdapter(options: WorkOSAuthAdapterOptions): ClivlyAuthAdapter;
|
|
28
|
-
//#endregion
|
|
29
25
|
export type { WorkOSLikeUser };
|
package/auth-workos.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { n as ClivlyUser, t as ClivlyAuthAdapter } from "./auth-adapter-
|
|
2
|
-
//#region ../auth-workos/src/map.d.ts
|
|
1
|
+
import { n as ClivlyUser, t as ClivlyAuthAdapter } from "./auth-adapter-ZlhllVpm.mjs";
|
|
3
2
|
interface WorkOSLikeUser {
|
|
4
3
|
email: string;
|
|
5
4
|
firstName?: string | null;
|
|
@@ -7,8 +6,6 @@ interface WorkOSLikeUser {
|
|
|
7
6
|
lastName?: string | null;
|
|
8
7
|
}
|
|
9
8
|
export declare function workosUserToClivlyUser(user: WorkOSLikeUser): ClivlyUser | null;
|
|
10
|
-
//#endregion
|
|
11
|
-
//#region ../auth-workos/src/index.d.ts
|
|
12
9
|
export interface WorkOSAuthAdapterOptions {
|
|
13
10
|
/** WorkOS API key (sk_…). */
|
|
14
11
|
apiKey: string;
|
|
@@ -25,5 +22,4 @@ export interface WorkOSAuthAdapterOptions {
|
|
|
25
22
|
* CRM authorization lives in the separate `crm_members` layer.
|
|
26
23
|
*/
|
|
27
24
|
export declare function createWorkOSAuthAdapter(options: WorkOSAuthAdapterOptions): ClivlyAuthAdapter;
|
|
28
|
-
//#endregion
|
|
29
25
|
export type { WorkOSLikeUser };
|
package/auth-workos.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WorkOS } from "@workos-inc/node";
|
|
2
|
-
|
|
2
|
+
// ../auth-workos/src/map.ts
|
|
3
3
|
function workosUserToClivlyUser(user) {
|
|
4
4
|
if (!user.email) return null;
|
|
5
5
|
const name = [user.firstName, user.lastName].filter(Boolean).join(" ") || void 0;
|
|
@@ -19,8 +19,7 @@ function readCookie(req, name) {
|
|
|
19
19
|
}
|
|
20
20
|
return null;
|
|
21
21
|
}
|
|
22
|
-
|
|
23
|
-
//#region ../auth-workos/src/index.ts
|
|
22
|
+
// ../auth-workos/src/index.ts
|
|
24
23
|
const DEFAULT_COOKIE_NAME = "wos-session";
|
|
25
24
|
/**
|
|
26
25
|
* WorkOS → ClivlyAuthAdapter. Unseals the host app's AuthKit session cookie and
|
|
@@ -41,5 +40,4 @@ function createWorkOSAuthAdapter(options) {
|
|
|
41
40
|
return workosUserToClivlyUser(result.user);
|
|
42
41
|
} };
|
|
43
42
|
}
|
|
44
|
-
//#endregion
|
|
45
43
|
export { createWorkOSAuthAdapter, workosUserToClivlyUser };
|
package/core-adapter.cjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
const require_deprecate_subpath = require("./deprecate-subpath-
|
|
1
|
+
const require_deprecate_subpath = require("./deprecate-subpath-dGwDiHKV.cjs");
|
|
2
2
|
require("./internal-adapter.cjs");
|
|
3
|
-
|
|
3
|
+
// src/core-adapter.ts
|
|
4
4
|
require_deprecate_subpath.warnDeprecatedSubpath("clivly/core/adapter", "clivly/internal/adapter");
|
|
5
|
-
//#endregion
|
package/core-adapter.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as CRMAdapter } from "./adapter-
|
|
1
|
+
import { t as CRMAdapter } from "./adapter-OO5g17qF.cjs";
|
|
2
2
|
export { CRMAdapter };
|
package/core-adapter.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as CRMAdapter } from "./adapter-
|
|
1
|
+
import { t as CRMAdapter } from "./adapter-C63F9VZL.mjs";
|
|
2
2
|
export { CRMAdapter };
|
package/core-adapter.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { t as warnDeprecatedSubpath } from "./deprecate-subpath-
|
|
1
|
+
import { t as warnDeprecatedSubpath } from "./deprecate-subpath-CK37DKXH.mjs";
|
|
2
2
|
import "./internal-adapter.mjs";
|
|
3
|
-
|
|
3
|
+
// src/core-adapter.ts
|
|
4
4
|
warnDeprecatedSubpath("clivly/core/adapter", "clivly/internal/adapter");
|
|
5
|
-
//#endregion
|
|
6
5
|
export {};
|
package/core-auth-adapter.cjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_auth_adapter = require("./auth-adapter-
|
|
3
|
-
const require_deprecate_subpath = require("./deprecate-subpath-
|
|
2
|
+
const require_auth_adapter = require("./auth-adapter-CNVuxT9W.cjs");
|
|
3
|
+
const require_deprecate_subpath = require("./deprecate-subpath-dGwDiHKV.cjs");
|
|
4
4
|
require("./internal-auth-adapter.cjs");
|
|
5
|
-
|
|
5
|
+
// src/core-auth-adapter.ts
|
|
6
6
|
require_deprecate_subpath.warnDeprecatedSubpath("clivly/core/auth-adapter", "clivly/internal/auth-adapter");
|
|
7
|
-
//#endregion
|
|
8
7
|
exports.authCustom = require_auth_adapter.authCustom;
|
package/core-auth-adapter.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as authCustom, i as MembershipResolver, n as ClivlyUser, r as CrmMembership, t as ClivlyAuthAdapter } from "./auth-adapter-
|
|
1
|
+
import { a as authCustom, i as MembershipResolver, n as ClivlyUser, r as CrmMembership, t as ClivlyAuthAdapter } from "./auth-adapter-COMP0Fud.cjs";
|
|
2
2
|
export { ClivlyAuthAdapter, ClivlyUser, CrmMembership, MembershipResolver, authCustom };
|
package/core-auth-adapter.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as authCustom, i as MembershipResolver, n as ClivlyUser, r as CrmMembership, t as ClivlyAuthAdapter } from "./auth-adapter-
|
|
1
|
+
import { a as authCustom, i as MembershipResolver, n as ClivlyUser, r as CrmMembership, t as ClivlyAuthAdapter } from "./auth-adapter-ZlhllVpm.mjs";
|
|
2
2
|
export { ClivlyAuthAdapter, ClivlyUser, CrmMembership, MembershipResolver, authCustom };
|
package/core-auth-adapter.mjs
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { t as warnDeprecatedSubpath } from "./deprecate-subpath-
|
|
1
|
+
export { t as authCustom } from "./auth-adapter-u91PByaw.mjs";
|
|
2
|
+
import { t as warnDeprecatedSubpath } from "./deprecate-subpath-CK37DKXH.mjs";
|
|
3
3
|
import "./internal-auth-adapter.mjs";
|
|
4
|
-
|
|
4
|
+
// src/core-auth-adapter.ts
|
|
5
5
|
warnDeprecatedSubpath("clivly/core/auth-adapter", "clivly/internal/auth-adapter");
|
|
6
|
-
//#endregion
|
|
7
|
-
export { authCustom };
|
package/core-drizzle.cjs
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_deprecate_subpath = require("./deprecate-subpath-
|
|
3
|
-
const require_drizzle = require("./drizzle-
|
|
2
|
+
const require_deprecate_subpath = require("./deprecate-subpath-dGwDiHKV.cjs");
|
|
3
|
+
const require_drizzle = require("./drizzle-C0bfX-6a.cjs");
|
|
4
4
|
require("./internal-drizzle.cjs");
|
|
5
|
-
|
|
5
|
+
// src/core-drizzle.ts
|
|
6
6
|
require_deprecate_subpath.warnDeprecatedSubpath("clivly/core/drizzle", "clivly/internal/drizzle");
|
|
7
|
-
//#endregion
|
|
8
7
|
exports.buildColumnsMeta = require_drizzle.buildColumnsMeta;
|
|
9
8
|
exports.buildUniqueConstraints = require_drizzle.buildUniqueConstraints;
|
|
10
9
|
exports.discoverFromDrizzle = require_drizzle.discoverFromDrizzle;
|
package/core-drizzle.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as buildUniqueConstraints, r as discoverFromDrizzle, t as buildColumnsMeta } from "./drizzle-
|
|
1
|
+
import { n as buildUniqueConstraints, r as discoverFromDrizzle, t as buildColumnsMeta } from "./drizzle-B9cjBavj.cjs";
|
|
2
2
|
import "./internal-drizzle.cjs";
|
|
3
3
|
export { buildColumnsMeta, buildUniqueConstraints, discoverFromDrizzle };
|
package/core-drizzle.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as buildUniqueConstraints, r as discoverFromDrizzle, t as buildColumnsMeta } from "./drizzle-
|
|
1
|
+
import { n as buildUniqueConstraints, r as discoverFromDrizzle, t as buildColumnsMeta } from "./drizzle-L5FOGe_-.mjs";
|
|
2
2
|
import "./internal-drizzle.mjs";
|
|
3
3
|
export { buildColumnsMeta, buildUniqueConstraints, discoverFromDrizzle };
|
package/core-drizzle.mjs
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { t as warnDeprecatedSubpath } from "./deprecate-subpath-
|
|
2
|
-
|
|
1
|
+
import { t as warnDeprecatedSubpath } from "./deprecate-subpath-CK37DKXH.mjs";
|
|
2
|
+
export { t as buildColumnsMeta, n as buildUniqueConstraints, r as discoverFromDrizzle } from "./drizzle-CZuOzIu4.mjs";
|
|
3
3
|
import "./internal-drizzle.mjs";
|
|
4
|
-
|
|
4
|
+
// src/core-drizzle.ts
|
|
5
5
|
warnDeprecatedSubpath("clivly/core/drizzle", "clivly/internal/drizzle");
|
|
6
|
-
//#endregion
|
|
7
|
-
export { buildColumnsMeta, buildUniqueConstraints, discoverFromDrizzle };
|
package/core-entity-config.cjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_entity_config = require("./entity-config-
|
|
3
|
-
|
|
4
|
-
require("./deprecate-subpath-
|
|
5
|
-
//#endregion
|
|
2
|
+
const require_entity_config = require("./entity-config-DiCJ6mhI.cjs");
|
|
3
|
+
// src/core-entity-config.ts
|
|
4
|
+
require("./deprecate-subpath-dGwDiHKV.cjs").warnDeprecatedSubpath("clivly/core/entity-config", "clivly/internal/entity-config");
|
|
6
5
|
exports.CANONICAL_FIELDS = require_entity_config.CANONICAL_FIELDS;
|
|
7
6
|
exports.CRM_CONCEPTS = require_entity_config.CRM_CONCEPTS;
|
|
8
7
|
exports.CUSTOM_CONCEPT = require_entity_config.CUSTOM_CONCEPT;
|
package/core-entity-config.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as relationshipsSchema, C as customObjectDeclarations, D as missingRequiredFields, E as filterSchema, M as validateEntitiesConfig, O as projectionFields, S as RelationshipsMap, T as entitiesConfigSchema, _ as MATERIALIZING_CONCEPTS, a as ClivlyEntitiesConfig, b as RelationshipSpec, c as ClivlyEntityConfigInput, d as CrmConcept, f as CustomObjectDeclaration, g as FilterValue, h as FilterExpr, i as ClivlyConfigError, j as requiredFieldsFor, k as relationshipSchema, l as ConfigValidationError, m as DiscoveredSchemaTable, n as CRM_CONCEPTS, o as ClivlyEntitiesConfigInput, p as DiscoveredColumnMeta, r as CUSTOM_CONCEPT, s as ClivlyEntityConfig, t as CANONICAL_FIELDS, u as ConfigValidationResult, v as MaterializingConcept, w as defineClivlyConfig, x as RelationshipVia, y as REQUIRED_FIELDS } from "./entity-config-
|
|
1
|
+
import { A as relationshipsSchema, C as customObjectDeclarations, D as missingRequiredFields, E as filterSchema, M as validateEntitiesConfig, O as projectionFields, S as RelationshipsMap, T as entitiesConfigSchema, _ as MATERIALIZING_CONCEPTS, a as ClivlyEntitiesConfig, b as RelationshipSpec, c as ClivlyEntityConfigInput, d as CrmConcept, f as CustomObjectDeclaration, g as FilterValue, h as FilterExpr, i as ClivlyConfigError, j as requiredFieldsFor, k as relationshipSchema, l as ConfigValidationError, m as DiscoveredSchemaTable, n as CRM_CONCEPTS, o as ClivlyEntitiesConfigInput, p as DiscoveredColumnMeta, r as CUSTOM_CONCEPT, s as ClivlyEntityConfig, t as CANONICAL_FIELDS, u as ConfigValidationResult, v as MaterializingConcept, w as defineClivlyConfig, x as RelationshipVia, y as REQUIRED_FIELDS } from "./entity-config-dNclLyBM.cjs";
|
|
2
2
|
export { CANONICAL_FIELDS, CRM_CONCEPTS, CUSTOM_CONCEPT, ClivlyConfigError, ClivlyEntitiesConfig, ClivlyEntitiesConfigInput, ClivlyEntityConfig, ClivlyEntityConfigInput, ConfigValidationError, ConfigValidationResult, CrmConcept, CustomObjectDeclaration, DiscoveredColumnMeta, DiscoveredSchemaTable, FilterExpr, FilterValue, MATERIALIZING_CONCEPTS, MaterializingConcept, REQUIRED_FIELDS, RelationshipSpec, RelationshipVia, RelationshipsMap, customObjectDeclarations, defineClivlyConfig, entitiesConfigSchema, filterSchema, missingRequiredFields, projectionFields, relationshipSchema, relationshipsSchema, requiredFieldsFor, validateEntitiesConfig };
|
package/core-entity-config.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as relationshipsSchema, C as customObjectDeclarations, D as missingRequiredFields, E as filterSchema, M as validateEntitiesConfig, O as projectionFields, S as RelationshipsMap, T as entitiesConfigSchema, _ as MATERIALIZING_CONCEPTS, a as ClivlyEntitiesConfig, b as RelationshipSpec, c as ClivlyEntityConfigInput, d as CrmConcept, f as CustomObjectDeclaration, g as FilterValue, h as FilterExpr, i as ClivlyConfigError, j as requiredFieldsFor, k as relationshipSchema, l as ConfigValidationError, m as DiscoveredSchemaTable, n as CRM_CONCEPTS, o as ClivlyEntitiesConfigInput, p as DiscoveredColumnMeta, r as CUSTOM_CONCEPT, s as ClivlyEntityConfig, t as CANONICAL_FIELDS, u as ConfigValidationResult, v as MaterializingConcept, w as defineClivlyConfig, x as RelationshipVia, y as REQUIRED_FIELDS } from "./entity-config-
|
|
1
|
+
import { A as relationshipsSchema, C as customObjectDeclarations, D as missingRequiredFields, E as filterSchema, M as validateEntitiesConfig, O as projectionFields, S as RelationshipsMap, T as entitiesConfigSchema, _ as MATERIALIZING_CONCEPTS, a as ClivlyEntitiesConfig, b as RelationshipSpec, c as ClivlyEntityConfigInput, d as CrmConcept, f as CustomObjectDeclaration, g as FilterValue, h as FilterExpr, i as ClivlyConfigError, j as requiredFieldsFor, k as relationshipSchema, l as ConfigValidationError, m as DiscoveredSchemaTable, n as CRM_CONCEPTS, o as ClivlyEntitiesConfigInput, p as DiscoveredColumnMeta, r as CUSTOM_CONCEPT, s as ClivlyEntityConfig, t as CANONICAL_FIELDS, u as ConfigValidationResult, v as MaterializingConcept, w as defineClivlyConfig, x as RelationshipVia, y as REQUIRED_FIELDS } from "./entity-config-X-KlnYXX.mjs";
|
|
2
2
|
export { CANONICAL_FIELDS, CRM_CONCEPTS, CUSTOM_CONCEPT, ClivlyConfigError, ClivlyEntitiesConfig, ClivlyEntitiesConfigInput, ClivlyEntityConfig, ClivlyEntityConfigInput, ConfigValidationError, ConfigValidationResult, CrmConcept, CustomObjectDeclaration, DiscoveredColumnMeta, DiscoveredSchemaTable, FilterExpr, FilterValue, MATERIALIZING_CONCEPTS, MaterializingConcept, REQUIRED_FIELDS, RelationshipSpec, RelationshipVia, RelationshipsMap, customObjectDeclarations, defineClivlyConfig, entitiesConfigSchema, filterSchema, missingRequiredFields, projectionFields, relationshipSchema, relationshipsSchema, requiredFieldsFor, validateEntitiesConfig };
|