lakesync 0.1.3 → 0.1.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/adapter.d.ts +87 -9
- package/dist/adapter.js +8 -2
- package/dist/analyst.js +1 -1
- package/dist/{base-poller-Dfaj05py.d.ts → base-poller-CBvhdvcj.d.ts} +1 -1
- package/dist/catalogue.d.ts +1 -1
- package/dist/catalogue.js +2 -2
- package/dist/{chunk-265CMYJH.js → chunk-46CKACNC.js} +2 -2
- package/dist/{chunk-C7ECMNQ4.js → chunk-7UBS6MFH.js} +295 -1
- package/dist/chunk-7UBS6MFH.js.map +1 -0
- package/dist/{chunk-TIPMVLIG.js → chunk-B3QEUG6E.js} +2 -2
- package/dist/{chunk-E7ZDOJCP.js → chunk-L4ZL5JA7.js} +2 -2
- package/dist/{chunk-HAR3YPCY.js → chunk-PWGQ3PXE.js} +32 -9
- package/dist/chunk-PWGQ3PXE.js.map +1 -0
- package/dist/{chunk-SXQB6JT6.js → chunk-SZSGSTVZ.js} +4 -2
- package/dist/{chunk-SXQB6JT6.js.map → chunk-SZSGSTVZ.js.map} +1 -1
- package/dist/{chunk-L6LTCXJ4.js → chunk-TVLTXHW6.js} +4 -2
- package/dist/{chunk-L6LTCXJ4.js.map → chunk-TVLTXHW6.js.map} +1 -1
- package/dist/{chunk-NCMXLWEW.js → chunk-Z7FGLEQU.js} +337 -20
- package/dist/chunk-Z7FGLEQU.js.map +1 -0
- package/dist/client.d.ts +12 -4
- package/dist/client.js +48 -3
- package/dist/client.js.map +1 -1
- package/dist/compactor.d.ts +1 -1
- package/dist/compactor.js +3 -3
- package/dist/connector-jira.d.ts +2 -2
- package/dist/connector-jira.js +2 -2
- package/dist/connector-salesforce.d.ts +2 -2
- package/dist/connector-salesforce.js +2 -2
- package/dist/{coordinator-CSbsqp5C.d.ts → coordinator-DN8D8C7W.d.ts} +11 -1
- package/dist/{db-types-CPAPw8Ws.d.ts → db-types-B6_JKQWK.d.ts} +1 -1
- package/dist/{gateway-Cej8JUh9.d.ts → gateway-CvO7Xy3T.d.ts} +5 -3
- package/dist/gateway-server.d.ts +4 -4
- package/dist/gateway-server.js +14 -8
- package/dist/gateway-server.js.map +1 -1
- package/dist/gateway.d.ts +12 -7
- package/dist/gateway.js +7 -5
- package/dist/index.d.ts +6 -5
- package/dist/index.js +9 -1
- package/dist/parquet.d.ts +1 -1
- package/dist/parquet.js +2 -2
- package/dist/proto.d.ts +1 -1
- package/dist/proto.js +2 -2
- package/dist/react.d.ts +32 -3
- package/dist/react.js +54 -19
- package/dist/react.js.map +1 -1
- package/dist/registry-BN_9spxE.d.ts +53 -0
- package/dist/{resolver-B10tk8Er.d.ts → resolver-BZURzdlL.d.ts} +1 -1
- package/dist/{src-PPKRY5GD.js → src-RR7I76OL.js} +3 -3
- package/dist/{src-TLTET7JZ.js → src-SLVE5567.js} +10 -2
- package/dist/{src-VVCNNYND.js → src-V2CTPR7V.js} +3 -3
- package/dist/{types-BUzzVRD6.d.ts → types-GGBfZBKQ.d.ts} +3 -0
- package/package.json +1 -1
- package/dist/chunk-C7ECMNQ4.js.map +0 -1
- package/dist/chunk-HAR3YPCY.js.map +0 -1
- package/dist/chunk-NCMXLWEW.js.map +0 -1
- /package/dist/{chunk-265CMYJH.js.map → chunk-46CKACNC.js.map} +0 -0
- /package/dist/{chunk-TIPMVLIG.js.map → chunk-B3QEUG6E.js.map} +0 -0
- /package/dist/{chunk-E7ZDOJCP.js.map → chunk-L4ZL5JA7.js.map} +0 -0
- /package/dist/{src-PPKRY5GD.js.map → src-RR7I76OL.js.map} +0 -0
- /package/dist/{src-TLTET7JZ.js.map → src-SLVE5567.js.map} +0 -0
- /package/dist/{src-VVCNNYND.js.map → src-V2CTPR7V.js.map} +0 -0
package/dist/compactor.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { H as HLCTimestamp, R as Result, L as LakeSyncError, F as FlushError } from './result-CojzlFE2.js';
|
|
2
|
-
import { T as TableSchema } from './types-
|
|
2
|
+
import { T as TableSchema } from './types-GGBfZBKQ.js';
|
|
3
3
|
import { L as LakeAdapter } from './types-DSC_EiwR.js';
|
|
4
4
|
|
|
5
5
|
/** Configuration for checkpoint generation */
|
package/dist/compactor.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
encodeSyncResponse
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-L4ZL5JA7.js";
|
|
4
4
|
import {
|
|
5
5
|
readParquetToDeltas,
|
|
6
6
|
writeDeltasToParquet
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-46CKACNC.js";
|
|
8
8
|
import {
|
|
9
9
|
Err,
|
|
10
10
|
FlushError,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
LakeSyncError,
|
|
13
13
|
Ok,
|
|
14
14
|
rowKey
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7UBS6MFH.js";
|
|
16
16
|
import "./chunk-7D4SUZUM.js";
|
|
17
17
|
|
|
18
18
|
// ../compactor/src/checkpoint-generator.ts
|
package/dist/connector-jira.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { L as LakeSyncError, R as Result } from './result-CojzlFE2.js';
|
|
2
|
-
import { B as BaseSourcePoller, P as PushTarget } from './base-poller-
|
|
3
|
-
import { T as TableSchema } from './types-
|
|
2
|
+
import { B as BaseSourcePoller, P as PushTarget } from './base-poller-CBvhdvcj.js';
|
|
3
|
+
import { T as TableSchema } from './types-GGBfZBKQ.js';
|
|
4
4
|
import './hlc-DiD8QNG3.js';
|
|
5
5
|
|
|
6
6
|
/** HTTP error from the Jira REST API. */
|
package/dist/connector-jira.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { L as LakeSyncError, R as Result } from './result-CojzlFE2.js';
|
|
2
|
-
import { B as BaseSourcePoller, P as PushTarget } from './base-poller-
|
|
3
|
-
import { T as TableSchema } from './types-
|
|
2
|
+
import { B as BaseSourcePoller, P as PushTarget } from './base-poller-CBvhdvcj.js';
|
|
3
|
+
import { T as TableSchema } from './types-GGBfZBKQ.js';
|
|
4
4
|
import './hlc-DiD8QNG3.js';
|
|
5
5
|
|
|
6
6
|
/** HTTP error from the Salesforce REST API. */
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
mapLead,
|
|
10
10
|
mapOpportunity,
|
|
11
11
|
testConnection
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-TVLTXHW6.js";
|
|
13
|
+
import "./chunk-7UBS6MFH.js";
|
|
14
14
|
import "./chunk-7D4SUZUM.js";
|
|
15
15
|
export {
|
|
16
16
|
SALESFORCE_TABLE_SCHEMAS,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { L as LakeSyncError, R as Result, H as HLCTimestamp } from './result-CojzlFE2.js';
|
|
2
2
|
import { A as Action, i as ActionPush, j as ActionResponse, d as ActionDiscovery, k as ActionResult, e as ActionErrorResult } from './types-Bs-QyOe-.js';
|
|
3
3
|
import { H as HLC } from './hlc-DiD8QNG3.js';
|
|
4
|
-
import {
|
|
4
|
+
import { a as ConnectorDescriptor } from './registry-BN_9spxE.js';
|
|
5
|
+
import { R as RowDelta, S as SyncPush, b as SyncPull, c as SyncResponse } from './types-GGBfZBKQ.js';
|
|
5
6
|
|
|
6
7
|
/** Configuration for opening a local database */
|
|
7
8
|
interface DbConfig {
|
|
@@ -238,6 +239,8 @@ interface SyncTransport {
|
|
|
238
239
|
executeAction?(msg: ActionPush): Promise<Result<ActionResponse, LakeSyncError>>;
|
|
239
240
|
/** Discover available connectors and their supported action types. */
|
|
240
241
|
describeActions?(): Promise<Result<ActionDiscovery, LakeSyncError>>;
|
|
242
|
+
/** List available connector types and their configuration schemas. */
|
|
243
|
+
listConnectorTypes?(): Promise<Result<ConnectorDescriptor[], LakeSyncError>>;
|
|
241
244
|
/** Whether this transport supports real-time server push. */
|
|
242
245
|
readonly supportsRealtime?: boolean;
|
|
243
246
|
/** Register callback for server-initiated broadcasts. */
|
|
@@ -389,6 +392,13 @@ declare class SyncCoordinator {
|
|
|
389
392
|
* empty connectors when the transport does not support discovery.
|
|
390
393
|
*/
|
|
391
394
|
describeActions(): Promise<Result<ActionDiscovery, LakeSyncError>>;
|
|
395
|
+
/**
|
|
396
|
+
* List available connector types and their configuration schemas.
|
|
397
|
+
*
|
|
398
|
+
* Delegates to the transport's `listConnectorTypes()` method. Returns
|
|
399
|
+
* an empty array when the transport does not support it.
|
|
400
|
+
*/
|
|
401
|
+
listConnectorTypes(): Promise<Result<ConnectorDescriptor[], LakeSyncError>>;
|
|
392
402
|
/** Stop auto-sync and clean up listeners */
|
|
393
403
|
stopAutoSync(): void;
|
|
394
404
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { R as Result, A as AdapterError, H as HLCTimestamp } from './result-CojzlFE2.js';
|
|
2
|
-
import { R as RowDelta, T as TableSchema } from './types-
|
|
2
|
+
import { R as RowDelta, T as TableSchema } from './types-GGBfZBKQ.js';
|
|
3
3
|
|
|
4
4
|
/** Configuration for a database adapter connection. */
|
|
5
5
|
interface DatabaseAdapterConfig {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { g as ActionHandler, i as ActionPush, l as AuthContext, j as ActionResponse, a as ActionValidationError, d as ActionDiscovery, b as SyncRulesContext } from './types-Bs-QyOe-.js';
|
|
2
2
|
import { H as HLCTimestamp, R as Result, S as SchemaError, b as ClockDriftError, B as BackpressureError, a as AdapterNotFoundError, A as AdapterError, F as FlushError } from './result-CojzlFE2.js';
|
|
3
|
-
import { I as IngestTarget } from './base-poller-
|
|
4
|
-
import { R as RowDelta, a as RowKey, T as TableSchema, S as SyncPush, b as SyncPull, c as SyncResponse } from './types-
|
|
5
|
-
import { D as DatabaseAdapter } from './db-types-
|
|
3
|
+
import { I as IngestTarget } from './base-poller-CBvhdvcj.js';
|
|
4
|
+
import { R as RowDelta, a as RowKey, T as TableSchema, S as SyncPush, b as SyncPull, c as SyncResponse } from './types-GGBfZBKQ.js';
|
|
5
|
+
import { D as DatabaseAdapter } from './db-types-B6_JKQWK.js';
|
|
6
6
|
import { L as LakeAdapter } from './types-DSC_EiwR.js';
|
|
7
7
|
import { N as NessieCatalogueClient } from './nessie-client-DrNikVXy.js';
|
|
8
8
|
|
|
@@ -191,6 +191,8 @@ interface GatewayConfig extends BufferConfig {
|
|
|
191
191
|
sourceAdapters?: Record<string, DatabaseAdapter>;
|
|
192
192
|
/** Named action handlers for imperative action execution. */
|
|
193
193
|
actionHandlers?: Record<string, ActionHandler>;
|
|
194
|
+
/** Table schemas for materialisation after flush. */
|
|
195
|
+
schemas?: ReadonlyArray<TableSchema>;
|
|
194
196
|
}
|
|
195
197
|
/** Gateway runtime state */
|
|
196
198
|
interface GatewayState {
|
package/dist/gateway-server.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export { A as AuthClaims, a as AuthError, v as verifyToken } from './auth-CAVutXzx.js';
|
|
2
|
-
import { D as DatabaseAdapter } from './db-types-
|
|
3
|
-
import { S as SyncGateway } from './gateway-
|
|
4
|
-
import { R as RowDelta, c as SyncResponse } from './types-
|
|
2
|
+
import { D as DatabaseAdapter } from './db-types-B6_JKQWK.js';
|
|
3
|
+
import { S as SyncGateway } from './gateway-CvO7Xy3T.js';
|
|
4
|
+
import { R as RowDelta, c as SyncResponse } from './types-GGBfZBKQ.js';
|
|
5
5
|
import { L as LakeAdapter } from './types-DSC_EiwR.js';
|
|
6
6
|
import { H as HLCTimestamp } from './result-CojzlFE2.js';
|
|
7
7
|
import './types-Bs-QyOe-.js';
|
|
8
|
-
import './base-poller-
|
|
8
|
+
import './base-poller-CBvhdvcj.js';
|
|
9
9
|
import './hlc-DiD8QNG3.js';
|
|
10
10
|
import './nessie-client-DrNikVXy.js';
|
|
11
11
|
|
package/dist/gateway-server.js
CHANGED
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
SyncGateway,
|
|
7
7
|
handleActionRequest,
|
|
8
8
|
handleFlushRequest,
|
|
9
|
+
handleListConnectorTypes,
|
|
9
10
|
handleListConnectors,
|
|
10
11
|
handleMetrics,
|
|
11
12
|
handlePullRequest,
|
|
@@ -14,12 +15,12 @@ import {
|
|
|
14
15
|
handleSaveSchema,
|
|
15
16
|
handleSaveSyncRules,
|
|
16
17
|
handleUnregisterConnector
|
|
17
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-PWGQ3PXE.js";
|
|
18
19
|
import {
|
|
19
20
|
createDatabaseAdapter,
|
|
20
21
|
createQueryFn
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-Z7FGLEQU.js";
|
|
23
|
+
import "./chunk-B3QEUG6E.js";
|
|
23
24
|
import {
|
|
24
25
|
TAG_SYNC_PULL,
|
|
25
26
|
TAG_SYNC_PUSH,
|
|
@@ -27,8 +28,8 @@ import {
|
|
|
27
28
|
decodeSyncPush,
|
|
28
29
|
encodeBroadcastFrame,
|
|
29
30
|
encodeSyncResponse
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-L4ZL5JA7.js";
|
|
32
|
+
import "./chunk-46CKACNC.js";
|
|
32
33
|
import {
|
|
33
34
|
AuthError,
|
|
34
35
|
HLC,
|
|
@@ -38,7 +39,7 @@ import {
|
|
|
38
39
|
filterDeltas,
|
|
39
40
|
isActionHandler,
|
|
40
41
|
verifyToken
|
|
41
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-7UBS6MFH.js";
|
|
42
43
|
import {
|
|
43
44
|
__commonJS,
|
|
44
45
|
__require,
|
|
@@ -4311,6 +4312,11 @@ var GatewayServer = class {
|
|
|
4311
4312
|
sendJson(res, { status: "ok" }, 200, corsH);
|
|
4312
4313
|
return;
|
|
4313
4314
|
}
|
|
4315
|
+
if (pathname === "/connectors/types" && method === "GET") {
|
|
4316
|
+
const result = handleListConnectorTypes();
|
|
4317
|
+
sendResult(res, result, corsH);
|
|
4318
|
+
return;
|
|
4319
|
+
}
|
|
4314
4320
|
const route = matchRoute(pathname, method);
|
|
4315
4321
|
if (!route) {
|
|
4316
4322
|
sendError(res, "Not found", 404, corsH);
|
|
@@ -4486,7 +4492,7 @@ var GatewayServer = class {
|
|
|
4486
4492
|
}
|
|
4487
4493
|
if (config.type === "jira" && config.jira) {
|
|
4488
4494
|
try {
|
|
4489
|
-
const { JiraSourcePoller } = await import("./src-
|
|
4495
|
+
const { JiraSourcePoller } = await import("./src-V2CTPR7V.js");
|
|
4490
4496
|
const ingestConfig = config.ingest ? { intervalMs: config.ingest.intervalMs } : void 0;
|
|
4491
4497
|
const poller = new JiraSourcePoller(config.jira, ingestConfig, config.name, this.gateway);
|
|
4492
4498
|
poller.start();
|
|
@@ -4502,7 +4508,7 @@ var GatewayServer = class {
|
|
|
4502
4508
|
}
|
|
4503
4509
|
if (config.type === "salesforce" && config.salesforce) {
|
|
4504
4510
|
try {
|
|
4505
|
-
const { SalesforceSourcePoller } = await import("./src-
|
|
4511
|
+
const { SalesforceSourcePoller } = await import("./src-RR7I76OL.js");
|
|
4506
4512
|
const ingestConfig = config.ingest ? { intervalMs: config.ingest.intervalMs } : void 0;
|
|
4507
4513
|
const poller = new SalesforceSourcePoller(
|
|
4508
4514
|
config.salesforce,
|