@clivly/core 0.9.1 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -3
- package/dist/drizzle.d.cts +1 -1
- package/dist/drizzle.d.mts +1 -1
- package/dist/{entity-config-Dh8aEcgj.cjs → entity-config-Bfq3OkCU.cjs} +36 -12
- package/dist/{entity-config-8Fgr6IOH.mjs → entity-config-DFJ8L9jm.mjs} +31 -13
- package/dist/{entity-config-CLxI8dVb.d.cts → entity-config-buOIVtMM.d.cts} +25 -1
- package/dist/{entity-config-CLxI8dVb.d.mts → entity-config-buOIVtMM.d.mts} +25 -1
- package/dist/entity-config.cjs +2 -1
- package/dist/entity-config.d.cts +2 -2
- package/dist/entity-config.d.mts +2 -2
- package/dist/entity-config.mjs +2 -2
- package/dist/entity-heuristics.cjs +1 -1
- package/dist/entity-heuristics.d.cts +1 -1
- package/dist/entity-heuristics.d.mts +1 -1
- package/dist/entity-heuristics.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.mts +3 -2
- package/dist/index.mjs +1 -1
- package/dist/integration-state.cjs +98 -26
- package/dist/integration-state.d.cts +94 -7
- package/dist/integration-state.d.mts +94 -7
- package/dist/integration-state.mjs +96 -27
- package/dist/mapping-form.d.cts +1 -1
- package/dist/mapping-form.d.mts +1 -1
- package/dist/mappings-config.cjs +25 -1
- package/dist/mappings-config.d.cts +40 -2
- package/dist/mappings-config.d.mts +40 -2
- package/dist/mappings-config.mjs +25 -2
- package/dist/sync-engine.d.cts +1 -1
- package/dist/sync-engine.d.mts +1 -1
- package/dist/view-compiler.d.cts +1 -1
- package/dist/view-compiler.d.mts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,6 +14,9 @@ the view compiler that turns a mapping into SQL. Its only runtime dependency is
|
|
|
14
14
|
> to import it from. Reach for `@clivly/core` when you are building an adapter
|
|
15
15
|
> or working with the entity config outside an SDK instance.
|
|
16
16
|
|
|
17
|
+
Connection and presence transport live in `@clivly/sdk`, not this package.
|
|
18
|
+
That includes the opt-in WebSocket presence transport and its HTTP fallback.
|
|
19
|
+
|
|
17
20
|
## Prerequisites
|
|
18
21
|
|
|
19
22
|
| Requirement | Version / note |
|
|
@@ -32,8 +35,15 @@ npm install @clivly/core
|
|
|
32
35
|
Every subpath below is importable independently, so you pull in only what you
|
|
33
36
|
use. The root (`.`) re-exports the contracts, entity config, mapping form, sync
|
|
34
37
|
engine and view compiler — but **not** `/drizzle` (which needs the optional
|
|
35
|
-
peer), `/entity-heuristics`, `/mapping-score
|
|
36
|
-
|
|
38
|
+
peer), `/entity-heuristics`, `/mapping-score` or `/env-file`.
|
|
39
|
+
|
|
40
|
+
`/integration-state` is a deliberate half-exception: the root re-exports its
|
|
41
|
+
**types only** (`IntegrationState`, `IntegrationStep`, `IntegrationFacts`,
|
|
42
|
+
`IntegrationStatus`, `ConnectionLiveness`, `NextAction`, `StepId`, `StepState`,
|
|
43
|
+
`StepProblem`), so a consumer can describe a setup ladder without reaching for
|
|
44
|
+
the subpath. `computeIntegrationState` stays behind `/integration-state`, so
|
|
45
|
+
there is one implementation of the ladder rather than a second one growing in a
|
|
46
|
+
client.
|
|
37
47
|
|
|
38
48
|
| Entry | Contents |
|
|
39
49
|
| --- | --- |
|
|
@@ -44,7 +54,7 @@ peer), `/entity-heuristics`, `/mapping-score`, `/integration-state` or
|
|
|
44
54
|
| `@clivly/core/types` | Shared domain types (`Contact`, `Company`, `Deal`, `Task`, `Note`, `Activity`, inputs, filters, `CrmRole`) |
|
|
45
55
|
| `@clivly/core/drizzle` | `discoverFromDrizzle(schema)` — derive the discovery shape (including keys, types, nullability and FK edges) from a Drizzle schema object; plus `buildUniqueConstraints` / `buildColumnsMeta` for reflecting a single table. Requires the optional `drizzle-orm` peer |
|
|
46
56
|
| `@clivly/core/view-compiler` | `compileEntityView`, `compileEntityViews`, `explainEntitiesConfig`, `DEFAULT_VIEW_PREFIX` |
|
|
47
|
-
| `@clivly/core/mappings-config` | `mappingsToEntitiesConfig`, `EntityMappingRow` — turn `crm_entity_mappings` rows into an entities config |
|
|
57
|
+
| `@clivly/core/mappings-config` | `mappingsToEntitiesConfig`, `EntityMappingRow` — turn `crm_entity_mappings` rows into an entities config; `entitiesToMappings`, `MappingFromConfig` — the inverse, turning a config into the mapping rows `clivly push-schema` writes |
|
|
48
58
|
| `@clivly/core/mapping-form` | `buildFilterFromDiscriminator`, `buildRelationships`, `relationshipViaSignature` — mapping-UI helpers |
|
|
49
59
|
| `@clivly/core/mapping-score` | Scoring helpers for ranking candidate mappings |
|
|
50
60
|
| `@clivly/core/entity-heuristics` | Table-name heuristics that guess which table holds contacts/companies |
|
package/dist/drizzle.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as DiscoveredSchemaTable, p as DiscoveredColumnMeta } from "./entity-config-buOIVtMM.cjs";
|
|
2
2
|
import { Table } from "drizzle-orm";
|
|
3
3
|
//#region src/drizzle.d.ts
|
|
4
4
|
/**
|
package/dist/drizzle.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as DiscoveredSchemaTable, p as DiscoveredColumnMeta } from "./entity-config-buOIVtMM.mjs";
|
|
2
2
|
import { Table } from "drizzle-orm";
|
|
3
3
|
//#region src/drizzle.d.ts
|
|
4
4
|
/**
|
|
@@ -438,10 +438,23 @@ const entitySchema = zod.z.strictObject({
|
|
|
438
438
|
relationships: zod.z.record(zod.z.string(), relationshipSchema).optional(),
|
|
439
439
|
/**
|
|
440
440
|
* For a "custom" entity, the crm_object_types row this materializes into.
|
|
441
|
-
*
|
|
441
|
+
* Server-generated, so pasting one into config couples the file to a
|
|
442
|
+
* specific workspace. Prefer declaring `objectType` and letting
|
|
443
|
+
* `clivly push-schema` resolve the id by slug.
|
|
442
444
|
*/
|
|
443
445
|
targetObjectTypeId: zod.z.string().min(1).optional(),
|
|
444
446
|
/**
|
|
447
|
+
* Declares the custom object this entity materializes into, so config is
|
|
448
|
+
* self-contained: the entity key is the slug (unique per org and immutable),
|
|
449
|
+
* and `clivly push-schema` creates the object type if the workspace does not
|
|
450
|
+
* have it yet. An alternative to pasting a `targetObjectTypeId`.
|
|
451
|
+
*/
|
|
452
|
+
objectType: zod.z.strictObject({
|
|
453
|
+
name: zod.z.string().min(1),
|
|
454
|
+
pluralName: zod.z.string().min(1).optional(),
|
|
455
|
+
iconKey: zod.z.string().min(1).optional()
|
|
456
|
+
}).optional(),
|
|
457
|
+
/**
|
|
445
458
|
* Advanced mapping: derive this entity from a base table plus explicit joins
|
|
446
459
|
* instead of a single source table. Valid only for `concept: "custom"`.
|
|
447
460
|
*
|
|
@@ -483,17 +496,22 @@ function defaultWarn(message) {
|
|
|
483
496
|
console.warn(message);
|
|
484
497
|
}
|
|
485
498
|
/**
|
|
486
|
-
*
|
|
487
|
-
*
|
|
488
|
-
*
|
|
489
|
-
*
|
|
490
|
-
* It also catches the silent-data-loss footgun: a non-canonical field key for a
|
|
491
|
-
* materialised concept (e.g. `fullName` instead of `name` on a `contact`) has no
|
|
492
|
-
* destination column, so the store would write an empty value. By default these
|
|
493
|
-
* are reported via `onWarn` (a `console.warn`); pass `{ strict: true }` to throw
|
|
494
|
-
* a `ClivlyConfigError` instead. Does NOT validate against the host schema — that
|
|
495
|
-
* needs the discovered schema; see `validateEntitiesConfig`.
|
|
499
|
+
* The custom objects a config declares, keyed by entity slug. Entities that
|
|
500
|
+
* already carry an explicit `targetObjectTypeId` are omitted: their object type
|
|
501
|
+
* exists server-side and re-declaring it would be a no-op at best.
|
|
496
502
|
*/
|
|
503
|
+
function customObjectDeclarations(config) {
|
|
504
|
+
const declarations = [];
|
|
505
|
+
for (const [slug, entity] of Object.entries(config.entities)) {
|
|
506
|
+
if (entity.concept !== "custom" || entity.targetObjectTypeId) continue;
|
|
507
|
+
if (!entity.objectType) continue;
|
|
508
|
+
declarations.push({
|
|
509
|
+
slug,
|
|
510
|
+
...entity.objectType
|
|
511
|
+
});
|
|
512
|
+
}
|
|
513
|
+
return declarations;
|
|
514
|
+
}
|
|
497
515
|
/**
|
|
498
516
|
* The `fields` entry a projection binding implies, qualified as `ref.column`.
|
|
499
517
|
* Qualified rather than bare: two bindings can pull the same column name from
|
|
@@ -633,7 +651,7 @@ function validateEntity(v, config, key, entity, schema) {
|
|
|
633
651
|
}
|
|
634
652
|
if (entity.projection) {
|
|
635
653
|
if (entity.concept !== "custom") v.report(`${base}.projection`, `projection mappings are only supported for concept "${CUSTOM_CONCEPT}"`);
|
|
636
|
-
if (!entity.targetObjectTypeId) v.report(`${base}.targetObjectTypeId`, "a projection mapping must target a custom object type");
|
|
654
|
+
if (!(entity.targetObjectTypeId || entity.objectType)) v.report(`${base}.targetObjectTypeId`, "a projection mapping must target a custom object type — declare `objectType: { name: \"…\" }` (recommended: the entity key becomes its slug) or set an explicit `targetObjectTypeId`");
|
|
637
655
|
if (entity.source !== entity.projection.baseTable) v.report(`${base}.source`, `"source" ("${entity.source}") must match "projection.baseTable" ("${entity.projection.baseTable}") — the view compiler reads baseTable and the sync engine reads source, so a mismatch makes them disagree about which table this entity is`);
|
|
638
656
|
for (const error of validateProjection(entity.projection, schema, base)) v.report(error.path, error.message);
|
|
639
657
|
validateReadOnly(v, base, entity);
|
|
@@ -705,6 +723,12 @@ Object.defineProperty(exports, "coversUniqueKey", {
|
|
|
705
723
|
return coversUniqueKey;
|
|
706
724
|
}
|
|
707
725
|
});
|
|
726
|
+
Object.defineProperty(exports, "customObjectDeclarations", {
|
|
727
|
+
enumerable: true,
|
|
728
|
+
get: function() {
|
|
729
|
+
return customObjectDeclarations;
|
|
730
|
+
}
|
|
731
|
+
});
|
|
708
732
|
Object.defineProperty(exports, "defineClivlyConfig", {
|
|
709
733
|
enumerable: true,
|
|
710
734
|
get: function() {
|
|
@@ -438,10 +438,23 @@ const entitySchema = z.strictObject({
|
|
|
438
438
|
relationships: z.record(z.string(), relationshipSchema).optional(),
|
|
439
439
|
/**
|
|
440
440
|
* For a "custom" entity, the crm_object_types row this materializes into.
|
|
441
|
-
*
|
|
441
|
+
* Server-generated, so pasting one into config couples the file to a
|
|
442
|
+
* specific workspace. Prefer declaring `objectType` and letting
|
|
443
|
+
* `clivly push-schema` resolve the id by slug.
|
|
442
444
|
*/
|
|
443
445
|
targetObjectTypeId: z.string().min(1).optional(),
|
|
444
446
|
/**
|
|
447
|
+
* Declares the custom object this entity materializes into, so config is
|
|
448
|
+
* self-contained: the entity key is the slug (unique per org and immutable),
|
|
449
|
+
* and `clivly push-schema` creates the object type if the workspace does not
|
|
450
|
+
* have it yet. An alternative to pasting a `targetObjectTypeId`.
|
|
451
|
+
*/
|
|
452
|
+
objectType: z.strictObject({
|
|
453
|
+
name: z.string().min(1),
|
|
454
|
+
pluralName: z.string().min(1).optional(),
|
|
455
|
+
iconKey: z.string().min(1).optional()
|
|
456
|
+
}).optional(),
|
|
457
|
+
/**
|
|
445
458
|
* Advanced mapping: derive this entity from a base table plus explicit joins
|
|
446
459
|
* instead of a single source table. Valid only for `concept: "custom"`.
|
|
447
460
|
*
|
|
@@ -483,17 +496,22 @@ function defaultWarn(message) {
|
|
|
483
496
|
console.warn(message);
|
|
484
497
|
}
|
|
485
498
|
/**
|
|
486
|
-
*
|
|
487
|
-
*
|
|
488
|
-
*
|
|
489
|
-
*
|
|
490
|
-
* It also catches the silent-data-loss footgun: a non-canonical field key for a
|
|
491
|
-
* materialised concept (e.g. `fullName` instead of `name` on a `contact`) has no
|
|
492
|
-
* destination column, so the store would write an empty value. By default these
|
|
493
|
-
* are reported via `onWarn` (a `console.warn`); pass `{ strict: true }` to throw
|
|
494
|
-
* a `ClivlyConfigError` instead. Does NOT validate against the host schema — that
|
|
495
|
-
* needs the discovered schema; see `validateEntitiesConfig`.
|
|
499
|
+
* The custom objects a config declares, keyed by entity slug. Entities that
|
|
500
|
+
* already carry an explicit `targetObjectTypeId` are omitted: their object type
|
|
501
|
+
* exists server-side and re-declaring it would be a no-op at best.
|
|
496
502
|
*/
|
|
503
|
+
function customObjectDeclarations(config) {
|
|
504
|
+
const declarations = [];
|
|
505
|
+
for (const [slug, entity] of Object.entries(config.entities)) {
|
|
506
|
+
if (entity.concept !== "custom" || entity.targetObjectTypeId) continue;
|
|
507
|
+
if (!entity.objectType) continue;
|
|
508
|
+
declarations.push({
|
|
509
|
+
slug,
|
|
510
|
+
...entity.objectType
|
|
511
|
+
});
|
|
512
|
+
}
|
|
513
|
+
return declarations;
|
|
514
|
+
}
|
|
497
515
|
/**
|
|
498
516
|
* The `fields` entry a projection binding implies, qualified as `ref.column`.
|
|
499
517
|
* Qualified rather than bare: two bindings can pull the same column name from
|
|
@@ -633,7 +651,7 @@ function validateEntity(v, config, key, entity, schema) {
|
|
|
633
651
|
}
|
|
634
652
|
if (entity.projection) {
|
|
635
653
|
if (entity.concept !== "custom") v.report(`${base}.projection`, `projection mappings are only supported for concept "${CUSTOM_CONCEPT}"`);
|
|
636
|
-
if (!entity.targetObjectTypeId) v.report(`${base}.targetObjectTypeId`, "a projection mapping must target a custom object type");
|
|
654
|
+
if (!(entity.targetObjectTypeId || entity.objectType)) v.report(`${base}.targetObjectTypeId`, "a projection mapping must target a custom object type — declare `objectType: { name: \"…\" }` (recommended: the entity key becomes its slug) or set an explicit `targetObjectTypeId`");
|
|
637
655
|
if (entity.source !== entity.projection.baseTable) v.report(`${base}.source`, `"source" ("${entity.source}") must match "projection.baseTable" ("${entity.projection.baseTable}") — the view compiler reads baseTable and the sync engine reads source, so a mismatch makes them disagree about which table this entity is`);
|
|
638
656
|
for (const error of validateProjection(entity.projection, schema, base)) v.report(error.path, error.message);
|
|
639
657
|
validateReadOnly(v, base, entity);
|
|
@@ -663,4 +681,4 @@ function validateEntitiesConfig(config, schema) {
|
|
|
663
681
|
};
|
|
664
682
|
}
|
|
665
683
|
//#endregion
|
|
666
|
-
export {
|
|
684
|
+
export { columnMetaFor as _, MATERIALIZING_CONCEPTS as a, primaryKeyColumns as b, entitiesConfigSchema as c, relationshipSchema as d, relationshipsSchema as f, joinFansOut as g, fanOutJoins as h, ClivlyConfigError as i, filterSchema as l, validateProjection as m, CRM_CONCEPTS as n, customObjectDeclarations as o, validateEntitiesConfig as p, CUSTOM_CONCEPT as r, defineClivlyConfig as s, CANONICAL_FIELDS as t, projectionFields as u, coversUniqueKey as v, hasRichMeta as y };
|
|
@@ -311,6 +311,11 @@ declare const entitySchema: z.ZodObject<{
|
|
|
311
311
|
}, z.core.$strict>]>;
|
|
312
312
|
}, z.core.$strict>>>;
|
|
313
313
|
targetObjectTypeId: z.ZodOptional<z.ZodString>;
|
|
314
|
+
objectType: z.ZodOptional<z.ZodObject<{
|
|
315
|
+
name: z.ZodString;
|
|
316
|
+
pluralName: z.ZodOptional<z.ZodString>;
|
|
317
|
+
iconKey: z.ZodOptional<z.ZodString>;
|
|
318
|
+
}, z.core.$strict>>;
|
|
314
319
|
projection: z.ZodOptional<z.ZodObject<{
|
|
315
320
|
version: z.ZodLiteral<1>;
|
|
316
321
|
kind: z.ZodLiteral<"projection">;
|
|
@@ -406,6 +411,11 @@ declare const entitiesConfigSchema: z.ZodObject<{
|
|
|
406
411
|
}, z.core.$strict>]>;
|
|
407
412
|
}, z.core.$strict>>>;
|
|
408
413
|
targetObjectTypeId: z.ZodOptional<z.ZodString>;
|
|
414
|
+
objectType: z.ZodOptional<z.ZodObject<{
|
|
415
|
+
name: z.ZodString;
|
|
416
|
+
pluralName: z.ZodOptional<z.ZodString>;
|
|
417
|
+
iconKey: z.ZodOptional<z.ZodString>;
|
|
418
|
+
}, z.core.$strict>>;
|
|
409
419
|
projection: z.ZodOptional<z.ZodObject<{
|
|
410
420
|
version: z.ZodLiteral<1>;
|
|
411
421
|
kind: z.ZodLiteral<"projection">;
|
|
@@ -488,6 +498,20 @@ declare class ClivlyConfigError extends Error {
|
|
|
488
498
|
* a `ClivlyConfigError` instead. Does NOT validate against the host schema — that
|
|
489
499
|
* needs the discovered schema; see `validateEntitiesConfig`.
|
|
490
500
|
*/
|
|
501
|
+
/** A custom object the host declares in config, for `push-schema` to ensure. */
|
|
502
|
+
interface CustomObjectDeclaration {
|
|
503
|
+
iconKey?: string;
|
|
504
|
+
name: string;
|
|
505
|
+
pluralName?: string;
|
|
506
|
+
/** Unique per org and immutable — the entity key. */
|
|
507
|
+
slug: string;
|
|
508
|
+
}
|
|
509
|
+
/**
|
|
510
|
+
* The custom objects a config declares, keyed by entity slug. Entities that
|
|
511
|
+
* already carry an explicit `targetObjectTypeId` are omitted: their object type
|
|
512
|
+
* exists server-side and re-declaring it would be a no-op at best.
|
|
513
|
+
*/
|
|
514
|
+
declare function customObjectDeclarations(config: ClivlyEntitiesConfig): CustomObjectDeclaration[];
|
|
491
515
|
/**
|
|
492
516
|
* The `fields` entry a projection binding implies, qualified as `ref.column`.
|
|
493
517
|
* Qualified rather than bare: two bindings can pull the same column name from
|
|
@@ -553,4 +577,4 @@ interface ConfigValidationResult {
|
|
|
553
577
|
*/
|
|
554
578
|
declare function validateEntitiesConfig(config: ClivlyEntitiesConfig, schema: DiscoveredSchemaTable[]): ConfigValidationResult;
|
|
555
579
|
//#endregion
|
|
556
|
-
export {
|
|
580
|
+
export { BASE_REF as A, defineClivlyConfig as C, relationshipSchema as D, projectionFields as E, ProjectionRef as F, identityRefs as I, projectionSchema as L, ProjectionIdentity as M, ProjectionJoin as N, relationshipsSchema as O, ProjectionMapping as P, customObjectDeclarations as S, filterSchema as T, MATERIALIZING_CONCEPTS as _, ClivlyEntitiesConfig as a, RelationshipVia as b, ClivlyEntityConfigInput as c, CrmConcept as d, CustomObjectDeclaration as f, FilterValue as g, FilterExpr as h, ClivlyConfigError as i, ProjectionFieldBinding as j, validateEntitiesConfig as k, ConfigValidationError as l, DiscoveredSchemaTable as m, CRM_CONCEPTS as n, ClivlyEntitiesConfigInput as o, DiscoveredColumnMeta as p, CUSTOM_CONCEPT as r, ClivlyEntityConfig as s, CANONICAL_FIELDS as t, ConfigValidationResult as u, MaterializingConcept as v, entitiesConfigSchema as w, RelationshipsMap as x, RelationshipSpec as y };
|
|
@@ -311,6 +311,11 @@ declare const entitySchema: z.ZodObject<{
|
|
|
311
311
|
}, z.core.$strict>]>;
|
|
312
312
|
}, z.core.$strict>>>;
|
|
313
313
|
targetObjectTypeId: z.ZodOptional<z.ZodString>;
|
|
314
|
+
objectType: z.ZodOptional<z.ZodObject<{
|
|
315
|
+
name: z.ZodString;
|
|
316
|
+
pluralName: z.ZodOptional<z.ZodString>;
|
|
317
|
+
iconKey: z.ZodOptional<z.ZodString>;
|
|
318
|
+
}, z.core.$strict>>;
|
|
314
319
|
projection: z.ZodOptional<z.ZodObject<{
|
|
315
320
|
version: z.ZodLiteral<1>;
|
|
316
321
|
kind: z.ZodLiteral<"projection">;
|
|
@@ -406,6 +411,11 @@ declare const entitiesConfigSchema: z.ZodObject<{
|
|
|
406
411
|
}, z.core.$strict>]>;
|
|
407
412
|
}, z.core.$strict>>>;
|
|
408
413
|
targetObjectTypeId: z.ZodOptional<z.ZodString>;
|
|
414
|
+
objectType: z.ZodOptional<z.ZodObject<{
|
|
415
|
+
name: z.ZodString;
|
|
416
|
+
pluralName: z.ZodOptional<z.ZodString>;
|
|
417
|
+
iconKey: z.ZodOptional<z.ZodString>;
|
|
418
|
+
}, z.core.$strict>>;
|
|
409
419
|
projection: z.ZodOptional<z.ZodObject<{
|
|
410
420
|
version: z.ZodLiteral<1>;
|
|
411
421
|
kind: z.ZodLiteral<"projection">;
|
|
@@ -488,6 +498,20 @@ declare class ClivlyConfigError extends Error {
|
|
|
488
498
|
* a `ClivlyConfigError` instead. Does NOT validate against the host schema — that
|
|
489
499
|
* needs the discovered schema; see `validateEntitiesConfig`.
|
|
490
500
|
*/
|
|
501
|
+
/** A custom object the host declares in config, for `push-schema` to ensure. */
|
|
502
|
+
interface CustomObjectDeclaration {
|
|
503
|
+
iconKey?: string;
|
|
504
|
+
name: string;
|
|
505
|
+
pluralName?: string;
|
|
506
|
+
/** Unique per org and immutable — the entity key. */
|
|
507
|
+
slug: string;
|
|
508
|
+
}
|
|
509
|
+
/**
|
|
510
|
+
* The custom objects a config declares, keyed by entity slug. Entities that
|
|
511
|
+
* already carry an explicit `targetObjectTypeId` are omitted: their object type
|
|
512
|
+
* exists server-side and re-declaring it would be a no-op at best.
|
|
513
|
+
*/
|
|
514
|
+
declare function customObjectDeclarations(config: ClivlyEntitiesConfig): CustomObjectDeclaration[];
|
|
491
515
|
/**
|
|
492
516
|
* The `fields` entry a projection binding implies, qualified as `ref.column`.
|
|
493
517
|
* Qualified rather than bare: two bindings can pull the same column name from
|
|
@@ -553,4 +577,4 @@ interface ConfigValidationResult {
|
|
|
553
577
|
*/
|
|
554
578
|
declare function validateEntitiesConfig(config: ClivlyEntitiesConfig, schema: DiscoveredSchemaTable[]): ConfigValidationResult;
|
|
555
579
|
//#endregion
|
|
556
|
-
export {
|
|
580
|
+
export { BASE_REF as A, defineClivlyConfig as C, relationshipSchema as D, projectionFields as E, ProjectionRef as F, identityRefs as I, projectionSchema as L, ProjectionIdentity as M, ProjectionJoin as N, relationshipsSchema as O, ProjectionMapping as P, customObjectDeclarations as S, filterSchema as T, MATERIALIZING_CONCEPTS as _, ClivlyEntitiesConfig as a, RelationshipVia as b, ClivlyEntityConfigInput as c, CrmConcept as d, CustomObjectDeclaration as f, FilterValue as g, FilterExpr as h, ClivlyConfigError as i, ProjectionFieldBinding as j, validateEntitiesConfig as k, ConfigValidationError as l, DiscoveredSchemaTable as m, CRM_CONCEPTS as n, ClivlyEntitiesConfigInput as o, DiscoveredColumnMeta as p, CUSTOM_CONCEPT as r, ClivlyEntityConfig as s, CANONICAL_FIELDS as t, ConfigValidationResult as u, MaterializingConcept as v, entitiesConfigSchema as w, RelationshipsMap as x, RelationshipSpec as y };
|
package/dist/entity-config.cjs
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_entity_config = require("./entity-config-
|
|
2
|
+
const require_entity_config = require("./entity-config-Bfq3OkCU.cjs");
|
|
3
3
|
exports.CANONICAL_FIELDS = require_entity_config.CANONICAL_FIELDS;
|
|
4
4
|
exports.CRM_CONCEPTS = require_entity_config.CRM_CONCEPTS;
|
|
5
5
|
exports.CUSTOM_CONCEPT = require_entity_config.CUSTOM_CONCEPT;
|
|
6
6
|
exports.ClivlyConfigError = require_entity_config.ClivlyConfigError;
|
|
7
7
|
exports.MATERIALIZING_CONCEPTS = require_entity_config.MATERIALIZING_CONCEPTS;
|
|
8
|
+
exports.customObjectDeclarations = require_entity_config.customObjectDeclarations;
|
|
8
9
|
exports.defineClivlyConfig = require_entity_config.defineClivlyConfig;
|
|
9
10
|
exports.entitiesConfigSchema = require_entity_config.entitiesConfigSchema;
|
|
10
11
|
exports.filterSchema = require_entity_config.filterSchema;
|
package/dist/entity-config.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
export { CANONICAL_FIELDS, CRM_CONCEPTS, CUSTOM_CONCEPT, ClivlyConfigError, ClivlyEntitiesConfig, ClivlyEntitiesConfigInput, ClivlyEntityConfig, ClivlyEntityConfigInput, ConfigValidationError, ConfigValidationResult, CrmConcept, DiscoveredColumnMeta, DiscoveredSchemaTable, FilterExpr, FilterValue, MATERIALIZING_CONCEPTS, MaterializingConcept, RelationshipSpec, RelationshipVia, RelationshipsMap, defineClivlyConfig, entitiesConfigSchema, filterSchema, projectionFields, relationshipSchema, relationshipsSchema, validateEntitiesConfig };
|
|
1
|
+
import { C as defineClivlyConfig, D as relationshipSchema, E as projectionFields, O as relationshipsSchema, S as customObjectDeclarations, T as filterSchema, _ as MATERIALIZING_CONCEPTS, a as ClivlyEntitiesConfig, b as RelationshipVia, c as ClivlyEntityConfigInput, d as CrmConcept, f as CustomObjectDeclaration, g as FilterValue, h as FilterExpr, i as ClivlyConfigError, k as validateEntitiesConfig, l as ConfigValidationError, m as DiscoveredSchemaTable, n as CRM_CONCEPTS, o as ClivlyEntitiesConfigInput, p as DiscoveredColumnMeta, r as CUSTOM_CONCEPT, s as ClivlyEntityConfig, t as CANONICAL_FIELDS, u as ConfigValidationResult, v as MaterializingConcept, w as entitiesConfigSchema, x as RelationshipsMap, y as RelationshipSpec } from "./entity-config-buOIVtMM.cjs";
|
|
2
|
+
export { CANONICAL_FIELDS, CRM_CONCEPTS, CUSTOM_CONCEPT, ClivlyConfigError, ClivlyEntitiesConfig, ClivlyEntitiesConfigInput, ClivlyEntityConfig, ClivlyEntityConfigInput, ConfigValidationError, ConfigValidationResult, CrmConcept, CustomObjectDeclaration, DiscoveredColumnMeta, DiscoveredSchemaTable, FilterExpr, FilterValue, MATERIALIZING_CONCEPTS, MaterializingConcept, RelationshipSpec, RelationshipVia, RelationshipsMap, customObjectDeclarations, defineClivlyConfig, entitiesConfigSchema, filterSchema, projectionFields, relationshipSchema, relationshipsSchema, validateEntitiesConfig };
|
package/dist/entity-config.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
export { CANONICAL_FIELDS, CRM_CONCEPTS, CUSTOM_CONCEPT, ClivlyConfigError, ClivlyEntitiesConfig, ClivlyEntitiesConfigInput, ClivlyEntityConfig, ClivlyEntityConfigInput, ConfigValidationError, ConfigValidationResult, CrmConcept, DiscoveredColumnMeta, DiscoveredSchemaTable, FilterExpr, FilterValue, MATERIALIZING_CONCEPTS, MaterializingConcept, RelationshipSpec, RelationshipVia, RelationshipsMap, defineClivlyConfig, entitiesConfigSchema, filterSchema, projectionFields, relationshipSchema, relationshipsSchema, validateEntitiesConfig };
|
|
1
|
+
import { C as defineClivlyConfig, D as relationshipSchema, E as projectionFields, O as relationshipsSchema, S as customObjectDeclarations, T as filterSchema, _ as MATERIALIZING_CONCEPTS, a as ClivlyEntitiesConfig, b as RelationshipVia, c as ClivlyEntityConfigInput, d as CrmConcept, f as CustomObjectDeclaration, g as FilterValue, h as FilterExpr, i as ClivlyConfigError, k as validateEntitiesConfig, l as ConfigValidationError, m as DiscoveredSchemaTable, n as CRM_CONCEPTS, o as ClivlyEntitiesConfigInput, p as DiscoveredColumnMeta, r as CUSTOM_CONCEPT, s as ClivlyEntityConfig, t as CANONICAL_FIELDS, u as ConfigValidationResult, v as MaterializingConcept, w as entitiesConfigSchema, x as RelationshipsMap, y as RelationshipSpec } from "./entity-config-buOIVtMM.mjs";
|
|
2
|
+
export { CANONICAL_FIELDS, CRM_CONCEPTS, CUSTOM_CONCEPT, ClivlyConfigError, ClivlyEntitiesConfig, ClivlyEntitiesConfigInput, ClivlyEntityConfig, ClivlyEntityConfigInput, ConfigValidationError, ConfigValidationResult, CrmConcept, CustomObjectDeclaration, DiscoveredColumnMeta, DiscoveredSchemaTable, FilterExpr, FilterValue, MATERIALIZING_CONCEPTS, MaterializingConcept, RelationshipSpec, RelationshipVia, RelationshipsMap, customObjectDeclarations, defineClivlyConfig, entitiesConfigSchema, filterSchema, projectionFields, relationshipSchema, relationshipsSchema, validateEntitiesConfig };
|
package/dist/entity-config.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as MATERIALIZING_CONCEPTS, c as
|
|
2
|
-
export { CANONICAL_FIELDS, CRM_CONCEPTS, CUSTOM_CONCEPT, ClivlyConfigError, MATERIALIZING_CONCEPTS, defineClivlyConfig, entitiesConfigSchema, filterSchema, projectionFields, relationshipSchema, relationshipsSchema, validateEntitiesConfig };
|
|
1
|
+
import { a as MATERIALIZING_CONCEPTS, c as entitiesConfigSchema, d as relationshipSchema, f as relationshipsSchema, i as ClivlyConfigError, l as filterSchema, n as CRM_CONCEPTS, o as customObjectDeclarations, p as validateEntitiesConfig, r as CUSTOM_CONCEPT, s as defineClivlyConfig, t as CANONICAL_FIELDS, u as projectionFields } from "./entity-config-DFJ8L9jm.mjs";
|
|
2
|
+
export { CANONICAL_FIELDS, CRM_CONCEPTS, CUSTOM_CONCEPT, ClivlyConfigError, MATERIALIZING_CONCEPTS, customObjectDeclarations, defineClivlyConfig, entitiesConfigSchema, filterSchema, projectionFields, relationshipSchema, relationshipsSchema, validateEntitiesConfig };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_entity_config = require("./entity-config-
|
|
2
|
+
const require_entity_config = require("./entity-config-Bfq3OkCU.cjs");
|
|
3
3
|
const require_mapping_score = require("./mapping-score.cjs");
|
|
4
4
|
//#region src/entity-heuristics.ts
|
|
5
5
|
const TARGET_CONCEPTS = [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { p as DiscoveredColumnMeta } from "./entity-config-buOIVtMM.cjs";
|
|
2
2
|
import { Scored } from "./mapping-score.cjs";
|
|
3
3
|
//#region src/entity-heuristics.d.ts
|
|
4
4
|
declare const TARGET_CONCEPTS: readonly ["contact", "company", "deal", "activity", "conversation", "note"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { p as DiscoveredColumnMeta } from "./entity-config-buOIVtMM.mjs";
|
|
2
2
|
import { Scored } from "./mapping-score.mjs";
|
|
3
3
|
//#region src/entity-heuristics.d.ts
|
|
4
4
|
declare const TARGET_CONCEPTS: readonly ["contact", "company", "deal", "activity", "conversation", "note"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as MATERIALIZING_CONCEPTS } from "./entity-config-
|
|
1
|
+
import { a as MATERIALIZING_CONCEPTS } from "./entity-config-DFJ8L9jm.mjs";
|
|
2
2
|
import { CONCEPT_TIERS, FIELD_TIERS, RELATIONSHIP_TIERS, W, isAmbiguous, isNumericLike, isTextLike, isTimestampLike, tierFor } from "./mapping-score.mjs";
|
|
3
3
|
//#region src/entity-heuristics.ts
|
|
4
4
|
const TARGET_CONCEPTS = [
|
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_auth_adapter = require("./auth-adapter.cjs");
|
|
3
3
|
const require_projection = require("./projection-BXBkh7qp.cjs");
|
|
4
|
-
const require_entity_config = require("./entity-config-
|
|
4
|
+
const require_entity_config = require("./entity-config-Bfq3OkCU.cjs");
|
|
5
5
|
const require_mapping_form = require("./mapping-form.cjs");
|
|
6
6
|
const require_mappings_config = require("./mappings-config.cjs");
|
|
7
7
|
const require_view_compiler = require("./view-compiler-BpNI8Ttw.cjs");
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Activity, ActivityType, Company, Contact, ContactFilters, ContactStatus, CreateActivityInput, CreateCompanyInput, CreateContactInput, CreateDealInput, CreateTaskInput, CrmRole, Deal, DealStage, Note, RecordSource, Task, TaskEntityType, TaskFilters, TaskPriority, TaskStatus, UpdateContactInput, UpdateDealInput, UpdateTaskInput } from "./types.cjs";
|
|
2
2
|
import { CRMAdapter } from "./adapter.cjs";
|
|
3
3
|
import { ClivlyAuthAdapter, ClivlyUser, CrmMembership, MembershipResolver, authCustom } from "./auth-adapter.cjs";
|
|
4
|
-
import { A as
|
|
4
|
+
import { A as BASE_REF, C as defineClivlyConfig, D as relationshipSchema, F as ProjectionRef, I as identityRefs, L as projectionSchema, M as ProjectionIdentity, N as ProjectionJoin, O as relationshipsSchema, P as ProjectionMapping, T as filterSchema, _ as MATERIALIZING_CONCEPTS, a as ClivlyEntitiesConfig, b as RelationshipVia, d as CrmConcept, g as FilterValue, h as FilterExpr, i as ClivlyConfigError, j as ProjectionFieldBinding, k as validateEntitiesConfig, 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 entitiesConfigSchema, x as RelationshipsMap, y as RelationshipSpec } from "./entity-config-buOIVtMM.cjs";
|
|
5
|
+
import { ConnectionLiveness, IntegrationFacts, IntegrationState, IntegrationStatus, IntegrationStep, NextAction, StepId, StepProblem, StepState } from "./integration-state.cjs";
|
|
5
6
|
import { RelationshipCandidate, buildFilterFromDiscriminator, buildRelationships, relationshipViaSignature } from "./mapping-form.cjs";
|
|
6
7
|
import { EntityMappingRow, mappingsToEntitiesConfig } from "./mappings-config.cjs";
|
|
7
8
|
import { CompileOptions, CompiledView, DEFAULT_VIEW_PREFIX, ExplainResult, compileEntityView, compileEntityViews, explainEntitiesConfig } from "./view-compiler.cjs";
|
|
@@ -76,4 +77,4 @@ declare function coversUniqueKey(table: DiscoveredSchemaTable, columns: string[]
|
|
|
76
77
|
/** Is this table's payload rich enough to validate a projection against? */
|
|
77
78
|
declare function hasRichMeta(table: DiscoveredSchemaTable): boolean;
|
|
78
79
|
//#endregion
|
|
79
|
-
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 ConfigValidationError, type ConfigValidationResult, 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 ExplainResult, type FilterExpr, type FilterValue, MATERIALIZING_CONCEPTS, type MaterializingConcept, type MembershipResolver, type MirrorRecord, type Note, type PersistAction, type ProjectionDraft, type ProjectionFieldBinding, type ProjectionIdentity, type ProjectionJoin, type ProjectionMapping, type ProjectionRef, type RecordSource, type RelationshipCandidate, type RelationshipSpec, type RelationshipVia, type RelationshipsMap, type SourceRow, type SyncAction, type SyncResult, type SyncStore, type Task, type TaskEntityType, type TaskFilters, type TaskPriority, type TaskStatus, type UpdateContactInput, type UpdateDealInput, type UpdateTaskInput, authCustom, buildFilterFromDiscriminator, buildRelationships, columnMetaFor, compileEntityView, compileEntityViews, coversUniqueKey, defineClivlyConfig, describeCardinality, draftErrors, draftToProjection, emptyProjectionDraft, entitiesConfigSchema, explainEntitiesConfig, fanOutJoins, filterSchema, hasRichMeta, identityRefs, joinFansOut, mappingsToEntitiesConfig, primaryKeyColumns, projectionSchema, reconcile, relationshipSchema, relationshipViaSignature, relationshipsSchema, runSync, suggestJoinConditions, validateEntitiesConfig, validateProjection };
|
|
80
|
+
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 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 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, type PersistAction, type ProjectionDraft, type ProjectionFieldBinding, type ProjectionIdentity, type ProjectionJoin, type ProjectionMapping, type ProjectionRef, type RecordSource, type RelationshipCandidate, type RelationshipSpec, type RelationshipVia, type RelationshipsMap, type SourceRow, 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, authCustom, buildFilterFromDiscriminator, buildRelationships, columnMetaFor, compileEntityView, compileEntityViews, coversUniqueKey, defineClivlyConfig, describeCardinality, draftErrors, draftToProjection, emptyProjectionDraft, entitiesConfigSchema, explainEntitiesConfig, fanOutJoins, filterSchema, hasRichMeta, identityRefs, joinFansOut, mappingsToEntitiesConfig, primaryKeyColumns, projectionSchema, reconcile, relationshipSchema, relationshipViaSignature, relationshipsSchema, runSync, suggestJoinConditions, validateEntitiesConfig, validateProjection };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Activity, ActivityType, Company, Contact, ContactFilters, ContactStatus, CreateActivityInput, CreateCompanyInput, CreateContactInput, CreateDealInput, CreateTaskInput, CrmRole, Deal, DealStage, Note, RecordSource, Task, TaskEntityType, TaskFilters, TaskPriority, TaskStatus, UpdateContactInput, UpdateDealInput, UpdateTaskInput } from "./types.mjs";
|
|
2
2
|
import { CRMAdapter } from "./adapter.mjs";
|
|
3
3
|
import { ClivlyAuthAdapter, ClivlyUser, CrmMembership, MembershipResolver, authCustom } from "./auth-adapter.mjs";
|
|
4
|
-
import { A as
|
|
4
|
+
import { A as BASE_REF, C as defineClivlyConfig, D as relationshipSchema, F as ProjectionRef, I as identityRefs, L as projectionSchema, M as ProjectionIdentity, N as ProjectionJoin, O as relationshipsSchema, P as ProjectionMapping, T as filterSchema, _ as MATERIALIZING_CONCEPTS, a as ClivlyEntitiesConfig, b as RelationshipVia, d as CrmConcept, g as FilterValue, h as FilterExpr, i as ClivlyConfigError, j as ProjectionFieldBinding, k as validateEntitiesConfig, 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 entitiesConfigSchema, x as RelationshipsMap, y as RelationshipSpec } from "./entity-config-buOIVtMM.mjs";
|
|
5
|
+
import { ConnectionLiveness, IntegrationFacts, IntegrationState, IntegrationStatus, IntegrationStep, NextAction, StepId, StepProblem, StepState } from "./integration-state.mjs";
|
|
5
6
|
import { RelationshipCandidate, buildFilterFromDiscriminator, buildRelationships, relationshipViaSignature } from "./mapping-form.mjs";
|
|
6
7
|
import { EntityMappingRow, mappingsToEntitiesConfig } from "./mappings-config.mjs";
|
|
7
8
|
import { CompileOptions, CompiledView, DEFAULT_VIEW_PREFIX, ExplainResult, compileEntityView, compileEntityViews, explainEntitiesConfig } from "./view-compiler.mjs";
|
|
@@ -76,4 +77,4 @@ declare function coversUniqueKey(table: DiscoveredSchemaTable, columns: string[]
|
|
|
76
77
|
/** Is this table's payload rich enough to validate a projection against? */
|
|
77
78
|
declare function hasRichMeta(table: DiscoveredSchemaTable): boolean;
|
|
78
79
|
//#endregion
|
|
79
|
-
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 ConfigValidationError, type ConfigValidationResult, 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 ExplainResult, type FilterExpr, type FilterValue, MATERIALIZING_CONCEPTS, type MaterializingConcept, type MembershipResolver, type MirrorRecord, type Note, type PersistAction, type ProjectionDraft, type ProjectionFieldBinding, type ProjectionIdentity, type ProjectionJoin, type ProjectionMapping, type ProjectionRef, type RecordSource, type RelationshipCandidate, type RelationshipSpec, type RelationshipVia, type RelationshipsMap, type SourceRow, type SyncAction, type SyncResult, type SyncStore, type Task, type TaskEntityType, type TaskFilters, type TaskPriority, type TaskStatus, type UpdateContactInput, type UpdateDealInput, type UpdateTaskInput, authCustom, buildFilterFromDiscriminator, buildRelationships, columnMetaFor, compileEntityView, compileEntityViews, coversUniqueKey, defineClivlyConfig, describeCardinality, draftErrors, draftToProjection, emptyProjectionDraft, entitiesConfigSchema, explainEntitiesConfig, fanOutJoins, filterSchema, hasRichMeta, identityRefs, joinFansOut, mappingsToEntitiesConfig, primaryKeyColumns, projectionSchema, reconcile, relationshipSchema, relationshipViaSignature, relationshipsSchema, runSync, suggestJoinConditions, validateEntitiesConfig, validateProjection };
|
|
80
|
+
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 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 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, type PersistAction, type ProjectionDraft, type ProjectionFieldBinding, type ProjectionIdentity, type ProjectionJoin, type ProjectionMapping, type ProjectionRef, type RecordSource, type RelationshipCandidate, type RelationshipSpec, type RelationshipVia, type RelationshipsMap, type SourceRow, 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, authCustom, buildFilterFromDiscriminator, buildRelationships, columnMetaFor, compileEntityView, compileEntityViews, coversUniqueKey, defineClivlyConfig, describeCardinality, draftErrors, draftToProjection, emptyProjectionDraft, entitiesConfigSchema, explainEntitiesConfig, fanOutJoins, filterSchema, hasRichMeta, identityRefs, joinFansOut, mappingsToEntitiesConfig, primaryKeyColumns, projectionSchema, reconcile, relationshipSchema, relationshipViaSignature, relationshipsSchema, runSync, suggestJoinConditions, validateEntitiesConfig, validateProjection };
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { authCustom } from "./auth-adapter.mjs";
|
|
2
2
|
import { i as projectionSchema, n as PROJECTION_KEY_PATTERN, r as identityRefs, t as BASE_REF } from "./projection-C_EMRmZ8.mjs";
|
|
3
|
-
import { _ as
|
|
3
|
+
import { _ as columnMetaFor, a as MATERIALIZING_CONCEPTS, b as primaryKeyColumns, c as entitiesConfigSchema, d as relationshipSchema, f as relationshipsSchema, g as joinFansOut, h as fanOutJoins, i as ClivlyConfigError, l as filterSchema, m as validateProjection, n as CRM_CONCEPTS, p as validateEntitiesConfig, s as defineClivlyConfig, t as CANONICAL_FIELDS, v as coversUniqueKey, y as hasRichMeta } from "./entity-config-DFJ8L9jm.mjs";
|
|
4
4
|
import { buildFilterFromDiscriminator, buildRelationships, relationshipViaSignature } from "./mapping-form.mjs";
|
|
5
5
|
import { mappingsToEntitiesConfig } from "./mappings-config.mjs";
|
|
6
6
|
import { i as explainEntitiesConfig, n as compileEntityView, r as compileEntityViews, t as DEFAULT_VIEW_PREFIX } from "./view-compiler-CcqsGxv4.mjs";
|