@clivly/core 0.10.4 → 0.10.5
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/dist/builder.d.cts +1 -1
- package/dist/builder.d.mts +1 -1
- package/dist/drizzle.d.cts +1 -1
- package/dist/drizzle.d.mts +1 -1
- package/dist/{entity-config-DpHPMFIS.mjs → entity-config-C_NDVfrL.mjs} +32 -1
- package/dist/{entity-config-DCa785OE.d.cts → entity-config-ChHLozko.d.cts} +28 -1
- package/dist/{entity-config-DCa785OE.d.mts → entity-config-ChHLozko.d.mts} +28 -1
- package/dist/{entity-config-C5jBmG2C.cjs → entity-config-J5KYJVTO.cjs} +49 -0
- package/dist/entity-config.cjs +4 -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 +4 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/integration-state.cjs +1 -1
- package/dist/integration-state.d.cts +7 -0
- package/dist/integration-state.d.mts +7 -0
- package/dist/integration-state.mjs +1 -1
- package/dist/mapping-form.d.cts +1 -1
- package/dist/mapping-form.d.mts +1 -1
- package/dist/mappings-config.cjs +1 -1
- package/dist/mappings-config.d.cts +1 -1
- package/dist/mappings-config.d.mts +1 -1
- package/dist/mappings-config.mjs +1 -1
- 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/dist/builder.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { R as ProjectionMapping, m as DiscoveredSchemaTable } from "./entity-config-ChHLozko.cjs";
|
|
2
2
|
//#region src/relationship-graph.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* A bidirectional relationship graph derived from discovery metadata.
|
package/dist/builder.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { R as ProjectionMapping, m as DiscoveredSchemaTable } from "./entity-config-ChHLozko.mjs";
|
|
2
2
|
//#region src/relationship-graph.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* A bidirectional relationship graph derived from discovery metadata.
|
package/dist/drizzle.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as DiscoveredSchemaTable, p as DiscoveredColumnMeta } from "./entity-config-
|
|
1
|
+
import { m as DiscoveredSchemaTable, p as DiscoveredColumnMeta } from "./entity-config-ChHLozko.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 { m as DiscoveredSchemaTable, p as DiscoveredColumnMeta } from "./entity-config-
|
|
1
|
+
import { m as DiscoveredSchemaTable, p as DiscoveredColumnMeta } from "./entity-config-ChHLozko.mjs";
|
|
2
2
|
import { Table } from "drizzle-orm";
|
|
3
3
|
//#region src/drizzle.d.ts
|
|
4
4
|
/**
|
|
@@ -372,6 +372,37 @@ const CANONICAL_FIELDS = {
|
|
|
372
372
|
]
|
|
373
373
|
};
|
|
374
374
|
/**
|
|
375
|
+
* The subset of `CANONICAL_FIELDS` a mapping cannot sync without.
|
|
376
|
+
*
|
|
377
|
+
* Kept beside CANONICAL_FIELDS, and exported, for the reason stated above: the
|
|
378
|
+
* heuristics module holds the same knowledge as `required: true` flags, and the
|
|
379
|
+
* dashboard held a third copy. That third copy is what let an invalid mapping
|
|
380
|
+
* save cleanly and then be dropped by a sync that still reported "Succeeded" —
|
|
381
|
+
* the editor had no way to ask what was mandatory, so it did not ask.
|
|
382
|
+
*
|
|
383
|
+
* Every field listed here must also appear in CANONICAL_FIELDS for the same
|
|
384
|
+
* concept; `requiredFieldsAreCanonical` in the tests enforces that.
|
|
385
|
+
*
|
|
386
|
+
* A concept absent here has no mandatory field, so nothing is blocked by
|
|
387
|
+
* accident.
|
|
388
|
+
*/
|
|
389
|
+
const REQUIRED_FIELDS = {
|
|
390
|
+
contact: ["email"],
|
|
391
|
+
company: ["name"],
|
|
392
|
+
deal: ["name"]
|
|
393
|
+
};
|
|
394
|
+
/** The fields this concept must have mapped before a sync will keep it. */
|
|
395
|
+
function requiredFieldsFor(concept) {
|
|
396
|
+
return REQUIRED_FIELDS[concept] ?? [];
|
|
397
|
+
}
|
|
398
|
+
/**
|
|
399
|
+
* Which required fields a draft mapping has not filled in. Empty means the
|
|
400
|
+
* mapping is complete enough for a sync to accept it.
|
|
401
|
+
*/
|
|
402
|
+
function missingRequiredFields(concept, fieldMap) {
|
|
403
|
+
return requiredFieldsFor(concept).filter((field) => !fieldMap[field]);
|
|
404
|
+
}
|
|
405
|
+
/**
|
|
375
406
|
* The concepts the mapping→sync pipeline can actually materialize into `crm_*`
|
|
376
407
|
* tables. These are exactly the CANONICAL_FIELDS keys — the Drizzle sync store's
|
|
377
408
|
* `persist()` throws for any other concept, so offering one (in the mapping
|
|
@@ -743,4 +774,4 @@ function validateEntitiesConfig(config, schema) {
|
|
|
743
774
|
};
|
|
744
775
|
}
|
|
745
776
|
//#endregion
|
|
746
|
-
export {
|
|
777
|
+
export { validateProjection as _, MATERIALIZING_CONCEPTS as a, joinFansOut as b, defineClivlyConfig as c, missingRequiredFields as d, projectionFields as f, validateEntitiesConfig as g, requiredFieldsFor as h, ClivlyConfigError as i, entitiesConfigSchema as l, relationshipsSchema as m, CRM_CONCEPTS as n, REQUIRED_FIELDS as o, relationshipSchema as p, CUSTOM_CONCEPT as r, customObjectDeclarations as s, CANONICAL_FIELDS as t, filterSchema as u, validateProjectionFilter as v, fanOutJoins as y };
|
|
@@ -172,6 +172,33 @@ declare const CANONICAL_FIELDS: {
|
|
|
172
172
|
readonly company: readonly ["name", "domain", "industry", "size"];
|
|
173
173
|
readonly deal: readonly ["name", "value", "stage"];
|
|
174
174
|
};
|
|
175
|
+
/**
|
|
176
|
+
* The subset of `CANONICAL_FIELDS` a mapping cannot sync without.
|
|
177
|
+
*
|
|
178
|
+
* Kept beside CANONICAL_FIELDS, and exported, for the reason stated above: the
|
|
179
|
+
* heuristics module holds the same knowledge as `required: true` flags, and the
|
|
180
|
+
* dashboard held a third copy. That third copy is what let an invalid mapping
|
|
181
|
+
* save cleanly and then be dropped by a sync that still reported "Succeeded" —
|
|
182
|
+
* the editor had no way to ask what was mandatory, so it did not ask.
|
|
183
|
+
*
|
|
184
|
+
* Every field listed here must also appear in CANONICAL_FIELDS for the same
|
|
185
|
+
* concept; `requiredFieldsAreCanonical` in the tests enforces that.
|
|
186
|
+
*
|
|
187
|
+
* A concept absent here has no mandatory field, so nothing is blocked by
|
|
188
|
+
* accident.
|
|
189
|
+
*/
|
|
190
|
+
declare const REQUIRED_FIELDS: {
|
|
191
|
+
readonly contact: readonly ["email"];
|
|
192
|
+
readonly company: readonly ["name"];
|
|
193
|
+
readonly deal: readonly ["name"];
|
|
194
|
+
};
|
|
195
|
+
/** The fields this concept must have mapped before a sync will keep it. */
|
|
196
|
+
declare function requiredFieldsFor(concept: string): readonly string[];
|
|
197
|
+
/**
|
|
198
|
+
* Which required fields a draft mapping has not filled in. Empty means the
|
|
199
|
+
* mapping is complete enough for a sync to accept it.
|
|
200
|
+
*/
|
|
201
|
+
declare function missingRequiredFields(concept: string, fieldMap: Record<string, string>): string[];
|
|
175
202
|
/**
|
|
176
203
|
* The concepts the mapping→sync pipeline can actually materialize into `crm_*`
|
|
177
204
|
* tables. These are exactly the CANONICAL_FIELDS keys — the Drizzle sync store's
|
|
@@ -603,4 +630,4 @@ interface ConfigValidationResult {
|
|
|
603
630
|
*/
|
|
604
631
|
declare function validateEntitiesConfig(config: ClivlyEntitiesConfig, schema: DiscoveredSchemaTable[]): ConfigValidationResult;
|
|
605
632
|
//#endregion
|
|
606
|
-
export {
|
|
633
|
+
export { relationshipsSchema as A, identityRefs as B, customObjectDeclarations as C, missingRequiredFields as D, filterSchema as E, ProjectionFieldBinding as F, ProjectionIdentity as I, ProjectionJoin as L, validateEntitiesConfig as M, BASE_REF as N, projectionFields as O, PROJECTION_KEY_PATTERN as P, ProjectionMapping as R, RelationshipsMap as S, entitiesConfigSchema as T, projectionSchema as V, MATERIALIZING_CONCEPTS as _, ClivlyEntitiesConfig as a, RelationshipSpec as b, ClivlyEntityConfigInput as c, CrmConcept as d, CustomObjectDeclaration as f, FilterValue as g, FilterExpr as h, ClivlyConfigError as i, requiredFieldsFor as j, relationshipSchema 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, defineClivlyConfig as w, RelationshipVia as x, REQUIRED_FIELDS as y, ProjectionRef as z };
|
|
@@ -172,6 +172,33 @@ declare const CANONICAL_FIELDS: {
|
|
|
172
172
|
readonly company: readonly ["name", "domain", "industry", "size"];
|
|
173
173
|
readonly deal: readonly ["name", "value", "stage"];
|
|
174
174
|
};
|
|
175
|
+
/**
|
|
176
|
+
* The subset of `CANONICAL_FIELDS` a mapping cannot sync without.
|
|
177
|
+
*
|
|
178
|
+
* Kept beside CANONICAL_FIELDS, and exported, for the reason stated above: the
|
|
179
|
+
* heuristics module holds the same knowledge as `required: true` flags, and the
|
|
180
|
+
* dashboard held a third copy. That third copy is what let an invalid mapping
|
|
181
|
+
* save cleanly and then be dropped by a sync that still reported "Succeeded" —
|
|
182
|
+
* the editor had no way to ask what was mandatory, so it did not ask.
|
|
183
|
+
*
|
|
184
|
+
* Every field listed here must also appear in CANONICAL_FIELDS for the same
|
|
185
|
+
* concept; `requiredFieldsAreCanonical` in the tests enforces that.
|
|
186
|
+
*
|
|
187
|
+
* A concept absent here has no mandatory field, so nothing is blocked by
|
|
188
|
+
* accident.
|
|
189
|
+
*/
|
|
190
|
+
declare const REQUIRED_FIELDS: {
|
|
191
|
+
readonly contact: readonly ["email"];
|
|
192
|
+
readonly company: readonly ["name"];
|
|
193
|
+
readonly deal: readonly ["name"];
|
|
194
|
+
};
|
|
195
|
+
/** The fields this concept must have mapped before a sync will keep it. */
|
|
196
|
+
declare function requiredFieldsFor(concept: string): readonly string[];
|
|
197
|
+
/**
|
|
198
|
+
* Which required fields a draft mapping has not filled in. Empty means the
|
|
199
|
+
* mapping is complete enough for a sync to accept it.
|
|
200
|
+
*/
|
|
201
|
+
declare function missingRequiredFields(concept: string, fieldMap: Record<string, string>): string[];
|
|
175
202
|
/**
|
|
176
203
|
* The concepts the mapping→sync pipeline can actually materialize into `crm_*`
|
|
177
204
|
* tables. These are exactly the CANONICAL_FIELDS keys — the Drizzle sync store's
|
|
@@ -603,4 +630,4 @@ interface ConfigValidationResult {
|
|
|
603
630
|
*/
|
|
604
631
|
declare function validateEntitiesConfig(config: ClivlyEntitiesConfig, schema: DiscoveredSchemaTable[]): ConfigValidationResult;
|
|
605
632
|
//#endregion
|
|
606
|
-
export {
|
|
633
|
+
export { relationshipsSchema as A, identityRefs as B, customObjectDeclarations as C, missingRequiredFields as D, filterSchema as E, ProjectionFieldBinding as F, ProjectionIdentity as I, ProjectionJoin as L, validateEntitiesConfig as M, BASE_REF as N, projectionFields as O, PROJECTION_KEY_PATTERN as P, ProjectionMapping as R, RelationshipsMap as S, entitiesConfigSchema as T, projectionSchema as V, MATERIALIZING_CONCEPTS as _, ClivlyEntitiesConfig as a, RelationshipSpec as b, ClivlyEntityConfigInput as c, CrmConcept as d, CustomObjectDeclaration as f, FilterValue as g, FilterExpr as h, ClivlyConfigError as i, requiredFieldsFor as j, relationshipSchema 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, defineClivlyConfig as w, RelationshipVia as x, REQUIRED_FIELDS as y, ProjectionRef as z };
|
|
@@ -372,6 +372,37 @@ const CANONICAL_FIELDS = {
|
|
|
372
372
|
]
|
|
373
373
|
};
|
|
374
374
|
/**
|
|
375
|
+
* The subset of `CANONICAL_FIELDS` a mapping cannot sync without.
|
|
376
|
+
*
|
|
377
|
+
* Kept beside CANONICAL_FIELDS, and exported, for the reason stated above: the
|
|
378
|
+
* heuristics module holds the same knowledge as `required: true` flags, and the
|
|
379
|
+
* dashboard held a third copy. That third copy is what let an invalid mapping
|
|
380
|
+
* save cleanly and then be dropped by a sync that still reported "Succeeded" —
|
|
381
|
+
* the editor had no way to ask what was mandatory, so it did not ask.
|
|
382
|
+
*
|
|
383
|
+
* Every field listed here must also appear in CANONICAL_FIELDS for the same
|
|
384
|
+
* concept; `requiredFieldsAreCanonical` in the tests enforces that.
|
|
385
|
+
*
|
|
386
|
+
* A concept absent here has no mandatory field, so nothing is blocked by
|
|
387
|
+
* accident.
|
|
388
|
+
*/
|
|
389
|
+
const REQUIRED_FIELDS = {
|
|
390
|
+
contact: ["email"],
|
|
391
|
+
company: ["name"],
|
|
392
|
+
deal: ["name"]
|
|
393
|
+
};
|
|
394
|
+
/** The fields this concept must have mapped before a sync will keep it. */
|
|
395
|
+
function requiredFieldsFor(concept) {
|
|
396
|
+
return REQUIRED_FIELDS[concept] ?? [];
|
|
397
|
+
}
|
|
398
|
+
/**
|
|
399
|
+
* Which required fields a draft mapping has not filled in. Empty means the
|
|
400
|
+
* mapping is complete enough for a sync to accept it.
|
|
401
|
+
*/
|
|
402
|
+
function missingRequiredFields(concept, fieldMap) {
|
|
403
|
+
return requiredFieldsFor(concept).filter((field) => !fieldMap[field]);
|
|
404
|
+
}
|
|
405
|
+
/**
|
|
375
406
|
* The concepts the mapping→sync pipeline can actually materialize into `crm_*`
|
|
376
407
|
* tables. These are exactly the CANONICAL_FIELDS keys — the Drizzle sync store's
|
|
377
408
|
* `persist()` throws for any other concept, so offering one (in the mapping
|
|
@@ -773,6 +804,12 @@ Object.defineProperty(exports, "MATERIALIZING_CONCEPTS", {
|
|
|
773
804
|
return MATERIALIZING_CONCEPTS;
|
|
774
805
|
}
|
|
775
806
|
});
|
|
807
|
+
Object.defineProperty(exports, "REQUIRED_FIELDS", {
|
|
808
|
+
enumerable: true,
|
|
809
|
+
get: function() {
|
|
810
|
+
return REQUIRED_FIELDS;
|
|
811
|
+
}
|
|
812
|
+
});
|
|
776
813
|
Object.defineProperty(exports, "customObjectDeclarations", {
|
|
777
814
|
enumerable: true,
|
|
778
815
|
get: function() {
|
|
@@ -809,6 +846,12 @@ Object.defineProperty(exports, "joinFansOut", {
|
|
|
809
846
|
return joinFansOut;
|
|
810
847
|
}
|
|
811
848
|
});
|
|
849
|
+
Object.defineProperty(exports, "missingRequiredFields", {
|
|
850
|
+
enumerable: true,
|
|
851
|
+
get: function() {
|
|
852
|
+
return missingRequiredFields;
|
|
853
|
+
}
|
|
854
|
+
});
|
|
812
855
|
Object.defineProperty(exports, "projectionFields", {
|
|
813
856
|
enumerable: true,
|
|
814
857
|
get: function() {
|
|
@@ -827,6 +870,12 @@ Object.defineProperty(exports, "relationshipsSchema", {
|
|
|
827
870
|
return relationshipsSchema;
|
|
828
871
|
}
|
|
829
872
|
});
|
|
873
|
+
Object.defineProperty(exports, "requiredFieldsFor", {
|
|
874
|
+
enumerable: true,
|
|
875
|
+
get: function() {
|
|
876
|
+
return requiredFieldsFor;
|
|
877
|
+
}
|
|
878
|
+
});
|
|
830
879
|
Object.defineProperty(exports, "validateEntitiesConfig", {
|
|
831
880
|
enumerable: true,
|
|
832
881
|
get: function() {
|
package/dist/entity-config.cjs
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
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-J5KYJVTO.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.REQUIRED_FIELDS = require_entity_config.REQUIRED_FIELDS;
|
|
8
9
|
exports.customObjectDeclarations = require_entity_config.customObjectDeclarations;
|
|
9
10
|
exports.defineClivlyConfig = require_entity_config.defineClivlyConfig;
|
|
10
11
|
exports.entitiesConfigSchema = require_entity_config.entitiesConfigSchema;
|
|
11
12
|
exports.filterSchema = require_entity_config.filterSchema;
|
|
13
|
+
exports.missingRequiredFields = require_entity_config.missingRequiredFields;
|
|
12
14
|
exports.projectionFields = require_entity_config.projectionFields;
|
|
13
15
|
exports.relationshipSchema = require_entity_config.relationshipSchema;
|
|
14
16
|
exports.relationshipsSchema = require_entity_config.relationshipsSchema;
|
|
17
|
+
exports.requiredFieldsFor = require_entity_config.requiredFieldsFor;
|
|
15
18
|
exports.validateEntitiesConfig = require_entity_config.validateEntitiesConfig;
|
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, CustomObjectDeclaration, DiscoveredColumnMeta, DiscoveredSchemaTable, FilterExpr, FilterValue, MATERIALIZING_CONCEPTS, MaterializingConcept, RelationshipSpec, RelationshipVia, RelationshipsMap, customObjectDeclarations, defineClivlyConfig, entitiesConfigSchema, filterSchema, projectionFields, relationshipSchema, relationshipsSchema, validateEntitiesConfig };
|
|
1
|
+
import { A as relationshipsSchema, C as customObjectDeclarations, D as missingRequiredFields, E as filterSchema, M as validateEntitiesConfig, O as projectionFields, S as RelationshipsMap, T as entitiesConfigSchema, _ as MATERIALIZING_CONCEPTS, a as ClivlyEntitiesConfig, b as RelationshipSpec, c as ClivlyEntityConfigInput, d as CrmConcept, f as CustomObjectDeclaration, 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, 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 defineClivlyConfig, x as RelationshipVia, y as REQUIRED_FIELDS } from "./entity-config-ChHLozko.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, REQUIRED_FIELDS, RelationshipSpec, RelationshipVia, RelationshipsMap, customObjectDeclarations, defineClivlyConfig, entitiesConfigSchema, filterSchema, missingRequiredFields, projectionFields, relationshipSchema, relationshipsSchema, requiredFieldsFor, 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, CustomObjectDeclaration, DiscoveredColumnMeta, DiscoveredSchemaTable, FilterExpr, FilterValue, MATERIALIZING_CONCEPTS, MaterializingConcept, RelationshipSpec, RelationshipVia, RelationshipsMap, customObjectDeclarations, defineClivlyConfig, entitiesConfigSchema, filterSchema, projectionFields, relationshipSchema, relationshipsSchema, validateEntitiesConfig };
|
|
1
|
+
import { A as relationshipsSchema, C as customObjectDeclarations, D as missingRequiredFields, E as filterSchema, M as validateEntitiesConfig, O as projectionFields, S as RelationshipsMap, T as entitiesConfigSchema, _ as MATERIALIZING_CONCEPTS, a as ClivlyEntitiesConfig, b as RelationshipSpec, c as ClivlyEntityConfigInput, d as CrmConcept, f as CustomObjectDeclaration, 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, 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 defineClivlyConfig, x as RelationshipVia, y as REQUIRED_FIELDS } from "./entity-config-ChHLozko.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, REQUIRED_FIELDS, RelationshipSpec, RelationshipVia, RelationshipsMap, customObjectDeclarations, defineClivlyConfig, entitiesConfigSchema, filterSchema, missingRequiredFields, projectionFields, relationshipSchema, relationshipsSchema, requiredFieldsFor, 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, customObjectDeclarations, defineClivlyConfig, entitiesConfigSchema, filterSchema, projectionFields, relationshipSchema, relationshipsSchema, validateEntitiesConfig };
|
|
1
|
+
import { a as MATERIALIZING_CONCEPTS, 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, r as CUSTOM_CONCEPT, s as customObjectDeclarations, t as CANONICAL_FIELDS, u as filterSchema } from "./entity-config-C_NDVfrL.mjs";
|
|
2
|
+
export { CANONICAL_FIELDS, CRM_CONCEPTS, CUSTOM_CONCEPT, ClivlyConfigError, MATERIALIZING_CONCEPTS, REQUIRED_FIELDS, customObjectDeclarations, defineClivlyConfig, entitiesConfigSchema, filterSchema, missingRequiredFields, projectionFields, relationshipSchema, relationshipsSchema, requiredFieldsFor, 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-J5KYJVTO.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 { p as DiscoveredColumnMeta } from "./entity-config-
|
|
1
|
+
import { p as DiscoveredColumnMeta } from "./entity-config-ChHLozko.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 { p as DiscoveredColumnMeta } from "./entity-config-
|
|
1
|
+
import { p as DiscoveredColumnMeta } from "./entity-config-ChHLozko.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-C_NDVfrL.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
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_auth_adapter = require("./auth-adapter.cjs");
|
|
3
3
|
const require_projection = require("./projection-DFgCoyZl.cjs");
|
|
4
4
|
const require_schema_meta = require("./schema-meta-Cgi0MnHh.cjs");
|
|
5
|
-
const require_entity_config = require("./entity-config-
|
|
5
|
+
const require_entity_config = require("./entity-config-J5KYJVTO.cjs");
|
|
6
6
|
const require_mapping_form = require("./mapping-form.cjs");
|
|
7
7
|
const require_mappings_config = require("./mappings-config.cjs");
|
|
8
8
|
const require_view_compiler = require("./view-compiler-DP4Fbj7-.cjs");
|
|
@@ -160,6 +160,7 @@ exports.MATERIALIZING_CONCEPTS = require_entity_config.MATERIALIZING_CONCEPTS;
|
|
|
160
160
|
exports.OPEN_STAGE_TYPE = require_types.OPEN_STAGE_TYPE;
|
|
161
161
|
exports.PREVIEW_MAX_ROWS = require_view_compiler.PREVIEW_MAX_ROWS;
|
|
162
162
|
exports.PROJECTION_KEY_PATTERN = require_projection.PROJECTION_KEY_PATTERN;
|
|
163
|
+
exports.REQUIRED_FIELDS = require_entity_config.REQUIRED_FIELDS;
|
|
163
164
|
exports.authCustom = require_auth_adapter.authCustom;
|
|
164
165
|
exports.buildFilterFromDiscriminator = require_mapping_form.buildFilterFromDiscriminator;
|
|
165
166
|
exports.buildRelationships = require_mapping_form.buildRelationships;
|
|
@@ -184,6 +185,7 @@ exports.isClosedStageType = require_types.isClosedStageType;
|
|
|
184
185
|
exports.joinFansOut = require_entity_config.joinFansOut;
|
|
185
186
|
exports.mappingsToEntitiesConfig = require_mappings_config.mappingsToEntitiesConfig;
|
|
186
187
|
exports.matchesCondition = matchesCondition;
|
|
188
|
+
exports.missingRequiredFields = require_entity_config.missingRequiredFields;
|
|
187
189
|
exports.primaryKeyColumns = require_schema_meta.primaryKeyColumns;
|
|
188
190
|
exports.projectionFields = require_entity_config.projectionFields;
|
|
189
191
|
exports.projectionSchema = require_projection.projectionSchema;
|
|
@@ -192,6 +194,7 @@ exports.reconcile = require_sync_engine.reconcile;
|
|
|
192
194
|
exports.relationshipSchema = require_entity_config.relationshipSchema;
|
|
193
195
|
exports.relationshipViaSignature = require_mapping_form.relationshipViaSignature;
|
|
194
196
|
exports.relationshipsSchema = require_entity_config.relationshipsSchema;
|
|
197
|
+
exports.requiredFieldsFor = require_entity_config.requiredFieldsFor;
|
|
195
198
|
exports.runSync = require_sync_engine.runSync;
|
|
196
199
|
exports.slugify = slugify;
|
|
197
200
|
exports.toObjectTypeSlug = toObjectTypeSlug;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Activity, ActivityType, Company, Contact, ContactFilters, ContactStatus, CreateActivityInput, CreateCompanyInput, CreateContactInput, CreateDealInput, CreateTaskInput, CrmRole, Deal, DealStage, Note, OPEN_STAGE_TYPE, PipelineConfig, PipelineKind, PipelineStageConfig, RecordSource, StageType, Task, TaskEntityType, TaskFilters, TaskPriority, TaskStatus, UpdateContactInput, UpdateDealInput, UpdateTaskInput, ValueInterval, isClosedStageType } 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 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-ChHLozko.cjs";
|
|
5
5
|
import { ConnectionLiveness, IntegrationFacts, IntegrationState, IntegrationStatus, IntegrationStep, NextAction, StepId, StepProblem, StepState } from "./integration-state.cjs";
|
|
6
6
|
import { RelationshipCandidate, buildFilterFromDiscriminator, buildRelationships, relationshipViaSignature } from "./mapping-form.cjs";
|
|
7
7
|
import { EntityMappingRow, mappingsToEntitiesConfig } from "./mappings-config.cjs";
|
|
@@ -231,4 +231,4 @@ declare function matchesCondition(condition: Condition, fields: Record<string, s
|
|
|
231
231
|
*/
|
|
232
232
|
declare function evaluateStage(rules: EvaluableRule[], fields: Record<string, string | null>, mappedFields: Set<string>): string | null;
|
|
233
233
|
//#endregion
|
|
234
|
-
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, 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, primaryKeyColumns, projectionFields, projectionSchema, quoteIdent, reconcile, relationshipSchema, relationshipViaSignature, relationshipsSchema, runSync, slugify, toObjectTypeSlug, validateEntitiesConfig, validateProjection, validateProjectionFilter };
|
|
234
|
+
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 };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Activity, ActivityType, Company, Contact, ContactFilters, ContactStatus, CreateActivityInput, CreateCompanyInput, CreateContactInput, CreateDealInput, CreateTaskInput, CrmRole, Deal, DealStage, Note, OPEN_STAGE_TYPE, PipelineConfig, PipelineKind, PipelineStageConfig, RecordSource, StageType, Task, TaskEntityType, TaskFilters, TaskPriority, TaskStatus, UpdateContactInput, UpdateDealInput, UpdateTaskInput, ValueInterval, isClosedStageType } 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 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-ChHLozko.mjs";
|
|
5
5
|
import { ConnectionLiveness, IntegrationFacts, IntegrationState, IntegrationStatus, IntegrationStep, NextAction, StepId, StepProblem, StepState } from "./integration-state.mjs";
|
|
6
6
|
import { RelationshipCandidate, buildFilterFromDiscriminator, buildRelationships, relationshipViaSignature } from "./mapping-form.mjs";
|
|
7
7
|
import { EntityMappingRow, mappingsToEntitiesConfig } from "./mappings-config.mjs";
|
|
@@ -231,4 +231,4 @@ declare function matchesCondition(condition: Condition, fields: Record<string, s
|
|
|
231
231
|
*/
|
|
232
232
|
declare function evaluateStage(rules: EvaluableRule[], fields: Record<string, string | null>, mappedFields: Set<string>): string | null;
|
|
233
233
|
//#endregion
|
|
234
|
-
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, 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, primaryKeyColumns, projectionFields, projectionSchema, quoteIdent, reconcile, relationshipSchema, relationshipViaSignature, relationshipsSchema, runSync, slugify, toObjectTypeSlug, validateEntitiesConfig, validateProjection, validateProjectionFilter };
|
|
234
|
+
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 };
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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-SCNrLJMV.mjs";
|
|
3
3
|
import { i as primaryKeyColumns, n as coversUniqueKey, r as hasRichMeta, t as columnMetaFor } from "./schema-meta-Ac7938mT.mjs";
|
|
4
|
-
import { _ as
|
|
4
|
+
import { _ 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, y as fanOutJoins } from "./entity-config-C_NDVfrL.mjs";
|
|
5
5
|
import { buildFilterFromDiscriminator, buildRelationships, relationshipViaSignature } from "./mapping-form.mjs";
|
|
6
6
|
import { mappingsToEntitiesConfig } from "./mappings-config.mjs";
|
|
7
7
|
import { c as compileProjectionIdentity, d as compileProjectionSelect, f as quoteIdent, i as explainEntitiesConfig, l as compileProjectionJoins, n as compileEntityView, o as PREVIEW_MAX_ROWS, r as compileEntityViews, s as compileProjectionFrom, t as DEFAULT_VIEW_PREFIX, u as compileProjectionPreview } from "./view-compiler-CLvZ0wJW.mjs";
|
|
@@ -150,4 +150,4 @@ function evaluateStage(rules, fields, mappedFields) {
|
|
|
150
150
|
return null;
|
|
151
151
|
}
|
|
152
152
|
//#endregion
|
|
153
|
-
export { BASE_REF, CANONICAL_FIELDS, CRM_CONCEPTS, ClivlyConfigError, DEFAULT_VIEW_PREFIX, MATERIALIZING_CONCEPTS, OPEN_STAGE_TYPE, PREVIEW_MAX_ROWS, PROJECTION_KEY_PATTERN, authCustom, buildFilterFromDiscriminator, buildRelationships, columnMetaFor, compileEntityView, compileEntityViews, compileProjectionFrom, compileProjectionIdentity, compileProjectionJoins, compileProjectionPreview, compileProjectionSelect, coversUniqueKey, defineClivlyConfig, entitiesConfigSchema, evaluateStage, explainEntitiesConfig, fanOutJoins, filterSchema, hasRichMeta, identityRefs, isClosedStageType, joinFansOut, mappingsToEntitiesConfig, matchesCondition, primaryKeyColumns, projectionFields, projectionSchema, quoteIdent, reconcile, relationshipSchema, relationshipViaSignature, relationshipsSchema, runSync, slugify, toObjectTypeSlug, validateEntitiesConfig, validateProjection, validateProjectionFilter };
|
|
153
|
+
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 };
|
|
@@ -179,7 +179,7 @@ function evidenceFor(id, facts) {
|
|
|
179
179
|
const age = heartbeatAge(facts);
|
|
180
180
|
if (id === "application" && age !== null) return `heartbeat ${formatAge(age)}`;
|
|
181
181
|
if (id === "schema" && facts.discoveredTableCount > 0) return `found ${facts.discoveredTableCount} tables`;
|
|
182
|
-
if (id === "mapping" && facts.mappedEntityCount > 0) return
|
|
182
|
+
if (id === "mapping" && facts.mappedEntityCount > 0) return "entities mapped";
|
|
183
183
|
if (id === "trigger" && facts.triggerConfigured) return triggerUnreachable(facts) ? "set, but the last attempt could not reach your app" : "trigger URL and secret set";
|
|
184
184
|
if (id === "sync" && facts.lastRun) return `last run ${formatAge(facts.now - facts.lastRun.at)}`;
|
|
185
185
|
return null;
|
|
@@ -56,6 +56,13 @@ interface IntegrationFacts {
|
|
|
56
56
|
heartbeatIntervalMs?: number | null;
|
|
57
57
|
lastHeartbeatAt: number | null;
|
|
58
58
|
lastRun: RunFact | null;
|
|
59
|
+
/**
|
|
60
|
+
* Whether any entity is mapped, expressed as a number for historical
|
|
61
|
+
* reasons — every producer sets it to 0 or 1, never a real total. Read it as
|
|
62
|
+
* a flag (`> 0`) and never render it as a quantity: doing so reported "1
|
|
63
|
+
* entity mapped" to a workspace with three. The true count lives on the
|
|
64
|
+
* mappings list, which the What syncs tab reads directly.
|
|
65
|
+
*/
|
|
59
66
|
mappedEntityCount: number;
|
|
60
67
|
now: number;
|
|
61
68
|
/**
|
|
@@ -56,6 +56,13 @@ interface IntegrationFacts {
|
|
|
56
56
|
heartbeatIntervalMs?: number | null;
|
|
57
57
|
lastHeartbeatAt: number | null;
|
|
58
58
|
lastRun: RunFact | null;
|
|
59
|
+
/**
|
|
60
|
+
* Whether any entity is mapped, expressed as a number for historical
|
|
61
|
+
* reasons — every producer sets it to 0 or 1, never a real total. Read it as
|
|
62
|
+
* a flag (`> 0`) and never render it as a quantity: doing so reported "1
|
|
63
|
+
* entity mapped" to a workspace with three. The true count lives on the
|
|
64
|
+
* mappings list, which the What syncs tab reads directly.
|
|
65
|
+
*/
|
|
59
66
|
mappedEntityCount: number;
|
|
60
67
|
now: number;
|
|
61
68
|
/**
|
|
@@ -178,7 +178,7 @@ function evidenceFor(id, facts) {
|
|
|
178
178
|
const age = heartbeatAge(facts);
|
|
179
179
|
if (id === "application" && age !== null) return `heartbeat ${formatAge(age)}`;
|
|
180
180
|
if (id === "schema" && facts.discoveredTableCount > 0) return `found ${facts.discoveredTableCount} tables`;
|
|
181
|
-
if (id === "mapping" && facts.mappedEntityCount > 0) return
|
|
181
|
+
if (id === "mapping" && facts.mappedEntityCount > 0) return "entities mapped";
|
|
182
182
|
if (id === "trigger" && facts.triggerConfigured) return triggerUnreachable(facts) ? "set, but the last attempt could not reach your app" : "trigger URL and secret set";
|
|
183
183
|
if (id === "sync" && facts.lastRun) return `last run ${formatAge(facts.now - facts.lastRun.at)}`;
|
|
184
184
|
return null;
|
package/dist/mapping-form.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S as RelationshipsMap, h as FilterExpr, x as RelationshipVia } from "./entity-config-ChHLozko.cjs";
|
|
2
2
|
//#region src/mapping-form.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* A relationship the mapping UI can offer or has configured, in the shape the
|
package/dist/mapping-form.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S as RelationshipsMap, h as FilterExpr, x as RelationshipVia } from "./entity-config-ChHLozko.mjs";
|
|
2
2
|
//#region src/mapping-form.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* A relationship the mapping UI can offer or has configured, in the shape the
|
package/dist/mappings-config.cjs
CHANGED
|
@@ -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-J5KYJVTO.cjs");
|
|
3
3
|
//#region src/mappings-config.ts
|
|
4
4
|
const RESERVED_FIELD = "id";
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { R as ProjectionMapping, S as RelationshipsMap, a as ClivlyEntitiesConfig, h as FilterExpr } from "./entity-config-ChHLozko.cjs";
|
|
2
2
|
//#region src/mappings-config.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Mappings → Entity Config bridge.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { R as ProjectionMapping, S as RelationshipsMap, a as ClivlyEntitiesConfig, h as FilterExpr } from "./entity-config-ChHLozko.mjs";
|
|
2
2
|
//#region src/mappings-config.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Mappings → Entity Config bridge.
|
package/dist/mappings-config.mjs
CHANGED
package/dist/sync-engine.d.cts
CHANGED
package/dist/sync-engine.d.mts
CHANGED
package/dist/view-compiler.d.cts
CHANGED
package/dist/view-compiler.d.mts
CHANGED