meadow-integration 1.0.42 → 1.0.43
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/package.json
CHANGED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// Meadow-Integration-Engine — the browser-safe, dependency-light entry point for the comprehension
|
|
2
|
+
// transform / push ENGINE classes, decoupled from the full meadow-integration package.
|
|
3
|
+
//
|
|
4
|
+
// The package `main` (Meadow-Integration.js) and the `browser` entry pull in orator, the meadow ORM,
|
|
5
|
+
// the DB connection drivers, xlsx, etc. — none of which the engine itself needs. These three services
|
|
6
|
+
// depend ONLY on fable-serviceproviderbase (and each other), so an in-browser consumer — e.g.
|
|
7
|
+
// pict-section-dataimport — can `require('meadow-integration/source/Meadow-Integration-Engine.js')`
|
|
8
|
+
// to get the engine WITHOUT dragging any server-only code into its bundle.
|
|
9
|
+
//
|
|
10
|
+
// This file is the stable public contract for in-browser engine consumers: if the internal layout
|
|
11
|
+
// under source/ ever changes, update the requires HERE and consumers keep importing this one path.
|
|
12
|
+
//
|
|
13
|
+
// const { MeadowIntegrationTabularTransform, MeadowIntegrationAdapter, MeadowGUIDMap, getAdapter }
|
|
14
|
+
// = require('meadow-integration/source/Meadow-Integration-Engine.js');
|
|
15
|
+
//
|
|
16
|
+
// - MeadowIntegrationTabularTransform : maps tabular rows -> a Comprehension (transformRecord per row;
|
|
17
|
+
// runs Solvers + MultipleGUIDUniqueness fan-out).
|
|
18
|
+
// - MeadowIntegrationAdapter : GUID marshaling, FK resolution, bulk upsert (setRestClient,
|
|
19
|
+
// addSourceRecord, integrateRecords). Use getAdapter(fable, entity, prefix, options) for the
|
|
20
|
+
// per-entity singleton.
|
|
21
|
+
// - MeadowGUIDMap : the in-session external-GUID <-> Meadow-ID map.
|
|
22
|
+
|
|
23
|
+
const MeadowIntegrationTabularTransform = require('./services/tabular/Service-TabularTransform.js');
|
|
24
|
+
const MeadowIntegrationAdapter = require('./Meadow-Service-Integration-Adapter.js');
|
|
25
|
+
const MeadowGUIDMap = require('./Meadow-Service-Integration-GUIDMap.js');
|
|
26
|
+
|
|
27
|
+
module.exports =
|
|
28
|
+
{
|
|
29
|
+
MeadowIntegrationTabularTransform,
|
|
30
|
+
MeadowIntegrationAdapter,
|
|
31
|
+
MeadowGUIDMap,
|
|
32
|
+
// The per-entity adapter factory (caches on fable.servicesMap.IntegrationAdapter[Entity]).
|
|
33
|
+
getAdapter: MeadowIntegrationAdapter.getAdapter,
|
|
34
|
+
};
|