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/client.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { R as Result, S as SchemaError, L as LakeSyncError, H as HLCTimestamp } from './result-CojzlFE2.js';
|
|
2
2
|
export { u as unwrapOrThrow } from './result-CojzlFE2.js';
|
|
3
|
-
import { T as TableSchema, R as RowDelta, S as SyncPush, b as SyncPull, c as SyncResponse } from './types-
|
|
4
|
-
import { S as SyncQueue, a as SyncCoordinatorConfig, b as SyncCoordinator, L as LocalDB, c as SyncTransport, D as DbError, A as ActionQueue, d as ActionQueueEntry, Q as QueueEntry, C as CheckpointResponse } from './coordinator-
|
|
5
|
-
export { e as ActionQueueEntryStatus, f as DbConfig, g as QueueEntryStatus, h as SyncEvents, i as SyncMode, j as SyncTracker, T as Transaction } from './coordinator-
|
|
3
|
+
import { T as TableSchema, R as RowDelta, S as SyncPush, b as SyncPull, c as SyncResponse } from './types-GGBfZBKQ.js';
|
|
4
|
+
import { S as SyncQueue, a as SyncCoordinatorConfig, b as SyncCoordinator, L as LocalDB, c as SyncTransport, D as DbError, A as ActionQueue, d as ActionQueueEntry, Q as QueueEntry, C as CheckpointResponse } from './coordinator-DN8D8C7W.js';
|
|
5
|
+
export { e as ActionQueueEntryStatus, f as DbConfig, g as QueueEntryStatus, h as SyncEvents, i as SyncMode, j as SyncTracker, T as Transaction } from './coordinator-DN8D8C7W.js';
|
|
6
6
|
import { A as Action, i as ActionPush, j as ActionResponse, d as ActionDiscovery, l as AuthContext, a as ActionValidationError } from './types-Bs-QyOe-.js';
|
|
7
|
-
import { C as ConflictResolver } from './resolver-
|
|
7
|
+
import { C as ConflictResolver } from './resolver-BZURzdlL.js';
|
|
8
|
+
import { a as ConnectorDescriptor } from './registry-BN_9spxE.js';
|
|
8
9
|
import './hlc-DiD8QNG3.js';
|
|
10
|
+
import './types-D-E0VrfS.js';
|
|
9
11
|
|
|
10
12
|
/** Configuration for creating a LakeSync client via {@link createClient}. */
|
|
11
13
|
interface CreateClientConfig {
|
|
@@ -366,6 +368,12 @@ declare class HttpTransport implements SyncTransport {
|
|
|
366
368
|
* Sends a GET request to the actions discovery endpoint.
|
|
367
369
|
*/
|
|
368
370
|
describeActions(): Promise<Result<ActionDiscovery, LakeSyncError>>;
|
|
371
|
+
/**
|
|
372
|
+
* List available connector types and their configuration schemas.
|
|
373
|
+
*
|
|
374
|
+
* Sends a GET request to the unauthenticated `/connectors/types` endpoint.
|
|
375
|
+
*/
|
|
376
|
+
listConnectorTypes(): Promise<Result<ConnectorDescriptor[], LakeSyncError>>;
|
|
369
377
|
/**
|
|
370
378
|
* Download checkpoint for initial sync.
|
|
371
379
|
*
|
package/dist/client.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
decodeSyncResponse,
|
|
7
7
|
encodeSyncPull,
|
|
8
8
|
encodeSyncPush
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-L4ZL5JA7.js";
|
|
10
10
|
import {
|
|
11
11
|
Err,
|
|
12
12
|
HLC,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
quoteIdentifier,
|
|
23
23
|
toError,
|
|
24
24
|
unwrapOrThrow
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-7UBS6MFH.js";
|
|
26
26
|
import "./chunk-7D4SUZUM.js";
|
|
27
27
|
|
|
28
28
|
// ../client/src/db/local-db.ts
|
|
@@ -1208,7 +1208,7 @@ var SyncCoordinator = class {
|
|
|
1208
1208
|
return;
|
|
1209
1209
|
}
|
|
1210
1210
|
const hlc = this.hlc.now();
|
|
1211
|
-
const { generateActionId } = await import("./src-
|
|
1211
|
+
const { generateActionId } = await import("./src-SLVE5567.js");
|
|
1212
1212
|
const actionId = await generateActionId({
|
|
1213
1213
|
clientId: this._clientId,
|
|
1214
1214
|
hlc,
|
|
@@ -1294,6 +1294,18 @@ var SyncCoordinator = class {
|
|
|
1294
1294
|
}
|
|
1295
1295
|
return this.transport.describeActions();
|
|
1296
1296
|
}
|
|
1297
|
+
/**
|
|
1298
|
+
* List available connector types and their configuration schemas.
|
|
1299
|
+
*
|
|
1300
|
+
* Delegates to the transport's `listConnectorTypes()` method. Returns
|
|
1301
|
+
* an empty array when the transport does not support it.
|
|
1302
|
+
*/
|
|
1303
|
+
async listConnectorTypes() {
|
|
1304
|
+
if (!this.transport.listConnectorTypes) {
|
|
1305
|
+
return { ok: true, value: [] };
|
|
1306
|
+
}
|
|
1307
|
+
return this.transport.listConnectorTypes();
|
|
1308
|
+
}
|
|
1297
1309
|
/** Stop auto-sync and clean up listeners */
|
|
1298
1310
|
stopAutoSync() {
|
|
1299
1311
|
if (this.syncIntervalId !== null) {
|
|
@@ -1441,6 +1453,39 @@ var HttpTransport = class {
|
|
|
1441
1453
|
);
|
|
1442
1454
|
}
|
|
1443
1455
|
}
|
|
1456
|
+
/**
|
|
1457
|
+
* List available connector types and their configuration schemas.
|
|
1458
|
+
*
|
|
1459
|
+
* Sends a GET request to the unauthenticated `/connectors/types` endpoint.
|
|
1460
|
+
*/
|
|
1461
|
+
async listConnectorTypes() {
|
|
1462
|
+
const url = `${this.baseUrl}/connectors/types`;
|
|
1463
|
+
try {
|
|
1464
|
+
const response = await this._fetch(url, {
|
|
1465
|
+
method: "GET"
|
|
1466
|
+
});
|
|
1467
|
+
if (!response.ok) {
|
|
1468
|
+
const text = await response.text().catch(() => "Unknown error");
|
|
1469
|
+
return Err(
|
|
1470
|
+
new LakeSyncError(
|
|
1471
|
+
`List connector types failed (${response.status}): ${text}`,
|
|
1472
|
+
"TRANSPORT_ERROR"
|
|
1473
|
+
)
|
|
1474
|
+
);
|
|
1475
|
+
}
|
|
1476
|
+
const data = await response.json();
|
|
1477
|
+
return Ok(data);
|
|
1478
|
+
} catch (error) {
|
|
1479
|
+
const cause = toError(error);
|
|
1480
|
+
return Err(
|
|
1481
|
+
new LakeSyncError(
|
|
1482
|
+
`List connector types request failed: ${cause.message}`,
|
|
1483
|
+
"TRANSPORT_ERROR",
|
|
1484
|
+
cause
|
|
1485
|
+
)
|
|
1486
|
+
);
|
|
1487
|
+
}
|
|
1488
|
+
}
|
|
1444
1489
|
/**
|
|
1445
1490
|
* Download checkpoint for initial sync.
|
|
1446
1491
|
*
|