clivly 0.15.0 → 0.17.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 (183) hide show
  1. package/{adapter-BMAUq4hf.d.mts → adapter-BpAfha3z.d.mts} +1 -3
  2. package/{adapter-IH3r_I8v.d.cts → adapter-BvSigBPG.d.cts} +1 -3
  3. package/{auth-adapter-CiEXcweZ.cjs → auth-adapter-CNVuxT9W.cjs} +1 -2
  4. package/{auth-adapter-Bt1GZiag.d.cts → auth-adapter-CsZE4ugg.d.cts} +1 -3
  5. package/{auth-adapter-CHy273qb.d.mts → auth-adapter-Q6CL2VHr.d.mts} +1 -3
  6. package/{auth-adapter-gfVDxf3d.mjs → auth-adapter-u91PByaw.mjs} +1 -2
  7. package/auth-better-auth.cjs +2 -4
  8. package/auth-better-auth.d.cts +1 -5
  9. package/auth-better-auth.d.mts +1 -5
  10. package/auth-better-auth.mjs +2 -4
  11. package/auth-clerk.cjs +2 -4
  12. package/auth-clerk.d.cts +1 -5
  13. package/auth-clerk.d.mts +1 -5
  14. package/auth-clerk.mjs +2 -4
  15. package/auth-workos.cjs +2 -4
  16. package/auth-workos.d.cts +1 -5
  17. package/auth-workos.d.mts +1 -5
  18. package/auth-workos.mjs +2 -4
  19. package/core-adapter.cjs +2 -3
  20. package/core-adapter.d.cts +1 -1
  21. package/core-adapter.d.mts +1 -1
  22. package/core-adapter.mjs +2 -3
  23. package/core-auth-adapter.cjs +3 -4
  24. package/core-auth-adapter.d.cts +1 -1
  25. package/core-auth-adapter.d.mts +1 -1
  26. package/core-auth-adapter.mjs +3 -5
  27. package/core-drizzle.cjs +3 -4
  28. package/core-drizzle.d.cts +1 -1
  29. package/core-drizzle.d.mts +1 -1
  30. package/core-drizzle.mjs +3 -5
  31. package/core-entity-config.cjs +3 -4
  32. package/core-entity-config.d.cts +1 -1
  33. package/core-entity-config.d.mts +1 -1
  34. package/core-entity-config.mjs +3 -5
  35. package/core-entity-heuristics.cjs +2 -3
  36. package/core-entity-heuristics.d.cts +1 -1
  37. package/core-entity-heuristics.d.mts +1 -1
  38. package/core-entity-heuristics.mjs +3 -5
  39. package/core-mapping-form.cjs +3 -4
  40. package/core-mapping-form.d.cts +1 -1
  41. package/core-mapping-form.d.mts +1 -1
  42. package/core-mapping-form.mjs +3 -5
  43. package/core-mapping-score.cjs +3 -4
  44. package/core-mapping-score.d.cts +1 -1
  45. package/core-mapping-score.d.mts +1 -1
  46. package/core-mapping-score.mjs +3 -5
  47. package/core-mappings-config.cjs +3 -4
  48. package/core-mappings-config.d.cts +1 -1
  49. package/core-mappings-config.d.mts +1 -1
  50. package/core-mappings-config.mjs +3 -5
  51. package/core-sync-engine.cjs +3 -4
  52. package/core-sync-engine.d.cts +1 -1
  53. package/core-sync-engine.d.mts +1 -1
  54. package/core-sync-engine.mjs +3 -5
  55. package/core-types.cjs +3 -4
  56. package/core-types.d.cts +1 -1
  57. package/core-types.d.mts +1 -1
  58. package/core-types.mjs +3 -5
  59. package/core-view-compiler.cjs +3 -4
  60. package/core-view-compiler.d.cts +1 -1
  61. package/core-view-compiler.d.mts +1 -1
  62. package/core-view-compiler.mjs +3 -5
  63. package/core.cjs +13 -13
  64. package/core.d.cts +11 -11
  65. package/core.d.mts +11 -11
  66. package/core.mjs +13 -14
  67. package/{deprecate-subpath-CmvZtCpE.mjs → deprecate-subpath-CK37DKXH.mjs} +1 -2
  68. package/{deprecate-subpath-B9ngvizt.cjs → deprecate-subpath-dGwDiHKV.cjs} +1 -2
  69. package/{drizzle-DcB7OfBp.cjs → drizzle-C0bfX-6a.cjs} +1 -2
  70. package/{drizzle-wbcuG-cy.mjs → drizzle-CZuOzIu4.mjs} +1 -2
  71. package/{drizzle-CiK37zJm.d.cts → drizzle-MUNZgh1l.d.cts} +1 -3
  72. package/{drizzle-ehVWLSrN.d.mts → drizzle-UJbPCzPJ.d.mts} +1 -3
  73. package/{drizzle-meta-Bb1JWYqf.cjs → drizzle-meta-BPnRLpsB.cjs} +1 -2
  74. package/{drizzle-meta-D-5k3n0i.mjs → drizzle-meta-D00lFvAk.mjs} +1 -2
  75. package/drizzle.cjs +7 -10
  76. package/drizzle.d.cts +3 -7
  77. package/drizzle.d.mts +3 -7
  78. package/drizzle.mjs +7 -10
  79. package/entity-config-BF7pcXFB.d.cts +632 -0
  80. package/{entity-config-Ccfb2IL9.mjs → entity-config-DQVSprlG.mjs} +8 -11
  81. package/{entity-config-BI4RYNKL.cjs → entity-config-nWWgJXLw.cjs} +8 -11
  82. package/entity-config-pzamFSKw.d.mts +632 -0
  83. package/index.cjs +51 -98
  84. package/index.d.cts +1 -12
  85. package/index.d.mts +1 -12
  86. package/index.mjs +51 -98
  87. package/{integration-state-BA4c0RbD.d.mts → integration-state-xK4PLm5T.d.cts} +0 -2
  88. package/{integration-state-BA4c0RbD.d.cts → integration-state-xK4PLm5T.d.mts} +0 -2
  89. package/{internal-C7NlPM3M.d.mts → internal-C-uvosSL.d.cts} +1 -17
  90. package/{internal-DsArcqkP.cjs → internal-CjJy-cy1.cjs} +42 -8
  91. package/{internal-CLvZdVj5.mjs → internal-DtLZyjf8.mjs} +37 -9
  92. package/{internal-D2J4VQWT.d.cts → internal-Gie7hCpK.d.mts} +1 -17
  93. package/internal-adapter.d.cts +1 -1
  94. package/internal-adapter.d.mts +1 -1
  95. package/internal-auth-adapter.cjs +1 -1
  96. package/internal-auth-adapter.d.cts +1 -1
  97. package/internal-auth-adapter.d.mts +1 -1
  98. package/internal-auth-adapter.mjs +1 -2
  99. package/internal-drizzle.cjs +1 -1
  100. package/internal-drizzle.d.cts +1 -1
  101. package/internal-drizzle.d.mts +1 -1
  102. package/internal-drizzle.mjs +1 -2
  103. package/internal-entity-config.cjs +1 -1
  104. package/internal-entity-config.d.cts +1 -1
  105. package/internal-entity-config.d.mts +1 -1
  106. package/internal-entity-config.mjs +1 -2
  107. package/internal-entity-heuristics.cjs +3 -4
  108. package/internal-entity-heuristics.d.cts +2 -4
  109. package/internal-entity-heuristics.d.mts +2 -4
  110. package/internal-entity-heuristics.mjs +3 -4
  111. package/internal-mapping-form.cjs +1 -1
  112. package/internal-mapping-form.d.cts +1 -1
  113. package/internal-mapping-form.d.mts +1 -1
  114. package/internal-mapping-form.mjs +1 -2
  115. package/internal-mapping-score.cjs +1 -1
  116. package/internal-mapping-score.d.cts +1 -1
  117. package/internal-mapping-score.d.mts +1 -1
  118. package/internal-mapping-score.mjs +1 -2
  119. package/internal-mappings-config.cjs +1 -1
  120. package/internal-mappings-config.d.cts +1 -1
  121. package/internal-mappings-config.d.mts +1 -1
  122. package/internal-mappings-config.mjs +1 -2
  123. package/internal-sync-engine.cjs +1 -1
  124. package/internal-sync-engine.d.cts +1 -1
  125. package/internal-sync-engine.d.mts +1 -1
  126. package/internal-sync-engine.mjs +1 -2
  127. package/internal-types.cjs +1 -1
  128. package/internal-types.d.cts +1 -1
  129. package/internal-types.d.mts +1 -1
  130. package/internal-types.mjs +1 -2
  131. package/internal-view-compiler.cjs +1 -1
  132. package/internal-view-compiler.d.cts +1 -1
  133. package/internal-view-compiler.d.mts +1 -1
  134. package/internal-view-compiler.mjs +1 -2
  135. package/internal.cjs +11 -10
  136. package/internal.d.cts +11 -11
  137. package/internal.d.mts +11 -11
  138. package/internal.mjs +11 -11
  139. package/{mapping-form-BpfON_ME.cjs → mapping-form-Bs6JQurC.cjs} +1 -2
  140. package/{mapping-form-XsLLCqW_.d.cts → mapping-form-BymksK7h.d.mts} +1 -3
  141. package/{mapping-form-DigkuvFc.mjs → mapping-form-C7kDMWzp.mjs} +1 -2
  142. package/{mapping-form-Btn-7gzv.d.mts → mapping-form-Cmf8y-1m.d.cts} +1 -3
  143. package/{mapping-score-D7Gzg7Ii.d.cts → mapping-score-BKrxddz0.d.cts} +0 -2
  144. package/{mapping-score-D7Gzg7Ii.d.mts → mapping-score-BKrxddz0.d.mts} +0 -2
  145. package/{mapping-score-C68uAqGB.mjs → mapping-score-CS-MTDL9.mjs} +1 -2
  146. package/{mapping-score-CaB3F4Uu.cjs → mapping-score-D2TCQiOr.cjs} +1 -2
  147. package/{mappings-config-CwQNQ6bA.mjs → mappings-config-C7FPwrJT.mjs} +3 -4
  148. package/{mappings-config-BCsRLohT.cjs → mappings-config-DBG-KnYl.cjs} +3 -4
  149. package/{mappings-config-D6_oCi2Q.d.mts → mappings-config-Dsz6rcJb.d.cts} +1 -3
  150. package/{mappings-config-iJzbcUMp.d.cts → mappings-config-ktJhxmHm.d.mts} +1 -3
  151. package/{namespace-probe-DykR0kgh.d.mts → namespace-probe-By8SCnym.d.mts} +2 -8
  152. package/{namespace-probe-H7yWc0JV.d.cts → namespace-probe-CTkb35Ro.d.cts} +2 -8
  153. package/package.json +1 -1
  154. package/{projection-BELgANG2.cjs → projection-B8RtxuEq.cjs} +35 -38
  155. package/{projection-DvNewmI1.mjs → projection-DNi_2dVa.mjs} +30 -39
  156. package/{projection-sql-DweUaWRc.mjs → projection-sql-BYv40Hen.mjs} +2 -3
  157. package/{projection-sql-DuCtFE9t.cjs → projection-sql-SuhzhsMe.cjs} +2 -3
  158. package/schemas-DySv963y.d.cts +2098 -0
  159. package/schemas-DySv963y.d.mts +2098 -0
  160. package/{sdk-ZMy4C4VK.cjs → sdk-BJ3OkhCq.cjs} +27 -50
  161. package/{sdk-DLoVPlGB.mjs → sdk-CXrarwvs.mjs} +27 -50
  162. package/sdk.cjs +2 -2
  163. package/sdk.d.cts +2 -10
  164. package/sdk.d.mts +2 -10
  165. package/sdk.mjs +2 -2
  166. package/{sync-engine-DH058G3w.mjs → sync-engine-BTUoH82k.mjs} +2 -3
  167. package/{sync-engine-C_5TpvfX.d.mts → sync-engine-C_SwnFgF.d.mts} +2 -4
  168. package/{sync-engine-CYsWOujz.d.cts → sync-engine-D9ltfqkD.d.cts} +2 -4
  169. package/{sync-engine-BGVDsrOQ.cjs → sync-engine-DBlSP9r2.cjs} +2 -3
  170. package/{types-YJTkXKzU.mjs → types-8KSw2AWg.mjs} +1 -2
  171. package/{types-Cq5gHCTq.cjs → types-B8m39L1s.cjs} +1 -2
  172. package/{types-CpAtAtxd.d.cts → types-BtQCi_qP.d.cts} +30 -3
  173. package/{types-CpAtAtxd.d.mts → types-CTOl3pAX.d.mts} +30 -3
  174. package/{view-compiler-C-6RydKK.mjs → view-compiler-B8tJ5IGw.mjs} +3 -4
  175. package/{view-compiler-CwKVoK1w.d.mts → view-compiler-BZgZisTG.d.mts} +1 -3
  176. package/{view-compiler-xiwm5iar.cjs → view-compiler-Ce_QE3dh.cjs} +3 -4
  177. package/{view-compiler-Cq8apvZ4.d.cts → view-compiler-D7GLf1n8.d.cts} +1 -3
  178. package/vite.cjs +1 -2
  179. package/vite.d.cts +2 -4
  180. package/vite.d.mts +2 -4
  181. package/vite.mjs +1 -2
  182. package/entity-config-ApnT5j3X.d.cts +0 -4472
  183. package/entity-config-CKcj4-M_.d.mts +0 -4473
@@ -1,4 +1,21 @@
1
- //#region ../core/src/types.d.ts
1
+ import { d as output, f as $strict, l as ZodString, o as ZodObject, r as ZodEnum, s as ZodOptional, t as ZodArray } from "./schemas-DySv963y.cjs";
2
+ /** AND conditions over deliberately mapped host fields, never SQL identifiers. */
3
+ declare const contactSegmentSchema: ZodArray<ZodObject<{
4
+ field: ZodString;
5
+ operator: ZodEnum<{
6
+ equals: "equals";
7
+ not_equals: "not_equals";
8
+ contains: "contains";
9
+ gt: "gt";
10
+ gte: "gte";
11
+ lt: "lt";
12
+ lte: "lte";
13
+ is_set: "is_set";
14
+ is_not_set: "is_not_set";
15
+ }>;
16
+ value: ZodOptional<ZodString>;
17
+ }, $strict>>;
18
+ type ContactSegment = output<typeof contactSegmentSchema>;
2
19
  type ContactStatus = "lead" | "active" | "customer" | "churned";
3
20
  type DealStage = string;
4
21
  type StageType = "open" | "won" | "lost";
@@ -92,6 +109,12 @@ interface Deal {
92
109
  name: string;
93
110
  orgId: string;
94
111
  owner: string | null;
112
+ /**
113
+ * The workspace member who owns this deal. `owner` is the free text a sync
114
+ * or an older client wrote; this is the member a board filters and assigns
115
+ * by. NULL when no member owns it.
116
+ */
117
+ ownerUserId: string | null;
95
118
  /**
96
119
  * The board this deal belongs to. NULL means the org's default pipeline: the
97
120
  * sync mirror wrote deals before pipelines existed, and a deal created with
@@ -101,6 +124,8 @@ interface Deal {
101
124
  pipelineId: string | null;
102
125
  position: number | null;
103
126
  stage: DealStage;
127
+ /** When the deal entered its current stage; moves only on a real change. */
128
+ stageEnteredAt: Date;
104
129
  /**
105
130
  * When a human last moved this deal by hand. Non-null means stage derivation
106
131
  * no longer touches it, so a board must be able to mark it as overridden and
@@ -201,6 +226,7 @@ interface CreateDealInput {
201
226
  contactId?: string;
202
227
  name: string;
203
228
  owner?: string;
229
+ ownerUserId?: string | null;
204
230
  pipelineId?: string;
205
231
  stage?: DealStage;
206
232
  value?: number;
@@ -210,6 +236,7 @@ interface UpdateDealInput {
210
236
  contactId?: string | null;
211
237
  name?: string;
212
238
  owner?: string | null;
239
+ ownerUserId?: string | null;
213
240
  stage?: DealStage;
214
241
  value?: number;
215
242
  }
@@ -280,6 +307,7 @@ interface ContactFilters {
280
307
  * search for `%` finds contacts containing a percent sign, not every row.
281
308
  */
282
309
  search?: string;
310
+ segment?: ContactSegment;
283
311
  source?: RecordSource;
284
312
  status?: ContactStatus;
285
313
  }
@@ -319,5 +347,4 @@ interface TaskFilters {
319
347
  priority?: TaskPriority;
320
348
  status?: TaskStatus;
321
349
  }
322
- //#endregion
323
- export { UpdateCompanyInput as A, RecordSource as C, TaskFilters as D, TaskEntityType as E, isClosedStageType as F, UpdateDealInput as M, UpdateTaskInput as N, TaskPriority as O, ValueInterval as P, PipelineStageConfig as S, Task as T, OPEN_STAGE_TYPE as _, Contact as a, PipelineConfig as b, CreateActivityInput as c, CreateDealInput as d, CreateTaskInput as f, Note as g, DealStage as h, CompanyFilters as i, UpdateContactInput as j, TaskStatus as k, CreateCompanyInput as l, Deal as m, ActivityType as n, ContactFilters as o, CrmRole as p, Company as r, ContactStatus as s, Activity as t, CreateContactInput as u, Page as v, StageType as w, PipelineKind as x, PageRequest as y };
350
+ export { UpdateCompanyInput as A, RecordSource as C, TaskFilters as D, TaskEntityType as E, isClosedStageType as F, ContactSegment as I, contactSegmentSchema as L, UpdateDealInput as M, UpdateTaskInput as N, TaskPriority as O, ValueInterval as P, PipelineStageConfig as S, Task as T, OPEN_STAGE_TYPE as _, Contact as a, PipelineConfig as b, CreateActivityInput as c, CreateDealInput as d, CreateTaskInput as f, Note as g, DealStage as h, CompanyFilters as i, UpdateContactInput as j, TaskStatus as k, CreateCompanyInput as l, Deal as m, ActivityType as n, ContactFilters as o, CrmRole as p, Company as r, ContactStatus as s, Activity as t, CreateContactInput as u, Page as v, StageType as w, PipelineKind as x, PageRequest as y };
@@ -1,4 +1,21 @@
1
- //#region ../core/src/types.d.ts
1
+ import { d as output, f as $strict, l as ZodString, o as ZodObject, r as ZodEnum, s as ZodOptional, t as ZodArray } from "./schemas-DySv963y.mjs";
2
+ /** AND conditions over deliberately mapped host fields, never SQL identifiers. */
3
+ declare const contactSegmentSchema: ZodArray<ZodObject<{
4
+ field: ZodString;
5
+ operator: ZodEnum<{
6
+ equals: "equals";
7
+ not_equals: "not_equals";
8
+ contains: "contains";
9
+ gt: "gt";
10
+ gte: "gte";
11
+ lt: "lt";
12
+ lte: "lte";
13
+ is_set: "is_set";
14
+ is_not_set: "is_not_set";
15
+ }>;
16
+ value: ZodOptional<ZodString>;
17
+ }, $strict>>;
18
+ type ContactSegment = output<typeof contactSegmentSchema>;
2
19
  type ContactStatus = "lead" | "active" | "customer" | "churned";
3
20
  type DealStage = string;
4
21
  type StageType = "open" | "won" | "lost";
@@ -92,6 +109,12 @@ interface Deal {
92
109
  name: string;
93
110
  orgId: string;
94
111
  owner: string | null;
112
+ /**
113
+ * The workspace member who owns this deal. `owner` is the free text a sync
114
+ * or an older client wrote; this is the member a board filters and assigns
115
+ * by. NULL when no member owns it.
116
+ */
117
+ ownerUserId: string | null;
95
118
  /**
96
119
  * The board this deal belongs to. NULL means the org's default pipeline: the
97
120
  * sync mirror wrote deals before pipelines existed, and a deal created with
@@ -101,6 +124,8 @@ interface Deal {
101
124
  pipelineId: string | null;
102
125
  position: number | null;
103
126
  stage: DealStage;
127
+ /** When the deal entered its current stage; moves only on a real change. */
128
+ stageEnteredAt: Date;
104
129
  /**
105
130
  * When a human last moved this deal by hand. Non-null means stage derivation
106
131
  * no longer touches it, so a board must be able to mark it as overridden and
@@ -201,6 +226,7 @@ interface CreateDealInput {
201
226
  contactId?: string;
202
227
  name: string;
203
228
  owner?: string;
229
+ ownerUserId?: string | null;
204
230
  pipelineId?: string;
205
231
  stage?: DealStage;
206
232
  value?: number;
@@ -210,6 +236,7 @@ interface UpdateDealInput {
210
236
  contactId?: string | null;
211
237
  name?: string;
212
238
  owner?: string | null;
239
+ ownerUserId?: string | null;
213
240
  stage?: DealStage;
214
241
  value?: number;
215
242
  }
@@ -280,6 +307,7 @@ interface ContactFilters {
280
307
  * search for `%` finds contacts containing a percent sign, not every row.
281
308
  */
282
309
  search?: string;
310
+ segment?: ContactSegment;
283
311
  source?: RecordSource;
284
312
  status?: ContactStatus;
285
313
  }
@@ -319,5 +347,4 @@ interface TaskFilters {
319
347
  priority?: TaskPriority;
320
348
  status?: TaskStatus;
321
349
  }
322
- //#endregion
323
- export { UpdateCompanyInput as A, RecordSource as C, TaskFilters as D, TaskEntityType as E, isClosedStageType as F, UpdateDealInput as M, UpdateTaskInput as N, TaskPriority as O, ValueInterval as P, PipelineStageConfig as S, Task as T, OPEN_STAGE_TYPE as _, Contact as a, PipelineConfig as b, CreateActivityInput as c, CreateDealInput as d, CreateTaskInput as f, Note as g, DealStage as h, CompanyFilters as i, UpdateContactInput as j, TaskStatus as k, CreateCompanyInput as l, Deal as m, ActivityType as n, ContactFilters as o, CrmRole as p, Company as r, ContactStatus as s, Activity as t, CreateContactInput as u, Page as v, StageType as w, PipelineKind as x, PageRequest as y };
350
+ export { UpdateCompanyInput as A, RecordSource as C, TaskFilters as D, TaskEntityType as E, isClosedStageType as F, ContactSegment as I, contactSegmentSchema as L, UpdateDealInput as M, UpdateTaskInput as N, TaskPriority as O, ValueInterval as P, PipelineStageConfig as S, Task as T, OPEN_STAGE_TYPE as _, Contact as a, PipelineConfig as b, CreateActivityInput as c, CreateDealInput as d, CreateTaskInput as f, Note as g, DealStage as h, CompanyFilters as i, UpdateContactInput as j, TaskStatus as k, CreateCompanyInput as l, Deal as m, ActivityType as n, ContactFilters as o, CrmRole as p, Company as r, ContactStatus as s, Activity as t, CreateContactInput as u, Page as v, StageType as w, PipelineKind as x, PageRequest as y };
@@ -1,6 +1,6 @@
1
- import { t as BASE_REF } from "./projection-DvNewmI1.mjs";
2
- import { i as compileProjectionJoins, n as compileProjectionFrom, o as compileProjectionSelect, s as quoteIdent } from "./projection-sql-DweUaWRc.mjs";
3
- //#region ../core/src/view-compiler.ts
1
+ import { t as BASE_REF } from "./projection-DNi_2dVa.mjs";
2
+ import { i as compileProjectionJoins, n as compileProjectionFrom, o as compileProjectionSelect, s as quoteIdent } from "./projection-sql-BYv40Hen.mjs";
3
+ // ../core/src/view-compiler.ts
4
4
  /**
5
5
  * View compiler (Phase 2) — turns a validated entity config into read-only
6
6
  * Postgres view DDL.
@@ -213,5 +213,4 @@ async function explainEntitiesConfig(config, run, options = {}) {
213
213
  }
214
214
  return results;
215
215
  }
216
- //#endregion
217
216
  export { explainViewExecutionError as a, explainEntitiesConfig as i, compileEntityView as n, compileEntityViews as r, DEFAULT_VIEW_PREFIX as t };
@@ -1,5 +1,4 @@
1
- import { a as ClivlyEntitiesConfig } from "./entity-config-CKcj4-M_.mjs";
2
- //#region ../core/src/view-compiler.d.ts
1
+ import { a as ClivlyEntitiesConfig } from "./entity-config-pzamFSKw.mjs";
3
2
  declare const DEFAULT_VIEW_PREFIX = "crm_src_";
4
3
  interface CompileOptions {
5
4
  /**
@@ -77,5 +76,4 @@ interface ExplainResult {
77
76
  * compiled SQL is a `CREATE OR REPLACE VIEW`.
78
77
  */
79
78
  declare function explainEntitiesConfig(config: ClivlyEntitiesConfig, run: (sql: string) => Promise<unknown>, options?: CompileOptions): Promise<ExplainResult[]>;
80
- //#endregion
81
79
  export { compileEntityView as a, explainViewExecutionError as c, ExplainResult as i, CompiledView as n, compileEntityViews as o, DEFAULT_VIEW_PREFIX as r, explainEntitiesConfig as s, CompileOptions as t };
@@ -1,6 +1,6 @@
1
- const require_projection = require("./projection-BELgANG2.cjs");
2
- const require_projection_sql = require("./projection-sql-DuCtFE9t.cjs");
3
- //#region ../core/src/view-compiler.ts
1
+ const require_projection = require("./projection-B8RtxuEq.cjs");
2
+ const require_projection_sql = require("./projection-sql-SuhzhsMe.cjs");
3
+ // ../core/src/view-compiler.ts
4
4
  /**
5
5
  * View compiler (Phase 2) — turns a validated entity config into read-only
6
6
  * Postgres view DDL.
@@ -213,7 +213,6 @@ async function explainEntitiesConfig(config, run, options = {}) {
213
213
  }
214
214
  return results;
215
215
  }
216
- //#endregion
217
216
  Object.defineProperty(exports, "DEFAULT_VIEW_PREFIX", {
218
217
  enumerable: true,
219
218
  get: function() {
@@ -1,5 +1,4 @@
1
- import { a as ClivlyEntitiesConfig } from "./entity-config-ApnT5j3X.cjs";
2
- //#region ../core/src/view-compiler.d.ts
1
+ import { a as ClivlyEntitiesConfig } from "./entity-config-BF7pcXFB.cjs";
3
2
  declare const DEFAULT_VIEW_PREFIX = "crm_src_";
4
3
  interface CompileOptions {
5
4
  /**
@@ -77,5 +76,4 @@ interface ExplainResult {
77
76
  * compiled SQL is a `CREATE OR REPLACE VIEW`.
78
77
  */
79
78
  declare function explainEntitiesConfig(config: ClivlyEntitiesConfig, run: (sql: string) => Promise<unknown>, options?: CompileOptions): Promise<ExplainResult[]>;
80
- //#endregion
81
79
  export { compileEntityView as a, explainViewExecutionError as c, ExplainResult as i, CompiledView as n, compileEntityViews as o, DEFAULT_VIEW_PREFIX as r, explainEntitiesConfig as s, CompileOptions as t };
package/vite.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- //#region ../sdk/src/vite.ts
2
+ // ../sdk/src/vite.ts
3
3
  /**
4
4
  * Vite dev-server plugin that runs the Clivly SDK lifecycle for you: on server
5
5
  * boot it calls `sdk.connect()` (for a clear status line) then `sdk.start()`
@@ -34,5 +34,4 @@ function clivlyVite(sdk, options = {}) {
34
34
  }
35
35
  };
36
36
  }
37
- //#endregion
38
37
  exports.clivlyVite = clivlyVite;
package/vite.d.cts CHANGED
@@ -1,6 +1,5 @@
1
- import { o as ClivlySDK } from "./namespace-probe-H7yWc0JV.cjs";
1
+ import { o as ClivlySDK } from "./namespace-probe-CTkb35Ro.cjs";
2
2
  import { Plugin } from "vite";
3
- //#region ../sdk/src/vite.d.ts
4
3
  export interface ClivlyViteOptions {
5
4
  /** Log prefix for Clivly's boot lines. Defaults to "clivly". */
6
5
  name?: string;
@@ -17,5 +16,4 @@ export interface ClivlyViteOptions {
17
16
  * Vite is an optional peer dependency imported type-only (`import type`), so
18
17
  * the built bundle carries no runtime dependency on Vite.
19
18
  */
20
- export declare function clivlyVite(sdk: ClivlySDK, options?: ClivlyViteOptions): Plugin;
21
- //#endregion
19
+ export declare function clivlyVite(sdk: ClivlySDK, options?: ClivlyViteOptions): Plugin;
package/vite.d.mts CHANGED
@@ -1,6 +1,5 @@
1
- import { o as ClivlySDK } from "./namespace-probe-DykR0kgh.mjs";
1
+ import { o as ClivlySDK } from "./namespace-probe-By8SCnym.mjs";
2
2
  import { Plugin } from "vite";
3
- //#region ../sdk/src/vite.d.ts
4
3
  export interface ClivlyViteOptions {
5
4
  /** Log prefix for Clivly's boot lines. Defaults to "clivly". */
6
5
  name?: string;
@@ -17,5 +16,4 @@ export interface ClivlyViteOptions {
17
16
  * Vite is an optional peer dependency imported type-only (`import type`), so
18
17
  * the built bundle carries no runtime dependency on Vite.
19
18
  */
20
- export declare function clivlyVite(sdk: ClivlySDK, options?: ClivlyViteOptions): Plugin;
21
- //#endregion
19
+ export declare function clivlyVite(sdk: ClivlySDK, options?: ClivlyViteOptions): Plugin;
package/vite.mjs CHANGED
@@ -1,4 +1,4 @@
1
- //#region ../sdk/src/vite.ts
1
+ // ../sdk/src/vite.ts
2
2
  /**
3
3
  * Vite dev-server plugin that runs the Clivly SDK lifecycle for you: on server
4
4
  * boot it calls `sdk.connect()` (for a clear status line) then `sdk.start()`
@@ -33,5 +33,4 @@ function clivlyVite(sdk, options = {}) {
33
33
  }
34
34
  };
35
35
  }
36
- //#endregion
37
36
  export { clivlyVite };