clivly 0.4.1 → 0.7.1
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/README.md +89 -10
- package/{adapter-CXr12l4K.d.cts → adapter-C2eRbBfo.d.cts} +1 -2
- package/{adapter-CvNBD_3y.d.mts → adapter-D5LRa-NA.d.mts} +1 -2
- package/{auth-adapter-CdLODn2p.d.cts → auth-adapter-Bjgo8LhN.d.mts} +1 -2
- package/{auth-adapter-CRBW4elj.d.mts → auth-adapter-DWzgl5Yq.d.cts} +1 -2
- package/auth-better-auth.d.cts +1 -2
- package/auth-better-auth.d.mts +1 -2
- package/auth-clerk.d.cts +1 -2
- package/auth-clerk.d.mts +1 -2
- package/auth-workos.d.cts +1 -2
- package/auth-workos.d.mts +1 -2
- package/core-adapter.cjs +5 -0
- package/core-adapter.d.cts +1 -1
- package/core-adapter.d.mts +1 -1
- package/core-adapter.mjs +5 -0
- package/core-auth-adapter.cjs +6 -1
- package/core-auth-adapter.d.cts +1 -1
- package/core-auth-adapter.d.mts +1 -1
- package/core-auth-adapter.mjs +6 -1
- package/core-drizzle.cjs +6 -30
- package/core-drizzle.d.cts +1 -20
- package/core-drizzle.d.mts +1 -20
- package/core-drizzle.mjs +5 -29
- package/core-entity-config.cjs +4 -1
- package/core-entity-config.d.cts +1 -1
- package/core-entity-config.d.mts +1 -1
- package/core-entity-config.mjs +5 -1
- package/core-entity-heuristics.cjs +14 -453
- package/core-entity-heuristics.d.cts +1 -67
- package/core-entity-heuristics.d.mts +1 -67
- package/core-entity-heuristics.mjs +4 -442
- package/core-mapping-form.cjs +6 -1
- package/core-mapping-form.d.cts +1 -1
- package/core-mapping-form.d.mts +1 -1
- package/core-mapping-form.mjs +6 -1
- package/core-mapping-score.cjs +4 -1
- package/core-mapping-score.d.cts +1 -1
- package/core-mapping-score.d.mts +1 -1
- package/core-mapping-score.mjs +5 -1
- package/core-mappings-config.cjs +6 -1
- package/core-mappings-config.d.cts +1 -1
- package/core-mappings-config.d.mts +1 -1
- package/core-mappings-config.mjs +6 -1
- package/core-sync-engine.cjs +6 -1
- package/core-sync-engine.d.cts +1 -1
- package/core-sync-engine.d.mts +1 -1
- package/core-sync-engine.mjs +6 -1
- package/core-types.cjs +5 -0
- package/core-types.d.cts +1 -1
- package/core-types.d.mts +1 -1
- package/core-types.mjs +5 -0
- package/core-view-compiler.cjs +6 -1
- package/core-view-compiler.d.cts +1 -1
- package/core-view-compiler.d.mts +1 -1
- package/core-view-compiler.mjs +6 -1
- package/core.cjs +11 -6
- package/core.d.cts +9 -9
- package/core.d.mts +9 -9
- package/core.mjs +11 -6
- package/deprecate-subpath-B9ngvizt.cjs +30 -0
- package/deprecate-subpath-CmvZtCpE.mjs +25 -0
- package/drizzle-B89tLo4T.mjs +31 -0
- package/drizzle-CFOr9dU9.d.mts +20 -0
- package/drizzle-DiReZf6d.cjs +36 -0
- package/drizzle-DmeKSqeF.d.cts +20 -0
- package/drizzle.cjs +3 -1
- package/drizzle.d.cts +11 -3
- package/drizzle.d.mts +11 -3
- package/drizzle.mjs +3 -2
- package/{entity-config-DMuZpchz.cjs → entity-config-D87rV-tE.cjs} +194 -192
- package/{entity-config-D1DFyeUp.d.mts → entity-config-DoUCXtq5.d.cts} +48 -35
- package/{entity-config-GczjD3y8.d.cts → entity-config-DoUCXtq5.d.mts} +48 -35
- package/{entity-config-D3YpQB0z.mjs → entity-config-va2bkH5o.mjs} +194 -192
- package/index.cjs +910 -234
- package/index.d.cts +30 -2
- package/index.d.mts +30 -2
- package/index.mjs +900 -226
- package/internal-adapter.cjs +0 -0
- package/internal-adapter.d.cts +2 -0
- package/internal-adapter.d.mts +2 -0
- package/internal-adapter.mjs +1 -0
- package/internal-auth-adapter.cjs +3 -0
- package/internal-auth-adapter.d.cts +2 -0
- package/internal-auth-adapter.d.mts +2 -0
- package/internal-auth-adapter.mjs +2 -0
- package/internal-drizzle.cjs +3 -0
- package/internal-drizzle.d.cts +2 -0
- package/internal-drizzle.d.mts +2 -0
- package/internal-drizzle.mjs +2 -0
- package/internal-entity-config.cjs +13 -0
- package/internal-entity-config.d.cts +2 -0
- package/internal-entity-config.d.mts +2 -0
- package/internal-entity-config.mjs +2 -0
- package/internal-entity-heuristics.cjs +455 -0
- package/internal-entity-heuristics.d.cts +67 -0
- package/internal-entity-heuristics.d.mts +67 -0
- package/internal-entity-heuristics.mjs +444 -0
- package/internal-mapping-form.cjs +5 -0
- package/internal-mapping-form.d.cts +2 -0
- package/internal-mapping-form.d.mts +2 -0
- package/internal-mapping-form.mjs +2 -0
- package/internal-mapping-score.cjs +12 -0
- package/internal-mapping-score.d.cts +2 -0
- package/internal-mapping-score.d.mts +2 -0
- package/internal-mapping-score.mjs +2 -0
- package/internal-mappings-config.cjs +3 -0
- package/internal-mappings-config.d.cts +2 -0
- package/internal-mappings-config.d.mts +2 -0
- package/internal-mappings-config.mjs +2 -0
- package/internal-sync-engine.cjs +6 -0
- package/internal-sync-engine.d.cts +2 -0
- package/internal-sync-engine.d.mts +2 -0
- package/internal-sync-engine.mjs +2 -0
- package/internal-types.cjs +0 -0
- package/internal-types.d.cts +2 -0
- package/internal-types.d.mts +2 -0
- package/internal-types.mjs +1 -0
- package/internal-view-compiler.cjs +6 -0
- package/internal-view-compiler.d.cts +2 -0
- package/internal-view-compiler.d.mts +2 -0
- package/internal-view-compiler.mjs +2 -0
- package/internal.cjs +28 -0
- package/internal.d.cts +9 -0
- package/internal.d.mts +9 -0
- package/internal.mjs +7 -0
- package/{mapping-form-CUlFVfG8.d.cts → mapping-form-D93lhHEc.d.mts} +1 -2
- package/{mapping-form-kjSiJaCX.d.mts → mapping-form-lfyEE7EJ.d.cts} +1 -2
- package/{mappings-config-DYZ_uOOB.cjs → mappings-config-BsRADNRv.cjs} +1 -1
- package/{mappings-config-CNTZRD4g.mjs → mappings-config-Dbgxx3Nv.mjs} +1 -1
- package/{mappings-config-DjRLCb2Q.d.cts → mappings-config-DsUa7-1w.d.mts} +1 -2
- package/{mappings-config-GxiYsSBQ.d.mts → mappings-config-XmzB4dag.d.cts} +1 -2
- package/package.json +152 -4
- package/{sdk-DdzBxgMx.mjs → sdk-C6WANW8M.mjs} +173 -34
- package/{sdk-D1BHQDf5.cjs → sdk-iqOXeWIp.cjs} +173 -34
- package/sdk.cjs +3 -1
- package/sdk.d.cts +1 -41
- package/sdk.d.mts +1 -41
- package/sdk.mjs +3 -2
- package/{sync-engine-DIVMG9EV.d.cts → sync-engine-B7QIbXro.d.cts} +6 -5
- package/{sync-engine-BtzkzKmY.cjs → sync-engine-CzEbpQGv.cjs} +1 -1
- package/{sync-engine-DLx243iw.d.mts → sync-engine-DGk_AeHJ.d.mts} +6 -5
- package/{sync-engine-D9vghQab.mjs → sync-engine-Do5ru3WF.mjs} +1 -1
- package/types-CsL0rFYh.d.cts +155 -0
- package/types-CsL0rFYh.d.mts +155 -0
- package/{view-compiler-4HsRUTWH.d.cts → view-compiler-BWz0sGdm.d.cts} +1 -2
- package/{view-compiler-BpIDExjd.d.mts → view-compiler-Bn_EJJMO.d.mts} +1 -2
- package/vite.d.cts +1 -2
- package/vite.d.mts +1 -2
- package/namespace-probe-CA4Vj40g.d.mts +0 -331
- package/namespace-probe-CkHCj9tQ.d.cts +0 -331
- /package/{auth-adapter-CBOKDhlc.cjs → auth-adapter-CiEXcweZ.cjs} +0 -0
- /package/{auth-adapter-wqnnEjo3.mjs → auth-adapter-gfVDxf3d.mjs} +0 -0
- /package/{drizzle-meta-BVR1qiyu.cjs → drizzle-meta-Bb1JWYqf.cjs} +0 -0
- /package/{drizzle-meta-DpMKataU.mjs → drizzle-meta-D-5k3n0i.mjs} +0 -0
- /package/{mapping-form-DdmDebC3.cjs → mapping-form-BpfON_ME.cjs} +0 -0
- /package/{mapping-form-BHtPexzI.mjs → mapping-form-DigkuvFc.mjs} +0 -0
- /package/{mapping-score-CPPvwoZC.mjs → mapping-score-C68uAqGB.mjs} +0 -0
- /package/{mapping-score-i3p8LWDF.cjs → mapping-score-CaB3F4Uu.cjs} +0 -0
- /package/{mapping-score-A2lRnlpk.d.mts → mapping-score-D7Gzg7Ii.d.cts} +0 -0
- /package/{mapping-score-BcjC0ZQs.d.cts → mapping-score-D7Gzg7Ii.d.mts} +0 -0
- /package/{types-BpsKVccL.d.cts → types-B1oRXdNP.d.cts} +0 -0
- /package/{types-_qbJXMt_.d.mts → types-B1oRXdNP.d.mts} +0 -0
- /package/{view-compiler-BcgJINr7.cjs → view-compiler-BIwvm-o2.cjs} +0 -0
- /package/{view-compiler-DeZzx_jn.mjs → view-compiler-ChWr_Lml.mjs} +0 -0
|
@@ -1,444 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
//#region
|
|
4
|
-
|
|
5
|
-
"contact",
|
|
6
|
-
"company",
|
|
7
|
-
"deal",
|
|
8
|
-
"activity",
|
|
9
|
-
"conversation",
|
|
10
|
-
"note"
|
|
11
|
-
];
|
|
12
|
-
const TABLE_PATTERNS = [
|
|
13
|
-
{
|
|
14
|
-
concept: "contact",
|
|
15
|
-
names: [
|
|
16
|
-
"users",
|
|
17
|
-
"customers",
|
|
18
|
-
"clients",
|
|
19
|
-
"accounts",
|
|
20
|
-
"participants",
|
|
21
|
-
"attendees",
|
|
22
|
-
"people",
|
|
23
|
-
"members",
|
|
24
|
-
"contacts",
|
|
25
|
-
"students",
|
|
26
|
-
"pupils",
|
|
27
|
-
"learners",
|
|
28
|
-
"patients",
|
|
29
|
-
"subscribers",
|
|
30
|
-
"donors",
|
|
31
|
-
"guests",
|
|
32
|
-
"residents",
|
|
33
|
-
"tenants",
|
|
34
|
-
"applicants",
|
|
35
|
-
"candidates",
|
|
36
|
-
"leads",
|
|
37
|
-
"prospects"
|
|
38
|
-
]
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
concept: "company",
|
|
42
|
-
names: [
|
|
43
|
-
"companies",
|
|
44
|
-
"organizations",
|
|
45
|
-
"organisations",
|
|
46
|
-
"orgs",
|
|
47
|
-
"teams",
|
|
48
|
-
"businesses",
|
|
49
|
-
"accounts"
|
|
50
|
-
]
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
concept: "deal",
|
|
54
|
-
names: [
|
|
55
|
-
"deals",
|
|
56
|
-
"opportunities",
|
|
57
|
-
"subscriptions",
|
|
58
|
-
"orders",
|
|
59
|
-
"invoices",
|
|
60
|
-
"sales"
|
|
61
|
-
]
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
concept: "conversation",
|
|
65
|
-
names: [
|
|
66
|
-
"conversations",
|
|
67
|
-
"messages",
|
|
68
|
-
"tickets",
|
|
69
|
-
"threads",
|
|
70
|
-
"chats",
|
|
71
|
-
"inbox"
|
|
72
|
-
]
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
concept: "activity",
|
|
76
|
-
names: [
|
|
77
|
-
"events",
|
|
78
|
-
"activities",
|
|
79
|
-
"jobs",
|
|
80
|
-
"logs",
|
|
81
|
-
"audit",
|
|
82
|
-
"shifts",
|
|
83
|
-
"scans",
|
|
84
|
-
"sessions"
|
|
85
|
-
]
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
concept: "note",
|
|
89
|
-
names: [
|
|
90
|
-
"notes",
|
|
91
|
-
"comments",
|
|
92
|
-
"annotations"
|
|
93
|
-
]
|
|
94
|
-
}
|
|
95
|
-
];
|
|
96
|
-
const CONCEPT_FIELDS = {
|
|
97
|
-
contact: [{
|
|
98
|
-
field: "name",
|
|
99
|
-
candidates: [
|
|
100
|
-
"name",
|
|
101
|
-
"full_name",
|
|
102
|
-
"fullname",
|
|
103
|
-
"display_name"
|
|
104
|
-
],
|
|
105
|
-
required: false
|
|
106
|
-
}, {
|
|
107
|
-
field: "email",
|
|
108
|
-
candidates: ["email", "email_address"],
|
|
109
|
-
required: true
|
|
110
|
-
}],
|
|
111
|
-
company: [{
|
|
112
|
-
field: "name",
|
|
113
|
-
candidates: [
|
|
114
|
-
"name",
|
|
115
|
-
"company_name",
|
|
116
|
-
"legal_name",
|
|
117
|
-
"title"
|
|
118
|
-
],
|
|
119
|
-
required: true
|
|
120
|
-
}, {
|
|
121
|
-
field: "domain",
|
|
122
|
-
candidates: [
|
|
123
|
-
"domain",
|
|
124
|
-
"website",
|
|
125
|
-
"url"
|
|
126
|
-
],
|
|
127
|
-
required: false
|
|
128
|
-
}],
|
|
129
|
-
deal: [
|
|
130
|
-
{
|
|
131
|
-
field: "name",
|
|
132
|
-
candidates: ["name", "title"],
|
|
133
|
-
required: true
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
field: "value",
|
|
137
|
-
candidates: [
|
|
138
|
-
"value",
|
|
139
|
-
"amount",
|
|
140
|
-
"total",
|
|
141
|
-
"price"
|
|
142
|
-
],
|
|
143
|
-
required: false
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
field: "stage",
|
|
147
|
-
candidates: [
|
|
148
|
-
"stage",
|
|
149
|
-
"status",
|
|
150
|
-
"state"
|
|
151
|
-
],
|
|
152
|
-
required: false
|
|
153
|
-
}
|
|
154
|
-
],
|
|
155
|
-
activity: [
|
|
156
|
-
{
|
|
157
|
-
field: "type",
|
|
158
|
-
candidates: [
|
|
159
|
-
"type",
|
|
160
|
-
"kind",
|
|
161
|
-
"event_type"
|
|
162
|
-
],
|
|
163
|
-
required: false
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
field: "summary",
|
|
167
|
-
candidates: [
|
|
168
|
-
"summary",
|
|
169
|
-
"description",
|
|
170
|
-
"message",
|
|
171
|
-
"title"
|
|
172
|
-
],
|
|
173
|
-
required: false
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
field: "createdAt",
|
|
177
|
-
candidates: [
|
|
178
|
-
"created_at",
|
|
179
|
-
"createdat",
|
|
180
|
-
"timestamp"
|
|
181
|
-
],
|
|
182
|
-
required: false
|
|
183
|
-
}
|
|
184
|
-
],
|
|
185
|
-
conversation: [{
|
|
186
|
-
field: "status",
|
|
187
|
-
candidates: ["status", "state"],
|
|
188
|
-
required: false
|
|
189
|
-
}, {
|
|
190
|
-
field: "subject",
|
|
191
|
-
candidates: [
|
|
192
|
-
"subject",
|
|
193
|
-
"title",
|
|
194
|
-
"preview"
|
|
195
|
-
],
|
|
196
|
-
required: false
|
|
197
|
-
}],
|
|
198
|
-
note: [{
|
|
199
|
-
field: "body",
|
|
200
|
-
candidates: [
|
|
201
|
-
"body",
|
|
202
|
-
"content",
|
|
203
|
-
"text",
|
|
204
|
-
"note"
|
|
205
|
-
],
|
|
206
|
-
required: true
|
|
207
|
-
}]
|
|
208
|
-
};
|
|
209
|
-
const CURSOR_CANDIDATES = [
|
|
210
|
-
"updatedat",
|
|
211
|
-
"updated_at",
|
|
212
|
-
"modifiedat",
|
|
213
|
-
"modified_at",
|
|
214
|
-
"createdat",
|
|
215
|
-
"created_at"
|
|
216
|
-
];
|
|
217
|
-
function suggestCursorField(columnKeys) {
|
|
218
|
-
const lowerToActual = new Map(columnKeys.map((c) => [c.toLowerCase(), c]));
|
|
219
|
-
for (const candidate of CURSOR_CANDIDATES) {
|
|
220
|
-
const match = lowerToActual.get(candidate);
|
|
221
|
-
if (match) return match;
|
|
222
|
-
}
|
|
223
|
-
return null;
|
|
224
|
-
}
|
|
225
|
-
const MATERIALIZING = new Set(MATERIALIZING_CONCEPTS);
|
|
226
|
-
function matchesConcept(tableName, concept) {
|
|
227
|
-
const normalized = tableName.toLowerCase();
|
|
228
|
-
const entry = TABLE_PATTERNS.find((p) => p.concept === concept);
|
|
229
|
-
if (!entry) return null;
|
|
230
|
-
if (entry.names.includes(normalized)) return { exact: true };
|
|
231
|
-
if (entry.names.some((name) => normalized.includes(name))) return { exact: false };
|
|
232
|
-
return null;
|
|
233
|
-
}
|
|
234
|
-
function metaFor(table, column) {
|
|
235
|
-
return table.columnsMeta?.find((c) => c.name === column);
|
|
236
|
-
}
|
|
237
|
-
function hasDefiningColumn(concept, columns) {
|
|
238
|
-
const lower = new Set(columns.map((c) => c.toLowerCase()));
|
|
239
|
-
const required = CONCEPT_FIELDS[concept].filter((f) => f.required);
|
|
240
|
-
return required.length > 0 && required.every((f) => f.candidates.some((c) => lower.has(c)));
|
|
241
|
-
}
|
|
242
|
-
function scoreConcepts(table) {
|
|
243
|
-
const out = [];
|
|
244
|
-
for (const concept of TARGET_CONCEPTS) {
|
|
245
|
-
if (!MATERIALIZING.has(concept)) continue;
|
|
246
|
-
const nameMatch = matchesConcept(table.name, concept);
|
|
247
|
-
if (!nameMatch) continue;
|
|
248
|
-
let score = 0;
|
|
249
|
-
const reasons = [];
|
|
250
|
-
if (nameMatch.exact) {
|
|
251
|
-
score += W.nameExact;
|
|
252
|
-
reasons.push(`name matches "${table.name}"`);
|
|
253
|
-
} else {
|
|
254
|
-
score += W.nameSubstring;
|
|
255
|
-
reasons.push(`name looks like ${concept}`);
|
|
256
|
-
}
|
|
257
|
-
if (hasDefiningColumn(concept, table.columns)) {
|
|
258
|
-
score += W.definingColumn;
|
|
259
|
-
reasons.push(`has the columns a ${concept} needs`);
|
|
260
|
-
}
|
|
261
|
-
if (table.columnsMeta?.some((c) => c.isPrimaryKey)) {
|
|
262
|
-
score += W.hasPrimaryKey;
|
|
263
|
-
reasons.push("has primary key");
|
|
264
|
-
}
|
|
265
|
-
if (table.rowCount !== void 0) if (table.rowCount === 0) {
|
|
266
|
-
score += W.emptyTable;
|
|
267
|
-
reasons.push("table is empty");
|
|
268
|
-
} else {
|
|
269
|
-
score += W.hasRows;
|
|
270
|
-
reasons.push(`${table.rowCount.toLocaleString("en-US")} rows`);
|
|
271
|
-
}
|
|
272
|
-
out.push({
|
|
273
|
-
value: concept,
|
|
274
|
-
score,
|
|
275
|
-
tier: tierFor(score, CONCEPT_TIERS),
|
|
276
|
-
reasons
|
|
277
|
-
});
|
|
278
|
-
}
|
|
279
|
-
return out.sort((a, b) => b.score - a.score);
|
|
280
|
-
}
|
|
281
|
-
function topConcept(table) {
|
|
282
|
-
const ranked = scoreConcepts(table);
|
|
283
|
-
const best = ranked[0];
|
|
284
|
-
if (!best) return null;
|
|
285
|
-
return {
|
|
286
|
-
best,
|
|
287
|
-
ambiguous: isAmbiguous(ranked)
|
|
288
|
-
};
|
|
289
|
-
}
|
|
290
|
-
function requiredFieldsFor(concept) {
|
|
291
|
-
if (concept === "custom") return [];
|
|
292
|
-
return CONCEPT_FIELDS[concept].filter((f) => f.required).map((f) => f.field);
|
|
293
|
-
}
|
|
294
|
-
function validateMapping(requiredFields, fieldMap) {
|
|
295
|
-
const missing = requiredFields.filter((field) => !fieldMap[field]);
|
|
296
|
-
return {
|
|
297
|
-
valid: missing.length === 0,
|
|
298
|
-
missing
|
|
299
|
-
};
|
|
300
|
-
}
|
|
301
|
-
const DISCRIMINATOR_COLUMNS = [
|
|
302
|
-
"role",
|
|
303
|
-
"type",
|
|
304
|
-
"kind",
|
|
305
|
-
"status",
|
|
306
|
-
"state",
|
|
307
|
-
"category",
|
|
308
|
-
"tier"
|
|
309
|
-
];
|
|
310
|
-
function suggestDiscriminatorColumns(columns) {
|
|
311
|
-
const lowerToActual = new Map(columns.map((c) => [c.toLowerCase(), c]));
|
|
312
|
-
const out = [];
|
|
313
|
-
for (const name of DISCRIMINATOR_COLUMNS) {
|
|
314
|
-
const match = lowerToActual.get(name);
|
|
315
|
-
if (match) out.push(match);
|
|
316
|
-
}
|
|
317
|
-
return out;
|
|
318
|
-
}
|
|
319
|
-
const COMPANY_FK_HINTS = [
|
|
320
|
-
"organization_id",
|
|
321
|
-
"organisation_id",
|
|
322
|
-
"org_id",
|
|
323
|
-
"company_id",
|
|
324
|
-
"account_id",
|
|
325
|
-
"team_id"
|
|
326
|
-
];
|
|
327
|
-
function firstMatchingColumn(columns, hints) {
|
|
328
|
-
const lowerToActual = new Map(columns.map((c) => [c.toLowerCase(), c]));
|
|
329
|
-
for (const hint of hints) {
|
|
330
|
-
const match = lowerToActual.get(hint);
|
|
331
|
-
if (match) return match;
|
|
332
|
-
}
|
|
333
|
-
return null;
|
|
334
|
-
}
|
|
335
|
-
/**
|
|
336
|
-
* Suggest contact→company relationships. When the source table carries FK
|
|
337
|
-
* metadata (`references`), the target table is a *fact*, not a name guess —
|
|
338
|
-
* that scores highest. Without metadata (v1 hosts) we fall back to the legacy
|
|
339
|
-
* FK-name hints at a lower tier.
|
|
340
|
-
*/
|
|
341
|
-
function scoreRelationships(source, allTables) {
|
|
342
|
-
const companyTables = allTables.filter((t) => t.name !== source.name && topConcept(t)?.best.value === "company");
|
|
343
|
-
if (companyTables.length === 0) return [];
|
|
344
|
-
const companyNames = new Set(companyTables.map((t) => t.name.toLowerCase()));
|
|
345
|
-
const out = [];
|
|
346
|
-
const seenTargets = /* @__PURE__ */ new Set();
|
|
347
|
-
for (const col of source.columnsMeta ?? []) {
|
|
348
|
-
const ref = col.references;
|
|
349
|
-
if (!(ref && companyNames.has(ref.table.toLowerCase()))) continue;
|
|
350
|
-
if (seenTargets.has(ref.table.toLowerCase())) continue;
|
|
351
|
-
seenTargets.add(ref.table.toLowerCase());
|
|
352
|
-
out.push({
|
|
353
|
-
value: {
|
|
354
|
-
name: "company",
|
|
355
|
-
entityTable: ref.table,
|
|
356
|
-
via: {
|
|
357
|
-
fkOn: "contact",
|
|
358
|
-
column: `${source.name}.${col.name}`
|
|
359
|
-
}
|
|
360
|
-
},
|
|
361
|
-
score: W.fkResolved,
|
|
362
|
-
tier: tierFor(W.fkResolved, RELATIONSHIP_TIERS),
|
|
363
|
-
reasons: [`foreign key → ${ref.table}.${ref.column}`]
|
|
364
|
-
});
|
|
365
|
-
}
|
|
366
|
-
if (source.columnsMeta?.length) return out.sort((a, b) => b.score - a.score);
|
|
367
|
-
const contactFk = firstMatchingColumn(source.columns, COMPANY_FK_HINTS);
|
|
368
|
-
if (contactFk) out.push({
|
|
369
|
-
value: {
|
|
370
|
-
name: "company",
|
|
371
|
-
entityTable: companyTables[0]?.name ?? "",
|
|
372
|
-
via: {
|
|
373
|
-
fkOn: "contact",
|
|
374
|
-
column: `${source.name}.${contactFk}`
|
|
375
|
-
}
|
|
376
|
-
},
|
|
377
|
-
score: W.fkNameHint,
|
|
378
|
-
tier: tierFor(W.fkNameHint, RELATIONSHIP_TIERS),
|
|
379
|
-
reasons: [`column "${contactFk}" looks like a company link`]
|
|
380
|
-
});
|
|
381
|
-
return out.sort((a, b) => b.score - a.score);
|
|
382
|
-
}
|
|
383
|
-
const FIELD_TYPE_EXPECTATION = {
|
|
384
|
-
name: "text",
|
|
385
|
-
email: "text",
|
|
386
|
-
domain: "text",
|
|
387
|
-
stage: "text",
|
|
388
|
-
status: "text",
|
|
389
|
-
subject: "text",
|
|
390
|
-
body: "text",
|
|
391
|
-
summary: "text",
|
|
392
|
-
type: "text",
|
|
393
|
-
value: "numeric",
|
|
394
|
-
createdAt: "timestamp"
|
|
395
|
-
};
|
|
396
|
-
function typeFits(field, type) {
|
|
397
|
-
const expectation = FIELD_TYPE_EXPECTATION[field];
|
|
398
|
-
if (!(expectation && type)) return null;
|
|
399
|
-
if (expectation === "text") return isTextLike(type);
|
|
400
|
-
if (expectation === "numeric") return isNumericLike(type);
|
|
401
|
-
return isTimestampLike(type);
|
|
402
|
-
}
|
|
403
|
-
function scoreFieldMap(concept, table) {
|
|
404
|
-
const lowerToActual = new Map(table.columns.map((c) => [c.toLowerCase(), c]));
|
|
405
|
-
const out = [];
|
|
406
|
-
for (const { field, candidates, required } of CONCEPT_FIELDS[concept]) for (const candidate of candidates) {
|
|
407
|
-
const column = lowerToActual.get(candidate);
|
|
408
|
-
if (!column) continue;
|
|
409
|
-
let score = W.fieldNameMatch;
|
|
410
|
-
const reasons = [`name matches "${column}"`];
|
|
411
|
-
const meta = metaFor(table, column);
|
|
412
|
-
const fits = typeFits(field, meta?.type);
|
|
413
|
-
if (fits === true) {
|
|
414
|
-
score += W.typeCompatible;
|
|
415
|
-
reasons.push(`type ${meta?.type}`);
|
|
416
|
-
} else if (fits === false) {
|
|
417
|
-
score += W.typeMismatch;
|
|
418
|
-
reasons.push(`type ${meta?.type} does not fit ${field}`);
|
|
419
|
-
}
|
|
420
|
-
if (required && meta?.nullable === false) {
|
|
421
|
-
score += W.requiredNotNull;
|
|
422
|
-
reasons.push("not null");
|
|
423
|
-
}
|
|
424
|
-
out.push({
|
|
425
|
-
value: {
|
|
426
|
-
field,
|
|
427
|
-
column,
|
|
428
|
-
required
|
|
429
|
-
},
|
|
430
|
-
score,
|
|
431
|
-
tier: tierFor(score, FIELD_TIERS),
|
|
432
|
-
reasons
|
|
433
|
-
});
|
|
434
|
-
break;
|
|
435
|
-
}
|
|
436
|
-
return out;
|
|
437
|
-
}
|
|
438
|
-
function toFieldMap(scored) {
|
|
439
|
-
const map = {};
|
|
440
|
-
for (const { value } of scored) map[value.field] = value.column;
|
|
441
|
-
return map;
|
|
442
|
-
}
|
|
1
|
+
import { TARGET_CONCEPTS, 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
|
|
4
|
+
warnDeprecatedSubpath("clivly/core/entity-heuristics", "clivly/internal/entity-heuristics");
|
|
443
5
|
//#endregion
|
|
444
6
|
export { TARGET_CONCEPTS, matchesConcept, requiredFieldsFor, scoreConcepts, scoreFieldMap, scoreRelationships, suggestCursorField, suggestDiscriminatorColumns, toFieldMap, topConcept, validateMapping };
|
package/core-mapping-form.cjs
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const
|
|
2
|
+
const require_deprecate_subpath = require("./deprecate-subpath-B9ngvizt.cjs");
|
|
3
|
+
const require_mapping_form = require("./mapping-form-BpfON_ME.cjs");
|
|
4
|
+
require("./internal-mapping-form.cjs");
|
|
5
|
+
//#region src/core-mapping-form.ts
|
|
6
|
+
require_deprecate_subpath.warnDeprecatedSubpath("clivly/core/mapping-form", "clivly/internal/mapping-form");
|
|
7
|
+
//#endregion
|
|
3
8
|
exports.buildFilterFromDiscriminator = require_mapping_form.buildFilterFromDiscriminator;
|
|
4
9
|
exports.buildRelationships = require_mapping_form.buildRelationships;
|
|
5
10
|
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-lfyEE7EJ.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-D93lhHEc.mjs";
|
|
2
2
|
export { RelationshipCandidate, buildFilterFromDiscriminator, buildRelationships, relationshipViaSignature };
|
package/core-mapping-form.mjs
CHANGED
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as warnDeprecatedSubpath } from "./deprecate-subpath-CmvZtCpE.mjs";
|
|
2
|
+
import { n as buildRelationships, r as relationshipViaSignature, t as buildFilterFromDiscriminator } from "./mapping-form-DigkuvFc.mjs";
|
|
3
|
+
import "./internal-mapping-form.mjs";
|
|
4
|
+
//#region src/core-mapping-form.ts
|
|
5
|
+
warnDeprecatedSubpath("clivly/core/mapping-form", "clivly/internal/mapping-form");
|
|
6
|
+
//#endregion
|
|
2
7
|
export { buildFilterFromDiscriminator, buildRelationships, relationshipViaSignature };
|
package/core-mapping-score.cjs
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_mapping_score = require("./mapping-score-
|
|
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
|
|
3
6
|
exports.AMBIGUITY_MARGIN = require_mapping_score.AMBIGUITY_MARGIN;
|
|
4
7
|
exports.CONCEPT_TIERS = require_mapping_score.CONCEPT_TIERS;
|
|
5
8
|
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-D7Gzg7Ii.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-D7Gzg7Ii.mjs";
|
|
2
2
|
export { AMBIGUITY_MARGIN, CONCEPT_TIERS, FIELD_TIERS, RELATIONSHIP_TIERS, Scored, Thresholds, Tier, W, isAmbiguous, isNumericLike, isTextLike, isTimestampLike, tierFor };
|
package/core-mapping-score.mjs
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
import { a as W, c as isTextLike, i as RELATIONSHIP_TIERS, l as isTimestampLike, n as CONCEPT_TIERS, o as isAmbiguous, r as FIELD_TIERS, s as isNumericLike, t as AMBIGUITY_MARGIN, u as tierFor } from "./mapping-score-
|
|
1
|
+
import { a as W, c as isTextLike, i as RELATIONSHIP_TIERS, l as isTimestampLike, n as CONCEPT_TIERS, o as isAmbiguous, r as FIELD_TIERS, s as isNumericLike, t as AMBIGUITY_MARGIN, u as tierFor } from "./mapping-score-C68uAqGB.mjs";
|
|
2
|
+
import { t as warnDeprecatedSubpath } from "./deprecate-subpath-CmvZtCpE.mjs";
|
|
3
|
+
//#region src/core-mapping-score.ts
|
|
4
|
+
warnDeprecatedSubpath("clivly/core/mapping-score", "clivly/internal/mapping-score");
|
|
5
|
+
//#endregion
|
|
2
6
|
export { AMBIGUITY_MARGIN, CONCEPT_TIERS, FIELD_TIERS, RELATIONSHIP_TIERS, W, isAmbiguous, isNumericLike, isTextLike, isTimestampLike, tierFor };
|
package/core-mappings-config.cjs
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const
|
|
2
|
+
const require_deprecate_subpath = require("./deprecate-subpath-B9ngvizt.cjs");
|
|
3
|
+
const require_mappings_config = require("./mappings-config-BsRADNRv.cjs");
|
|
4
|
+
require("./internal-mappings-config.cjs");
|
|
5
|
+
//#region src/core-mappings-config.ts
|
|
6
|
+
require_deprecate_subpath.warnDeprecatedSubpath("clivly/core/mappings-config", "clivly/internal/mappings-config");
|
|
7
|
+
//#endregion
|
|
3
8
|
exports.mappingsToEntitiesConfig = require_mappings_config.mappingsToEntitiesConfig;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as mappingsToEntitiesConfig, t as EntityMappingRow } from "./mappings-config-
|
|
1
|
+
import { n as mappingsToEntitiesConfig, t as EntityMappingRow } from "./mappings-config-XmzB4dag.cjs";
|
|
2
2
|
export { EntityMappingRow, mappingsToEntitiesConfig };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as mappingsToEntitiesConfig, t as EntityMappingRow } from "./mappings-config-
|
|
1
|
+
import { n as mappingsToEntitiesConfig, t as EntityMappingRow } from "./mappings-config-DsUa7-1w.mjs";
|
|
2
2
|
export { EntityMappingRow, mappingsToEntitiesConfig };
|
package/core-mappings-config.mjs
CHANGED
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
import { t as
|
|
1
|
+
import { t as warnDeprecatedSubpath } from "./deprecate-subpath-CmvZtCpE.mjs";
|
|
2
|
+
import { t as mappingsToEntitiesConfig } from "./mappings-config-Dbgxx3Nv.mjs";
|
|
3
|
+
import "./internal-mappings-config.mjs";
|
|
4
|
+
//#region src/core-mappings-config.ts
|
|
5
|
+
warnDeprecatedSubpath("clivly/core/mappings-config", "clivly/internal/mappings-config");
|
|
6
|
+
//#endregion
|
|
2
7
|
export { mappingsToEntitiesConfig };
|
package/core-sync-engine.cjs
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const
|
|
2
|
+
const require_deprecate_subpath = require("./deprecate-subpath-B9ngvizt.cjs");
|
|
3
|
+
const require_sync_engine = require("./sync-engine-CzEbpQGv.cjs");
|
|
4
|
+
require("./internal-sync-engine.cjs");
|
|
5
|
+
//#region src/core-sync-engine.ts
|
|
6
|
+
require_deprecate_subpath.warnDeprecatedSubpath("clivly/core/sync-engine", "clivly/internal/sync-engine");
|
|
7
|
+
//#endregion
|
|
3
8
|
exports.computeSampleWarnings = require_sync_engine.computeSampleWarnings;
|
|
4
9
|
exports.previewSync = require_sync_engine.previewSync;
|
|
5
10
|
exports.reconcile = require_sync_engine.reconcile;
|
package/core-sync-engine.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as PreviewWarning, c as SyncResult, d as previewSync, f as reconcile, i as PreviewResult, l as SyncStore, n as MirrorRecord, o as SourceRow, p as runSync, r as PersistAction, s as SyncAction, t as EntitySyncResult, u as computeSampleWarnings } from "./sync-engine-
|
|
1
|
+
import { a as PreviewWarning, c as SyncResult, d as previewSync, f as reconcile, i as PreviewResult, l as SyncStore, n as MirrorRecord, o as SourceRow, p as runSync, r as PersistAction, s as SyncAction, t as EntitySyncResult, u as computeSampleWarnings } from "./sync-engine-B7QIbXro.cjs";
|
|
2
2
|
export { EntitySyncResult, MirrorRecord, PersistAction, PreviewResult, PreviewWarning, SourceRow, SyncAction, SyncResult, SyncStore, computeSampleWarnings, previewSync, reconcile, runSync };
|
package/core-sync-engine.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as PreviewWarning, c as SyncResult, d as previewSync, f as reconcile, i as PreviewResult, l as SyncStore, n as MirrorRecord, o as SourceRow, p as runSync, r as PersistAction, s as SyncAction, t as EntitySyncResult, u as computeSampleWarnings } from "./sync-engine-
|
|
1
|
+
import { a as PreviewWarning, c as SyncResult, d as previewSync, f as reconcile, i as PreviewResult, l as SyncStore, n as MirrorRecord, o as SourceRow, p as runSync, r as PersistAction, s as SyncAction, t as EntitySyncResult, u as computeSampleWarnings } from "./sync-engine-DGk_AeHJ.mjs";
|
|
2
2
|
export { EntitySyncResult, MirrorRecord, PersistAction, PreviewResult, PreviewWarning, SourceRow, SyncAction, SyncResult, SyncStore, computeSampleWarnings, previewSync, reconcile, runSync };
|
package/core-sync-engine.mjs
CHANGED
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as warnDeprecatedSubpath } from "./deprecate-subpath-CmvZtCpE.mjs";
|
|
2
|
+
import { i as runSync, n as previewSync, r as reconcile, t as computeSampleWarnings } from "./sync-engine-Do5ru3WF.mjs";
|
|
3
|
+
import "./internal-sync-engine.mjs";
|
|
4
|
+
//#region src/core-sync-engine.ts
|
|
5
|
+
warnDeprecatedSubpath("clivly/core/sync-engine", "clivly/internal/sync-engine");
|
|
6
|
+
//#endregion
|
|
2
7
|
export { computeSampleWarnings, previewSync, reconcile, runSync };
|
package/core-types.cjs
CHANGED
package/core-types.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as UpdateDealInput, S as UpdateContactInput, _ as Task, a as ContactFilters, b as TaskPriority, c as CreateCompanyInput, d as CreateTaskInput, f as CrmRole, g as RecordSource, h as Note, i as Contact, l as CreateContactInput, m as DealStage, n as ActivityType, o as ContactStatus, p as Deal, r as Company, s as CreateActivityInput, t as Activity, u as CreateDealInput, v as TaskEntityType, w as UpdateTaskInput, x as TaskStatus, y as TaskFilters } from "./types-
|
|
1
|
+
import { C as UpdateDealInput, S as UpdateContactInput, _ as Task, a as ContactFilters, b as TaskPriority, c as CreateCompanyInput, d as CreateTaskInput, f as CrmRole, g as RecordSource, h as Note, i as Contact, l as CreateContactInput, m as DealStage, n as ActivityType, o as ContactStatus, p as Deal, r as Company, s as CreateActivityInput, t as Activity, u as CreateDealInput, v as TaskEntityType, w as UpdateTaskInput, x as TaskStatus, y as TaskFilters } from "./types-B1oRXdNP.cjs";
|
|
2
2
|
export { Activity, ActivityType, Company, Contact, ContactFilters, ContactStatus, CreateActivityInput, CreateCompanyInput, CreateContactInput, CreateDealInput, CreateTaskInput, CrmRole, Deal, DealStage, Note, RecordSource, Task, TaskEntityType, TaskFilters, TaskPriority, TaskStatus, UpdateContactInput, UpdateDealInput, UpdateTaskInput };
|
package/core-types.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as UpdateDealInput, S as UpdateContactInput, _ as Task, a as ContactFilters, b as TaskPriority, c as CreateCompanyInput, d as CreateTaskInput, f as CrmRole, g as RecordSource, h as Note, i as Contact, l as CreateContactInput, m as DealStage, n as ActivityType, o as ContactStatus, p as Deal, r as Company, s as CreateActivityInput, t as Activity, u as CreateDealInput, v as TaskEntityType, w as UpdateTaskInput, x as TaskStatus, y as TaskFilters } from "./types-
|
|
1
|
+
import { C as UpdateDealInput, S as UpdateContactInput, _ as Task, a as ContactFilters, b as TaskPriority, c as CreateCompanyInput, d as CreateTaskInput, f as CrmRole, g as RecordSource, h as Note, i as Contact, l as CreateContactInput, m as DealStage, n as ActivityType, o as ContactStatus, p as Deal, r as Company, s as CreateActivityInput, t as Activity, u as CreateDealInput, v as TaskEntityType, w as UpdateTaskInput, x as TaskStatus, y as TaskFilters } from "./types-B1oRXdNP.mjs";
|
|
2
2
|
export { Activity, ActivityType, Company, Contact, ContactFilters, ContactStatus, CreateActivityInput, CreateCompanyInput, CreateContactInput, CreateDealInput, CreateTaskInput, CrmRole, Deal, DealStage, Note, RecordSource, Task, TaskEntityType, TaskFilters, TaskPriority, TaskStatus, UpdateContactInput, UpdateDealInput, UpdateTaskInput };
|
package/core-types.mjs
CHANGED
package/core-view-compiler.cjs
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const
|
|
2
|
+
const require_deprecate_subpath = require("./deprecate-subpath-B9ngvizt.cjs");
|
|
3
|
+
const require_view_compiler = require("./view-compiler-BIwvm-o2.cjs");
|
|
4
|
+
require("./internal-view-compiler.cjs");
|
|
5
|
+
//#region src/core-view-compiler.ts
|
|
6
|
+
require_deprecate_subpath.warnDeprecatedSubpath("clivly/core/view-compiler", "clivly/internal/view-compiler");
|
|
7
|
+
//#endregion
|
|
3
8
|
exports.DEFAULT_VIEW_PREFIX = require_view_compiler.DEFAULT_VIEW_PREFIX;
|
|
4
9
|
exports.compileEntityView = require_view_compiler.compileEntityView;
|
|
5
10
|
exports.compileEntityViews = require_view_compiler.compileEntityViews;
|
package/core-view-compiler.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as compileEntityView, i as ExplainResult, n as CompiledView, o as compileEntityViews, r as DEFAULT_VIEW_PREFIX, s as explainEntitiesConfig, t as CompileOptions } from "./view-compiler-
|
|
1
|
+
import { a as compileEntityView, i as ExplainResult, n as CompiledView, o as compileEntityViews, r as DEFAULT_VIEW_PREFIX, s as explainEntitiesConfig, t as CompileOptions } from "./view-compiler-BWz0sGdm.cjs";
|
|
2
2
|
export { CompileOptions, CompiledView, DEFAULT_VIEW_PREFIX, ExplainResult, compileEntityView, compileEntityViews, explainEntitiesConfig };
|
package/core-view-compiler.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as compileEntityView, i as ExplainResult, n as CompiledView, o as compileEntityViews, r as DEFAULT_VIEW_PREFIX, s as explainEntitiesConfig, t as CompileOptions } from "./view-compiler-
|
|
1
|
+
import { a as compileEntityView, i as ExplainResult, n as CompiledView, o as compileEntityViews, r as DEFAULT_VIEW_PREFIX, s as explainEntitiesConfig, t as CompileOptions } from "./view-compiler-Bn_EJJMO.mjs";
|
|
2
2
|
export { CompileOptions, CompiledView, DEFAULT_VIEW_PREFIX, ExplainResult, compileEntityView, compileEntityViews, explainEntitiesConfig };
|
package/core-view-compiler.mjs
CHANGED
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as warnDeprecatedSubpath } from "./deprecate-subpath-CmvZtCpE.mjs";
|
|
2
|
+
import { i as explainEntitiesConfig, n as compileEntityView, r as compileEntityViews, t as DEFAULT_VIEW_PREFIX } from "./view-compiler-ChWr_Lml.mjs";
|
|
3
|
+
import "./internal-view-compiler.mjs";
|
|
4
|
+
//#region src/core-view-compiler.ts
|
|
5
|
+
warnDeprecatedSubpath("clivly/core/view-compiler", "clivly/internal/view-compiler");
|
|
6
|
+
//#endregion
|
|
2
7
|
export { DEFAULT_VIEW_PREFIX, compileEntityView, compileEntityViews, explainEntitiesConfig };
|