clivly 0.10.9 → 0.11.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-BWrOtOw5.d.mts +83 -0
- package/adapter-Bd5HjLYa.d.cts +83 -0
- package/{auth-adapter-CXTiW3Mb.d.cts → auth-adapter-C3BQpc-q.d.cts} +1 -1
- package/{auth-adapter-DSuYwv1c.d.mts → auth-adapter-D54ajbl7.d.mts} +1 -1
- package/auth-better-auth.d.cts +6 -6
- package/auth-better-auth.d.mts +6 -6
- package/auth-clerk.d.cts +5 -5
- package/auth-clerk.d.mts +5 -5
- package/auth-workos.d.cts +5 -5
- package/auth-workos.d.mts +5 -5
- package/core-adapter.d.cts +1 -1
- package/core-adapter.d.mts +1 -1
- package/core-auth-adapter.d.cts +1 -1
- package/core-auth-adapter.d.mts +1 -1
- package/core-drizzle.d.cts +1 -1
- package/core-drizzle.d.mts +1 -1
- package/core-entity-config.cjs +1 -1
- package/core-entity-config.d.cts +1 -1
- package/core-entity-config.d.mts +1 -1
- package/core-entity-config.mjs +1 -1
- package/core-entity-heuristics.d.cts +1 -1
- package/core-entity-heuristics.d.mts +1 -1
- package/core-mapping-form.d.cts +1 -1
- package/core-mapping-form.d.mts +1 -1
- package/core-mappings-config.cjs +1 -1
- package/core-mappings-config.d.cts +1 -1
- package/core-mappings-config.d.mts +1 -1
- package/core-mappings-config.mjs +1 -1
- package/core-sync-engine.cjs +1 -1
- package/core-sync-engine.d.cts +1 -1
- package/core-sync-engine.d.mts +1 -1
- package/core-sync-engine.mjs +1 -1
- package/core-types.d.cts +2 -2
- package/core-types.d.mts +2 -2
- package/core-view-compiler.cjs +1 -1
- package/core-view-compiler.d.cts +1 -1
- package/core-view-compiler.d.mts +1 -1
- package/core-view-compiler.mjs +1 -1
- package/core.cjs +11 -7
- package/core.d.cts +10 -10
- package/core.d.mts +10 -10
- package/core.mjs +8 -8
- package/{drizzle-SD8WCvYj.d.cts → drizzle-CiK37zJm.d.cts} +1 -1
- package/{drizzle-axugRJ0u.d.mts → drizzle-ehVWLSrN.d.mts} +1 -1
- package/drizzle.cjs +2 -2
- package/drizzle.d.cts +9 -9
- package/drizzle.d.mts +9 -9
- package/drizzle.mjs +2 -2
- package/{entity-config-w8oMBWf8.d.cts → entity-config-ApnT5j3X.d.cts} +1735 -17
- package/{entity-config-C2MfIDL2.cjs → entity-config-BI4RYNKL.cjs} +19 -2
- package/{entity-config-w8oMBWf8.d.mts → entity-config-CKcj4-M_.d.mts} +1736 -17
- package/{entity-config-bC3DX9f1.mjs → entity-config-Ccfb2IL9.mjs} +28 -3
- package/index.cjs +15 -11
- package/index.d.cts +10 -11
- package/index.d.mts +10 -11
- package/index.mjs +15 -11
- package/{internal-CHvZMvxC.d.cts → internal-Bjpq7S2G.d.mts} +69 -2
- package/{internal-Cz59xMj8.cjs → internal-CRIgf9jS.cjs} +102 -0
- package/{internal-WximMGmH.d.mts → internal-D9kqkhPs.d.cts} +69 -2
- package/internal-adapter.d.cts +1 -1
- package/internal-adapter.d.mts +1 -1
- package/internal-auth-adapter.d.cts +1 -1
- package/internal-auth-adapter.d.mts +1 -1
- package/internal-drizzle.d.cts +1 -1
- package/internal-drizzle.d.mts +1 -1
- 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 -1
- package/internal-entity-heuristics.cjs +43 -24
- package/internal-entity-heuristics.d.cts +21 -21
- package/internal-entity-heuristics.d.mts +21 -21
- package/internal-entity-heuristics.mjs +43 -24
- package/internal-mapping-form.d.cts +1 -1
- package/internal-mapping-form.d.mts +1 -1
- 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 -1
- 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 -1
- package/internal-types.d.cts +2 -2
- package/internal-types.d.mts +2 -2
- package/{internal-Bgiimp5D.mjs → internal-v6P9MZY1.mjs} +79 -1
- 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 -1
- package/internal.cjs +11 -7
- package/internal.d.cts +10 -10
- package/internal.d.mts +10 -10
- package/internal.mjs +8 -8
- package/{mapping-form-BsTxv8w3.d.cts → mapping-form-Btn-7gzv.d.mts} +1 -1
- package/{mapping-form-OTFwr1sN.d.mts → mapping-form-XsLLCqW_.d.cts} +1 -1
- package/{mappings-config-Dpv08-x4.cjs → mappings-config-BCsRLohT.cjs} +2 -1
- package/{mappings-config-CRSL9dzw.mjs → mappings-config-CwQNQ6bA.mjs} +2 -1
- package/{mappings-config-DbznSjTX.d.cts → mappings-config-D6_oCi2Q.d.mts} +3 -1
- package/{mappings-config-SXu_zlmp.d.mts → mappings-config-iJzbcUMp.d.cts} +3 -1
- package/{namespace-probe-C3xMOqWE.d.cts → namespace-probe-C5RLl74M.d.cts} +1 -1
- package/{namespace-probe-BmxtnOfc.d.mts → namespace-probe-CNQKSmxz.d.mts} +1 -1
- package/package.json +1 -1
- package/{projection-Dz6_i1-w.cjs → projection-BELgANG2.cjs} +32 -23
- package/{projection-CSGJbZlZ.mjs → projection-DvNewmI1.mjs} +32 -23
- package/{projection-sql-CbXCKt3s.cjs → projection-sql-DuCtFE9t.cjs} +1 -1
- package/{projection-sql-iHoiYr1R.mjs → projection-sql-DweUaWRc.mjs} +1 -1
- package/{sdk-BIYu0N3V.cjs → sdk-BvGSxBQc.cjs} +3 -3
- package/{sdk-DofHordq.mjs → sdk-C-Pjxj2y.mjs} +3 -3
- package/sdk.cjs +2 -2
- package/sdk.d.cts +10 -10
- package/sdk.d.mts +10 -10
- package/sdk.mjs +2 -2
- package/{sync-engine-CUKWXUv7.d.mts → sync-engine--M9EaONC.d.mts} +2 -2
- package/{sync-engine-CTSIcLlZ.mjs → sync-engine-Df2MCs_n.mjs} +1 -1
- package/{sync-engine-B0FT1ax6.cjs → sync-engine-Dwm_KDUS.cjs} +1 -1
- package/{sync-engine-D2YlIHZB.d.cts → sync-engine-V3_UutGv.d.cts} +2 -2
- package/{types-Cq1uHUKp.d.mts → types-D08UzDqe.d.cts} +69 -2
- package/{types-Cq1uHUKp.d.cts → types-D08UzDqe.d.mts} +69 -2
- package/{view-compiler-BzKk8nY3.mjs → view-compiler-C-6RydKK.mjs} +2 -2
- package/{view-compiler-BO4CKamn.d.cts → view-compiler-Cq8apvZ4.d.cts} +1 -1
- package/{view-compiler-iEwUOuba.d.mts → view-compiler-CwKVoK1w.d.mts} +1 -1
- package/{view-compiler-ZKZbd3SK.cjs → view-compiler-xiwm5iar.cjs} +2 -2
- package/vite.d.cts +4 -5
- package/vite.d.mts +4 -5
- package/adapter-1TN0zohk.d.cts +0 -45
- package/adapter-uxirB88i.d.mts +0 -45
package/internal.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import { a as
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
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 SyncResult, f as reconcile, l as SyncStore, n as MirrorRecord, o as SourceRow, p as runSync, r as PersistAction, s as SyncAction, t as EntitySyncResult } from "./sync-engine-
|
|
1
|
+
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-ApnT5j3X.cjs";
|
|
2
|
+
import { A as UpdateDealInput, C as Task, D as TaskStatus, E as TaskPriority, M as ValueInterval, N as isClosedStageType, O as UpdateCompanyInput, S as StageType, T as TaskFilters, _ as OPEN_STAGE_TYPE, a as Contact, b as PipelineStageConfig, c as CreateActivityInput, d as CreateDealInput, f as CreateTaskInput, g as Note, h as DealStage, i as CompanyFilters, j as UpdateTaskInput, k as UpdateContactInput, 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 PipelineConfig, w as TaskEntityType, x as RecordSource, y as PipelineKind } from "./types-D08UzDqe.cjs";
|
|
3
|
+
import { a as authCustom, i as MembershipResolver, n as ClivlyUser, r as CrmMembership, t as ClivlyAuthAdapter } from "./auth-adapter-C3BQpc-q.cjs";
|
|
4
|
+
import { t as CRMAdapter } from "./adapter-Bd5HjLYa.cjs";
|
|
5
|
+
import { i as relationshipViaSignature, n as buildFilterFromDiscriminator, r as buildRelationships, t as RelationshipCandidate } from "./mapping-form-XsLLCqW_.cjs";
|
|
6
|
+
import { i as mappingsToEntitiesConfig, t as EntityMappingRow } from "./mappings-config-iJzbcUMp.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-Cq8apvZ4.cjs";
|
|
8
|
+
import { c as SyncResult, f as reconcile, l as SyncStore, n as MirrorRecord, o as SourceRow, p as runSync, r as PersistAction, s as SyncAction, t as EntitySyncResult } from "./sync-engine-V3_UutGv.cjs";
|
|
9
|
+
import { 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, 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-D9kqkhPs.cjs";
|
|
9
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-BA4c0RbD.cjs";
|
|
10
|
-
|
|
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 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 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 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 SourceRow, 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 UpdateContactInput, type UpdateDealInput, type UpdateTaskInput, type ValueInterval, authCustom, buildFilterFromDiscriminator, buildRelationships, columnMetaFor, compileEntityView, compileEntityViews, compileProjectionFrom, compileProjectionIdentity, compileProjectionJoins, compileProjectionPreview, compileProjectionSelect, coversUniqueKey, defineClivlyConfig, entitiesConfigSchema, evaluateStage, explainEntitiesConfig, fanOutJoins, filterSchema, hasRichMeta, identityRefs, isClosedStageType, joinFansOut, mappingsToEntitiesConfig, matchesCondition, missingRequiredFields, primaryKeyColumns, projectionFields, projectionSchema, quoteIdent, reconcile, relationshipSchema, relationshipViaSignature, relationshipsSchema, requiredFieldsFor, runSync, slugify, toObjectTypeSlug, validateEntitiesConfig, validateProjection, validateProjectionFilter };
|
|
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 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 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, coversUniqueKey, defineClivlyConfig, entitiesConfigSchema, evaluateStage, explainEntitiesConfig, fanOutJoins, filterSchema, hasRichMeta, hostOwnedFieldMessage, identityRefs, isClosedStageType, isHostOwned, joinFansOut, mappingsToEntitiesConfig, matchesCondition, missingRequiredFields, primaryKeyColumns, projectionFields, projectionSchema, quoteIdent, reconcile, rejectedCompanyFields, rejectedContactFields, relationshipSchema, relationshipViaSignature, relationshipsSchema, requiredFieldsFor, runSync, slugify, toObjectTypeSlug, validateEntitiesConfig, validateProjection, validateProjectionFilter };
|
package/internal.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import { a as
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
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 SyncResult, f as reconcile, l as SyncStore, n as MirrorRecord, o as SourceRow, p as runSync, r as PersistAction, s as SyncAction, t as EntitySyncResult } from "./sync-engine
|
|
1
|
+
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-CKcj4-M_.mjs";
|
|
2
|
+
import { A as UpdateDealInput, C as Task, D as TaskStatus, E as TaskPriority, M as ValueInterval, N as isClosedStageType, O as UpdateCompanyInput, S as StageType, T as TaskFilters, _ as OPEN_STAGE_TYPE, a as Contact, b as PipelineStageConfig, c as CreateActivityInput, d as CreateDealInput, f as CreateTaskInput, g as Note, h as DealStage, i as CompanyFilters, j as UpdateTaskInput, k as UpdateContactInput, 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 PipelineConfig, w as TaskEntityType, x as RecordSource, y as PipelineKind } from "./types-D08UzDqe.mjs";
|
|
3
|
+
import { a as authCustom, i as MembershipResolver, n as ClivlyUser, r as CrmMembership, t as ClivlyAuthAdapter } from "./auth-adapter-D54ajbl7.mjs";
|
|
4
|
+
import { t as CRMAdapter } from "./adapter-BWrOtOw5.mjs";
|
|
5
|
+
import { i as relationshipViaSignature, n as buildFilterFromDiscriminator, r as buildRelationships, t as RelationshipCandidate } from "./mapping-form-Btn-7gzv.mjs";
|
|
6
|
+
import { i as mappingsToEntitiesConfig, t as EntityMappingRow } from "./mappings-config-D6_oCi2Q.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-CwKVoK1w.mjs";
|
|
8
|
+
import { c as SyncResult, f as reconcile, l as SyncStore, n as MirrorRecord, o as SourceRow, p as runSync, r as PersistAction, s as SyncAction, t as EntitySyncResult } from "./sync-engine--M9EaONC.mjs";
|
|
9
|
+
import { 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, 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-Bjpq7S2G.mjs";
|
|
9
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-BA4c0RbD.mjs";
|
|
10
|
-
|
|
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 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 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 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 SourceRow, 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 UpdateContactInput, type UpdateDealInput, type UpdateTaskInput, type ValueInterval, authCustom, buildFilterFromDiscriminator, buildRelationships, columnMetaFor, compileEntityView, compileEntityViews, compileProjectionFrom, compileProjectionIdentity, compileProjectionJoins, compileProjectionPreview, compileProjectionSelect, coversUniqueKey, defineClivlyConfig, entitiesConfigSchema, evaluateStage, explainEntitiesConfig, fanOutJoins, filterSchema, hasRichMeta, identityRefs, isClosedStageType, joinFansOut, mappingsToEntitiesConfig, matchesCondition, missingRequiredFields, primaryKeyColumns, projectionFields, projectionSchema, quoteIdent, reconcile, relationshipSchema, relationshipViaSignature, relationshipsSchema, requiredFieldsFor, runSync, slugify, toObjectTypeSlug, validateEntitiesConfig, validateProjection, validateProjectionFilter };
|
|
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 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 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, coversUniqueKey, defineClivlyConfig, entitiesConfigSchema, evaluateStage, explainEntitiesConfig, fanOutJoins, filterSchema, hasRichMeta, hostOwnedFieldMessage, identityRefs, isClosedStageType, isHostOwned, joinFansOut, mappingsToEntitiesConfig, matchesCondition, missingRequiredFields, primaryKeyColumns, projectionFields, projectionSchema, quoteIdent, reconcile, rejectedCompanyFields, rejectedContactFields, relationshipSchema, relationshipViaSignature, relationshipsSchema, requiredFieldsFor, 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-
|
|
1
|
+
import { i as projectionSchema, n as PROJECTION_KEY_PATTERN, r as identityRefs, t as BASE_REF } from "./projection-DvNewmI1.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-Ccfb2IL9.mjs";
|
|
3
|
+
import { n as mappingsToEntitiesConfig } from "./mappings-config-CwQNQ6bA.mjs";
|
|
4
4
|
import { t as authCustom } from "./auth-adapter-gfVDxf3d.mjs";
|
|
5
|
+
import { a as hostOwnedFieldMessage, c as rejectedContactFields, i as toObjectTypeSlug, n as matchesCondition, o as isHostOwned, r as slugify, s as rejectedCompanyFields, t as evaluateStage } from "./internal-v6P9MZY1.mjs";
|
|
5
6
|
import { n as buildRelationships, r as relationshipViaSignature, t as buildFilterFromDiscriminator } from "./mapping-form-DigkuvFc.mjs";
|
|
6
|
-
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-
|
|
7
|
-
import { i as
|
|
8
|
-
import { i as
|
|
9
|
-
import { i as runSync, r as reconcile } from "./sync-engine-CTSIcLlZ.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-DweUaWRc.mjs";
|
|
8
|
+
import { i as explainEntitiesConfig, n as compileEntityView, r as compileEntityViews, t as DEFAULT_VIEW_PREFIX } from "./view-compiler-C-6RydKK.mjs";
|
|
9
|
+
import { i as runSync, r as reconcile } from "./sync-engine-Df2MCs_n.mjs";
|
|
10
10
|
import { n as isClosedStageType, t as OPEN_STAGE_TYPE } from "./types-YJTkXKzU.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, coversUniqueKey, defineClivlyConfig, entitiesConfigSchema, evaluateStage, explainEntitiesConfig, fanOutJoins, filterSchema, hasRichMeta, identityRefs, isClosedStageType, joinFansOut, mappingsToEntitiesConfig, matchesCondition, missingRequiredFields, primaryKeyColumns, projectionFields, projectionSchema, quoteIdent, reconcile, relationshipSchema, relationshipViaSignature, relationshipsSchema, requiredFieldsFor, runSync, slugify, toObjectTypeSlug, validateEntitiesConfig, validateProjection, validateProjectionFilter };
|
|
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, coversUniqueKey, defineClivlyConfig, entitiesConfigSchema, evaluateStage, explainEntitiesConfig, fanOutJoins, filterSchema, hasRichMeta, hostOwnedFieldMessage, identityRefs, isClosedStageType, isHostOwned, joinFansOut, mappingsToEntitiesConfig, matchesCondition, missingRequiredFields, primaryKeyColumns, projectionFields, projectionSchema, quoteIdent, reconcile, rejectedCompanyFields, rejectedContactFields, relationshipSchema, relationshipViaSignature, relationshipsSchema, requiredFieldsFor, runSync, slugify, toObjectTypeSlug, validateEntitiesConfig, validateProjection, validateProjectionFilter };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as RelationshipsMap, h as FilterExpr, x as RelationshipVia } from "./entity-config-
|
|
1
|
+
import { S as RelationshipsMap, h as FilterExpr, x as RelationshipVia } from "./entity-config-CKcj4-M_.mjs";
|
|
2
2
|
//#region ../core/src/mapping-form.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* A relationship the mapping UI can offer or has configured, in the shape the
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as RelationshipsMap, h as FilterExpr, x as RelationshipVia } from "./entity-config-
|
|
1
|
+
import { S as RelationshipsMap, h as FilterExpr, x as RelationshipVia } from "./entity-config-ApnT5j3X.cjs";
|
|
2
2
|
//#region ../core/src/mapping-form.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* A relationship the mapping UI can offer or has configured, in the shape the
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_entity_config = require("./entity-config-
|
|
1
|
+
const require_entity_config = require("./entity-config-BI4RYNKL.cjs");
|
|
2
2
|
//#region ../core/src/mappings-config.ts
|
|
3
3
|
const RESERVED_FIELD = "id";
|
|
4
4
|
/**
|
|
@@ -119,6 +119,7 @@ function entitiesToMappings(config) {
|
|
|
119
119
|
fieldMap: entity.projection ? {} : entity.fields
|
|
120
120
|
};
|
|
121
121
|
if (entity.filter) row.filter = entity.filter;
|
|
122
|
+
if (entity.isPrimaryContact) row.isPrimaryContact = true;
|
|
122
123
|
if (entity.relationships) row.relationships = entity.relationships;
|
|
123
124
|
if (entity.projection) row.projection = entity.projection;
|
|
124
125
|
if (entity.concept === CUSTOM_CONCEPT) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as projectionFields, t as CANONICAL_FIELDS } from "./entity-config-
|
|
1
|
+
import { f as projectionFields, t as CANONICAL_FIELDS } from "./entity-config-Ccfb2IL9.mjs";
|
|
2
2
|
//#region ../core/src/mappings-config.ts
|
|
3
3
|
const RESERVED_FIELD = "id";
|
|
4
4
|
/**
|
|
@@ -119,6 +119,7 @@ function entitiesToMappings(config) {
|
|
|
119
119
|
fieldMap: entity.projection ? {} : entity.fields
|
|
120
120
|
};
|
|
121
121
|
if (entity.filter) row.filter = entity.filter;
|
|
122
|
+
if (entity.isPrimaryContact) row.isPrimaryContact = true;
|
|
122
123
|
if (entity.relationships) row.relationships = entity.relationships;
|
|
123
124
|
if (entity.projection) row.projection = entity.projection;
|
|
124
125
|
if (entity.concept === CUSTOM_CONCEPT) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as ProjectionMapping, S as RelationshipsMap, a as ClivlyEntitiesConfig, h as FilterExpr } from "./entity-config-
|
|
1
|
+
import { R as ProjectionMapping, S as RelationshipsMap, a as ClivlyEntitiesConfig, h as FilterExpr } from "./entity-config-CKcj4-M_.mjs";
|
|
2
2
|
//#region ../core/src/mappings-config.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Mappings → Entity Config bridge.
|
|
@@ -65,6 +65,8 @@ interface MappingFromConfig {
|
|
|
65
65
|
entityKey: string;
|
|
66
66
|
fieldMap: Record<string, string>;
|
|
67
67
|
filter?: FilterExpr;
|
|
68
|
+
/** Rows from this entity are their company's point of contact. */
|
|
69
|
+
isPrimaryContact?: boolean;
|
|
68
70
|
/** Declared custom object, when the config declares one rather than pinning an id. */
|
|
69
71
|
objectType?: {
|
|
70
72
|
iconKey?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as ProjectionMapping, S as RelationshipsMap, a as ClivlyEntitiesConfig, h as FilterExpr } from "./entity-config-
|
|
1
|
+
import { R as ProjectionMapping, S as RelationshipsMap, a as ClivlyEntitiesConfig, h as FilterExpr } from "./entity-config-ApnT5j3X.cjs";
|
|
2
2
|
//#region ../core/src/mappings-config.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Mappings → Entity Config bridge.
|
|
@@ -65,6 +65,8 @@ interface MappingFromConfig {
|
|
|
65
65
|
entityKey: string;
|
|
66
66
|
fieldMap: Record<string, string>;
|
|
67
67
|
filter?: FilterExpr;
|
|
68
|
+
/** Rows from this entity are their company's point of contact. */
|
|
69
|
+
isPrimaryContact?: boolean;
|
|
68
70
|
/** Declared custom object, when the config declares one rather than pinning an id. */
|
|
69
71
|
objectType?: {
|
|
70
72
|
iconKey?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as ProjectionMapping, a as ClivlyEntitiesConfig } from "./entity-config-
|
|
1
|
+
import { R as ProjectionMapping, a as ClivlyEntitiesConfig } from "./entity-config-ApnT5j3X.cjs";
|
|
2
2
|
import { r as IntegrationState } from "./integration-state-BA4c0RbD.cjs";
|
|
3
3
|
//#region ../sdk/src/drizzle-meta.d.ts
|
|
4
4
|
declare const DRIZZLE_META: "__clivly_drizzle_source_meta__";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as ProjectionMapping, a as ClivlyEntitiesConfig } from "./entity-config-
|
|
1
|
+
import { R as ProjectionMapping, a as ClivlyEntitiesConfig } from "./entity-config-CKcj4-M_.mjs";
|
|
2
2
|
import { r as IntegrationState } from "./integration-state-BA4c0RbD.mjs";
|
|
3
3
|
//#region ../sdk/src/drizzle-meta.d.ts
|
|
4
4
|
declare const DRIZZLE_META: "__clivly_drizzle_source_meta__";
|
package/package.json
CHANGED
|
@@ -627,8 +627,10 @@ const $ZodCheckLessThan = /*@__PURE__*/ $constructor("$ZodCheckLessThan", (inst,
|
|
|
627
627
|
inst._zod.onattach.push((inst) => {
|
|
628
628
|
const bag = inst._zod.bag;
|
|
629
629
|
const curr = (def.inclusive ? bag.maximum : bag.exclusiveMaximum) ?? Number.POSITIVE_INFINITY;
|
|
630
|
-
if (def.value < curr)
|
|
631
|
-
|
|
630
|
+
if (def.value < curr) {
|
|
631
|
+
if (def.inclusive) bag.maximum = def.value;
|
|
632
|
+
else bag.exclusiveMaximum = def.value;
|
|
633
|
+
}
|
|
632
634
|
});
|
|
633
635
|
inst._zod.check = (payload) => {
|
|
634
636
|
if (def.inclusive ? payload.value <= def.value : payload.value < def.value) return;
|
|
@@ -649,8 +651,10 @@ const $ZodCheckGreaterThan = /*@__PURE__*/ $constructor("$ZodCheckGreaterThan",
|
|
|
649
651
|
inst._zod.onattach.push((inst) => {
|
|
650
652
|
const bag = inst._zod.bag;
|
|
651
653
|
const curr = (def.inclusive ? bag.minimum : bag.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY;
|
|
652
|
-
if (def.value > curr)
|
|
653
|
-
|
|
654
|
+
if (def.value > curr) {
|
|
655
|
+
if (def.inclusive) bag.minimum = def.value;
|
|
656
|
+
else bag.exclusiveMinimum = def.value;
|
|
657
|
+
}
|
|
654
658
|
});
|
|
655
659
|
inst._zod.check = (payload) => {
|
|
656
660
|
if (def.inclusive ? payload.value >= def.value : payload.value > def.value) return;
|
|
@@ -1552,13 +1556,13 @@ const $ZodObject = /*@__PURE__*/ $constructor("$ZodObject", (inst, def) => {
|
|
|
1552
1556
|
}
|
|
1553
1557
|
return propValues;
|
|
1554
1558
|
});
|
|
1555
|
-
const isObject$
|
|
1559
|
+
const isObject$1 = isObject;
|
|
1556
1560
|
const catchall = def.catchall;
|
|
1557
1561
|
let value;
|
|
1558
1562
|
inst._zod.parse = (payload, ctx) => {
|
|
1559
1563
|
value ?? (value = _normalized.value);
|
|
1560
1564
|
const input = payload.value;
|
|
1561
|
-
if (!isObject$
|
|
1565
|
+
if (!isObject$1(input)) {
|
|
1562
1566
|
payload.issues.push({
|
|
1563
1567
|
expected: "object",
|
|
1564
1568
|
code: "invalid_type",
|
|
@@ -1681,7 +1685,7 @@ const $ZodObjectJIT = /*@__PURE__*/ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
1681
1685
|
return (payload, ctx) => fn(shape, payload, ctx);
|
|
1682
1686
|
};
|
|
1683
1687
|
let fastpass;
|
|
1684
|
-
const isObject$
|
|
1688
|
+
const isObject$2 = isObject;
|
|
1685
1689
|
const jit = !globalConfig.jitless;
|
|
1686
1690
|
const fastEnabled = jit && allowsEval.value;
|
|
1687
1691
|
const catchall = def.catchall;
|
|
@@ -1689,7 +1693,7 @@ const $ZodObjectJIT = /*@__PURE__*/ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
1689
1693
|
inst._zod.parse = (payload, ctx) => {
|
|
1690
1694
|
value ?? (value = _normalized.value);
|
|
1691
1695
|
const input = payload.value;
|
|
1692
|
-
if (!isObject$
|
|
1696
|
+
if (!isObject$2(input)) {
|
|
1693
1697
|
payload.issues.push({
|
|
1694
1698
|
expected: "object",
|
|
1695
1699
|
code: "invalid_type",
|
|
@@ -3003,8 +3007,10 @@ function finalize(ctx, schema) {
|
|
|
3003
3007
|
defs[seen.defId] = seen.def;
|
|
3004
3008
|
}
|
|
3005
3009
|
}
|
|
3006
|
-
if (ctx.external) {} else if (Object.keys(defs).length > 0)
|
|
3007
|
-
|
|
3010
|
+
if (ctx.external) {} else if (Object.keys(defs).length > 0) {
|
|
3011
|
+
if (ctx.target === "draft-2020-12") result.$defs = defs;
|
|
3012
|
+
else result.definitions = defs;
|
|
3013
|
+
}
|
|
3008
3014
|
try {
|
|
3009
3015
|
const finalized = JSON.parse(JSON.stringify(result));
|
|
3010
3016
|
Object.defineProperty(finalized, "~standard", {
|
|
@@ -3117,16 +3123,18 @@ const numberProcessor = (schema, ctx, _json, _params) => {
|
|
|
3117
3123
|
const exMin = typeof exclusiveMinimum === "number" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);
|
|
3118
3124
|
const exMax = typeof exclusiveMaximum === "number" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);
|
|
3119
3125
|
const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
|
|
3120
|
-
if (exMin)
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
if (
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3126
|
+
if (exMin) {
|
|
3127
|
+
if (legacy) {
|
|
3128
|
+
json.minimum = exclusiveMinimum;
|
|
3129
|
+
json.exclusiveMinimum = true;
|
|
3130
|
+
} else json.exclusiveMinimum = exclusiveMinimum;
|
|
3131
|
+
} else if (typeof minimum === "number") json.minimum = minimum;
|
|
3132
|
+
if (exMax) {
|
|
3133
|
+
if (legacy) {
|
|
3134
|
+
json.maximum = exclusiveMaximum;
|
|
3135
|
+
json.exclusiveMaximum = true;
|
|
3136
|
+
} else json.exclusiveMaximum = exclusiveMaximum;
|
|
3137
|
+
} else if (typeof maximum === "number") json.maximum = maximum;
|
|
3130
3138
|
if (typeof multipleOf === "number") json.multipleOf = multipleOf;
|
|
3131
3139
|
};
|
|
3132
3140
|
const booleanProcessor = (_schema, _ctx, json, _params) => {
|
|
@@ -3147,9 +3155,10 @@ const literalProcessor = (schema, ctx, json, _params) => {
|
|
|
3147
3155
|
const vals = [];
|
|
3148
3156
|
for (const val of def.values) if (val === void 0) {
|
|
3149
3157
|
if (ctx.unrepresentable === "throw") throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
3150
|
-
} else if (typeof val === "bigint")
|
|
3151
|
-
|
|
3152
|
-
|
|
3158
|
+
} else if (typeof val === "bigint") {
|
|
3159
|
+
if (ctx.unrepresentable === "throw") throw new Error("BigInt literals cannot be represented in JSON Schema");
|
|
3160
|
+
else vals.push(Number(val));
|
|
3161
|
+
} else vals.push(val);
|
|
3153
3162
|
if (vals.length === 0) {} else if (vals.length === 1) {
|
|
3154
3163
|
const val = vals[0];
|
|
3155
3164
|
json.type = val === null ? "null" : typeof val;
|
|
@@ -627,8 +627,10 @@ const $ZodCheckLessThan = /*@__PURE__*/ $constructor("$ZodCheckLessThan", (inst,
|
|
|
627
627
|
inst._zod.onattach.push((inst) => {
|
|
628
628
|
const bag = inst._zod.bag;
|
|
629
629
|
const curr = (def.inclusive ? bag.maximum : bag.exclusiveMaximum) ?? Number.POSITIVE_INFINITY;
|
|
630
|
-
if (def.value < curr)
|
|
631
|
-
|
|
630
|
+
if (def.value < curr) {
|
|
631
|
+
if (def.inclusive) bag.maximum = def.value;
|
|
632
|
+
else bag.exclusiveMaximum = def.value;
|
|
633
|
+
}
|
|
632
634
|
});
|
|
633
635
|
inst._zod.check = (payload) => {
|
|
634
636
|
if (def.inclusive ? payload.value <= def.value : payload.value < def.value) return;
|
|
@@ -649,8 +651,10 @@ const $ZodCheckGreaterThan = /*@__PURE__*/ $constructor("$ZodCheckGreaterThan",
|
|
|
649
651
|
inst._zod.onattach.push((inst) => {
|
|
650
652
|
const bag = inst._zod.bag;
|
|
651
653
|
const curr = (def.inclusive ? bag.minimum : bag.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY;
|
|
652
|
-
if (def.value > curr)
|
|
653
|
-
|
|
654
|
+
if (def.value > curr) {
|
|
655
|
+
if (def.inclusive) bag.minimum = def.value;
|
|
656
|
+
else bag.exclusiveMinimum = def.value;
|
|
657
|
+
}
|
|
654
658
|
});
|
|
655
659
|
inst._zod.check = (payload) => {
|
|
656
660
|
if (def.inclusive ? payload.value >= def.value : payload.value > def.value) return;
|
|
@@ -1552,13 +1556,13 @@ const $ZodObject = /*@__PURE__*/ $constructor("$ZodObject", (inst, def) => {
|
|
|
1552
1556
|
}
|
|
1553
1557
|
return propValues;
|
|
1554
1558
|
});
|
|
1555
|
-
const isObject$
|
|
1559
|
+
const isObject$1 = isObject;
|
|
1556
1560
|
const catchall = def.catchall;
|
|
1557
1561
|
let value;
|
|
1558
1562
|
inst._zod.parse = (payload, ctx) => {
|
|
1559
1563
|
value ?? (value = _normalized.value);
|
|
1560
1564
|
const input = payload.value;
|
|
1561
|
-
if (!isObject$
|
|
1565
|
+
if (!isObject$1(input)) {
|
|
1562
1566
|
payload.issues.push({
|
|
1563
1567
|
expected: "object",
|
|
1564
1568
|
code: "invalid_type",
|
|
@@ -1681,7 +1685,7 @@ const $ZodObjectJIT = /*@__PURE__*/ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
1681
1685
|
return (payload, ctx) => fn(shape, payload, ctx);
|
|
1682
1686
|
};
|
|
1683
1687
|
let fastpass;
|
|
1684
|
-
const isObject$
|
|
1688
|
+
const isObject$2 = isObject;
|
|
1685
1689
|
const jit = !globalConfig.jitless;
|
|
1686
1690
|
const fastEnabled = jit && allowsEval.value;
|
|
1687
1691
|
const catchall = def.catchall;
|
|
@@ -1689,7 +1693,7 @@ const $ZodObjectJIT = /*@__PURE__*/ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
1689
1693
|
inst._zod.parse = (payload, ctx) => {
|
|
1690
1694
|
value ?? (value = _normalized.value);
|
|
1691
1695
|
const input = payload.value;
|
|
1692
|
-
if (!isObject$
|
|
1696
|
+
if (!isObject$2(input)) {
|
|
1693
1697
|
payload.issues.push({
|
|
1694
1698
|
expected: "object",
|
|
1695
1699
|
code: "invalid_type",
|
|
@@ -3003,8 +3007,10 @@ function finalize(ctx, schema) {
|
|
|
3003
3007
|
defs[seen.defId] = seen.def;
|
|
3004
3008
|
}
|
|
3005
3009
|
}
|
|
3006
|
-
if (ctx.external) {} else if (Object.keys(defs).length > 0)
|
|
3007
|
-
|
|
3010
|
+
if (ctx.external) {} else if (Object.keys(defs).length > 0) {
|
|
3011
|
+
if (ctx.target === "draft-2020-12") result.$defs = defs;
|
|
3012
|
+
else result.definitions = defs;
|
|
3013
|
+
}
|
|
3008
3014
|
try {
|
|
3009
3015
|
const finalized = JSON.parse(JSON.stringify(result));
|
|
3010
3016
|
Object.defineProperty(finalized, "~standard", {
|
|
@@ -3117,16 +3123,18 @@ const numberProcessor = (schema, ctx, _json, _params) => {
|
|
|
3117
3123
|
const exMin = typeof exclusiveMinimum === "number" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);
|
|
3118
3124
|
const exMax = typeof exclusiveMaximum === "number" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);
|
|
3119
3125
|
const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
|
|
3120
|
-
if (exMin)
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
if (
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3126
|
+
if (exMin) {
|
|
3127
|
+
if (legacy) {
|
|
3128
|
+
json.minimum = exclusiveMinimum;
|
|
3129
|
+
json.exclusiveMinimum = true;
|
|
3130
|
+
} else json.exclusiveMinimum = exclusiveMinimum;
|
|
3131
|
+
} else if (typeof minimum === "number") json.minimum = minimum;
|
|
3132
|
+
if (exMax) {
|
|
3133
|
+
if (legacy) {
|
|
3134
|
+
json.maximum = exclusiveMaximum;
|
|
3135
|
+
json.exclusiveMaximum = true;
|
|
3136
|
+
} else json.exclusiveMaximum = exclusiveMaximum;
|
|
3137
|
+
} else if (typeof maximum === "number") json.maximum = maximum;
|
|
3130
3138
|
if (typeof multipleOf === "number") json.multipleOf = multipleOf;
|
|
3131
3139
|
};
|
|
3132
3140
|
const booleanProcessor = (_schema, _ctx, json, _params) => {
|
|
@@ -3147,9 +3155,10 @@ const literalProcessor = (schema, ctx, json, _params) => {
|
|
|
3147
3155
|
const vals = [];
|
|
3148
3156
|
for (const val of def.values) if (val === void 0) {
|
|
3149
3157
|
if (ctx.unrepresentable === "throw") throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
3150
|
-
} else if (typeof val === "bigint")
|
|
3151
|
-
|
|
3152
|
-
|
|
3158
|
+
} else if (typeof val === "bigint") {
|
|
3159
|
+
if (ctx.unrepresentable === "throw") throw new Error("BigInt literals cannot be represented in JSON Schema");
|
|
3160
|
+
else vals.push(Number(val));
|
|
3161
|
+
} else vals.push(val);
|
|
3153
3162
|
if (vals.length === 0) {} else if (vals.length === 1) {
|
|
3154
3163
|
const val = vals[0];
|
|
3155
3164
|
json.type = val === null ? "null" : typeof val;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_projection = require("./projection-
|
|
2
|
-
const require_entity_config = require("./entity-config-
|
|
3
|
-
const require_mappings_config = require("./mappings-config-
|
|
1
|
+
const require_projection = require("./projection-BELgANG2.cjs");
|
|
2
|
+
const require_entity_config = require("./entity-config-BI4RYNKL.cjs");
|
|
3
|
+
const require_mappings_config = require("./mappings-config-BCsRLohT.cjs");
|
|
4
4
|
const require_drizzle_meta = require("./drizzle-meta-Bb1JWYqf.cjs");
|
|
5
5
|
//#region ../sdk/src/deployment-identity.ts
|
|
6
6
|
const MAX_DEPLOYMENT_ID_LENGTH = 128;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as projectionSchema } from "./projection-
|
|
2
|
-
import { _ as validateProjection, s as customObjectDeclarations, w as primaryKeyColumns } from "./entity-config-
|
|
3
|
-
import { t as entitiesToMappings } from "./mappings-config-
|
|
1
|
+
import { i as projectionSchema } from "./projection-DvNewmI1.mjs";
|
|
2
|
+
import { _ as validateProjection, s as customObjectDeclarations, w as primaryKeyColumns } from "./entity-config-Ccfb2IL9.mjs";
|
|
3
|
+
import { t as entitiesToMappings } from "./mappings-config-CwQNQ6bA.mjs";
|
|
4
4
|
import { t as DRIZZLE_META } from "./drizzle-meta-D-5k3n0i.mjs";
|
|
5
5
|
//#region ../sdk/src/deployment-identity.ts
|
|
6
6
|
const MAX_DEPLOYMENT_ID_LENGTH = 128;
|
package/sdk.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_entity_config = require("./entity-config-
|
|
3
|
-
const require_sdk = require("./sdk-
|
|
2
|
+
const require_entity_config = require("./entity-config-BI4RYNKL.cjs");
|
|
3
|
+
const require_sdk = require("./sdk-BvGSxBQc.cjs");
|
|
4
4
|
exports.ClivlyAuthError = require_sdk.ClivlyAuthError;
|
|
5
5
|
exports.ClivlyError = require_sdk.ClivlyError;
|
|
6
6
|
exports.ClivlyNetworkError = require_sdk.ClivlyNetworkError;
|
package/sdk.d.cts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { C as customObjectDeclarations, M as validateEntitiesConfig, a as ClivlyEntitiesConfig, f as CustomObjectDeclaration, l as ConfigValidationError, m as DiscoveredSchemaTable, u as ConfigValidationResult, w as defineClivlyConfig } from "./entity-config-
|
|
2
|
-
import { _ as RemoteProjectionsDescription, a as ClivlyConnectResult, c as ClivlyUser, d as DiscoveredTable, f as DoctorCheck, g as EnsuredObjectTypeResult, h as EnsuredMappingResult, i as ClivlyConnectReason, l as CreateChatSessionHandlerOptions, m as EnsureSchemaResult, n as ChatSessionRequestBody, o as ClivlySDK, p as DoctorReport, r as ChatWidgetVisitor, s as ClivlySDKConfig, u as CursorStore, y as SyncTriggerDescription } from "./namespace-probe-
|
|
1
|
+
import { C as customObjectDeclarations, M as validateEntitiesConfig, a as ClivlyEntitiesConfig, f as CustomObjectDeclaration, l as ConfigValidationError, m as DiscoveredSchemaTable, u as ConfigValidationResult, w as defineClivlyConfig } from "./entity-config-ApnT5j3X.cjs";
|
|
2
|
+
import { _ as RemoteProjectionsDescription, a as ClivlyConnectResult, c as ClivlyUser, d as DiscoveredTable, f as DoctorCheck, g as EnsuredObjectTypeResult, h as EnsuredMappingResult, i as ClivlyConnectReason, l as CreateChatSessionHandlerOptions, m as EnsureSchemaResult, n as ChatSessionRequestBody, o as ClivlySDK, p as DoctorReport, r as ChatWidgetVisitor, s as ClivlySDKConfig, u as CursorStore, y as SyncTriggerDescription } from "./namespace-probe-C5RLl74M.cjs";
|
|
3
3
|
//#region ../sdk/src/trigger-url.d.ts
|
|
4
|
-
declare function isPlaceholderUrl(value: string): boolean;
|
|
4
|
+
export declare function isPlaceholderUrl(value: string): boolean;
|
|
5
5
|
//#endregion
|
|
6
6
|
//#region ../sdk/src/chat-session.d.ts
|
|
7
|
-
declare function createChatSessionHandler({ allowedOrigins, apiKey, apiUrl, fetchImpl, resolveUser }: CreateChatSessionHandlerOptions): (request: Request) => Promise<Response>;
|
|
7
|
+
export declare function createChatSessionHandler({ allowedOrigins, apiKey, apiUrl, fetchImpl, resolveUser }: CreateChatSessionHandlerOptions): (request: Request) => Promise<Response>;
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region ../sdk/src/errors.d.ts
|
|
10
|
-
declare class ClivlyError extends Error {
|
|
10
|
+
export declare class ClivlyError extends Error {
|
|
11
11
|
/** HTTP status, or null when the request never completed (network error). */
|
|
12
12
|
readonly status: number | null;
|
|
13
13
|
readonly reason: ClivlyConnectResult["reason"];
|
|
@@ -21,11 +21,11 @@ declare class ClivlyError extends Error {
|
|
|
21
21
|
static from(result: ClivlyConnectResult): ClivlyError | null;
|
|
22
22
|
}
|
|
23
23
|
/** The API key was rejected (401) or lacks access (403). Not retryable. */
|
|
24
|
-
declare class ClivlyAuthError extends ClivlyError {}
|
|
24
|
+
export declare class ClivlyAuthError extends ClivlyError {}
|
|
25
25
|
/** Rate limited (429). Retryable after backoff / `Retry-After`. */
|
|
26
|
-
declare class ClivlyRateLimitError extends ClivlyError {}
|
|
26
|
+
export declare class ClivlyRateLimitError extends ClivlyError {}
|
|
27
27
|
/** The request never reached the server (network/DNS/TLS). Retryable. */
|
|
28
|
-
declare class ClivlyNetworkError extends ClivlyError {}
|
|
28
|
+
export declare class ClivlyNetworkError extends ClivlyError {}
|
|
29
29
|
//#endregion
|
|
30
30
|
//#region ../sdk/src/index.d.ts
|
|
31
31
|
/**
|
|
@@ -34,6 +34,6 @@ declare class ClivlyNetworkError extends ClivlyError {}
|
|
|
34
34
|
* backend today. Tunnel management and CRM write-back are scaffolded (see the
|
|
35
35
|
* clearly-marked TODOs) and land with the Cloudflare infrastructure.
|
|
36
36
|
*/
|
|
37
|
-
declare function createClivlySDK(config: ClivlySDKConfig): ClivlySDK;
|
|
37
|
+
export declare function createClivlySDK(config: ClivlySDKConfig): ClivlySDK;
|
|
38
38
|
//#endregion
|
|
39
|
-
export { type ChatSessionRequestBody, type ChatWidgetVisitor,
|
|
39
|
+
export { type ChatSessionRequestBody, type ChatWidgetVisitor, type ClivlyConnectReason, type ClivlyConnectResult, type ClivlyEntitiesConfig, type ClivlySDK, type ClivlySDKConfig, type ClivlyUser, type ConfigValidationError, type ConfigValidationResult, type CreateChatSessionHandlerOptions, type CursorStore, type CustomObjectDeclaration, type DiscoveredSchemaTable, type DiscoveredTable, type DoctorCheck, type DoctorReport, type EnsureSchemaResult, type EnsuredMappingResult, type EnsuredObjectTypeResult, type RemoteProjectionsDescription, type SyncTriggerDescription, customObjectDeclarations, defineClivlyConfig, validateEntitiesConfig };
|
package/sdk.d.mts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { C as customObjectDeclarations, M as validateEntitiesConfig, a as ClivlyEntitiesConfig, f as CustomObjectDeclaration, l as ConfigValidationError, m as DiscoveredSchemaTable, u as ConfigValidationResult, w as defineClivlyConfig } from "./entity-config-
|
|
2
|
-
import { _ as RemoteProjectionsDescription, a as ClivlyConnectResult, c as ClivlyUser, d as DiscoveredTable, f as DoctorCheck, g as EnsuredObjectTypeResult, h as EnsuredMappingResult, i as ClivlyConnectReason, l as CreateChatSessionHandlerOptions, m as EnsureSchemaResult, n as ChatSessionRequestBody, o as ClivlySDK, p as DoctorReport, r as ChatWidgetVisitor, s as ClivlySDKConfig, u as CursorStore, y as SyncTriggerDescription } from "./namespace-probe-
|
|
1
|
+
import { C as customObjectDeclarations, M as validateEntitiesConfig, a as ClivlyEntitiesConfig, f as CustomObjectDeclaration, l as ConfigValidationError, m as DiscoveredSchemaTable, u as ConfigValidationResult, w as defineClivlyConfig } from "./entity-config-CKcj4-M_.mjs";
|
|
2
|
+
import { _ as RemoteProjectionsDescription, a as ClivlyConnectResult, c as ClivlyUser, d as DiscoveredTable, f as DoctorCheck, g as EnsuredObjectTypeResult, h as EnsuredMappingResult, i as ClivlyConnectReason, l as CreateChatSessionHandlerOptions, m as EnsureSchemaResult, n as ChatSessionRequestBody, o as ClivlySDK, p as DoctorReport, r as ChatWidgetVisitor, s as ClivlySDKConfig, u as CursorStore, y as SyncTriggerDescription } from "./namespace-probe-CNQKSmxz.mjs";
|
|
3
3
|
//#region ../sdk/src/trigger-url.d.ts
|
|
4
|
-
declare function isPlaceholderUrl(value: string): boolean;
|
|
4
|
+
export declare function isPlaceholderUrl(value: string): boolean;
|
|
5
5
|
//#endregion
|
|
6
6
|
//#region ../sdk/src/chat-session.d.ts
|
|
7
|
-
declare function createChatSessionHandler({ allowedOrigins, apiKey, apiUrl, fetchImpl, resolveUser }: CreateChatSessionHandlerOptions): (request: Request) => Promise<Response>;
|
|
7
|
+
export declare function createChatSessionHandler({ allowedOrigins, apiKey, apiUrl, fetchImpl, resolveUser }: CreateChatSessionHandlerOptions): (request: Request) => Promise<Response>;
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region ../sdk/src/errors.d.ts
|
|
10
|
-
declare class ClivlyError extends Error {
|
|
10
|
+
export declare class ClivlyError extends Error {
|
|
11
11
|
/** HTTP status, or null when the request never completed (network error). */
|
|
12
12
|
readonly status: number | null;
|
|
13
13
|
readonly reason: ClivlyConnectResult["reason"];
|
|
@@ -21,11 +21,11 @@ declare class ClivlyError extends Error {
|
|
|
21
21
|
static from(result: ClivlyConnectResult): ClivlyError | null;
|
|
22
22
|
}
|
|
23
23
|
/** The API key was rejected (401) or lacks access (403). Not retryable. */
|
|
24
|
-
declare class ClivlyAuthError extends ClivlyError {}
|
|
24
|
+
export declare class ClivlyAuthError extends ClivlyError {}
|
|
25
25
|
/** Rate limited (429). Retryable after backoff / `Retry-After`. */
|
|
26
|
-
declare class ClivlyRateLimitError extends ClivlyError {}
|
|
26
|
+
export declare class ClivlyRateLimitError extends ClivlyError {}
|
|
27
27
|
/** The request never reached the server (network/DNS/TLS). Retryable. */
|
|
28
|
-
declare class ClivlyNetworkError extends ClivlyError {}
|
|
28
|
+
export declare class ClivlyNetworkError extends ClivlyError {}
|
|
29
29
|
//#endregion
|
|
30
30
|
//#region ../sdk/src/index.d.ts
|
|
31
31
|
/**
|
|
@@ -34,6 +34,6 @@ declare class ClivlyNetworkError extends ClivlyError {}
|
|
|
34
34
|
* backend today. Tunnel management and CRM write-back are scaffolded (see the
|
|
35
35
|
* clearly-marked TODOs) and land with the Cloudflare infrastructure.
|
|
36
36
|
*/
|
|
37
|
-
declare function createClivlySDK(config: ClivlySDKConfig): ClivlySDK;
|
|
37
|
+
export declare function createClivlySDK(config: ClivlySDKConfig): ClivlySDK;
|
|
38
38
|
//#endregion
|
|
39
|
-
export { type ChatSessionRequestBody, type ChatWidgetVisitor,
|
|
39
|
+
export { type ChatSessionRequestBody, type ChatWidgetVisitor, type ClivlyConnectReason, type ClivlyConnectResult, type ClivlyEntitiesConfig, type ClivlySDK, type ClivlySDKConfig, type ClivlyUser, type ConfigValidationError, type ConfigValidationResult, type CreateChatSessionHandlerOptions, type CursorStore, type CustomObjectDeclaration, type DiscoveredSchemaTable, type DiscoveredTable, type DoctorCheck, type DoctorReport, type EnsureSchemaResult, type EnsuredMappingResult, type EnsuredObjectTypeResult, type RemoteProjectionsDescription, type SyncTriggerDescription, customObjectDeclarations, defineClivlyConfig, validateEntitiesConfig };
|
package/sdk.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { c as defineClivlyConfig, g as validateEntitiesConfig, s as customObjectDeclarations } from "./entity-config-
|
|
2
|
-
import { a as ClivlyRateLimitError, i as ClivlyNetworkError, n as ClivlyAuthError, o as createChatSessionHandler, r as ClivlyError, s as isPlaceholderUrl, t as createClivlySDK } from "./sdk-
|
|
1
|
+
import { c as defineClivlyConfig, g as validateEntitiesConfig, s as customObjectDeclarations } from "./entity-config-Ccfb2IL9.mjs";
|
|
2
|
+
import { a as ClivlyRateLimitError, i as ClivlyNetworkError, n as ClivlyAuthError, o as createChatSessionHandler, r as ClivlyError, s as isPlaceholderUrl, t as createClivlySDK } from "./sdk-C-Pjxj2y.mjs";
|
|
3
3
|
export { ClivlyAuthError, ClivlyError, ClivlyNetworkError, ClivlyRateLimitError, createChatSessionHandler, createClivlySDK, customObjectDeclarations, defineClivlyConfig, isPlaceholderUrl, validateEntitiesConfig };
|