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.
Files changed (129) hide show
  1. package/adapter-DTMeGGsl.d.cts +101 -0
  2. package/adapter-DhPBRNpi.d.mts +101 -0
  3. package/{auth-adapter-B4vVyUiX.d.mts → auth-adapter-C6rDx3XH.d.mts} +1 -1
  4. package/{auth-adapter-Cvc_sOpY.d.cts → auth-adapter-Csk9KkvI.d.cts} +1 -1
  5. package/auth-better-auth.d.cts +6 -6
  6. package/auth-better-auth.d.mts +6 -6
  7. package/auth-clerk.d.cts +5 -5
  8. package/auth-clerk.d.mts +5 -5
  9. package/auth-workos.d.cts +5 -5
  10. package/auth-workos.d.mts +5 -5
  11. package/core-adapter.d.cts +1 -1
  12. package/core-adapter.d.mts +1 -1
  13. package/core-auth-adapter.d.cts +1 -1
  14. package/core-auth-adapter.d.mts +1 -1
  15. package/core-drizzle.d.cts +1 -1
  16. package/core-drizzle.d.mts +1 -1
  17. package/core-entity-config.cjs +1 -1
  18. package/core-entity-config.d.cts +1 -1
  19. package/core-entity-config.d.mts +1 -1
  20. package/core-entity-config.mjs +1 -1
  21. package/core-entity-heuristics.d.cts +1 -1
  22. package/core-entity-heuristics.d.mts +1 -1
  23. package/core-mapping-form.d.cts +1 -1
  24. package/core-mapping-form.d.mts +1 -1
  25. package/core-mappings-config.cjs +1 -1
  26. package/core-mappings-config.d.cts +1 -1
  27. package/core-mappings-config.d.mts +1 -1
  28. package/core-mappings-config.mjs +1 -1
  29. package/core-sync-engine.cjs +1 -1
  30. package/core-sync-engine.d.cts +1 -1
  31. package/core-sync-engine.d.mts +1 -1
  32. package/core-sync-engine.mjs +1 -1
  33. package/core-types.d.cts +2 -2
  34. package/core-types.d.mts +2 -2
  35. package/core-view-compiler.cjs +1 -1
  36. package/core-view-compiler.d.cts +1 -1
  37. package/core-view-compiler.d.mts +1 -1
  38. package/core-view-compiler.mjs +1 -1
  39. package/core.cjs +12 -7
  40. package/core.d.cts +10 -10
  41. package/core.d.mts +10 -10
  42. package/core.mjs +8 -8
  43. package/{drizzle-C_0pIDpx.d.mts → drizzle-CiK37zJm.d.cts} +1 -1
  44. package/{drizzle-D3DcaC2d.d.cts → drizzle-ehVWLSrN.d.mts} +1 -1
  45. package/drizzle.cjs +3 -2
  46. package/drizzle.d.cts +24 -9
  47. package/drizzle.d.mts +24 -9
  48. package/drizzle.mjs +3 -2
  49. package/{entity-config-CbS2DGmA.d.cts → entity-config-ApnT5j3X.d.cts} +1734 -16
  50. package/{entity-config-EZg9BtqD.cjs → entity-config-BI4RYNKL.cjs} +18 -2
  51. package/{entity-config-CbS2DGmA.d.mts → entity-config-CKcj4-M_.d.mts} +1735 -16
  52. package/{entity-config-CO0TEwZC.mjs → entity-config-Ccfb2IL9.mjs} +27 -3
  53. package/index.cjs +15 -11
  54. package/index.d.cts +10 -11
  55. package/index.d.mts +10 -11
  56. package/index.mjs +15 -11
  57. package/{internal-Cz59xMj8.cjs → internal-BxtvxF7Z.cjs} +136 -0
  58. package/{internal-B8cq-xP-.d.cts → internal-Cmx7Zevf.d.mts} +104 -2
  59. package/internal-adapter.d.cts +1 -1
  60. package/internal-adapter.d.mts +1 -1
  61. package/internal-auth-adapter.d.cts +1 -1
  62. package/internal-auth-adapter.d.mts +1 -1
  63. package/internal-drizzle.d.cts +1 -1
  64. package/internal-drizzle.d.mts +1 -1
  65. package/internal-entity-config.cjs +1 -1
  66. package/internal-entity-config.d.cts +1 -1
  67. package/internal-entity-config.d.mts +1 -1
  68. package/internal-entity-config.mjs +1 -1
  69. package/internal-entity-heuristics.cjs +9 -7
  70. package/internal-entity-heuristics.d.cts +21 -21
  71. package/internal-entity-heuristics.d.mts +21 -21
  72. package/internal-entity-heuristics.mjs +9 -7
  73. package/internal-mapping-form.d.cts +1 -1
  74. package/internal-mapping-form.d.mts +1 -1
  75. package/internal-mappings-config.cjs +1 -1
  76. package/internal-mappings-config.d.cts +1 -1
  77. package/internal-mappings-config.d.mts +1 -1
  78. package/internal-mappings-config.mjs +1 -1
  79. package/internal-sync-engine.cjs +1 -1
  80. package/internal-sync-engine.d.cts +1 -1
  81. package/internal-sync-engine.d.mts +1 -1
  82. package/internal-sync-engine.mjs +1 -1
  83. package/internal-types.d.cts +2 -2
  84. package/internal-types.d.mts +2 -2
  85. package/{internal-Bgiimp5D.mjs → internal-u0Bks5Gr.mjs} +107 -1
  86. package/{internal-DEV1NCQc.d.mts → internal-vH5Rlg6Q.d.cts} +104 -2
  87. package/internal-view-compiler.cjs +1 -1
  88. package/internal-view-compiler.d.cts +1 -1
  89. package/internal-view-compiler.d.mts +1 -1
  90. package/internal-view-compiler.mjs +1 -1
  91. package/internal.cjs +12 -7
  92. package/internal.d.cts +10 -10
  93. package/internal.d.mts +10 -10
  94. package/internal.mjs +8 -8
  95. package/{mapping-form-BBgP1iEf.d.cts → mapping-form-Btn-7gzv.d.mts} +1 -1
  96. package/{mapping-form-B_vX_kZJ.d.mts → mapping-form-XsLLCqW_.d.cts} +1 -1
  97. package/{mappings-config-BRP_Dev5.cjs → mappings-config-BCsRLohT.cjs} +2 -1
  98. package/{mappings-config-fAfUoVuD.mjs → mappings-config-CwQNQ6bA.mjs} +2 -1
  99. package/{mappings-config-BXdSUl-K.d.mts → mappings-config-D6_oCi2Q.d.mts} +3 -1
  100. package/{mappings-config-Cvw7RDSb.d.cts → mappings-config-iJzbcUMp.d.cts} +3 -1
  101. package/{namespace-probe-DC4YsI6m.d.cts → namespace-probe-C5RLl74M.d.cts} +1 -1
  102. package/{namespace-probe-BWZ7f1fg.d.mts → namespace-probe-CNQKSmxz.d.mts} +1 -1
  103. package/package.json +1 -1
  104. package/{projection-Dz6_i1-w.cjs → projection-BELgANG2.cjs} +32 -23
  105. package/{projection-CSGJbZlZ.mjs → projection-DvNewmI1.mjs} +32 -23
  106. package/{projection-sql-CbXCKt3s.cjs → projection-sql-DuCtFE9t.cjs} +1 -1
  107. package/{projection-sql-iHoiYr1R.mjs → projection-sql-DweUaWRc.mjs} +1 -1
  108. package/{sdk-UCBezLoT.cjs → sdk-BvGSxBQc.cjs} +3 -3
  109. package/{sdk-CsR4W9QQ.mjs → sdk-C-Pjxj2y.mjs} +3 -3
  110. package/sdk.cjs +2 -2
  111. package/sdk.d.cts +10 -10
  112. package/sdk.d.mts +10 -10
  113. package/sdk.mjs +2 -2
  114. package/{sync-engine-BQRApDAG.d.mts → sync-engine--M9EaONC.d.mts} +2 -2
  115. package/{sync-engine-CTSIcLlZ.mjs → sync-engine-Df2MCs_n.mjs} +1 -1
  116. package/{sync-engine-B0FT1ax6.cjs → sync-engine-Dwm_KDUS.cjs} +1 -1
  117. package/{sync-engine-qxbrOEJX.d.cts → sync-engine-V3_UutGv.d.cts} +2 -2
  118. package/types-B17TWEOL.d.cts +288 -0
  119. package/types-B17TWEOL.d.mts +288 -0
  120. package/{view-compiler-BzKk8nY3.mjs → view-compiler-C-6RydKK.mjs} +2 -2
  121. package/{view-compiler-CdnLqPQx.d.mts → view-compiler-Cq8apvZ4.d.cts} +1 -1
  122. package/{view-compiler-P4GHpOHt.d.cts → view-compiler-CwKVoK1w.d.mts} +1 -1
  123. package/{view-compiler-ZKZbd3SK.cjs → view-compiler-xiwm5iar.cjs} +2 -2
  124. package/vite.d.cts +4 -5
  125. package/vite.d.mts +4 -5
  126. package/adapter-BQl13eS3.d.mts +0 -45
  127. package/adapter-CA8bA6o-.d.cts +0 -45
  128. package/types-S0N0hqOV.d.cts +0 -188
  129. package/types-S0N0hqOV.d.mts +0 -188
@@ -1,4 +1,4 @@
1
- const require_projection = require("./projection-Dz6_i1-w.cjs");
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