@hasna/connectors 1.3.46 → 1.4.1
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 +0 -10
- package/bin/index.js +880 -12650
- package/bin/mcp.js +324 -10279
- package/bin/serve.js +1862 -11817
- package/connectors/googlephotos/src/cli/index.ts +1 -1
- package/connectors/x/src/api/oauth.test.ts +205 -0
- package/connectors/yousearch/README.md +1 -1
- package/connectors/zendesk/CLAUDE.md +1 -1
- package/connectors/zendesk/Makefile +3 -1
- package/connectors/zendesk/README.md +3 -2
- package/connectors/zendesk/SCAFFOLD.md +2 -2
- package/connectors/zendesk/nginx-connector.conf +8 -8
- package/connectors/zendesk/nginx.conf +8 -8
- package/connectors/zendesk/src/cli/index.ts +19 -8
- package/connectors/zendesk/src/server/index.ts +1 -1
- package/connectors/zendesk/src/utils/config.test.ts +70 -0
- package/connectors/zendesk/src/utils/config.ts +12 -2
- package/connectors/zendesk/src/utils/remote-url.test.ts +72 -0
- package/dashboard/dist/assets/index-DlEljRrW.js +285 -0
- package/dashboard/dist/index.html +1 -1
- package/dist/db/database.d.ts +2 -1
- package/dist/db/sqlite-adapter.d.ts +43 -0
- package/dist/index.js +138 -9654
- package/dist/no-cloud-boundary.test.d.ts +1 -0
- package/package.json +11 -4
- package/connectors/tiktok-events-api/.test-home/.bun/install/cache/@t@/b0fec00ef4c1a326.pile +0 -0
- package/dashboard/dist/assets/index-XPlN-9Xy.js +0 -280
- package/dist/cli/commands/sync.d.ts +0 -2
- package/dist/db/pg-migrations.d.ts +0 -6
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>Hasna Connectors</title>
|
|
7
|
-
<script type="module" crossorigin src="/assets/index-
|
|
7
|
+
<script type="module" crossorigin src="/assets/index-DlEljRrW.js"></script>
|
|
8
8
|
<link rel="stylesheet" crossorigin href="/assets/index-D7ZVhmHr.css">
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
package/dist/db/database.d.ts
CHANGED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Database as BunDatabase, type SQLQueryBindings, type Statement } from "bun:sqlite";
|
|
2
|
+
/** Result of a mutating statement, mirroring `bun:sqlite`'s `Statement.run()`. */
|
|
3
|
+
export interface RunResult {
|
|
4
|
+
changes: number;
|
|
5
|
+
lastInsertRowid: number | bigint;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Statement bindings. `bun:sqlite` accepts both the spread form
|
|
9
|
+
* (`run(sql, a, b)`) and a single array of values (`run(sql, [a, b])`), and
|
|
10
|
+
* call sites in `src/db` use both, so both are allowed here.
|
|
11
|
+
*/
|
|
12
|
+
export type Bindings = SQLQueryBindings | SQLQueryBindings[];
|
|
13
|
+
/** A prepared statement handle returned by {@link SqliteAdapter.prepare}. */
|
|
14
|
+
export interface PreparedStatement {
|
|
15
|
+
run(...params: Bindings[]): RunResult;
|
|
16
|
+
get(...params: Bindings[]): unknown;
|
|
17
|
+
all(...params: Bindings[]): unknown[];
|
|
18
|
+
finalize(): void;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Thin synchronous wrapper over `bun:sqlite`.
|
|
22
|
+
*
|
|
23
|
+
* This is the local-only storage engine for the connectors database. It was
|
|
24
|
+
* previously imported from `@hasna/cloud`, which is retired and unsupported;
|
|
25
|
+
* the class is kept API-compatible with that import so the rest of `src/db`
|
|
26
|
+
* and its tests are unchanged.
|
|
27
|
+
*
|
|
28
|
+
* Parameters are forwarded to `bun:sqlite` verbatim, so both the spread form
|
|
29
|
+
* (`run(sql, a, b)`) and the array form (`run(sql, [a, b])`) keep working.
|
|
30
|
+
*/
|
|
31
|
+
export declare class SqliteAdapter {
|
|
32
|
+
private readonly db;
|
|
33
|
+
constructor(path: string);
|
|
34
|
+
run(sql: string, ...params: Bindings[]): RunResult;
|
|
35
|
+
get(sql: string, ...params: Bindings[]): unknown;
|
|
36
|
+
all(sql: string, ...params: Bindings[]): unknown[];
|
|
37
|
+
exec(sql: string): void;
|
|
38
|
+
query(sql: string): Statement;
|
|
39
|
+
prepare(sql: string): PreparedStatement;
|
|
40
|
+
close(): void;
|
|
41
|
+
transaction<T>(fn: () => T): T;
|
|
42
|
+
get raw(): BunDatabase;
|
|
43
|
+
}
|