clivly 0.16.0 → 0.17.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 +21 -27
- package/{adapter-BMAUq4hf.d.mts → adapter-C63F9VZL.d.mts} +1 -3
- package/{adapter-IH3r_I8v.d.cts → adapter-OO5g17qF.d.cts} +1 -3
- package/{auth-adapter-CiEXcweZ.cjs → auth-adapter-CNVuxT9W.cjs} +1 -2
- package/{auth-adapter-Bt1GZiag.d.cts → auth-adapter-COMP0Fud.d.cts} +1 -3
- package/{auth-adapter-CHy273qb.d.mts → auth-adapter-ZlhllVpm.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 +18 -18
- package/core-entity-heuristics.d.cts +3 -3
- package/core-entity-heuristics.d.mts +3 -3
- 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-CiK37zJm.d.cts → drizzle-B9cjBavj.d.cts} +1 -3
- package/{drizzle-DcB7OfBp.cjs → drizzle-C0bfX-6a.cjs} +1 -2
- package/{drizzle-wbcuG-cy.mjs → drizzle-CZuOzIu4.mjs} +1 -2
- package/{drizzle-ehVWLSrN.d.mts → drizzle-L5FOGe_-.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-BI4RYNKL.cjs → entity-config-DiCJ6mhI.cjs} +8 -11
- package/entity-config-X-KlnYXX.d.mts +632 -0
- package/entity-config-dNclLyBM.d.cts +632 -0
- package/{entity-config-Ccfb2IL9.mjs → entity-config-g_oMPXlN.mjs} +8 -11
- package/entity-heuristics-CIParuQe.cjs +655 -0
- package/entity-heuristics-DE5ujoHw.mjs +566 -0
- package/index.cjs +65 -111
- package/index.d.cts +1 -12
- package/index.d.mts +1 -12
- package/index.mjs +53 -99
- 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-CLvZdVj5.mjs → internal-9oDwwbNg.mjs} +37 -9
- package/{internal-DsArcqkP.cjs → internal-BKYt5j0l.cjs} +42 -8
- package/{internal-C7NlPM3M.d.mts → internal-COALpgov.d.cts} +1 -17
- package/{internal-D2J4VQWT.d.cts → internal-D3q4FPcA.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 +16 -576
- package/internal-entity-heuristics.d.cts +4 -4
- package/internal-entity-heuristics.d.mts +4 -4
- package/internal-entity-heuristics.mjs +1 -563
- 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-XsLLCqW_.d.cts → mapping-form-Bpvgf5b8.d.mts} +1 -3
- package/{mapping-form-BpfON_ME.cjs → mapping-form-Bs6JQurC.cjs} +1 -2
- package/{mapping-form-DigkuvFc.mjs → mapping-form-C7kDMWzp.mjs} +1 -2
- package/{mapping-form-Btn-7gzv.d.mts → mapping-form-CV7y6qox.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-D6_oCi2Q.d.mts → mappings-config-BBppW9fp.d.cts} +1 -3
- package/{mappings-config-BCsRLohT.cjs → mappings-config-CNxBrbt9.cjs} +3 -4
- package/{mappings-config-CwQNQ6bA.mjs → mappings-config-D_g20PyS.mjs} +3 -4
- package/{mappings-config-iJzbcUMp.d.cts → mappings-config-Dmm0H6p_.d.mts} +1 -3
- package/{namespace-probe-DykR0kgh.d.mts → namespace-probe-BHk3NcyI.d.cts} +32 -9
- package/{namespace-probe-H7yWc0JV.d.cts → namespace-probe-Dt_HXcI-.d.mts} +32 -9
- package/package.json +1 -7
- package/{projection-DvNewmI1.mjs → projection-BkYXvjTr.mjs} +2444 -1166
- package/{projection-BELgANG2.cjs → projection-By63gMC-.cjs} +2447 -1163
- package/{projection-sql-DweUaWRc.mjs → projection-sql-C3gZE3GS.mjs} +2 -3
- package/{projection-sql-DuCtFE9t.cjs → projection-sql-CHz7KzNS.cjs} +2 -3
- package/schemas-BSuo_eZQ.d.cts +2160 -0
- package/schemas-BSuo_eZQ.d.mts +2160 -0
- package/{sdk-ZMy4C4VK.cjs → sdk-BZSTXPyK.cjs} +185 -74
- package/{sdk-DLoVPlGB.mjs → sdk-KzHpSf7F.mjs} +185 -74
- package/sdk.cjs +2 -2
- package/sdk.d.cts +4 -12
- package/sdk.d.mts +4 -12
- package/sdk.mjs +2 -2
- package/{sync-engine-C_5TpvfX.d.mts → sync-engine-C7W0Gkq0.d.cts} +2 -4
- package/{sync-engine-CYsWOujz.d.cts → sync-engine-C9Q2FkR9.d.mts} +2 -4
- package/{sync-engine-DH058G3w.mjs → sync-engine-CwdLkmch.mjs} +2 -3
- package/{sync-engine-BGVDsrOQ.cjs → sync-engine-Di-vF26b.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-C9_2vW5a.d.mts} +30 -3
- package/{types-CpAtAtxd.d.mts → types-CQ2DgEH7.d.cts} +30 -3
- package/{view-compiler-C-6RydKK.mjs → view-compiler-CLTi1VL-.mjs} +3 -4
- package/{view-compiler-xiwm5iar.cjs → view-compiler-DaOz5QVl.cjs} +3 -4
- package/{view-compiler-CwKVoK1w.d.mts → view-compiler-M23WiVGG.d.mts} +1 -3
- package/{view-compiler-Cq8apvZ4.d.cts → view-compiler-cXqt4X-c.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
package/internal-types.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as UpdateCompanyInput, C as RecordSource, D as TaskFilters, E as TaskEntityType, F as isClosedStageType, M as UpdateDealInput, N as UpdateTaskInput, O as TaskPriority, P as ValueInterval, S as PipelineStageConfig, T as Task, _ as OPEN_STAGE_TYPE, a as Contact, b as PipelineConfig, c as CreateActivityInput, d as CreateDealInput, f as CreateTaskInput, g as Note, h as DealStage, i as CompanyFilters, j as UpdateContactInput, k as TaskStatus, l as CreateCompanyInput, m as Deal, n as ActivityType, o as ContactFilters, p as CrmRole, r as Company, s as ContactStatus, t as Activity, u as CreateContactInput, v as Page, w as StageType, x as PipelineKind, y as PageRequest } from "./types-
|
|
1
|
+
import { A as UpdateCompanyInput, C as RecordSource, D as TaskFilters, E as TaskEntityType, F as isClosedStageType, M as UpdateDealInput, N as UpdateTaskInput, O as TaskPriority, P as ValueInterval, S as PipelineStageConfig, T as Task, _ as OPEN_STAGE_TYPE, a as Contact, b as PipelineConfig, c as CreateActivityInput, d as CreateDealInput, f as CreateTaskInput, g as Note, h as DealStage, i as CompanyFilters, j as UpdateContactInput, k as TaskStatus, l as CreateCompanyInput, m as Deal, n as ActivityType, o as ContactFilters, p as CrmRole, r as Company, s as ContactStatus, t as Activity, u as CreateContactInput, v as Page, w as StageType, x as PipelineKind, y as PageRequest } from "./types-C9_2vW5a.mjs";
|
|
2
2
|
export { Activity, ActivityType, Company, CompanyFilters, Contact, ContactFilters, ContactStatus, CreateActivityInput, CreateCompanyInput, CreateContactInput, CreateDealInput, CreateTaskInput, CrmRole, Deal, DealStage, Note, OPEN_STAGE_TYPE, Page, PageRequest, PipelineConfig, PipelineKind, PipelineStageConfig, RecordSource, StageType, Task, TaskEntityType, TaskFilters, TaskPriority, TaskStatus, UpdateCompanyInput, UpdateContactInput, UpdateDealInput, UpdateTaskInput, ValueInterval, isClosedStageType };
|
package/internal-types.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { OPEN_STAGE_TYPE, isClosedStageType };
|
|
1
|
+
export { t as OPEN_STAGE_TYPE, n as isClosedStageType } from "./types-8KSw2AWg.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_view_compiler = require("./view-compiler-
|
|
2
|
+
const require_view_compiler = require("./view-compiler-DaOz5QVl.cjs");
|
|
3
3
|
exports.DEFAULT_VIEW_PREFIX = require_view_compiler.DEFAULT_VIEW_PREFIX;
|
|
4
4
|
exports.compileEntityView = require_view_compiler.compileEntityView;
|
|
5
5
|
exports.compileEntityViews = require_view_compiler.compileEntityViews;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as compileEntityView, c as explainViewExecutionError, 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, c as explainViewExecutionError, i as ExplainResult, n as CompiledView, o as compileEntityViews, r as DEFAULT_VIEW_PREFIX, s as explainEntitiesConfig, t as CompileOptions } from "./view-compiler-cXqt4X-c.cjs";
|
|
2
2
|
export { CompileOptions, CompiledView, DEFAULT_VIEW_PREFIX, ExplainResult, compileEntityView, compileEntityViews, explainEntitiesConfig, explainViewExecutionError };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as compileEntityView, c as explainViewExecutionError, 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, c as explainViewExecutionError, i as ExplainResult, n as CompiledView, o as compileEntityViews, r as DEFAULT_VIEW_PREFIX, s as explainEntitiesConfig, t as CompileOptions } from "./view-compiler-M23WiVGG.mjs";
|
|
2
2
|
export { CompileOptions, CompiledView, DEFAULT_VIEW_PREFIX, ExplainResult, compileEntityView, compileEntityViews, explainEntitiesConfig, explainViewExecutionError };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { DEFAULT_VIEW_PREFIX, compileEntityView, compileEntityViews, explainEntitiesConfig, explainViewExecutionError };
|
|
1
|
+
export { t as DEFAULT_VIEW_PREFIX, n as compileEntityView, r as compileEntityViews, i as explainEntitiesConfig, a as explainViewExecutionError } from "./view-compiler-CLTi1VL-.mjs";
|
package/internal.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_projection = require("./projection-
|
|
3
|
-
const require_entity_config = require("./entity-config-
|
|
4
|
-
const require_mappings_config = require("./mappings-config-
|
|
5
|
-
const require_auth_adapter = require("./auth-adapter-
|
|
6
|
-
const require_internal = require("./internal-
|
|
7
|
-
const require_mapping_form = require("./mapping-form-
|
|
8
|
-
const require_projection_sql = require("./projection-sql-
|
|
9
|
-
const require_view_compiler = require("./view-compiler-
|
|
10
|
-
const require_sync_engine = require("./sync-engine-
|
|
11
|
-
const require_types = require("./types-
|
|
2
|
+
const require_projection = require("./projection-By63gMC-.cjs");
|
|
3
|
+
const require_entity_config = require("./entity-config-DiCJ6mhI.cjs");
|
|
4
|
+
const require_mappings_config = require("./mappings-config-CNxBrbt9.cjs");
|
|
5
|
+
const require_auth_adapter = require("./auth-adapter-CNVuxT9W.cjs");
|
|
6
|
+
const require_internal = require("./internal-BKYt5j0l.cjs");
|
|
7
|
+
const require_mapping_form = require("./mapping-form-Bs6JQurC.cjs");
|
|
8
|
+
const require_projection_sql = require("./projection-sql-CHz7KzNS.cjs");
|
|
9
|
+
const require_view_compiler = require("./view-compiler-DaOz5QVl.cjs");
|
|
10
|
+
const require_sync_engine = require("./sync-engine-Di-vF26b.cjs");
|
|
11
|
+
const require_types = require("./types-B8m39L1s.cjs");
|
|
12
12
|
exports.BASE_REF = require_projection.BASE_REF;
|
|
13
13
|
exports.CANONICAL_FIELDS = require_entity_config.CANONICAL_FIELDS;
|
|
14
14
|
exports.CRM_CONCEPTS = require_entity_config.CRM_CONCEPTS;
|
|
@@ -31,6 +31,7 @@ exports.compileProjectionJoins = require_projection_sql.compileProjectionJoins;
|
|
|
31
31
|
exports.compileProjectionPreview = require_projection_sql.compileProjectionPreview;
|
|
32
32
|
exports.compileProjectionSelect = require_projection_sql.compileProjectionSelect;
|
|
33
33
|
exports.computeDealValue = require_internal.computeDealValue;
|
|
34
|
+
exports.contactSegmentSchema = require_internal.contactSegmentSchema;
|
|
34
35
|
exports.coversUniqueKey = require_entity_config.coversUniqueKey;
|
|
35
36
|
exports.defineClivlyConfig = require_entity_config.defineClivlyConfig;
|
|
36
37
|
exports.entitiesConfigSchema = require_entity_config.entitiesConfigSchema;
|
package/internal.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import { i as relationshipViaSignature, n as buildFilterFromDiscriminator, r as buildRelationships, t as RelationshipCandidate } from "./mapping-form-
|
|
6
|
-
import { i as mappingsToEntitiesConfig, t as EntityMappingRow } from "./mappings-config-
|
|
7
|
-
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-
|
|
8
|
-
import { c as SyncAction, f as isRemovalAction, g as runSync, h as resolveActions, l as SyncResult, m as reconcile, n as MirrorRecord, o as ResolvedMembership, r as PersistAction, s as SourceRow, t as EntitySyncResult, u as SyncStore } from "./sync-engine-
|
|
9
|
-
import { A as PerSeatValueSource, C as HostOwnedCompanyField, D as isHostOwned, E as hostOwnedFieldMessage, O as rejectedCompanyFields, S as joinFansOut, T as SourcedRecord, _ as compileProjectionJoins, a as matchesCondition, b as quoteIdent, c as columnMetaFor, d as primaryKeyColumns, f as validateProjection, g as compileProjectionIdentity, h as compileProjectionFrom, i as evaluateStage, j as computeDealValue, k as rejectedContactFields, l as coversUniqueKey, m as PREVIEW_MAX_ROWS, n as ConditionOp, o as slugify, p as validateProjectionFilter, r as EvaluableRule, s as toObjectTypeSlug, t as Condition, u as hasRichMeta, v as compileProjectionPreview, w as HostOwnedContactField, x as fanOutJoins, y as compileProjectionSelect } from "./internal-
|
|
10
|
-
import { a as IntegrationStep, c as StepProblem, i as IntegrationStatus, l as StepState, n as IntegrationFacts, o as NextAction, r as IntegrationState, s as StepId, t as ConnectionLiveness } from "./integration-state-
|
|
11
|
-
export { type Activity, type ActivityType, BASE_REF, CANONICAL_FIELDS, type CRMAdapter, CRM_CONCEPTS, type ClivlyAuthAdapter, ClivlyConfigError, type ClivlyEntitiesConfig, type ClivlyEntityConfig, type ClivlyUser, type Company, type CompanyFilters, type CompileOptions, type CompiledView, type Condition, type ConditionOp, type ConfigValidationError, type ConfigValidationResult, type ConnectionLiveness, type Contact, type ContactFilters, type ContactStatus, type CreateActivityInput, type CreateCompanyInput, type CreateContactInput, type CreateDealInput, type CreateTaskInput, type CrmConcept, type CrmMembership, type CrmRole, DEFAULT_VIEW_PREFIX, type Deal, type DealStage, type DiscoveredColumnMeta, type DiscoveredSchemaTable, type EntityMappingRow, type EntitySyncResult, type EvaluableRule, type ExplainResult, type FilterExpr, type FilterValue, type HostOwnedCompanyField, type HostOwnedContactField, type IntegrationFacts, type IntegrationState, type IntegrationStatus, type IntegrationStep, MATERIALIZING_CONCEPTS, type MaterializingConcept, type MembershipResolver, type MirrorRecord, type NextAction, type Note, OPEN_STAGE_TYPE, PREVIEW_MAX_ROWS, PROJECTION_KEY_PATTERN, type Page, type PageRequest, type PerSeatValueSource, type PersistAction, type PipelineConfig, type PipelineKind, type PipelineStageConfig, type ProjectionFieldBinding, type ProjectionIdentity, type ProjectionJoin, type ProjectionMapping, type ProjectionRef, REQUIRED_FIELDS, type RecordSource, type RelationshipCandidate, type RelationshipSpec, type RelationshipVia, type RelationshipsMap, type ResolvedMembership, type SourceRow, type SourcedRecord, type StageType, type StepId, type StepProblem, type StepState, type SyncAction, type SyncResult, type SyncStore, type Task, type TaskEntityType, type TaskFilters, type TaskPriority, type TaskStatus, type UpdateCompanyInput, type UpdateContactInput, type UpdateDealInput, type UpdateTaskInput, type ValueInterval, authCustom, buildFilterFromDiscriminator, buildRelationships, columnMetaFor, compileEntityView, compileEntityViews, compileProjectionFrom, compileProjectionIdentity, compileProjectionJoins, compileProjectionPreview, compileProjectionSelect, computeDealValue, coversUniqueKey, defineClivlyConfig, entitiesConfigSchema, evaluateStage, explainEntitiesConfig, fanOutJoins, filterSchema, hasRichMeta, hostOwnedFieldMessage, identityRefs, isClosedStageType, isHostOwned, isRemovalAction, joinFansOut, mappingsToEntitiesConfig, matchesCondition, missingRequiredFields, primaryKeyColumns, projectionFields, projectionSchema, quoteIdent, reconcile, rejectedCompanyFields, rejectedContactFields, relationshipSchema, relationshipViaSignature, relationshipsSchema, requiredFieldsFor, resolveActions, runSync, slugify, toObjectTypeSlug, validateEntitiesConfig, validateProjection, validateProjectionFilter };
|
|
1
|
+
import { A as UpdateCompanyInput, C as RecordSource, D as TaskFilters, E as TaskEntityType, F as isClosedStageType, I as ContactSegment, L as contactSegmentSchema, M as UpdateDealInput, N as UpdateTaskInput, O as TaskPriority, P as ValueInterval, S as PipelineStageConfig, T as Task, _ as OPEN_STAGE_TYPE, a as Contact, b as PipelineConfig, c as CreateActivityInput, d as CreateDealInput, f as CreateTaskInput, g as Note, h as DealStage, i as CompanyFilters, j as UpdateContactInput, k as TaskStatus, l as CreateCompanyInput, m as Deal, n as ActivityType, o as ContactFilters, p as CrmRole, r as Company, s as ContactStatus, t as Activity, u as CreateContactInput, v as Page, w as StageType, x as PipelineKind, y as PageRequest } from "./types-CQ2DgEH7.cjs";
|
|
2
|
+
import { a as authCustom, i as MembershipResolver, n as ClivlyUser, r as CrmMembership, t as ClivlyAuthAdapter } from "./auth-adapter-COMP0Fud.cjs";
|
|
3
|
+
import { t as CRMAdapter } from "./adapter-OO5g17qF.cjs";
|
|
4
|
+
import { A as relationshipsSchema, B as identityRefs, D as missingRequiredFields, E as filterSchema, F as ProjectionFieldBinding, I as ProjectionIdentity, L as ProjectionJoin, M as validateEntitiesConfig, N as BASE_REF, O as projectionFields, P as PROJECTION_KEY_PATTERN, R as ProjectionMapping, S as RelationshipsMap, T as entitiesConfigSchema, V as projectionSchema, _ as MATERIALIZING_CONCEPTS, a as ClivlyEntitiesConfig, b as RelationshipSpec, d as CrmConcept, 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, p as DiscoveredColumnMeta, s as ClivlyEntityConfig, t as CANONICAL_FIELDS, u as ConfigValidationResult, v as MaterializingConcept, w as defineClivlyConfig, x as RelationshipVia, y as REQUIRED_FIELDS, z as ProjectionRef } from "./entity-config-dNclLyBM.cjs";
|
|
5
|
+
import { i as relationshipViaSignature, n as buildFilterFromDiscriminator, r as buildRelationships, t as RelationshipCandidate } from "./mapping-form-CV7y6qox.cjs";
|
|
6
|
+
import { i as mappingsToEntitiesConfig, t as EntityMappingRow } from "./mappings-config-BBppW9fp.cjs";
|
|
7
|
+
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-cXqt4X-c.cjs";
|
|
8
|
+
import { c as SyncAction, f as isRemovalAction, g as runSync, h as resolveActions, l as SyncResult, m as reconcile, n as MirrorRecord, o as ResolvedMembership, r as PersistAction, s as SourceRow, t as EntitySyncResult, u as SyncStore } from "./sync-engine-C7W0Gkq0.cjs";
|
|
9
|
+
import { A as PerSeatValueSource, C as HostOwnedCompanyField, D as isHostOwned, E as hostOwnedFieldMessage, O as rejectedCompanyFields, S as joinFansOut, T as SourcedRecord, _ as compileProjectionJoins, a as matchesCondition, b as quoteIdent, c as columnMetaFor, d as primaryKeyColumns, f as validateProjection, g as compileProjectionIdentity, h as compileProjectionFrom, i as evaluateStage, j as computeDealValue, k as rejectedContactFields, l as coversUniqueKey, m as PREVIEW_MAX_ROWS, n as ConditionOp, o as slugify, p as validateProjectionFilter, r as EvaluableRule, s as toObjectTypeSlug, t as Condition, u as hasRichMeta, v as compileProjectionPreview, w as HostOwnedContactField, x as fanOutJoins, y as compileProjectionSelect } from "./internal-COALpgov.cjs";
|
|
10
|
+
import { a as IntegrationStep, c as StepProblem, i as IntegrationStatus, l as StepState, n as IntegrationFacts, o as NextAction, r as IntegrationState, s as StepId, t as ConnectionLiveness } from "./integration-state-xK4PLm5T.cjs";
|
|
11
|
+
export { type Activity, type ActivityType, BASE_REF, CANONICAL_FIELDS, type CRMAdapter, CRM_CONCEPTS, type ClivlyAuthAdapter, ClivlyConfigError, type ClivlyEntitiesConfig, type ClivlyEntityConfig, type ClivlyUser, type Company, type CompanyFilters, type CompileOptions, type CompiledView, type Condition, type ConditionOp, type ConfigValidationError, type ConfigValidationResult, type ConnectionLiveness, type Contact, type ContactFilters, type ContactSegment, type ContactStatus, type CreateActivityInput, type CreateCompanyInput, type CreateContactInput, type CreateDealInput, type CreateTaskInput, type CrmConcept, type CrmMembership, type CrmRole, DEFAULT_VIEW_PREFIX, type Deal, type DealStage, type DiscoveredColumnMeta, type DiscoveredSchemaTable, type EntityMappingRow, type EntitySyncResult, type EvaluableRule, type ExplainResult, type FilterExpr, type FilterValue, type HostOwnedCompanyField, type HostOwnedContactField, type IntegrationFacts, type IntegrationState, type IntegrationStatus, type IntegrationStep, MATERIALIZING_CONCEPTS, type MaterializingConcept, type MembershipResolver, type MirrorRecord, type NextAction, type Note, OPEN_STAGE_TYPE, PREVIEW_MAX_ROWS, PROJECTION_KEY_PATTERN, type Page, type PageRequest, type PerSeatValueSource, type PersistAction, type PipelineConfig, type PipelineKind, type PipelineStageConfig, type ProjectionFieldBinding, type ProjectionIdentity, type ProjectionJoin, type ProjectionMapping, type ProjectionRef, REQUIRED_FIELDS, type RecordSource, type RelationshipCandidate, type RelationshipSpec, type RelationshipVia, type RelationshipsMap, type ResolvedMembership, type SourceRow, type SourcedRecord, type StageType, type StepId, type StepProblem, type StepState, type SyncAction, type SyncResult, type SyncStore, type Task, type TaskEntityType, type TaskFilters, type TaskPriority, type TaskStatus, type UpdateCompanyInput, type UpdateContactInput, type UpdateDealInput, type UpdateTaskInput, type ValueInterval, authCustom, buildFilterFromDiscriminator, buildRelationships, columnMetaFor, compileEntityView, compileEntityViews, compileProjectionFrom, compileProjectionIdentity, compileProjectionJoins, compileProjectionPreview, compileProjectionSelect, computeDealValue, contactSegmentSchema, coversUniqueKey, defineClivlyConfig, entitiesConfigSchema, evaluateStage, explainEntitiesConfig, fanOutJoins, filterSchema, hasRichMeta, hostOwnedFieldMessage, identityRefs, isClosedStageType, isHostOwned, isRemovalAction, joinFansOut, mappingsToEntitiesConfig, matchesCondition, missingRequiredFields, primaryKeyColumns, projectionFields, projectionSchema, quoteIdent, reconcile, rejectedCompanyFields, rejectedContactFields, relationshipSchema, relationshipViaSignature, relationshipsSchema, requiredFieldsFor, resolveActions, runSync, slugify, toObjectTypeSlug, validateEntitiesConfig, validateProjection, validateProjectionFilter };
|
package/internal.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import { i as relationshipViaSignature, n as buildFilterFromDiscriminator, r as buildRelationships, t as RelationshipCandidate } from "./mapping-form-
|
|
6
|
-
import { i as mappingsToEntitiesConfig, t as EntityMappingRow } from "./mappings-config-
|
|
7
|
-
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-
|
|
8
|
-
import { c as SyncAction, f as isRemovalAction, g as runSync, h as resolveActions, l as SyncResult, m as reconcile, n as MirrorRecord, o as ResolvedMembership, r as PersistAction, s as SourceRow, t as EntitySyncResult, u as SyncStore } from "./sync-engine-
|
|
9
|
-
import { A as PerSeatValueSource, C as HostOwnedCompanyField, D as isHostOwned, E as hostOwnedFieldMessage, O as rejectedCompanyFields, S as joinFansOut, T as SourcedRecord, _ as compileProjectionJoins, a as matchesCondition, b as quoteIdent, c as columnMetaFor, d as primaryKeyColumns, f as validateProjection, g as compileProjectionIdentity, h as compileProjectionFrom, i as evaluateStage, j as computeDealValue, k as rejectedContactFields, l as coversUniqueKey, m as PREVIEW_MAX_ROWS, n as ConditionOp, o as slugify, p as validateProjectionFilter, r as EvaluableRule, s as toObjectTypeSlug, t as Condition, u as hasRichMeta, v as compileProjectionPreview, w as HostOwnedContactField, x as fanOutJoins, y as compileProjectionSelect } from "./internal-
|
|
10
|
-
import { a as IntegrationStep, c as StepProblem, i as IntegrationStatus, l as StepState, n as IntegrationFacts, o as NextAction, r as IntegrationState, s as StepId, t as ConnectionLiveness } from "./integration-state-
|
|
11
|
-
export { type Activity, type ActivityType, BASE_REF, CANONICAL_FIELDS, type CRMAdapter, CRM_CONCEPTS, type ClivlyAuthAdapter, ClivlyConfigError, type ClivlyEntitiesConfig, type ClivlyEntityConfig, type ClivlyUser, type Company, type CompanyFilters, type CompileOptions, type CompiledView, type Condition, type ConditionOp, type ConfigValidationError, type ConfigValidationResult, type ConnectionLiveness, type Contact, type ContactFilters, type ContactStatus, type CreateActivityInput, type CreateCompanyInput, type CreateContactInput, type CreateDealInput, type CreateTaskInput, type CrmConcept, type CrmMembership, type CrmRole, DEFAULT_VIEW_PREFIX, type Deal, type DealStage, type DiscoveredColumnMeta, type DiscoveredSchemaTable, type EntityMappingRow, type EntitySyncResult, type EvaluableRule, type ExplainResult, type FilterExpr, type FilterValue, type HostOwnedCompanyField, type HostOwnedContactField, type IntegrationFacts, type IntegrationState, type IntegrationStatus, type IntegrationStep, MATERIALIZING_CONCEPTS, type MaterializingConcept, type MembershipResolver, type MirrorRecord, type NextAction, type Note, OPEN_STAGE_TYPE, PREVIEW_MAX_ROWS, PROJECTION_KEY_PATTERN, type Page, type PageRequest, type PerSeatValueSource, type PersistAction, type PipelineConfig, type PipelineKind, type PipelineStageConfig, type ProjectionFieldBinding, type ProjectionIdentity, type ProjectionJoin, type ProjectionMapping, type ProjectionRef, REQUIRED_FIELDS, type RecordSource, type RelationshipCandidate, type RelationshipSpec, type RelationshipVia, type RelationshipsMap, type ResolvedMembership, type SourceRow, type SourcedRecord, type StageType, type StepId, type StepProblem, type StepState, type SyncAction, type SyncResult, type SyncStore, type Task, type TaskEntityType, type TaskFilters, type TaskPriority, type TaskStatus, type UpdateCompanyInput, type UpdateContactInput, type UpdateDealInput, type UpdateTaskInput, type ValueInterval, authCustom, buildFilterFromDiscriminator, buildRelationships, columnMetaFor, compileEntityView, compileEntityViews, compileProjectionFrom, compileProjectionIdentity, compileProjectionJoins, compileProjectionPreview, compileProjectionSelect, computeDealValue, coversUniqueKey, defineClivlyConfig, entitiesConfigSchema, evaluateStage, explainEntitiesConfig, fanOutJoins, filterSchema, hasRichMeta, hostOwnedFieldMessage, identityRefs, isClosedStageType, isHostOwned, isRemovalAction, joinFansOut, mappingsToEntitiesConfig, matchesCondition, missingRequiredFields, primaryKeyColumns, projectionFields, projectionSchema, quoteIdent, reconcile, rejectedCompanyFields, rejectedContactFields, relationshipSchema, relationshipViaSignature, relationshipsSchema, requiredFieldsFor, resolveActions, runSync, slugify, toObjectTypeSlug, validateEntitiesConfig, validateProjection, validateProjectionFilter };
|
|
1
|
+
import { A as UpdateCompanyInput, C as RecordSource, D as TaskFilters, E as TaskEntityType, F as isClosedStageType, I as ContactSegment, L as contactSegmentSchema, M as UpdateDealInput, N as UpdateTaskInput, O as TaskPriority, P as ValueInterval, S as PipelineStageConfig, T as Task, _ as OPEN_STAGE_TYPE, a as Contact, b as PipelineConfig, c as CreateActivityInput, d as CreateDealInput, f as CreateTaskInput, g as Note, h as DealStage, i as CompanyFilters, j as UpdateContactInput, k as TaskStatus, l as CreateCompanyInput, m as Deal, n as ActivityType, o as ContactFilters, p as CrmRole, r as Company, s as ContactStatus, t as Activity, u as CreateContactInput, v as Page, w as StageType, x as PipelineKind, y as PageRequest } from "./types-C9_2vW5a.mjs";
|
|
2
|
+
import { a as authCustom, i as MembershipResolver, n as ClivlyUser, r as CrmMembership, t as ClivlyAuthAdapter } from "./auth-adapter-ZlhllVpm.mjs";
|
|
3
|
+
import { t as CRMAdapter } from "./adapter-C63F9VZL.mjs";
|
|
4
|
+
import { A as relationshipsSchema, B as identityRefs, D as missingRequiredFields, E as filterSchema, F as ProjectionFieldBinding, I as ProjectionIdentity, L as ProjectionJoin, M as validateEntitiesConfig, N as BASE_REF, O as projectionFields, P as PROJECTION_KEY_PATTERN, R as ProjectionMapping, S as RelationshipsMap, T as entitiesConfigSchema, V as projectionSchema, _ as MATERIALIZING_CONCEPTS, a as ClivlyEntitiesConfig, b as RelationshipSpec, d as CrmConcept, 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, p as DiscoveredColumnMeta, s as ClivlyEntityConfig, t as CANONICAL_FIELDS, u as ConfigValidationResult, v as MaterializingConcept, w as defineClivlyConfig, x as RelationshipVia, y as REQUIRED_FIELDS, z as ProjectionRef } from "./entity-config-X-KlnYXX.mjs";
|
|
5
|
+
import { i as relationshipViaSignature, n as buildFilterFromDiscriminator, r as buildRelationships, t as RelationshipCandidate } from "./mapping-form-Bpvgf5b8.mjs";
|
|
6
|
+
import { i as mappingsToEntitiesConfig, t as EntityMappingRow } from "./mappings-config-Dmm0H6p_.mjs";
|
|
7
|
+
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-M23WiVGG.mjs";
|
|
8
|
+
import { c as SyncAction, f as isRemovalAction, g as runSync, h as resolveActions, l as SyncResult, m as reconcile, n as MirrorRecord, o as ResolvedMembership, r as PersistAction, s as SourceRow, t as EntitySyncResult, u as SyncStore } from "./sync-engine-C9Q2FkR9.mjs";
|
|
9
|
+
import { A as PerSeatValueSource, C as HostOwnedCompanyField, D as isHostOwned, E as hostOwnedFieldMessage, O as rejectedCompanyFields, S as joinFansOut, T as SourcedRecord, _ as compileProjectionJoins, a as matchesCondition, b as quoteIdent, c as columnMetaFor, d as primaryKeyColumns, f as validateProjection, g as compileProjectionIdentity, h as compileProjectionFrom, i as evaluateStage, j as computeDealValue, k as rejectedContactFields, l as coversUniqueKey, m as PREVIEW_MAX_ROWS, n as ConditionOp, o as slugify, p as validateProjectionFilter, r as EvaluableRule, s as toObjectTypeSlug, t as Condition, u as hasRichMeta, v as compileProjectionPreview, w as HostOwnedContactField, x as fanOutJoins, y as compileProjectionSelect } from "./internal-D3q4FPcA.mjs";
|
|
10
|
+
import { a as IntegrationStep, c as StepProblem, i as IntegrationStatus, l as StepState, n as IntegrationFacts, o as NextAction, r as IntegrationState, s as StepId, t as ConnectionLiveness } from "./integration-state-xK4PLm5T.mjs";
|
|
11
|
+
export { type Activity, type ActivityType, BASE_REF, CANONICAL_FIELDS, type CRMAdapter, CRM_CONCEPTS, type ClivlyAuthAdapter, ClivlyConfigError, type ClivlyEntitiesConfig, type ClivlyEntityConfig, type ClivlyUser, type Company, type CompanyFilters, type CompileOptions, type CompiledView, type Condition, type ConditionOp, type ConfigValidationError, type ConfigValidationResult, type ConnectionLiveness, type Contact, type ContactFilters, type ContactSegment, type ContactStatus, type CreateActivityInput, type CreateCompanyInput, type CreateContactInput, type CreateDealInput, type CreateTaskInput, type CrmConcept, type CrmMembership, type CrmRole, DEFAULT_VIEW_PREFIX, type Deal, type DealStage, type DiscoveredColumnMeta, type DiscoveredSchemaTable, type EntityMappingRow, type EntitySyncResult, type EvaluableRule, type ExplainResult, type FilterExpr, type FilterValue, type HostOwnedCompanyField, type HostOwnedContactField, type IntegrationFacts, type IntegrationState, type IntegrationStatus, type IntegrationStep, MATERIALIZING_CONCEPTS, type MaterializingConcept, type MembershipResolver, type MirrorRecord, type NextAction, type Note, OPEN_STAGE_TYPE, PREVIEW_MAX_ROWS, PROJECTION_KEY_PATTERN, type Page, type PageRequest, type PerSeatValueSource, type PersistAction, type PipelineConfig, type PipelineKind, type PipelineStageConfig, type ProjectionFieldBinding, type ProjectionIdentity, type ProjectionJoin, type ProjectionMapping, type ProjectionRef, REQUIRED_FIELDS, type RecordSource, type RelationshipCandidate, type RelationshipSpec, type RelationshipVia, type RelationshipsMap, type ResolvedMembership, type SourceRow, type SourcedRecord, type StageType, type StepId, type StepProblem, type StepState, type SyncAction, type SyncResult, type SyncStore, type Task, type TaskEntityType, type TaskFilters, type TaskPriority, type TaskStatus, type UpdateCompanyInput, type UpdateContactInput, type UpdateDealInput, type UpdateTaskInput, type ValueInterval, authCustom, buildFilterFromDiscriminator, buildRelationships, columnMetaFor, compileEntityView, compileEntityViews, compileProjectionFrom, compileProjectionIdentity, compileProjectionJoins, compileProjectionPreview, compileProjectionSelect, computeDealValue, contactSegmentSchema, coversUniqueKey, defineClivlyConfig, entitiesConfigSchema, evaluateStage, explainEntitiesConfig, fanOutJoins, filterSchema, hasRichMeta, hostOwnedFieldMessage, identityRefs, isClosedStageType, isHostOwned, isRemovalAction, joinFansOut, mappingsToEntitiesConfig, matchesCondition, missingRequiredFields, primaryKeyColumns, projectionFields, projectionSchema, quoteIdent, reconcile, rejectedCompanyFields, rejectedContactFields, relationshipSchema, relationshipViaSignature, relationshipsSchema, requiredFieldsFor, resolveActions, runSync, slugify, toObjectTypeSlug, validateEntitiesConfig, validateProjection, validateProjectionFilter };
|
package/internal.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { i as projectionSchema, n as PROJECTION_KEY_PATTERN, r as identityRefs, t as BASE_REF } from "./projection-
|
|
2
|
-
import { C as hasRichMeta, S as coversUniqueKey, _ as validateProjection, a as MATERIALIZING_CONCEPTS, b as joinFansOut, 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, t as CANONICAL_FIELDS, u as filterSchema, v as validateProjectionFilter, w as primaryKeyColumns, x as columnMetaFor, y as fanOutJoins } from "./entity-config-
|
|
3
|
-
import { n as mappingsToEntitiesConfig } from "./mappings-config-
|
|
4
|
-
import { t as authCustom } from "./auth-adapter-
|
|
5
|
-
import { a as hostOwnedFieldMessage, c as rejectedContactFields, i as toObjectTypeSlug, l as computeDealValue, n as matchesCondition, o as isHostOwned, r as slugify, s as rejectedCompanyFields, t as evaluateStage } from "./internal-
|
|
6
|
-
import { n as buildRelationships, r as relationshipViaSignature, t as buildFilterFromDiscriminator } from "./mapping-form-
|
|
7
|
-
import { a as compileProjectionPreview, i as compileProjectionJoins, n as compileProjectionFrom, o as compileProjectionSelect, r as compileProjectionIdentity, s as quoteIdent, t as PREVIEW_MAX_ROWS } from "./projection-sql-
|
|
8
|
-
import { i as explainEntitiesConfig, n as compileEntityView, r as compileEntityViews, t as DEFAULT_VIEW_PREFIX } from "./view-compiler-
|
|
9
|
-
import { a as resolveActions, i as reconcile, n as isRemovalAction, o as runSync } from "./sync-engine-
|
|
10
|
-
import { n as isClosedStageType, t as OPEN_STAGE_TYPE } from "./types-
|
|
11
|
-
export { BASE_REF, CANONICAL_FIELDS, CRM_CONCEPTS, ClivlyConfigError, DEFAULT_VIEW_PREFIX, MATERIALIZING_CONCEPTS, OPEN_STAGE_TYPE, PREVIEW_MAX_ROWS, PROJECTION_KEY_PATTERN, REQUIRED_FIELDS, authCustom, buildFilterFromDiscriminator, buildRelationships, columnMetaFor, compileEntityView, compileEntityViews, compileProjectionFrom, compileProjectionIdentity, compileProjectionJoins, compileProjectionPreview, compileProjectionSelect, computeDealValue, coversUniqueKey, defineClivlyConfig, entitiesConfigSchema, evaluateStage, explainEntitiesConfig, fanOutJoins, filterSchema, hasRichMeta, hostOwnedFieldMessage, identityRefs, isClosedStageType, isHostOwned, isRemovalAction, joinFansOut, mappingsToEntitiesConfig, matchesCondition, missingRequiredFields, primaryKeyColumns, projectionFields, projectionSchema, quoteIdent, reconcile, rejectedCompanyFields, rejectedContactFields, relationshipSchema, relationshipViaSignature, relationshipsSchema, requiredFieldsFor, resolveActions, runSync, slugify, toObjectTypeSlug, validateEntitiesConfig, validateProjection, validateProjectionFilter };
|
|
1
|
+
import { i as projectionSchema, n as PROJECTION_KEY_PATTERN, r as identityRefs, t as BASE_REF } from "./projection-BkYXvjTr.mjs";
|
|
2
|
+
import { C as hasRichMeta, S as coversUniqueKey, _ as validateProjection, a as MATERIALIZING_CONCEPTS, b as joinFansOut, 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, t as CANONICAL_FIELDS, u as filterSchema, v as validateProjectionFilter, w as primaryKeyColumns, x as columnMetaFor, y as fanOutJoins } from "./entity-config-g_oMPXlN.mjs";
|
|
3
|
+
import { n as mappingsToEntitiesConfig } from "./mappings-config-D_g20PyS.mjs";
|
|
4
|
+
import { t as authCustom } from "./auth-adapter-u91PByaw.mjs";
|
|
5
|
+
import { a as hostOwnedFieldMessage, c as rejectedContactFields, i as toObjectTypeSlug, l as computeDealValue, n as matchesCondition, o as isHostOwned, r as slugify, s as rejectedCompanyFields, t as evaluateStage, u as contactSegmentSchema } from "./internal-9oDwwbNg.mjs";
|
|
6
|
+
import { n as buildRelationships, r as relationshipViaSignature, t as buildFilterFromDiscriminator } from "./mapping-form-C7kDMWzp.mjs";
|
|
7
|
+
import { a as compileProjectionPreview, i as compileProjectionJoins, n as compileProjectionFrom, o as compileProjectionSelect, r as compileProjectionIdentity, s as quoteIdent, t as PREVIEW_MAX_ROWS } from "./projection-sql-C3gZE3GS.mjs";
|
|
8
|
+
import { i as explainEntitiesConfig, n as compileEntityView, r as compileEntityViews, t as DEFAULT_VIEW_PREFIX } from "./view-compiler-CLTi1VL-.mjs";
|
|
9
|
+
import { a as resolveActions, i as reconcile, n as isRemovalAction, o as runSync } from "./sync-engine-CwdLkmch.mjs";
|
|
10
|
+
import { n as isClosedStageType, t as OPEN_STAGE_TYPE } from "./types-8KSw2AWg.mjs";
|
|
11
|
+
export { BASE_REF, CANONICAL_FIELDS, CRM_CONCEPTS, ClivlyConfigError, DEFAULT_VIEW_PREFIX, MATERIALIZING_CONCEPTS, OPEN_STAGE_TYPE, PREVIEW_MAX_ROWS, PROJECTION_KEY_PATTERN, REQUIRED_FIELDS, authCustom, buildFilterFromDiscriminator, buildRelationships, columnMetaFor, compileEntityView, compileEntityViews, compileProjectionFrom, compileProjectionIdentity, compileProjectionJoins, compileProjectionPreview, compileProjectionSelect, computeDealValue, contactSegmentSchema, coversUniqueKey, defineClivlyConfig, entitiesConfigSchema, evaluateStage, explainEntitiesConfig, fanOutJoins, filterSchema, hasRichMeta, hostOwnedFieldMessage, identityRefs, isClosedStageType, isHostOwned, isRemovalAction, joinFansOut, mappingsToEntitiesConfig, matchesCondition, missingRequiredFields, primaryKeyColumns, projectionFields, projectionSchema, quoteIdent, reconcile, rejectedCompanyFields, rejectedContactFields, relationshipSchema, relationshipViaSignature, relationshipsSchema, requiredFieldsFor, resolveActions, runSync, slugify, toObjectTypeSlug, validateEntitiesConfig, validateProjection, validateProjectionFilter };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { S as RelationshipsMap, h as FilterExpr, x as RelationshipVia } from "./entity-config-
|
|
2
|
-
//#region ../core/src/mapping-form.d.ts
|
|
1
|
+
import { S as RelationshipsMap, h as FilterExpr, x as RelationshipVia } from "./entity-config-X-KlnYXX.mjs";
|
|
3
2
|
/**
|
|
4
3
|
* A relationship the mapping UI can offer or has configured, in the shape the
|
|
5
4
|
* heuristic suggester produces. `entityTable` is the *host table name*; the
|
|
@@ -30,5 +29,4 @@ declare function relationshipViaSignature(via: RelationshipVia): string;
|
|
|
30
29
|
* omits the field.
|
|
31
30
|
*/
|
|
32
31
|
declare function buildRelationships(candidates: RelationshipCandidate[]): RelationshipsMap | undefined;
|
|
33
|
-
//#endregion
|
|
34
32
|
export { relationshipViaSignature as i, buildFilterFromDiscriminator as n, buildRelationships as r, RelationshipCandidate as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// ../core/src/mapping-form.ts
|
|
2
2
|
/**
|
|
3
3
|
* Build the filter for a discriminated entity: rows where `column` equals
|
|
4
4
|
* `value` belong to this entity (e.g. `role = "owner"`). Returns `undefined`
|
|
@@ -43,7 +43,6 @@ function buildRelationships(candidates) {
|
|
|
43
43
|
}
|
|
44
44
|
return map;
|
|
45
45
|
}
|
|
46
|
-
//#endregion
|
|
47
46
|
Object.defineProperty(exports, "buildFilterFromDiscriminator", {
|
|
48
47
|
enumerable: true,
|
|
49
48
|
get: function() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// ../core/src/mapping-form.ts
|
|
2
2
|
/**
|
|
3
3
|
* Build the filter for a discriminated entity: rows where `column` equals
|
|
4
4
|
* `value` belong to this entity (e.g. `role = "owner"`). Returns `undefined`
|
|
@@ -43,5 +43,4 @@ function buildRelationships(candidates) {
|
|
|
43
43
|
}
|
|
44
44
|
return map;
|
|
45
45
|
}
|
|
46
|
-
//#endregion
|
|
47
46
|
export { buildRelationships as n, relationshipViaSignature as r, buildFilterFromDiscriminator as t };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { S as RelationshipsMap, h as FilterExpr, x as RelationshipVia } from "./entity-config-
|
|
2
|
-
//#region ../core/src/mapping-form.d.ts
|
|
1
|
+
import { S as RelationshipsMap, h as FilterExpr, x as RelationshipVia } from "./entity-config-dNclLyBM.cjs";
|
|
3
2
|
/**
|
|
4
3
|
* A relationship the mapping UI can offer or has configured, in the shape the
|
|
5
4
|
* heuristic suggester produces. `entityTable` is the *host table name*; the
|
|
@@ -30,5 +29,4 @@ declare function relationshipViaSignature(via: RelationshipVia): string;
|
|
|
30
29
|
* omits the field.
|
|
31
30
|
*/
|
|
32
31
|
declare function buildRelationships(candidates: RelationshipCandidate[]): RelationshipsMap | undefined;
|
|
33
|
-
//#endregion
|
|
34
32
|
export { relationshipViaSignature as i, buildFilterFromDiscriminator as n, buildRelationships as r, RelationshipCandidate as t };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region ../core/src/mapping-score.d.ts
|
|
2
1
|
type Tier = "High" | "Medium" | "Low";
|
|
3
2
|
interface Scored<T> {
|
|
4
3
|
/** Human-readable chips, e.g. `type text`, `name matches "contacts"`. */
|
|
@@ -45,5 +44,4 @@ declare function isTimestampLike(type: string | undefined): boolean;
|
|
|
45
44
|
declare function isAmbiguous(ranked: Array<{
|
|
46
45
|
score: number;
|
|
47
46
|
}>): boolean;
|
|
48
|
-
//#endregion
|
|
49
47
|
export { Scored as a, W as c, isTextLike as d, isTimestampLike as f, RELATIONSHIP_TIERS as i, isAmbiguous as l, CONCEPT_TIERS as n, Thresholds as o, tierFor as p, FIELD_TIERS as r, Tier as s, AMBIGUITY_MARGIN as t, isNumericLike as u };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region ../core/src/mapping-score.d.ts
|
|
2
1
|
type Tier = "High" | "Medium" | "Low";
|
|
3
2
|
interface Scored<T> {
|
|
4
3
|
/** Human-readable chips, e.g. `type text`, `name matches "contacts"`. */
|
|
@@ -45,5 +44,4 @@ declare function isTimestampLike(type: string | undefined): boolean;
|
|
|
45
44
|
declare function isAmbiguous(ranked: Array<{
|
|
46
45
|
score: number;
|
|
47
46
|
}>): boolean;
|
|
48
|
-
//#endregion
|
|
49
47
|
export { Scored as a, W as c, isTextLike as d, isTimestampLike as f, RELATIONSHIP_TIERS as i, isAmbiguous as l, CONCEPT_TIERS as n, Thresholds as o, tierFor as p, FIELD_TIERS as r, Tier as s, AMBIGUITY_MARGIN as t, isNumericLike as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// ../core/src/mapping-score.ts
|
|
2
2
|
const CONCEPT_TIERS = {
|
|
3
3
|
high: 70,
|
|
4
4
|
medium: 40
|
|
@@ -83,5 +83,4 @@ function isAmbiguous(ranked) {
|
|
|
83
83
|
if (!(first && second)) return false;
|
|
84
84
|
return first.score - second.score < 15;
|
|
85
85
|
}
|
|
86
|
-
//#endregion
|
|
87
86
|
export { W as a, isTextLike as c, RELATIONSHIP_TIERS as i, isTimestampLike as l, CONCEPT_TIERS as n, isAmbiguous as o, FIELD_TIERS as r, isNumericLike as s, AMBIGUITY_MARGIN as t, tierFor as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// ../core/src/mapping-score.ts
|
|
2
2
|
const CONCEPT_TIERS = {
|
|
3
3
|
high: 70,
|
|
4
4
|
medium: 40
|
|
@@ -83,7 +83,6 @@ function isAmbiguous(ranked) {
|
|
|
83
83
|
if (!(first && second)) return false;
|
|
84
84
|
return first.score - second.score < 15;
|
|
85
85
|
}
|
|
86
|
-
//#endregion
|
|
87
86
|
Object.defineProperty(exports, "AMBIGUITY_MARGIN", {
|
|
88
87
|
enumerable: true,
|
|
89
88
|
get: function() {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { R as ProjectionMapping, S as RelationshipsMap, a as ClivlyEntitiesConfig, h as FilterExpr } from "./entity-config-
|
|
2
|
-
//#region ../core/src/mappings-config.d.ts
|
|
1
|
+
import { R as ProjectionMapping, S as RelationshipsMap, a as ClivlyEntitiesConfig, h as FilterExpr } from "./entity-config-dNclLyBM.cjs";
|
|
3
2
|
/**
|
|
4
3
|
* Mappings → Entity Config bridge.
|
|
5
4
|
*
|
|
@@ -83,5 +82,4 @@ interface MappingFromConfig {
|
|
|
83
82
|
targetObjectTypeId?: string;
|
|
84
83
|
}
|
|
85
84
|
declare function entitiesToMappings(config: ClivlyEntitiesConfig): MappingFromConfig[];
|
|
86
|
-
//#endregion
|
|
87
85
|
export { mappingsToEntitiesConfig as i, MappingFromConfig as n, entitiesToMappings as r, EntityMappingRow as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_entity_config = require("./entity-config-
|
|
2
|
-
|
|
1
|
+
const require_entity_config = require("./entity-config-DiCJ6mhI.cjs");
|
|
2
|
+
// ../core/src/mappings-config.ts
|
|
3
3
|
const RESERVED_FIELD = "id";
|
|
4
4
|
/**
|
|
5
5
|
* Restrict a persisted field map to what the mirror can actually store: drop
|
|
@@ -13,7 +13,7 @@ function canonicalFields(concept, fieldMap) {
|
|
|
13
13
|
const result = {};
|
|
14
14
|
for (const [field, column] of Object.entries(fieldMap)) {
|
|
15
15
|
if (field === RESERVED_FIELD) continue;
|
|
16
|
-
if (allowed && !allowed.includes(field)) continue;
|
|
16
|
+
if (allowed && !allowed.includes(field) && !(concept === "contact" && field.startsWith("synced.") && field.length > 7)) continue;
|
|
17
17
|
result[field] = column;
|
|
18
18
|
}
|
|
19
19
|
return result;
|
|
@@ -131,7 +131,6 @@ function entitiesToMappings(config) {
|
|
|
131
131
|
}
|
|
132
132
|
return rows;
|
|
133
133
|
}
|
|
134
|
-
//#endregion
|
|
135
134
|
Object.defineProperty(exports, "entitiesToMappings", {
|
|
136
135
|
enumerable: true,
|
|
137
136
|
get: function() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as projectionFields, t as CANONICAL_FIELDS } from "./entity-config-
|
|
2
|
-
|
|
1
|
+
import { f as projectionFields, t as CANONICAL_FIELDS } from "./entity-config-g_oMPXlN.mjs";
|
|
2
|
+
// ../core/src/mappings-config.ts
|
|
3
3
|
const RESERVED_FIELD = "id";
|
|
4
4
|
/**
|
|
5
5
|
* Restrict a persisted field map to what the mirror can actually store: drop
|
|
@@ -13,7 +13,7 @@ function canonicalFields(concept, fieldMap) {
|
|
|
13
13
|
const result = {};
|
|
14
14
|
for (const [field, column] of Object.entries(fieldMap)) {
|
|
15
15
|
if (field === RESERVED_FIELD) continue;
|
|
16
|
-
if (allowed && !allowed.includes(field)) continue;
|
|
16
|
+
if (allowed && !allowed.includes(field) && !(concept === "contact" && field.startsWith("synced.") && field.length > 7)) continue;
|
|
17
17
|
result[field] = column;
|
|
18
18
|
}
|
|
19
19
|
return result;
|
|
@@ -131,5 +131,4 @@ function entitiesToMappings(config) {
|
|
|
131
131
|
}
|
|
132
132
|
return rows;
|
|
133
133
|
}
|
|
134
|
-
//#endregion
|
|
135
134
|
export { mappingsToEntitiesConfig as n, entitiesToMappings as t };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { R as ProjectionMapping, S as RelationshipsMap, a as ClivlyEntitiesConfig, h as FilterExpr } from "./entity-config-
|
|
2
|
-
//#region ../core/src/mappings-config.d.ts
|
|
1
|
+
import { R as ProjectionMapping, S as RelationshipsMap, a as ClivlyEntitiesConfig, h as FilterExpr } from "./entity-config-X-KlnYXX.mjs";
|
|
3
2
|
/**
|
|
4
3
|
* Mappings → Entity Config bridge.
|
|
5
4
|
*
|
|
@@ -83,5 +82,4 @@ interface MappingFromConfig {
|
|
|
83
82
|
targetObjectTypeId?: string;
|
|
84
83
|
}
|
|
85
84
|
declare function entitiesToMappings(config: ClivlyEntitiesConfig): MappingFromConfig[];
|
|
86
|
-
//#endregion
|
|
87
85
|
export { mappingsToEntitiesConfig as i, MappingFromConfig as n, entitiesToMappings as r, EntityMappingRow as t };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { R as ProjectionMapping, a as ClivlyEntitiesConfig } from "./entity-config-
|
|
2
|
-
import { r as IntegrationState } from "./integration-state-
|
|
3
|
-
//#region ../sdk/src/drizzle-meta.d.ts
|
|
1
|
+
import { R as ProjectionMapping, a as ClivlyEntitiesConfig } from "./entity-config-dNclLyBM.cjs";
|
|
2
|
+
import { r as IntegrationState } from "./integration-state-xK4PLm5T.cjs";
|
|
4
3
|
declare const DRIZZLE_META: "__clivly_drizzle_source_meta__";
|
|
5
4
|
interface DrizzleSourceMeta {
|
|
6
5
|
/** Drizzle property keys of every column on the source table. */
|
|
@@ -14,8 +13,18 @@ interface DrizzleSourceMeta {
|
|
|
14
13
|
/** Every unique key on the table, each as its DB column names. */
|
|
15
14
|
uniqueConstraints?: string[][];
|
|
16
15
|
}
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
interface ExposurePolicy {
|
|
17
|
+
/**
|
|
18
|
+
* `"table.column"` refs that are credentials by name but genuinely safe to
|
|
19
|
+
* sync. Each one is an explicit, reviewed decision.
|
|
20
|
+
*/
|
|
21
|
+
allowSensitive?: readonly string[];
|
|
22
|
+
/**
|
|
23
|
+
* Allowlist of what projections may read: a table name maps to its readable
|
|
24
|
+
* columns, or `"*"` for every non-credential column. Unset means any table.
|
|
25
|
+
*/
|
|
26
|
+
tables?: Readonly<Record<string, readonly string[] | "*">>;
|
|
27
|
+
}
|
|
19
28
|
interface DiscoveredColumn {
|
|
20
29
|
isForeignKey?: boolean;
|
|
21
30
|
isPrimaryKey?: boolean;
|
|
@@ -101,6 +110,15 @@ interface ClivlySDKConfig {
|
|
|
101
110
|
tables?: string[];
|
|
102
111
|
};
|
|
103
112
|
};
|
|
113
|
+
/**
|
|
114
|
+
* What dashboard-authored projections and previews may read from this
|
|
115
|
+
* database. Credential columns (`password`, `access_token`, `secret`, …)
|
|
116
|
+
* and the auth library's session, token and key tables are always refused;
|
|
117
|
+
* `allowSensitive` names reviewed exceptions as `"table.column"` (or
|
|
118
|
+
* `"table.*"`). `tables`, when set, is an allowlist of tables and their
|
|
119
|
+
* readable columns (`"*"` for all non-credential columns).
|
|
120
|
+
*/
|
|
121
|
+
exposure?: ExposurePolicy;
|
|
104
122
|
/** Reported to the portal so it can show the detected stack. */
|
|
105
123
|
framework?: string;
|
|
106
124
|
/** Heartbeat cadence in ms. Defaults to 60s. */
|
|
@@ -251,6 +269,14 @@ interface CreateChatSessionHandlerOptions {
|
|
|
251
269
|
* the visitor stays self-reported. Never fails the session.
|
|
252
270
|
*/
|
|
253
271
|
resolveUser?: (req: Request) => Promise<ClivlyUser | null> | ClivlyUser | null;
|
|
272
|
+
/**
|
|
273
|
+
* The browser visitor's IP address, reported to Clivly so new chats are
|
|
274
|
+
* rate-limited per visitor rather than per host server. Defaults to the
|
|
275
|
+
* address your platform puts in `cf-connecting-ip`, `x-real-ip` or the first
|
|
276
|
+
* `x-forwarded-for` entry. Override it if your proxy uses another header, or
|
|
277
|
+
* return null to report none.
|
|
278
|
+
*/
|
|
279
|
+
resolveVisitorIp?: (req: Request) => string | null;
|
|
254
280
|
}
|
|
255
281
|
/** One object type ensured by `ensureSchema`. */
|
|
256
282
|
interface EnsuredObjectTypeResult {
|
|
@@ -550,8 +576,6 @@ interface ClivlySDK {
|
|
|
550
576
|
runId?: string;
|
|
551
577
|
}): Promise<void>;
|
|
552
578
|
}
|
|
553
|
-
//#endregion
|
|
554
|
-
//#region ../sdk/src/namespace-probe.d.ts
|
|
555
579
|
interface NamespaceIntrospector {
|
|
556
580
|
/** All base table names in the reachable schema. */
|
|
557
581
|
listTables(): Promise<string[]>;
|
|
@@ -595,5 +619,4 @@ interface NamespaceIntrospector {
|
|
|
595
619
|
/** Prove a table is genuinely selectable (SELECT ... LIMIT 1). Throws if unreachable/denied. */
|
|
596
620
|
sampleSelect(table: string): Promise<void>;
|
|
597
621
|
}
|
|
598
|
-
|
|
599
|
-
export { RemoteProjectionsDescription as _, ClivlyConnectResult as a, ClivlyUser as c, DiscoveredTable as d, DoctorCheck as f, EnsuredObjectTypeResult as g, EnsuredMappingResult as h, ClivlyConnectReason as i, CreateChatSessionHandlerOptions as l, EnsureSchemaResult as m, ChatSessionRequestBody as n, ClivlySDK as o, DoctorReport as p, ChatWidgetVisitor as r, ClivlySDKConfig as s, NamespaceIntrospector as t, CursorStore as u, SyncSource as v, SyncTriggerDescription as y };
|
|
622
|
+
export { RemoteProjectionsDescription as _, ClivlyConnectResult as a, ExposurePolicy as b, ClivlyUser as c, DiscoveredTable as d, DoctorCheck as f, EnsuredObjectTypeResult as g, EnsuredMappingResult as h, ClivlyConnectReason as i, CreateChatSessionHandlerOptions as l, EnsureSchemaResult as m, ChatSessionRequestBody as n, ClivlySDK as o, DoctorReport as p, ChatWidgetVisitor as r, ClivlySDKConfig as s, NamespaceIntrospector as t, CursorStore as u, SyncSource as v, SyncTriggerDescription as y };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { R as ProjectionMapping, a as ClivlyEntitiesConfig } from "./entity-config-
|
|
2
|
-
import { r as IntegrationState } from "./integration-state-
|
|
3
|
-
//#region ../sdk/src/drizzle-meta.d.ts
|
|
1
|
+
import { R as ProjectionMapping, a as ClivlyEntitiesConfig } from "./entity-config-X-KlnYXX.mjs";
|
|
2
|
+
import { r as IntegrationState } from "./integration-state-xK4PLm5T.mjs";
|
|
4
3
|
declare const DRIZZLE_META: "__clivly_drizzle_source_meta__";
|
|
5
4
|
interface DrizzleSourceMeta {
|
|
6
5
|
/** Drizzle property keys of every column on the source table. */
|
|
@@ -14,8 +13,18 @@ interface DrizzleSourceMeta {
|
|
|
14
13
|
/** Every unique key on the table, each as its DB column names. */
|
|
15
14
|
uniqueConstraints?: string[][];
|
|
16
15
|
}
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
interface ExposurePolicy {
|
|
17
|
+
/**
|
|
18
|
+
* `"table.column"` refs that are credentials by name but genuinely safe to
|
|
19
|
+
* sync. Each one is an explicit, reviewed decision.
|
|
20
|
+
*/
|
|
21
|
+
allowSensitive?: readonly string[];
|
|
22
|
+
/**
|
|
23
|
+
* Allowlist of what projections may read: a table name maps to its readable
|
|
24
|
+
* columns, or `"*"` for every non-credential column. Unset means any table.
|
|
25
|
+
*/
|
|
26
|
+
tables?: Readonly<Record<string, readonly string[] | "*">>;
|
|
27
|
+
}
|
|
19
28
|
interface DiscoveredColumn {
|
|
20
29
|
isForeignKey?: boolean;
|
|
21
30
|
isPrimaryKey?: boolean;
|
|
@@ -101,6 +110,15 @@ interface ClivlySDKConfig {
|
|
|
101
110
|
tables?: string[];
|
|
102
111
|
};
|
|
103
112
|
};
|
|
113
|
+
/**
|
|
114
|
+
* What dashboard-authored projections and previews may read from this
|
|
115
|
+
* database. Credential columns (`password`, `access_token`, `secret`, …)
|
|
116
|
+
* and the auth library's session, token and key tables are always refused;
|
|
117
|
+
* `allowSensitive` names reviewed exceptions as `"table.column"` (or
|
|
118
|
+
* `"table.*"`). `tables`, when set, is an allowlist of tables and their
|
|
119
|
+
* readable columns (`"*"` for all non-credential columns).
|
|
120
|
+
*/
|
|
121
|
+
exposure?: ExposurePolicy;
|
|
104
122
|
/** Reported to the portal so it can show the detected stack. */
|
|
105
123
|
framework?: string;
|
|
106
124
|
/** Heartbeat cadence in ms. Defaults to 60s. */
|
|
@@ -251,6 +269,14 @@ interface CreateChatSessionHandlerOptions {
|
|
|
251
269
|
* the visitor stays self-reported. Never fails the session.
|
|
252
270
|
*/
|
|
253
271
|
resolveUser?: (req: Request) => Promise<ClivlyUser | null> | ClivlyUser | null;
|
|
272
|
+
/**
|
|
273
|
+
* The browser visitor's IP address, reported to Clivly so new chats are
|
|
274
|
+
* rate-limited per visitor rather than per host server. Defaults to the
|
|
275
|
+
* address your platform puts in `cf-connecting-ip`, `x-real-ip` or the first
|
|
276
|
+
* `x-forwarded-for` entry. Override it if your proxy uses another header, or
|
|
277
|
+
* return null to report none.
|
|
278
|
+
*/
|
|
279
|
+
resolveVisitorIp?: (req: Request) => string | null;
|
|
254
280
|
}
|
|
255
281
|
/** One object type ensured by `ensureSchema`. */
|
|
256
282
|
interface EnsuredObjectTypeResult {
|
|
@@ -550,8 +576,6 @@ interface ClivlySDK {
|
|
|
550
576
|
runId?: string;
|
|
551
577
|
}): Promise<void>;
|
|
552
578
|
}
|
|
553
|
-
//#endregion
|
|
554
|
-
//#region ../sdk/src/namespace-probe.d.ts
|
|
555
579
|
interface NamespaceIntrospector {
|
|
556
580
|
/** All base table names in the reachable schema. */
|
|
557
581
|
listTables(): Promise<string[]>;
|
|
@@ -595,5 +619,4 @@ interface NamespaceIntrospector {
|
|
|
595
619
|
/** Prove a table is genuinely selectable (SELECT ... LIMIT 1). Throws if unreachable/denied. */
|
|
596
620
|
sampleSelect(table: string): Promise<void>;
|
|
597
621
|
}
|
|
598
|
-
|
|
599
|
-
export { RemoteProjectionsDescription as _, ClivlyConnectResult as a, ClivlyUser as c, DiscoveredTable as d, DoctorCheck as f, EnsuredObjectTypeResult as g, EnsuredMappingResult as h, ClivlyConnectReason as i, CreateChatSessionHandlerOptions as l, EnsureSchemaResult as m, ChatSessionRequestBody as n, ClivlySDK as o, DoctorReport as p, ChatWidgetVisitor as r, ClivlySDKConfig as s, NamespaceIntrospector as t, CursorStore as u, SyncSource as v, SyncTriggerDescription as y };
|
|
622
|
+
export { RemoteProjectionsDescription as _, ClivlyConnectResult as a, ExposurePolicy as b, ClivlyUser as c, DiscoveredTable as d, DoctorCheck as f, EnsuredObjectTypeResult as g, EnsuredMappingResult as h, ClivlyConnectReason as i, CreateChatSessionHandlerOptions as l, EnsureSchemaResult as m, ChatSessionRequestBody as n, ClivlySDK as o, DoctorReport as p, ChatWidgetVisitor as r, ClivlySDKConfig as s, NamespaceIntrospector as t, CursorStore as u, SyncSource as v, SyncTriggerDescription as y };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clivly",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Clivly CLI — scaffold a CRM into your app (clivly init).",
|
|
@@ -392,11 +392,6 @@
|
|
|
392
392
|
"engines": {
|
|
393
393
|
"node": ">=22"
|
|
394
394
|
},
|
|
395
|
-
"repository": {
|
|
396
|
-
"type": "git",
|
|
397
|
-
"url": "git+https://github.com/amani-joseph/clivly.com.git",
|
|
398
|
-
"directory": "packages/cli"
|
|
399
|
-
},
|
|
400
395
|
"homepage": "https://clivly.com",
|
|
401
396
|
"bugs": {
|
|
402
397
|
"url": "https://github.com/amani-joseph/clivly.com/issues"
|
|
@@ -408,7 +403,6 @@
|
|
|
408
403
|
"typescript",
|
|
409
404
|
"tanstack-start",
|
|
410
405
|
"nextjs",
|
|
411
|
-
"self-hosted",
|
|
412
406
|
"embedded-crm",
|
|
413
407
|
"postgres"
|
|
414
408
|
]
|