clivly 0.16.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,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-CpAtAtxd.mjs";
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-CTOl3pAX.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-CpAtAtxd.cjs";
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-BtQCi_qP.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
- //#region ../core/src/auth-adapter.ts
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-CpAtAtxd.cjs";
2
- //#region ../core/src/auth-adapter.d.ts
1
+ import { p as CrmRole } from "./types-BtQCi_qP.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-CpAtAtxd.mjs";
2
- //#region ../core/src/auth-adapter.d.ts
1
+ import { p as CrmRole } from "./types-CTOl3pAX.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 };
@@ -1,6 +1,5 @@
1
- //#region ../core/src/auth-adapter.ts
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
  export { authCustom as t };
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- //#region ../auth-better-auth/src/map.ts
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
- //#endregion
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;
@@ -1,13 +1,10 @@
1
- import { n as ClivlyUser, t as ClivlyAuthAdapter } from "./auth-adapter-Bt1GZiag.cjs";
2
- //#region ../auth-better-auth/src/map.d.ts
1
+ import { n as ClivlyUser, t as ClivlyAuthAdapter } from "./auth-adapter-CsZE4ugg.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 };
@@ -1,13 +1,10 @@
1
- import { n as ClivlyUser, t as ClivlyAuthAdapter } from "./auth-adapter-CHy273qb.mjs";
2
- //#region ../auth-better-auth/src/map.d.ts
1
+ import { n as ClivlyUser, t as ClivlyAuthAdapter } from "./auth-adapter-Q6CL2VHr.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 };
@@ -1,4 +1,4 @@
1
- //#region ../auth-better-auth/src/map.ts
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
- //#endregion
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
- //#region ../auth-clerk/src/map.ts
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
- //#endregion
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-Bt1GZiag.cjs";
2
- //#region ../auth-clerk/src/map.d.ts
1
+ import { n as ClivlyUser, t as ClivlyAuthAdapter } from "./auth-adapter-CsZE4ugg.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-CHy273qb.mjs";
2
- //#region ../auth-clerk/src/map.d.ts
1
+ import { n as ClivlyUser, t as ClivlyAuthAdapter } from "./auth-adapter-Q6CL2VHr.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
- //#region ../auth-clerk/src/map.ts
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
- //#endregion
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
- //#region ../auth-workos/src/map.ts
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
- //#endregion
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-Bt1GZiag.cjs";
2
- //#region ../auth-workos/src/map.d.ts
1
+ import { n as ClivlyUser, t as ClivlyAuthAdapter } from "./auth-adapter-CsZE4ugg.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-CHy273qb.mjs";
2
- //#region ../auth-workos/src/map.d.ts
1
+ import { n as ClivlyUser, t as ClivlyAuthAdapter } from "./auth-adapter-Q6CL2VHr.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
- //#region ../auth-workos/src/map.ts
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
- //#endregion
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-B9ngvizt.cjs");
1
+ const require_deprecate_subpath = require("./deprecate-subpath-dGwDiHKV.cjs");
2
2
  require("./internal-adapter.cjs");
3
- //#region src/core-adapter.ts
3
+ // src/core-adapter.ts
4
4
  require_deprecate_subpath.warnDeprecatedSubpath("clivly/core/adapter", "clivly/internal/adapter");
5
- //#endregion
@@ -1,2 +1,2 @@
1
- import { t as CRMAdapter } from "./adapter-IH3r_I8v.cjs";
1
+ import { t as CRMAdapter } from "./adapter-BvSigBPG.cjs";
2
2
  export { CRMAdapter };
@@ -1,2 +1,2 @@
1
- import { t as CRMAdapter } from "./adapter-BMAUq4hf.mjs";
1
+ import { t as CRMAdapter } from "./adapter-BpAfha3z.mjs";
2
2
  export { CRMAdapter };
package/core-adapter.mjs CHANGED
@@ -1,6 +1,5 @@
1
- import { t as warnDeprecatedSubpath } from "./deprecate-subpath-CmvZtCpE.mjs";
1
+ import { t as warnDeprecatedSubpath } from "./deprecate-subpath-CK37DKXH.mjs";
2
2
  import "./internal-adapter.mjs";
3
- //#region src/core-adapter.ts
3
+ // src/core-adapter.ts
4
4
  warnDeprecatedSubpath("clivly/core/adapter", "clivly/internal/adapter");
5
- //#endregion
6
5
  export {};
@@ -1,8 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_auth_adapter = require("./auth-adapter-CiEXcweZ.cjs");
3
- const require_deprecate_subpath = require("./deprecate-subpath-B9ngvizt.cjs");
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
- //#region src/core-auth-adapter.ts
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;
@@ -1,2 +1,2 @@
1
- import { a as authCustom, i as MembershipResolver, n as ClivlyUser, r as CrmMembership, t as ClivlyAuthAdapter } from "./auth-adapter-Bt1GZiag.cjs";
1
+ import { a as authCustom, i as MembershipResolver, n as ClivlyUser, r as CrmMembership, t as ClivlyAuthAdapter } from "./auth-adapter-CsZE4ugg.cjs";
2
2
  export { ClivlyAuthAdapter, ClivlyUser, CrmMembership, MembershipResolver, authCustom };
@@ -1,2 +1,2 @@
1
- import { a as authCustom, i as MembershipResolver, n as ClivlyUser, r as CrmMembership, t as ClivlyAuthAdapter } from "./auth-adapter-CHy273qb.mjs";
1
+ import { a as authCustom, i as MembershipResolver, n as ClivlyUser, r as CrmMembership, t as ClivlyAuthAdapter } from "./auth-adapter-Q6CL2VHr.mjs";
2
2
  export { ClivlyAuthAdapter, ClivlyUser, CrmMembership, MembershipResolver, authCustom };
@@ -1,7 +1,5 @@
1
- import { t as authCustom } from "./auth-adapter-gfVDxf3d.mjs";
2
- import { t as warnDeprecatedSubpath } from "./deprecate-subpath-CmvZtCpE.mjs";
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
- //#region src/core-auth-adapter.ts
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-B9ngvizt.cjs");
3
- const require_drizzle = require("./drizzle-DcB7OfBp.cjs");
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
- //#region src/core-drizzle.ts
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;
@@ -1,3 +1,3 @@
1
- import { n as buildUniqueConstraints, r as discoverFromDrizzle, t as buildColumnsMeta } from "./drizzle-CiK37zJm.cjs";
1
+ import { n as buildUniqueConstraints, r as discoverFromDrizzle, t as buildColumnsMeta } from "./drizzle-MUNZgh1l.cjs";
2
2
  import "./internal-drizzle.cjs";
3
3
  export { buildColumnsMeta, buildUniqueConstraints, discoverFromDrizzle };
@@ -1,3 +1,3 @@
1
- import { n as buildUniqueConstraints, r as discoverFromDrizzle, t as buildColumnsMeta } from "./drizzle-ehVWLSrN.mjs";
1
+ import { n as buildUniqueConstraints, r as discoverFromDrizzle, t as buildColumnsMeta } from "./drizzle-UJbPCzPJ.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-CmvZtCpE.mjs";
2
- import { n as buildUniqueConstraints, r as discoverFromDrizzle, t as buildColumnsMeta } from "./drizzle-wbcuG-cy.mjs";
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
- //#region src/core-drizzle.ts
4
+ // src/core-drizzle.ts
5
5
  warnDeprecatedSubpath("clivly/core/drizzle", "clivly/internal/drizzle");
6
- //#endregion
7
- export { buildColumnsMeta, buildUniqueConstraints, discoverFromDrizzle };
@@ -1,8 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_entity_config = require("./entity-config-BI4RYNKL.cjs");
3
- //#region src/core-entity-config.ts
4
- require("./deprecate-subpath-B9ngvizt.cjs").warnDeprecatedSubpath("clivly/core/entity-config", "clivly/internal/entity-config");
5
- //#endregion
2
+ const require_entity_config = require("./entity-config-nWWgJXLw.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;
@@ -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-ApnT5j3X.cjs";
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-BF7pcXFB.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 };
@@ -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-CKcj4-M_.mjs";
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-pzamFSKw.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 };
@@ -1,6 +1,4 @@
1
- import { a as MATERIALIZING_CONCEPTS, c as defineClivlyConfig, d as missingRequiredFields, f as projectionFields, g as validateEntitiesConfig, h as requiredFieldsFor, i as ClivlyConfigError, l as entitiesConfigSchema, m as relationshipsSchema, n as CRM_CONCEPTS, o as REQUIRED_FIELDS, p as relationshipSchema, r as CUSTOM_CONCEPT, s as customObjectDeclarations, t as CANONICAL_FIELDS, u as filterSchema } from "./entity-config-Ccfb2IL9.mjs";
2
- import { t as warnDeprecatedSubpath } from "./deprecate-subpath-CmvZtCpE.mjs";
3
- //#region src/core-entity-config.ts
1
+ export { t as CANONICAL_FIELDS, n as CRM_CONCEPTS, r as CUSTOM_CONCEPT, i as ClivlyConfigError, a as MATERIALIZING_CONCEPTS, o as REQUIRED_FIELDS, s as customObjectDeclarations, c as defineClivlyConfig, l as entitiesConfigSchema, u as filterSchema, d as missingRequiredFields, f as projectionFields, p as relationshipSchema, m as relationshipsSchema, h as requiredFieldsFor, g as validateEntitiesConfig } from "./entity-config-DQVSprlG.mjs";
2
+ import { t as warnDeprecatedSubpath } from "./deprecate-subpath-CK37DKXH.mjs";
3
+ // src/core-entity-config.ts
4
4
  warnDeprecatedSubpath("clivly/core/entity-config", "clivly/internal/entity-config");
5
- //#endregion
6
- export { CANONICAL_FIELDS, CRM_CONCEPTS, CUSTOM_CONCEPT, ClivlyConfigError, MATERIALIZING_CONCEPTS, REQUIRED_FIELDS, customObjectDeclarations, defineClivlyConfig, entitiesConfigSchema, filterSchema, missingRequiredFields, projectionFields, relationshipSchema, relationshipsSchema, requiredFieldsFor, validateEntitiesConfig };
@@ -1,8 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_internal_entity_heuristics = require("./internal-entity-heuristics.cjs");
3
- //#region src/core-entity-heuristics.ts
4
- require("./deprecate-subpath-B9ngvizt.cjs").warnDeprecatedSubpath("clivly/core/entity-heuristics", "clivly/internal/entity-heuristics");
5
- //#endregion
3
+ // src/core-entity-heuristics.ts
4
+ require("./deprecate-subpath-dGwDiHKV.cjs").warnDeprecatedSubpath("clivly/core/entity-heuristics", "clivly/internal/entity-heuristics");
6
5
  exports.TARGET_CONCEPTS = require_internal_entity_heuristics.TARGET_CONCEPTS;
7
6
  exports.hasDefiningColumn = require_internal_entity_heuristics.hasDefiningColumn;
8
7
  exports.hasSensitiveColumns = require_internal_entity_heuristics.hasSensitiveColumns;
@@ -1,3 +1,3 @@
1
- import { p as DiscoveredColumnMeta } from "./entity-config-ApnT5j3X.cjs";
1
+ import { p as DiscoveredColumnMeta } from "./entity-config-BF7pcXFB.cjs";
2
2
  import { FieldSuggestion, RelationshipSuggestion, ScoredTable, SuggestedVia, TARGET_CONCEPTS, TargetConcept, hasDefiningColumn, hasSensitiveColumns, isFrameworkTable, matchesConcept, requiredFieldsFor, scoreConcepts, scoreFieldMap, scoreRelationships, suggestCursorField, suggestDiscriminatorColumns, toFieldMap, topConcept, validateMapping } from "./internal-entity-heuristics.cjs";
3
3
  export { type DiscoveredColumnMeta, FieldSuggestion, RelationshipSuggestion, ScoredTable, SuggestedVia, TARGET_CONCEPTS, TargetConcept, hasDefiningColumn, hasSensitiveColumns, isFrameworkTable, matchesConcept, requiredFieldsFor, scoreConcepts, scoreFieldMap, scoreRelationships, suggestCursorField, suggestDiscriminatorColumns, toFieldMap, topConcept, validateMapping };
@@ -1,3 +1,3 @@
1
- import { p as DiscoveredColumnMeta } from "./entity-config-CKcj4-M_.mjs";
1
+ import { p as DiscoveredColumnMeta } from "./entity-config-pzamFSKw.mjs";
2
2
  import { FieldSuggestion, RelationshipSuggestion, ScoredTable, SuggestedVia, TARGET_CONCEPTS, TargetConcept, hasDefiningColumn, hasSensitiveColumns, isFrameworkTable, matchesConcept, requiredFieldsFor, scoreConcepts, scoreFieldMap, scoreRelationships, suggestCursorField, suggestDiscriminatorColumns, toFieldMap, topConcept, validateMapping } from "./internal-entity-heuristics.mjs";
3
3
  export { type DiscoveredColumnMeta, FieldSuggestion, RelationshipSuggestion, ScoredTable, SuggestedVia, TARGET_CONCEPTS, TargetConcept, hasDefiningColumn, hasSensitiveColumns, isFrameworkTable, matchesConcept, requiredFieldsFor, scoreConcepts, scoreFieldMap, scoreRelationships, suggestCursorField, suggestDiscriminatorColumns, toFieldMap, topConcept, validateMapping };
@@ -1,6 +1,4 @@
1
- import { TARGET_CONCEPTS, hasDefiningColumn, hasSensitiveColumns, isFrameworkTable, matchesConcept, requiredFieldsFor, scoreConcepts, scoreFieldMap, scoreRelationships, suggestCursorField, suggestDiscriminatorColumns, toFieldMap, topConcept, validateMapping } from "./internal-entity-heuristics.mjs";
2
- import { t as warnDeprecatedSubpath } from "./deprecate-subpath-CmvZtCpE.mjs";
3
- //#region src/core-entity-heuristics.ts
1
+ export { TARGET_CONCEPTS, hasDefiningColumn, hasSensitiveColumns, isFrameworkTable, matchesConcept, requiredFieldsFor, scoreConcepts, scoreFieldMap, scoreRelationships, suggestCursorField, suggestDiscriminatorColumns, toFieldMap, topConcept, validateMapping } from "./internal-entity-heuristics.mjs";
2
+ import { t as warnDeprecatedSubpath } from "./deprecate-subpath-CK37DKXH.mjs";
3
+ // src/core-entity-heuristics.ts
4
4
  warnDeprecatedSubpath("clivly/core/entity-heuristics", "clivly/internal/entity-heuristics");
5
- //#endregion
6
- export { TARGET_CONCEPTS, hasDefiningColumn, hasSensitiveColumns, isFrameworkTable, matchesConcept, requiredFieldsFor, scoreConcepts, scoreFieldMap, scoreRelationships, suggestCursorField, suggestDiscriminatorColumns, toFieldMap, topConcept, validateMapping };
@@ -1,10 +1,9 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_mapping_form = require("./mapping-form-BpfON_ME.cjs");
3
- const require_deprecate_subpath = require("./deprecate-subpath-B9ngvizt.cjs");
2
+ const require_mapping_form = require("./mapping-form-Bs6JQurC.cjs");
3
+ const require_deprecate_subpath = require("./deprecate-subpath-dGwDiHKV.cjs");
4
4
  require("./internal-mapping-form.cjs");
5
- //#region src/core-mapping-form.ts
5
+ // src/core-mapping-form.ts
6
6
  require_deprecate_subpath.warnDeprecatedSubpath("clivly/core/mapping-form", "clivly/internal/mapping-form");
7
- //#endregion
8
7
  exports.buildFilterFromDiscriminator = require_mapping_form.buildFilterFromDiscriminator;
9
8
  exports.buildRelationships = require_mapping_form.buildRelationships;
10
9
  exports.relationshipViaSignature = require_mapping_form.relationshipViaSignature;
@@ -1,2 +1,2 @@
1
- import { i as relationshipViaSignature, n as buildFilterFromDiscriminator, r as buildRelationships, t as RelationshipCandidate } from "./mapping-form-XsLLCqW_.cjs";
1
+ import { i as relationshipViaSignature, n as buildFilterFromDiscriminator, r as buildRelationships, t as RelationshipCandidate } from "./mapping-form-Cmf8y-1m.cjs";
2
2
  export { RelationshipCandidate, buildFilterFromDiscriminator, buildRelationships, relationshipViaSignature };
@@ -1,2 +1,2 @@
1
- import { i as relationshipViaSignature, n as buildFilterFromDiscriminator, r as buildRelationships, t as RelationshipCandidate } from "./mapping-form-Btn-7gzv.mjs";
1
+ import { i as relationshipViaSignature, n as buildFilterFromDiscriminator, r as buildRelationships, t as RelationshipCandidate } from "./mapping-form-BymksK7h.mjs";
2
2
  export { RelationshipCandidate, buildFilterFromDiscriminator, buildRelationships, relationshipViaSignature };
@@ -1,7 +1,5 @@
1
- import { n as buildRelationships, r as relationshipViaSignature, t as buildFilterFromDiscriminator } from "./mapping-form-DigkuvFc.mjs";
2
- import { t as warnDeprecatedSubpath } from "./deprecate-subpath-CmvZtCpE.mjs";
1
+ export { t as buildFilterFromDiscriminator, n as buildRelationships, r as relationshipViaSignature } from "./mapping-form-C7kDMWzp.mjs";
2
+ import { t as warnDeprecatedSubpath } from "./deprecate-subpath-CK37DKXH.mjs";
3
3
  import "./internal-mapping-form.mjs";
4
- //#region src/core-mapping-form.ts
4
+ // src/core-mapping-form.ts
5
5
  warnDeprecatedSubpath("clivly/core/mapping-form", "clivly/internal/mapping-form");
6
- //#endregion
7
- export { buildFilterFromDiscriminator, buildRelationships, relationshipViaSignature };
@@ -1,8 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_mapping_score = require("./mapping-score-CaB3F4Uu.cjs");
3
- //#region src/core-mapping-score.ts
4
- require("./deprecate-subpath-B9ngvizt.cjs").warnDeprecatedSubpath("clivly/core/mapping-score", "clivly/internal/mapping-score");
5
- //#endregion
2
+ const require_mapping_score = require("./mapping-score-D2TCQiOr.cjs");
3
+ // src/core-mapping-score.ts
4
+ require("./deprecate-subpath-dGwDiHKV.cjs").warnDeprecatedSubpath("clivly/core/mapping-score", "clivly/internal/mapping-score");
6
5
  exports.AMBIGUITY_MARGIN = require_mapping_score.AMBIGUITY_MARGIN;
7
6
  exports.CONCEPT_TIERS = require_mapping_score.CONCEPT_TIERS;
8
7
  exports.FIELD_TIERS = require_mapping_score.FIELD_TIERS;
@@ -1,2 +1,2 @@
1
- import { a as Scored, c as W, d as isTextLike, f as isTimestampLike, i as RELATIONSHIP_TIERS, l as isAmbiguous, n as CONCEPT_TIERS, o as Thresholds, p as tierFor, r as FIELD_TIERS, s as Tier, t as AMBIGUITY_MARGIN, u as isNumericLike } from "./mapping-score-D7Gzg7Ii.cjs";
1
+ import { a as Scored, c as W, d as isTextLike, f as isTimestampLike, i as RELATIONSHIP_TIERS, l as isAmbiguous, n as CONCEPT_TIERS, o as Thresholds, p as tierFor, r as FIELD_TIERS, s as Tier, t as AMBIGUITY_MARGIN, u as isNumericLike } from "./mapping-score-BKrxddz0.cjs";
2
2
  export { AMBIGUITY_MARGIN, CONCEPT_TIERS, FIELD_TIERS, RELATIONSHIP_TIERS, Scored, Thresholds, Tier, W, isAmbiguous, isNumericLike, isTextLike, isTimestampLike, tierFor };
@@ -1,2 +1,2 @@
1
- import { a as Scored, c as W, d as isTextLike, f as isTimestampLike, i as RELATIONSHIP_TIERS, l as isAmbiguous, n as CONCEPT_TIERS, o as Thresholds, p as tierFor, r as FIELD_TIERS, s as Tier, t as AMBIGUITY_MARGIN, u as isNumericLike } from "./mapping-score-D7Gzg7Ii.mjs";
1
+ import { a as Scored, c as W, d as isTextLike, f as isTimestampLike, i as RELATIONSHIP_TIERS, l as isAmbiguous, n as CONCEPT_TIERS, o as Thresholds, p as tierFor, r as FIELD_TIERS, s as Tier, t as AMBIGUITY_MARGIN, u as isNumericLike } from "./mapping-score-BKrxddz0.mjs";
2
2
  export { AMBIGUITY_MARGIN, CONCEPT_TIERS, FIELD_TIERS, RELATIONSHIP_TIERS, Scored, Thresholds, Tier, W, isAmbiguous, isNumericLike, isTextLike, isTimestampLike, tierFor };