clivly 0.11.0-next.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/adapter-DTMeGGsl.d.cts +101 -0
- package/adapter-DhPBRNpi.d.mts +101 -0
- package/{auth-adapter-B4vVyUiX.d.mts → auth-adapter-C6rDx3XH.d.mts} +1 -1
- package/{auth-adapter-Cvc_sOpY.d.cts → auth-adapter-Csk9KkvI.d.cts} +1 -1
- package/auth-better-auth.d.cts +6 -6
- package/auth-better-auth.d.mts +6 -6
- package/auth-clerk.d.cts +5 -5
- package/auth-clerk.d.mts +5 -5
- package/auth-workos.d.cts +5 -5
- package/auth-workos.d.mts +5 -5
- package/core-adapter.d.cts +1 -1
- package/core-adapter.d.mts +1 -1
- package/core-auth-adapter.d.cts +1 -1
- package/core-auth-adapter.d.mts +1 -1
- package/core-drizzle.d.cts +1 -1
- package/core-drizzle.d.mts +1 -1
- package/core-entity-config.cjs +1 -1
- package/core-entity-config.d.cts +1 -1
- package/core-entity-config.d.mts +1 -1
- package/core-entity-config.mjs +1 -1
- package/core-entity-heuristics.d.cts +1 -1
- package/core-entity-heuristics.d.mts +1 -1
- package/core-mapping-form.d.cts +1 -1
- package/core-mapping-form.d.mts +1 -1
- package/core-mappings-config.cjs +1 -1
- package/core-mappings-config.d.cts +1 -1
- package/core-mappings-config.d.mts +1 -1
- package/core-mappings-config.mjs +1 -1
- package/core-sync-engine.cjs +1 -1
- package/core-sync-engine.d.cts +1 -1
- package/core-sync-engine.d.mts +1 -1
- package/core-sync-engine.mjs +1 -1
- package/core-types.d.cts +2 -2
- package/core-types.d.mts +2 -2
- package/core-view-compiler.cjs +1 -1
- package/core-view-compiler.d.cts +1 -1
- package/core-view-compiler.d.mts +1 -1
- package/core-view-compiler.mjs +1 -1
- package/core.cjs +12 -7
- package/core.d.cts +10 -10
- package/core.d.mts +10 -10
- package/core.mjs +8 -8
- package/{drizzle-C_0pIDpx.d.mts → drizzle-CiK37zJm.d.cts} +1 -1
- package/{drizzle-D3DcaC2d.d.cts → drizzle-ehVWLSrN.d.mts} +1 -1
- package/drizzle.cjs +3 -2
- package/drizzle.d.cts +24 -9
- package/drizzle.d.mts +24 -9
- package/drizzle.mjs +3 -2
- package/{entity-config-CbS2DGmA.d.cts → entity-config-ApnT5j3X.d.cts} +1734 -16
- package/{entity-config-EZg9BtqD.cjs → entity-config-BI4RYNKL.cjs} +18 -2
- package/{entity-config-CbS2DGmA.d.mts → entity-config-CKcj4-M_.d.mts} +1735 -16
- package/{entity-config-CO0TEwZC.mjs → entity-config-Ccfb2IL9.mjs} +27 -3
- package/index.cjs +15 -11
- package/index.d.cts +10 -11
- package/index.d.mts +10 -11
- package/index.mjs +15 -11
- package/{internal-Cz59xMj8.cjs → internal-BxtvxF7Z.cjs} +136 -0
- package/{internal-B8cq-xP-.d.cts → internal-Cmx7Zevf.d.mts} +104 -2
- package/internal-adapter.d.cts +1 -1
- package/internal-adapter.d.mts +1 -1
- package/internal-auth-adapter.d.cts +1 -1
- package/internal-auth-adapter.d.mts +1 -1
- package/internal-drizzle.d.cts +1 -1
- package/internal-drizzle.d.mts +1 -1
- 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 -1
- package/internal-entity-heuristics.cjs +9 -7
- package/internal-entity-heuristics.d.cts +21 -21
- package/internal-entity-heuristics.d.mts +21 -21
- package/internal-entity-heuristics.mjs +9 -7
- package/internal-mapping-form.d.cts +1 -1
- package/internal-mapping-form.d.mts +1 -1
- 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 -1
- 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 -1
- package/internal-types.d.cts +2 -2
- package/internal-types.d.mts +2 -2
- package/{internal-Bgiimp5D.mjs → internal-u0Bks5Gr.mjs} +107 -1
- package/{internal-DEV1NCQc.d.mts → internal-vH5Rlg6Q.d.cts} +104 -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 -1
- package/internal.cjs +12 -7
- package/internal.d.cts +10 -10
- package/internal.d.mts +10 -10
- package/internal.mjs +8 -8
- package/{mapping-form-BBgP1iEf.d.cts → mapping-form-Btn-7gzv.d.mts} +1 -1
- package/{mapping-form-B_vX_kZJ.d.mts → mapping-form-XsLLCqW_.d.cts} +1 -1
- package/{mappings-config-BRP_Dev5.cjs → mappings-config-BCsRLohT.cjs} +2 -1
- package/{mappings-config-fAfUoVuD.mjs → mappings-config-CwQNQ6bA.mjs} +2 -1
- package/{mappings-config-BXdSUl-K.d.mts → mappings-config-D6_oCi2Q.d.mts} +3 -1
- package/{mappings-config-Cvw7RDSb.d.cts → mappings-config-iJzbcUMp.d.cts} +3 -1
- package/{namespace-probe-DC4YsI6m.d.cts → namespace-probe-C5RLl74M.d.cts} +1 -1
- package/{namespace-probe-BWZ7f1fg.d.mts → namespace-probe-CNQKSmxz.d.mts} +1 -1
- package/package.json +1 -1
- package/{projection-Dz6_i1-w.cjs → projection-BELgANG2.cjs} +32 -23
- package/{projection-CSGJbZlZ.mjs → projection-DvNewmI1.mjs} +32 -23
- package/{projection-sql-CbXCKt3s.cjs → projection-sql-DuCtFE9t.cjs} +1 -1
- package/{projection-sql-iHoiYr1R.mjs → projection-sql-DweUaWRc.mjs} +1 -1
- package/{sdk-UCBezLoT.cjs → sdk-BvGSxBQc.cjs} +3 -3
- package/{sdk-CsR4W9QQ.mjs → sdk-C-Pjxj2y.mjs} +3 -3
- package/sdk.cjs +2 -2
- package/sdk.d.cts +10 -10
- package/sdk.d.mts +10 -10
- package/sdk.mjs +2 -2
- package/{sync-engine-BQRApDAG.d.mts → sync-engine--M9EaONC.d.mts} +2 -2
- package/{sync-engine-CTSIcLlZ.mjs → sync-engine-Df2MCs_n.mjs} +1 -1
- package/{sync-engine-B0FT1ax6.cjs → sync-engine-Dwm_KDUS.cjs} +1 -1
- package/{sync-engine-qxbrOEJX.d.cts → sync-engine-V3_UutGv.d.cts} +2 -2
- package/types-B17TWEOL.d.cts +288 -0
- package/types-B17TWEOL.d.mts +288 -0
- package/{view-compiler-BzKk8nY3.mjs → view-compiler-C-6RydKK.mjs} +2 -2
- package/{view-compiler-CdnLqPQx.d.mts → view-compiler-Cq8apvZ4.d.cts} +1 -1
- package/{view-compiler-P4GHpOHt.d.cts → view-compiler-CwKVoK1w.d.mts} +1 -1
- package/{view-compiler-ZKZbd3SK.cjs → view-compiler-xiwm5iar.cjs} +2 -2
- package/vite.d.cts +4 -5
- package/vite.d.mts +4 -5
- package/adapter-BQl13eS3.d.mts +0 -45
- package/adapter-CA8bA6o-.d.cts +0 -45
- package/types-S0N0hqOV.d.cts +0 -188
- package/types-S0N0hqOV.d.mts +0 -188
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_projection = require("./projection-
|
|
1
|
+
const require_projection = require("./projection-BELgANG2.cjs");
|
|
2
2
|
//#region ../core/src/schema-meta.ts
|
|
3
3
|
/**
|
|
4
4
|
* Accessors over a discovered table's schema-v2 metadata.
|
|
@@ -407,7 +407,9 @@ const CANONICAL_FIELDS = {
|
|
|
407
407
|
"name",
|
|
408
408
|
"domain",
|
|
409
409
|
"industry",
|
|
410
|
-
"size"
|
|
410
|
+
"size",
|
|
411
|
+
"email",
|
|
412
|
+
"phone"
|
|
411
413
|
],
|
|
412
414
|
deal: [
|
|
413
415
|
"name",
|
|
@@ -565,6 +567,20 @@ const entitySchema = require_projection.strictObject({
|
|
|
565
567
|
/** Named relationships to other entities in this config. */
|
|
566
568
|
relationships: require_projection.record(require_projection.string(), relationshipSchema).optional(),
|
|
567
569
|
/**
|
|
570
|
+
* Treat rows from this entity as their company's point of contact.
|
|
571
|
+
*
|
|
572
|
+
* Opt-in, and only meaningful on a `contact` entity that resolves a company.
|
|
573
|
+
* Hosts whose schema knows who owns an account (an `owner` role on a
|
|
574
|
+
* membership table, say) can declare a narrow entity for those rows and have
|
|
575
|
+
* the CRM keep each company's point of contact current automatically.
|
|
576
|
+
*
|
|
577
|
+
* Sync only manages companies nobody has intervened on: the moment a person
|
|
578
|
+
* picks a point of contact in the CRM, that company is stamped and left
|
|
579
|
+
* alone. Without that the user's choice would be silently reverted on the
|
|
580
|
+
* next run — see `syncPrimaryContacts` and `host-owned-fields.ts`.
|
|
581
|
+
*/
|
|
582
|
+
isPrimaryContact: require_projection.boolean().optional(),
|
|
583
|
+
/**
|
|
568
584
|
* For a "custom" entity, the crm_object_types row this materializes into.
|
|
569
585
|
* Server-generated, so pasting one into config couples the file to a
|
|
570
586
|
* specific workspace. Prefer declaring `objectType` and letting
|