clivly 0.16.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{adapter-BMAUq4hf.d.mts → adapter-BpAfha3z.d.mts} +1 -3
- package/{adapter-IH3r_I8v.d.cts → adapter-BvSigBPG.d.cts} +1 -3
- package/{auth-adapter-CiEXcweZ.cjs → auth-adapter-CNVuxT9W.cjs} +1 -2
- package/{auth-adapter-Bt1GZiag.d.cts → auth-adapter-CsZE4ugg.d.cts} +1 -3
- package/{auth-adapter-CHy273qb.d.mts → auth-adapter-Q6CL2VHr.d.mts} +1 -3
- package/{auth-adapter-gfVDxf3d.mjs → auth-adapter-u91PByaw.mjs} +1 -2
- package/auth-better-auth.cjs +2 -4
- package/auth-better-auth.d.cts +1 -5
- package/auth-better-auth.d.mts +1 -5
- package/auth-better-auth.mjs +2 -4
- package/auth-clerk.cjs +2 -4
- package/auth-clerk.d.cts +1 -5
- package/auth-clerk.d.mts +1 -5
- package/auth-clerk.mjs +2 -4
- package/auth-workos.cjs +2 -4
- package/auth-workos.d.cts +1 -5
- package/auth-workos.d.mts +1 -5
- package/auth-workos.mjs +2 -4
- package/core-adapter.cjs +2 -3
- package/core-adapter.d.cts +1 -1
- package/core-adapter.d.mts +1 -1
- package/core-adapter.mjs +2 -3
- package/core-auth-adapter.cjs +3 -4
- package/core-auth-adapter.d.cts +1 -1
- package/core-auth-adapter.d.mts +1 -1
- package/core-auth-adapter.mjs +3 -5
- package/core-drizzle.cjs +3 -4
- package/core-drizzle.d.cts +1 -1
- package/core-drizzle.d.mts +1 -1
- package/core-drizzle.mjs +3 -5
- package/core-entity-config.cjs +3 -4
- package/core-entity-config.d.cts +1 -1
- package/core-entity-config.d.mts +1 -1
- package/core-entity-config.mjs +3 -5
- package/core-entity-heuristics.cjs +2 -3
- package/core-entity-heuristics.d.cts +1 -1
- package/core-entity-heuristics.d.mts +1 -1
- package/core-entity-heuristics.mjs +3 -5
- package/core-mapping-form.cjs +3 -4
- package/core-mapping-form.d.cts +1 -1
- package/core-mapping-form.d.mts +1 -1
- package/core-mapping-form.mjs +3 -5
- package/core-mapping-score.cjs +3 -4
- package/core-mapping-score.d.cts +1 -1
- package/core-mapping-score.d.mts +1 -1
- package/core-mapping-score.mjs +3 -5
- package/core-mappings-config.cjs +3 -4
- package/core-mappings-config.d.cts +1 -1
- package/core-mappings-config.d.mts +1 -1
- package/core-mappings-config.mjs +3 -5
- package/core-sync-engine.cjs +3 -4
- package/core-sync-engine.d.cts +1 -1
- package/core-sync-engine.d.mts +1 -1
- package/core-sync-engine.mjs +3 -5
- package/core-types.cjs +3 -4
- package/core-types.d.cts +1 -1
- package/core-types.d.mts +1 -1
- package/core-types.mjs +3 -5
- package/core-view-compiler.cjs +3 -4
- package/core-view-compiler.d.cts +1 -1
- package/core-view-compiler.d.mts +1 -1
- package/core-view-compiler.mjs +3 -5
- package/core.cjs +13 -13
- package/core.d.cts +11 -11
- package/core.d.mts +11 -11
- package/core.mjs +13 -14
- package/{deprecate-subpath-CmvZtCpE.mjs → deprecate-subpath-CK37DKXH.mjs} +1 -2
- package/{deprecate-subpath-B9ngvizt.cjs → deprecate-subpath-dGwDiHKV.cjs} +1 -2
- package/{drizzle-DcB7OfBp.cjs → drizzle-C0bfX-6a.cjs} +1 -2
- package/{drizzle-wbcuG-cy.mjs → drizzle-CZuOzIu4.mjs} +1 -2
- package/{drizzle-CiK37zJm.d.cts → drizzle-MUNZgh1l.d.cts} +1 -3
- package/{drizzle-ehVWLSrN.d.mts → drizzle-UJbPCzPJ.d.mts} +1 -3
- package/{drizzle-meta-Bb1JWYqf.cjs → drizzle-meta-BPnRLpsB.cjs} +1 -2
- package/{drizzle-meta-D-5k3n0i.mjs → drizzle-meta-D00lFvAk.mjs} +1 -2
- package/drizzle.cjs +7 -10
- package/drizzle.d.cts +3 -7
- package/drizzle.d.mts +3 -7
- package/drizzle.mjs +7 -10
- package/entity-config-BF7pcXFB.d.cts +632 -0
- package/{entity-config-Ccfb2IL9.mjs → entity-config-DQVSprlG.mjs} +8 -11
- package/{entity-config-BI4RYNKL.cjs → entity-config-nWWgJXLw.cjs} +8 -11
- package/entity-config-pzamFSKw.d.mts +632 -0
- package/index.cjs +51 -98
- package/index.d.cts +1 -12
- package/index.d.mts +1 -12
- package/index.mjs +51 -98
- package/{integration-state-BA4c0RbD.d.mts → integration-state-xK4PLm5T.d.cts} +0 -2
- package/{integration-state-BA4c0RbD.d.cts → integration-state-xK4PLm5T.d.mts} +0 -2
- package/{internal-C7NlPM3M.d.mts → internal-C-uvosSL.d.cts} +1 -17
- package/{internal-DsArcqkP.cjs → internal-CjJy-cy1.cjs} +42 -8
- package/{internal-CLvZdVj5.mjs → internal-DtLZyjf8.mjs} +37 -9
- package/{internal-D2J4VQWT.d.cts → internal-Gie7hCpK.d.mts} +1 -17
- package/internal-adapter.d.cts +1 -1
- package/internal-adapter.d.mts +1 -1
- package/internal-auth-adapter.cjs +1 -1
- package/internal-auth-adapter.d.cts +1 -1
- package/internal-auth-adapter.d.mts +1 -1
- package/internal-auth-adapter.mjs +1 -2
- package/internal-drizzle.cjs +1 -1
- package/internal-drizzle.d.cts +1 -1
- package/internal-drizzle.d.mts +1 -1
- package/internal-drizzle.mjs +1 -2
- package/internal-entity-config.cjs +1 -1
- package/internal-entity-config.d.cts +1 -1
- package/internal-entity-config.d.mts +1 -1
- package/internal-entity-config.mjs +1 -2
- package/internal-entity-heuristics.cjs +3 -4
- package/internal-entity-heuristics.d.cts +2 -4
- package/internal-entity-heuristics.d.mts +2 -4
- package/internal-entity-heuristics.mjs +3 -4
- package/internal-mapping-form.cjs +1 -1
- package/internal-mapping-form.d.cts +1 -1
- package/internal-mapping-form.d.mts +1 -1
- package/internal-mapping-form.mjs +1 -2
- package/internal-mapping-score.cjs +1 -1
- package/internal-mapping-score.d.cts +1 -1
- package/internal-mapping-score.d.mts +1 -1
- package/internal-mapping-score.mjs +1 -2
- package/internal-mappings-config.cjs +1 -1
- package/internal-mappings-config.d.cts +1 -1
- package/internal-mappings-config.d.mts +1 -1
- package/internal-mappings-config.mjs +1 -2
- package/internal-sync-engine.cjs +1 -1
- package/internal-sync-engine.d.cts +1 -1
- package/internal-sync-engine.d.mts +1 -1
- package/internal-sync-engine.mjs +1 -2
- package/internal-types.cjs +1 -1
- package/internal-types.d.cts +1 -1
- package/internal-types.d.mts +1 -1
- package/internal-types.mjs +1 -2
- package/internal-view-compiler.cjs +1 -1
- package/internal-view-compiler.d.cts +1 -1
- package/internal-view-compiler.d.mts +1 -1
- package/internal-view-compiler.mjs +1 -2
- package/internal.cjs +11 -10
- package/internal.d.cts +11 -11
- package/internal.d.mts +11 -11
- package/internal.mjs +11 -11
- package/{mapping-form-BpfON_ME.cjs → mapping-form-Bs6JQurC.cjs} +1 -2
- package/{mapping-form-XsLLCqW_.d.cts → mapping-form-BymksK7h.d.mts} +1 -3
- package/{mapping-form-DigkuvFc.mjs → mapping-form-C7kDMWzp.mjs} +1 -2
- package/{mapping-form-Btn-7gzv.d.mts → mapping-form-Cmf8y-1m.d.cts} +1 -3
- package/{mapping-score-D7Gzg7Ii.d.cts → mapping-score-BKrxddz0.d.cts} +0 -2
- package/{mapping-score-D7Gzg7Ii.d.mts → mapping-score-BKrxddz0.d.mts} +0 -2
- package/{mapping-score-C68uAqGB.mjs → mapping-score-CS-MTDL9.mjs} +1 -2
- package/{mapping-score-CaB3F4Uu.cjs → mapping-score-D2TCQiOr.cjs} +1 -2
- package/{mappings-config-CwQNQ6bA.mjs → mappings-config-C7FPwrJT.mjs} +3 -4
- package/{mappings-config-BCsRLohT.cjs → mappings-config-DBG-KnYl.cjs} +3 -4
- package/{mappings-config-D6_oCi2Q.d.mts → mappings-config-Dsz6rcJb.d.cts} +1 -3
- package/{mappings-config-iJzbcUMp.d.cts → mappings-config-ktJhxmHm.d.mts} +1 -3
- package/{namespace-probe-DykR0kgh.d.mts → namespace-probe-By8SCnym.d.mts} +2 -8
- package/{namespace-probe-H7yWc0JV.d.cts → namespace-probe-CTkb35Ro.d.cts} +2 -8
- package/package.json +1 -1
- package/{projection-BELgANG2.cjs → projection-B8RtxuEq.cjs} +35 -38
- package/{projection-DvNewmI1.mjs → projection-DNi_2dVa.mjs} +30 -39
- package/{projection-sql-DweUaWRc.mjs → projection-sql-BYv40Hen.mjs} +2 -3
- package/{projection-sql-DuCtFE9t.cjs → projection-sql-SuhzhsMe.cjs} +2 -3
- package/schemas-DySv963y.d.cts +2098 -0
- package/schemas-DySv963y.d.mts +2098 -0
- package/{sdk-ZMy4C4VK.cjs → sdk-BJ3OkhCq.cjs} +27 -50
- package/{sdk-DLoVPlGB.mjs → sdk-CXrarwvs.mjs} +27 -50
- package/sdk.cjs +2 -2
- package/sdk.d.cts +2 -10
- package/sdk.d.mts +2 -10
- package/sdk.mjs +2 -2
- package/{sync-engine-DH058G3w.mjs → sync-engine-BTUoH82k.mjs} +2 -3
- package/{sync-engine-C_5TpvfX.d.mts → sync-engine-C_SwnFgF.d.mts} +2 -4
- package/{sync-engine-CYsWOujz.d.cts → sync-engine-D9ltfqkD.d.cts} +2 -4
- package/{sync-engine-BGVDsrOQ.cjs → sync-engine-DBlSP9r2.cjs} +2 -3
- package/{types-YJTkXKzU.mjs → types-8KSw2AWg.mjs} +1 -2
- package/{types-Cq5gHCTq.cjs → types-B8m39L1s.cjs} +1 -2
- package/{types-CpAtAtxd.d.cts → types-BtQCi_qP.d.cts} +30 -3
- package/{types-CpAtAtxd.d.mts → types-CTOl3pAX.d.mts} +30 -3
- package/{view-compiler-C-6RydKK.mjs → view-compiler-B8tJ5IGw.mjs} +3 -4
- package/{view-compiler-CwKVoK1w.d.mts → view-compiler-BZgZisTG.d.mts} +1 -3
- package/{view-compiler-xiwm5iar.cjs → view-compiler-Ce_QE3dh.cjs} +3 -4
- package/{view-compiler-Cq8apvZ4.d.cts → view-compiler-D7GLf1n8.d.cts} +1 -3
- package/vite.cjs +1 -2
- package/vite.d.cts +2 -4
- package/vite.d.mts +2 -4
- package/vite.mjs +1 -2
- package/entity-config-ApnT5j3X.d.cts +0 -4472
- package/entity-config-CKcj4-M_.d.mts +0 -4473
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-CTOl3pAX.mjs";
|
|
2
|
+
import { a as authCustom, i as MembershipResolver, n as ClivlyUser, r as CrmMembership, t as ClivlyAuthAdapter } from "./auth-adapter-Q6CL2VHr.mjs";
|
|
3
|
+
import { t as CRMAdapter } from "./adapter-BpAfha3z.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-pzamFSKw.mjs";
|
|
5
|
+
import { i as relationshipViaSignature, n as buildFilterFromDiscriminator, r as buildRelationships, t as RelationshipCandidate } from "./mapping-form-BymksK7h.mjs";
|
|
6
|
+
import { i as mappingsToEntitiesConfig, t as EntityMappingRow } from "./mappings-config-ktJhxmHm.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-BZgZisTG.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-C_SwnFgF.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-Gie7hCpK.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-DNi_2dVa.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-DQVSprlG.mjs";
|
|
3
|
+
import { n as mappingsToEntitiesConfig } from "./mappings-config-C7FPwrJT.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-DtLZyjf8.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-BYv40Hen.mjs";
|
|
8
|
+
import { i as explainEntitiesConfig, n as compileEntityView, r as compileEntityViews, t as DEFAULT_VIEW_PREFIX } from "./view-compiler-B8tJ5IGw.mjs";
|
|
9
|
+
import { a as resolveActions, i as reconcile, n as isRemovalAction, o as runSync } from "./sync-engine-BTUoH82k.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,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,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-pzamFSKw.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,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-BF7pcXFB.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,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-DQVSprlG.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,5 @@
|
|
|
1
|
-
const require_entity_config = require("./entity-config-
|
|
2
|
-
|
|
1
|
+
const require_entity_config = require("./entity-config-nWWgJXLw.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,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-BF7pcXFB.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,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-pzamFSKw.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-pzamFSKw.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,6 @@ interface DrizzleSourceMeta {
|
|
|
14
13
|
/** Every unique key on the table, each as its DB column names. */
|
|
15
14
|
uniqueConstraints?: string[][];
|
|
16
15
|
}
|
|
17
|
-
//#endregion
|
|
18
|
-
//#region ../sdk/src/types.d.ts
|
|
19
16
|
interface DiscoveredColumn {
|
|
20
17
|
isForeignKey?: boolean;
|
|
21
18
|
isPrimaryKey?: boolean;
|
|
@@ -550,8 +547,6 @@ interface ClivlySDK {
|
|
|
550
547
|
runId?: string;
|
|
551
548
|
}): Promise<void>;
|
|
552
549
|
}
|
|
553
|
-
//#endregion
|
|
554
|
-
//#region ../sdk/src/namespace-probe.d.ts
|
|
555
550
|
interface NamespaceIntrospector {
|
|
556
551
|
/** All base table names in the reachable schema. */
|
|
557
552
|
listTables(): Promise<string[]>;
|
|
@@ -595,5 +590,4 @@ interface NamespaceIntrospector {
|
|
|
595
590
|
/** Prove a table is genuinely selectable (SELECT ... LIMIT 1). Throws if unreachable/denied. */
|
|
596
591
|
sampleSelect(table: string): Promise<void>;
|
|
597
592
|
}
|
|
598
|
-
//#endregion
|
|
599
593
|
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 };
|
|
@@ -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-BF7pcXFB.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,6 @@ interface DrizzleSourceMeta {
|
|
|
14
13
|
/** Every unique key on the table, each as its DB column names. */
|
|
15
14
|
uniqueConstraints?: string[][];
|
|
16
15
|
}
|
|
17
|
-
//#endregion
|
|
18
|
-
//#region ../sdk/src/types.d.ts
|
|
19
16
|
interface DiscoveredColumn {
|
|
20
17
|
isForeignKey?: boolean;
|
|
21
18
|
isPrimaryKey?: boolean;
|
|
@@ -550,8 +547,6 @@ interface ClivlySDK {
|
|
|
550
547
|
runId?: string;
|
|
551
548
|
}): Promise<void>;
|
|
552
549
|
}
|
|
553
|
-
//#endregion
|
|
554
|
-
//#region ../sdk/src/namespace-probe.d.ts
|
|
555
550
|
interface NamespaceIntrospector {
|
|
556
551
|
/** All base table names in the reachable schema. */
|
|
557
552
|
listTables(): Promise<string[]>;
|
|
@@ -595,5 +590,4 @@ interface NamespaceIntrospector {
|
|
|
595
590
|
/** Prove a table is genuinely selectable (SELECT ... LIMIT 1). Throws if unreachable/denied. */
|
|
596
591
|
sampleSelect(table: string): Promise<void>;
|
|
597
592
|
}
|
|
598
|
-
//#endregion
|
|
599
593
|
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 };
|
package/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
|
|
2
2
|
var _a$1;
|
|
3
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
3
4
|
function $constructor(name, initializer, params) {
|
|
4
5
|
function init(inst, def) {
|
|
5
6
|
if (!inst._zod) Object.defineProperty(inst, "_zod", {
|
|
@@ -56,8 +57,7 @@ function config(newConfig) {
|
|
|
56
57
|
if (newConfig) Object.assign(globalConfig, newConfig);
|
|
57
58
|
return globalConfig;
|
|
58
59
|
}
|
|
59
|
-
|
|
60
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js
|
|
60
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js
|
|
61
61
|
function getEnumValues(entries) {
|
|
62
62
|
const numericValues = Object.values(entries).filter((v) => typeof v === "number");
|
|
63
63
|
return Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
|
|
@@ -370,8 +370,7 @@ function issue(...args) {
|
|
|
370
370
|
};
|
|
371
371
|
return { ...iss };
|
|
372
372
|
}
|
|
373
|
-
|
|
374
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.js
|
|
373
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.js
|
|
375
374
|
const initializer$1 = (inst, def) => {
|
|
376
375
|
inst.name = "$ZodError";
|
|
377
376
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -388,8 +387,8 @@ const initializer$1 = (inst, def) => {
|
|
|
388
387
|
enumerable: false
|
|
389
388
|
});
|
|
390
389
|
};
|
|
391
|
-
const $ZodError = $constructor("$ZodError", initializer$1);
|
|
392
|
-
const $ZodRealError = $constructor("$ZodError", initializer$1, { Parent: Error });
|
|
390
|
+
const $ZodError = /* @__PURE__ */ $constructor("$ZodError", initializer$1);
|
|
391
|
+
const $ZodRealError = /* @__PURE__ */ $constructor("$ZodError", initializer$1, { Parent: Error });
|
|
393
392
|
function flattenError(error, mapper = (issue) => issue.message) {
|
|
394
393
|
const fieldErrors = {};
|
|
395
394
|
const formErrors = [];
|
|
@@ -430,8 +429,7 @@ function formatError(error, mapper = (issue) => issue.message) {
|
|
|
430
429
|
processError(error);
|
|
431
430
|
return fieldErrors;
|
|
432
431
|
}
|
|
433
|
-
|
|
434
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.js
|
|
432
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.js
|
|
435
433
|
const _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
436
434
|
const ctx = _ctx ? {
|
|
437
435
|
..._ctx,
|
|
@@ -544,8 +542,7 @@ const _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
544
542
|
const _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
545
543
|
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
546
544
|
};
|
|
547
|
-
|
|
548
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.js
|
|
545
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.js
|
|
549
546
|
/**
|
|
550
547
|
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
551
548
|
* (timestamps embedded in the id). Use {@link cuid2} instead.
|
|
@@ -608,8 +605,7 @@ const number$1 = /^-?\d+(?:\.\d+)?$/;
|
|
|
608
605
|
const boolean$1 = /^(?:true|false)$/i;
|
|
609
606
|
const lowercase = /^[^A-Z]*$/;
|
|
610
607
|
const uppercase = /^[^a-z]*$/;
|
|
611
|
-
|
|
612
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.js
|
|
608
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.js
|
|
613
609
|
const $ZodCheck = /*@__PURE__*/ $constructor("$ZodCheck", (inst, def) => {
|
|
614
610
|
var _a;
|
|
615
611
|
inst._zod ?? (inst._zod = {});
|
|
@@ -970,8 +966,7 @@ const $ZodCheckOverwrite = /*@__PURE__*/ $constructor("$ZodCheckOverwrite", (ins
|
|
|
970
966
|
payload.value = def.tx(payload.value);
|
|
971
967
|
};
|
|
972
968
|
});
|
|
973
|
-
|
|
974
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/doc.js
|
|
969
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/doc.js
|
|
975
970
|
var Doc = class {
|
|
976
971
|
constructor(args = []) {
|
|
977
972
|
this.content = [];
|
|
@@ -1001,15 +996,13 @@ var Doc = class {
|
|
|
1001
996
|
return new F(...args, lines.join("\n"));
|
|
1002
997
|
}
|
|
1003
998
|
};
|
|
1004
|
-
|
|
1005
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.js
|
|
999
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.js
|
|
1006
1000
|
const version = {
|
|
1007
1001
|
major: 4,
|
|
1008
1002
|
minor: 4,
|
|
1009
1003
|
patch: 3
|
|
1010
1004
|
};
|
|
1011
|
-
|
|
1012
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.js
|
|
1005
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.js
|
|
1013
1006
|
const $ZodType = /*@__PURE__*/ $constructor("$ZodType", (inst, def) => {
|
|
1014
1007
|
var _a;
|
|
1015
1008
|
inst ?? (inst = {});
|
|
@@ -2238,8 +2231,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
2238
2231
|
payload.issues.push(issue(_iss));
|
|
2239
2232
|
}
|
|
2240
2233
|
}
|
|
2241
|
-
|
|
2242
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
|
|
2234
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
|
|
2243
2235
|
var _a;
|
|
2244
2236
|
var $ZodRegistry = class {
|
|
2245
2237
|
constructor() {
|
|
@@ -2285,8 +2277,7 @@ function registry() {
|
|
|
2285
2277
|
}
|
|
2286
2278
|
(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
|
|
2287
2279
|
const globalRegistry = globalThis.__zod_globalRegistry;
|
|
2288
|
-
|
|
2289
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
|
|
2280
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
|
|
2290
2281
|
// @__NO_SIDE_EFFECTS__
|
|
2291
2282
|
function _string(Class, params) {
|
|
2292
2283
|
return new Class({
|
|
@@ -2790,8 +2781,7 @@ function _check(fn, params) {
|
|
|
2790
2781
|
ch._zod.check = fn;
|
|
2791
2782
|
return ch;
|
|
2792
2783
|
}
|
|
2793
|
-
|
|
2794
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.js
|
|
2784
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.js
|
|
2795
2785
|
function initializeContext(params) {
|
|
2796
2786
|
let target = params?.target ?? "draft-2020-12";
|
|
2797
2787
|
if (target === "draft-4") target = "draft-04";
|
|
@@ -3085,8 +3075,7 @@ const createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params)
|
|
|
3085
3075
|
extractDefs(ctx, schema);
|
|
3086
3076
|
return finalize(ctx, schema);
|
|
3087
3077
|
};
|
|
3088
|
-
|
|
3089
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.js
|
|
3078
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.js
|
|
3090
3079
|
const formatMap = {
|
|
3091
3080
|
guid: "uuid",
|
|
3092
3081
|
url: "uri",
|
|
@@ -3350,8 +3339,7 @@ const optionalProcessor = (schema, ctx, _json, params) => {
|
|
|
3350
3339
|
const seen = ctx.seen.get(schema);
|
|
3351
3340
|
seen.ref = def.innerType;
|
|
3352
3341
|
};
|
|
3353
|
-
|
|
3354
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.js
|
|
3342
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.js
|
|
3355
3343
|
const ZodISODateTime = /*@__PURE__*/ $constructor("ZodISODateTime", (inst, def) => {
|
|
3356
3344
|
$ZodISODateTime.init(inst, def);
|
|
3357
3345
|
ZodStringFormat.init(inst, def);
|
|
@@ -3380,8 +3368,7 @@ const ZodISODuration = /*@__PURE__*/ $constructor("ZodISODuration", (inst, def)
|
|
|
3380
3368
|
function duration(params) {
|
|
3381
3369
|
return /* @__PURE__ */ _isoDuration(ZodISODuration, params);
|
|
3382
3370
|
}
|
|
3383
|
-
|
|
3384
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.js
|
|
3371
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.js
|
|
3385
3372
|
const initializer = (inst, issues) => {
|
|
3386
3373
|
$ZodError.init(inst, issues);
|
|
3387
3374
|
inst.name = "ZodError";
|
|
@@ -3402,8 +3389,7 @@ const initializer = (inst, issues) => {
|
|
|
3402
3389
|
});
|
|
3403
3390
|
};
|
|
3404
3391
|
const ZodRealError = /*@__PURE__*/ $constructor("ZodError", initializer, { Parent: Error });
|
|
3405
|
-
|
|
3406
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/parse.js
|
|
3392
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/parse.js
|
|
3407
3393
|
const parse = /* @__PURE__ */ _parse(ZodRealError);
|
|
3408
3394
|
const parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
3409
3395
|
const safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -3416,8 +3402,7 @@ const safeEncode = /* @__PURE__ */ _safeEncode(ZodRealError);
|
|
|
3416
3402
|
const safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
3417
3403
|
const safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
3418
3404
|
const safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
3419
|
-
|
|
3420
|
-
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
|
|
3405
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
|
|
3421
3406
|
const _installedGroups = /* @__PURE__ */ new WeakMap();
|
|
3422
3407
|
function _installLazyMethods(inst, group, methods) {
|
|
3423
3408
|
const proto = Object.getPrototypeOf(inst);
|
|
@@ -3937,6 +3922,14 @@ const ZodObject = /*@__PURE__*/ $constructor("ZodObject", (inst, def) => {
|
|
|
3937
3922
|
}
|
|
3938
3923
|
});
|
|
3939
3924
|
});
|
|
3925
|
+
function object(shape, params) {
|
|
3926
|
+
const def = {
|
|
3927
|
+
type: "object",
|
|
3928
|
+
shape: shape ?? {},
|
|
3929
|
+
...normalizeParams(params)
|
|
3930
|
+
};
|
|
3931
|
+
return new ZodObject(def);
|
|
3932
|
+
}
|
|
3940
3933
|
function strictObject(shape, params) {
|
|
3941
3934
|
return new ZodObject({
|
|
3942
3935
|
type: "object",
|
|
@@ -4211,8 +4204,7 @@ function refine(fn, _params = {}) {
|
|
|
4211
4204
|
function superRefine(fn, params) {
|
|
4212
4205
|
return /* @__PURE__ */ _superRefine(fn, params);
|
|
4213
4206
|
}
|
|
4214
|
-
|
|
4215
|
-
//#region ../core/src/projection.ts
|
|
4207
|
+
// ../core/src/projection.ts
|
|
4216
4208
|
/**
|
|
4217
4209
|
* Projection-backed custom mappings — one custom object derived from a base
|
|
4218
4210
|
* table plus explicit joins.
|
|
@@ -4305,7 +4297,6 @@ function identityRefs(identity, basePkColumn) {
|
|
|
4305
4297
|
if (identity.kind === "column") return [identity.from];
|
|
4306
4298
|
return identity.parts;
|
|
4307
4299
|
}
|
|
4308
|
-
//#endregion
|
|
4309
4300
|
Object.defineProperty(exports, "BASE_REF", {
|
|
4310
4301
|
enumerable: true,
|
|
4311
4302
|
get: function() {
|
|
@@ -4354,6 +4345,12 @@ Object.defineProperty(exports, "number", {
|
|
|
4354
4345
|
return number;
|
|
4355
4346
|
}
|
|
4356
4347
|
});
|
|
4348
|
+
Object.defineProperty(exports, "object", {
|
|
4349
|
+
enumerable: true,
|
|
4350
|
+
get: function() {
|
|
4351
|
+
return object;
|
|
4352
|
+
}
|
|
4353
|
+
});
|
|
4357
4354
|
Object.defineProperty(exports, "projectionSchema", {
|
|
4358
4355
|
enumerable: true,
|
|
4359
4356
|
get: function() {
|