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.
- package/{adapter-BMAUq4hf.d.mts → adapter-BpAfha3z.d.mts} +1 -3
- package/{adapter-IH3r_I8v.d.cts → adapter-BvSigBPG.d.cts} +1 -3
- package/{auth-adapter-CiEXcweZ.cjs → auth-adapter-CNVuxT9W.cjs} +1 -2
- package/{auth-adapter-Bt1GZiag.d.cts → auth-adapter-CsZE4ugg.d.cts} +1 -3
- package/{auth-adapter-CHy273qb.d.mts → auth-adapter-Q6CL2VHr.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 +2 -3
- package/core-entity-heuristics.d.cts +1 -1
- package/core-entity-heuristics.d.mts +1 -1
- 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-DcB7OfBp.cjs → drizzle-C0bfX-6a.cjs} +1 -2
- package/{drizzle-wbcuG-cy.mjs → drizzle-CZuOzIu4.mjs} +1 -2
- package/{drizzle-CiK37zJm.d.cts → drizzle-MUNZgh1l.d.cts} +1 -3
- package/{drizzle-ehVWLSrN.d.mts → drizzle-UJbPCzPJ.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-BF7pcXFB.d.cts +632 -0
- package/{entity-config-Ccfb2IL9.mjs → entity-config-DQVSprlG.mjs} +8 -11
- package/{entity-config-BI4RYNKL.cjs → entity-config-nWWgJXLw.cjs} +8 -11
- package/entity-config-pzamFSKw.d.mts +632 -0
- package/index.cjs +51 -98
- package/index.d.cts +1 -12
- package/index.d.mts +1 -12
- package/index.mjs +51 -98
- 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-C7NlPM3M.d.mts → internal-C-uvosSL.d.cts} +1 -17
- package/{internal-DsArcqkP.cjs → internal-CjJy-cy1.cjs} +42 -8
- package/{internal-CLvZdVj5.mjs → internal-DtLZyjf8.mjs} +37 -9
- package/{internal-D2J4VQWT.d.cts → internal-Gie7hCpK.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 +3 -4
- package/internal-entity-heuristics.d.cts +2 -4
- package/internal-entity-heuristics.d.mts +2 -4
- package/internal-entity-heuristics.mjs +3 -4
- 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-BpfON_ME.cjs → mapping-form-Bs6JQurC.cjs} +1 -2
- package/{mapping-form-XsLLCqW_.d.cts → mapping-form-BymksK7h.d.mts} +1 -3
- package/{mapping-form-DigkuvFc.mjs → mapping-form-C7kDMWzp.mjs} +1 -2
- package/{mapping-form-Btn-7gzv.d.mts → mapping-form-Cmf8y-1m.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-CwQNQ6bA.mjs → mappings-config-C7FPwrJT.mjs} +3 -4
- package/{mappings-config-BCsRLohT.cjs → mappings-config-DBG-KnYl.cjs} +3 -4
- package/{mappings-config-D6_oCi2Q.d.mts → mappings-config-Dsz6rcJb.d.cts} +1 -3
- package/{mappings-config-iJzbcUMp.d.cts → mappings-config-ktJhxmHm.d.mts} +1 -3
- package/{namespace-probe-DykR0kgh.d.mts → namespace-probe-By8SCnym.d.mts} +2 -8
- package/{namespace-probe-H7yWc0JV.d.cts → namespace-probe-CTkb35Ro.d.cts} +2 -8
- package/package.json +1 -1
- package/{projection-BELgANG2.cjs → projection-B8RtxuEq.cjs} +35 -38
- package/{projection-DvNewmI1.mjs → projection-DNi_2dVa.mjs} +30 -39
- package/{projection-sql-DweUaWRc.mjs → projection-sql-BYv40Hen.mjs} +2 -3
- package/{projection-sql-DuCtFE9t.cjs → projection-sql-SuhzhsMe.cjs} +2 -3
- package/schemas-DySv963y.d.cts +2098 -0
- package/schemas-DySv963y.d.mts +2098 -0
- package/{sdk-ZMy4C4VK.cjs → sdk-BJ3OkhCq.cjs} +27 -50
- package/{sdk-DLoVPlGB.mjs → sdk-CXrarwvs.mjs} +27 -50
- package/sdk.cjs +2 -2
- package/sdk.d.cts +2 -10
- package/sdk.d.mts +2 -10
- package/sdk.mjs +2 -2
- package/{sync-engine-DH058G3w.mjs → sync-engine-BTUoH82k.mjs} +2 -3
- package/{sync-engine-C_5TpvfX.d.mts → sync-engine-C_SwnFgF.d.mts} +2 -4
- package/{sync-engine-CYsWOujz.d.cts → sync-engine-D9ltfqkD.d.cts} +2 -4
- package/{sync-engine-BGVDsrOQ.cjs → sync-engine-DBlSP9r2.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-BtQCi_qP.d.cts} +30 -3
- package/{types-CpAtAtxd.d.mts → types-CTOl3pAX.d.mts} +30 -3
- package/{view-compiler-C-6RydKK.mjs → view-compiler-B8tJ5IGw.mjs} +3 -4
- package/{view-compiler-CwKVoK1w.d.mts → view-compiler-BZgZisTG.d.mts} +1 -3
- package/{view-compiler-xiwm5iar.cjs → view-compiler-Ce_QE3dh.cjs} +3 -4
- package/{view-compiler-Cq8apvZ4.d.cts → view-compiler-D7GLf1n8.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
|
@@ -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-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-
|
|
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
|
-
|
|
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-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-
|
|
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 };
|
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-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 };
|
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-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 };
|
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-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-
|
|
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
|
-
|
|
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-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-
|
|
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
|
-
|
|
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-BvSigBPG.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-BpAfha3z.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-CsZE4ugg.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-Q6CL2VHr.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-MUNZgh1l.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-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-
|
|
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-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;
|
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-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 };
|
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-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 };
|
package/core-entity-config.mjs
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { t as warnDeprecatedSubpath } from "./deprecate-subpath-
|
|
3
|
-
|
|
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
|
-
|
|
4
|
-
require("./deprecate-subpath-
|
|
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-
|
|
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-
|
|
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
|
-
|
|
2
|
-
import { t as warnDeprecatedSubpath } from "./deprecate-subpath-
|
|
3
|
-
|
|
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 };
|
package/core-mapping-form.cjs
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_mapping_form = require("./mapping-form-
|
|
3
|
-
const require_deprecate_subpath = require("./deprecate-subpath-
|
|
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
|
-
|
|
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;
|
package/core-mapping-form.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as relationshipViaSignature, n as buildFilterFromDiscriminator, r as buildRelationships, t as RelationshipCandidate } from "./mapping-form-
|
|
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 };
|
package/core-mapping-form.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as relationshipViaSignature, n as buildFilterFromDiscriminator, r as buildRelationships, t as RelationshipCandidate } from "./mapping-form-
|
|
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 };
|
package/core-mapping-form.mjs
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { t as warnDeprecatedSubpath } from "./deprecate-subpath-
|
|
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
|
-
|
|
4
|
+
// src/core-mapping-form.ts
|
|
5
5
|
warnDeprecatedSubpath("clivly/core/mapping-form", "clivly/internal/mapping-form");
|
|
6
|
-
//#endregion
|
|
7
|
-
export { buildFilterFromDiscriminator, buildRelationships, relationshipViaSignature };
|
package/core-mapping-score.cjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_mapping_score = require("./mapping-score-
|
|
3
|
-
|
|
4
|
-
require("./deprecate-subpath-
|
|
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;
|
package/core-mapping-score.d.cts
CHANGED
|
@@ -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-
|
|
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 };
|
package/core-mapping-score.d.mts
CHANGED
|
@@ -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-
|
|
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 };
|