@elaraai/east-node-io 0.0.1-beta.1 → 0.0.1-beta.11
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 +38 -0
- package/dist/compression/gzip.d.ts +108 -0
- package/dist/compression/gzip.d.ts.map +1 -0
- package/dist/compression/gzip.js +153 -0
- package/dist/compression/gzip.js.map +1 -0
- package/dist/compression/index.d.ts +308 -0
- package/dist/compression/index.d.ts.map +1 -0
- package/dist/compression/index.js +289 -0
- package/dist/compression/index.js.map +1 -0
- package/dist/compression/tar.d.ts +115 -0
- package/dist/compression/tar.d.ts.map +1 -0
- package/dist/compression/tar.js +254 -0
- package/dist/compression/tar.js.map +1 -0
- package/dist/compression/types.d.ts +124 -0
- package/dist/compression/types.d.ts.map +1 -0
- package/dist/compression/types.js +106 -0
- package/dist/compression/types.js.map +1 -0
- package/dist/compression/zip.d.ts +121 -0
- package/dist/compression/zip.d.ts.map +1 -0
- package/dist/compression/zip.js +200 -0
- package/dist/compression/zip.js.map +1 -0
- package/dist/connection/index.d.ts +78 -0
- package/dist/connection/index.d.ts.map +1 -0
- package/dist/connection/index.js +134 -0
- package/dist/connection/index.js.map +1 -0
- package/dist/format/index.d.ts +421 -0
- package/dist/format/index.d.ts.map +1 -0
- package/dist/format/index.js +326 -0
- package/dist/format/index.js.map +1 -0
- package/dist/format/types.d.ts +176 -0
- package/dist/format/types.d.ts.map +1 -0
- package/dist/format/types.js +122 -0
- package/dist/format/types.js.map +1 -0
- package/dist/format/xlsx.d.ts +178 -0
- package/dist/format/xlsx.d.ts.map +1 -0
- package/dist/format/xlsx.js +313 -0
- package/dist/format/xlsx.js.map +1 -0
- package/dist/format/xml.d.ts +302 -0
- package/dist/format/xml.d.ts.map +1 -0
- package/dist/format/xml.js +602 -0
- package/dist/format/xml.js.map +1 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +32 -0
- package/dist/index.js.map +1 -0
- package/dist/nosql/index.d.ts +503 -0
- package/dist/nosql/index.d.ts.map +1 -0
- package/dist/nosql/index.js +483 -0
- package/dist/nosql/index.js.map +1 -0
- package/dist/nosql/mongodb.d.ts +306 -0
- package/dist/nosql/mongodb.d.ts.map +1 -0
- package/dist/nosql/mongodb.js +552 -0
- package/dist/nosql/mongodb.js.map +1 -0
- package/dist/nosql/redis.d.ts +268 -0
- package/dist/nosql/redis.d.ts.map +1 -0
- package/dist/nosql/redis.js +371 -0
- package/dist/nosql/redis.js.map +1 -0
- package/dist/nosql/types.d.ts +70 -0
- package/dist/nosql/types.d.ts.map +1 -0
- package/dist/nosql/types.js +79 -0
- package/dist/nosql/types.js.map +1 -0
- package/dist/platform.d.ts +12 -0
- package/dist/platform.d.ts.map +1 -0
- package/dist/platform.js +51 -0
- package/dist/platform.js.map +1 -0
- package/dist/sql/index.d.ts +777 -0
- package/dist/sql/index.d.ts.map +1 -0
- package/dist/sql/index.js +515 -0
- package/dist/sql/index.js.map +1 -0
- package/dist/sql/mysql.d.ts +238 -0
- package/dist/sql/mysql.d.ts.map +1 -0
- package/dist/sql/mysql.js +396 -0
- package/dist/sql/mysql.js.map +1 -0
- package/dist/sql/postgres.d.ts +237 -0
- package/dist/sql/postgres.d.ts.map +1 -0
- package/dist/sql/postgres.js +381 -0
- package/dist/sql/postgres.js.map +1 -0
- package/dist/sql/sqlite.d.ts +217 -0
- package/dist/sql/sqlite.d.ts.map +1 -0
- package/dist/sql/sqlite.js +366 -0
- package/dist/sql/sqlite.js.map +1 -0
- package/dist/sql/types.d.ts +205 -0
- package/dist/sql/types.d.ts.map +1 -0
- package/dist/sql/types.js +175 -0
- package/dist/sql/types.js.map +1 -0
- package/dist/storage/index.d.ts +304 -0
- package/dist/storage/index.d.ts.map +1 -0
- package/dist/storage/index.js +234 -0
- package/dist/storage/index.js.map +1 -0
- package/dist/storage/s3.d.ts +373 -0
- package/dist/storage/s3.d.ts.map +1 -0
- package/dist/storage/s3.js +502 -0
- package/dist/storage/s3.js.map +1 -0
- package/dist/storage/types.d.ts +117 -0
- package/dist/storage/types.d.ts.map +1 -0
- package/dist/storage/types.js +94 -0
- package/dist/storage/types.js.map +1 -0
- package/dist/transfer/ftp.d.ts +333 -0
- package/dist/transfer/ftp.d.ts.map +1 -0
- package/dist/transfer/ftp.js +437 -0
- package/dist/transfer/ftp.js.map +1 -0
- package/dist/transfer/index.d.ts +456 -0
- package/dist/transfer/index.d.ts.map +1 -0
- package/dist/transfer/index.js +414 -0
- package/dist/transfer/index.js.map +1 -0
- package/dist/transfer/sftp.d.ts +333 -0
- package/dist/transfer/sftp.d.ts.map +1 -0
- package/dist/transfer/sftp.js +436 -0
- package/dist/transfer/sftp.js.map +1 -0
- package/dist/transfer/types.d.ts +108 -0
- package/dist/transfer/types.d.ts.map +1 -0
- package/dist/transfer/types.js +110 -0
- package/dist/transfer/types.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +17 -9
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Shared NoSQL type definitions for East Node IO.
|
|
7
|
+
*
|
|
8
|
+
* Provides East type definitions for Redis and MongoDB operations.
|
|
9
|
+
*
|
|
10
|
+
* @packageDocumentation
|
|
11
|
+
*/
|
|
12
|
+
import { StructType, OptionType, StringType, IntegerType, RecursiveType } from "@elaraai/east";
|
|
13
|
+
/**
|
|
14
|
+
* Redis connection configuration.
|
|
15
|
+
*
|
|
16
|
+
* Configures connection to a Redis server.
|
|
17
|
+
*/
|
|
18
|
+
export declare const RedisConfigType: StructType<{
|
|
19
|
+
/** Redis server hostname or IP address */
|
|
20
|
+
host: StringType;
|
|
21
|
+
/** Redis server port (typically 6379) */
|
|
22
|
+
port: IntegerType;
|
|
23
|
+
/** Password for authentication (optional) */
|
|
24
|
+
password: OptionType<StringType>;
|
|
25
|
+
/** Database index (0-15, optional, defaults to 0) */
|
|
26
|
+
db: OptionType<IntegerType>;
|
|
27
|
+
/** Key prefix for all operations (optional) */
|
|
28
|
+
keyPrefix: OptionType<StringType>;
|
|
29
|
+
}>;
|
|
30
|
+
/**
|
|
31
|
+
* MongoDB connection configuration.
|
|
32
|
+
*
|
|
33
|
+
* Configures connection to a MongoDB server.
|
|
34
|
+
*/
|
|
35
|
+
export declare const MongoConfigType: StructType<{
|
|
36
|
+
/** MongoDB connection URI */
|
|
37
|
+
uri: StringType;
|
|
38
|
+
/** Database name */
|
|
39
|
+
database: StringType;
|
|
40
|
+
/** Collection name */
|
|
41
|
+
collection: StringType;
|
|
42
|
+
}>;
|
|
43
|
+
/**
|
|
44
|
+
* BSON-compatible value type (recursive).
|
|
45
|
+
*
|
|
46
|
+
* Represents a value that can be stored in MongoDB.
|
|
47
|
+
* Supports nested objects and arrays.
|
|
48
|
+
*/
|
|
49
|
+
export declare const BsonValueType: ReturnType<typeof RecursiveType>;
|
|
50
|
+
/**
|
|
51
|
+
* MongoDB find options.
|
|
52
|
+
*
|
|
53
|
+
* Options for limiting and offsetting query results.
|
|
54
|
+
*/
|
|
55
|
+
export declare const MongoFindOptionsType: StructType<{
|
|
56
|
+
/** Maximum number of documents to return (optional) */
|
|
57
|
+
limit: OptionType<IntegerType>;
|
|
58
|
+
/** Number of documents to skip (optional) */
|
|
59
|
+
skip: OptionType<IntegerType>;
|
|
60
|
+
}>;
|
|
61
|
+
/**
|
|
62
|
+
* Opaque connection handle type.
|
|
63
|
+
*
|
|
64
|
+
* Represents an active Redis or MongoDB connection.
|
|
65
|
+
*
|
|
66
|
+
* @internal
|
|
67
|
+
*/
|
|
68
|
+
declare const ConnectionHandleType: StringType;
|
|
69
|
+
export { ConnectionHandleType };
|
|
70
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/nosql/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;GAMG;AAEH,OAAO,EACH,UAAU,EACV,UAAU,EACV,UAAU,EACV,WAAW,EACX,aAAa,EAOhB,MAAM,eAAe,CAAC;AAEvB;;;;GAIG;AACH,eAAO,MAAM,eAAe;IACxB,0CAA0C;;IAG1C,yCAAyC;;IAGzC,6CAA6C;;IAG7C,qDAAqD;;IAGrD,+CAA+C;;EAEjD,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,eAAe;IACxB,6BAA6B;;IAG7B,oBAAoB;;IAGpB,sBAAsB;;EAExB,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,aAAa,EAAE,UAAU,CAAC,OAAO,aAAa,CAU1D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;IAC7B,uDAAuD;;IAGvD,6CAA6C;;EAE/C,CAAC;AAEH;;;;;;GAMG;AACH,QAAA,MAAM,oBAAoB,YAAa,CAAC;AAGxC,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Shared NoSQL type definitions for East Node IO.
|
|
7
|
+
*
|
|
8
|
+
* Provides East type definitions for Redis and MongoDB operations.
|
|
9
|
+
*
|
|
10
|
+
* @packageDocumentation
|
|
11
|
+
*/
|
|
12
|
+
import { StructType, OptionType, StringType, IntegerType, RecursiveType, VariantType, ArrayType, DictType, BooleanType, FloatType, NullType, } from "@elaraai/east";
|
|
13
|
+
/**
|
|
14
|
+
* Redis connection configuration.
|
|
15
|
+
*
|
|
16
|
+
* Configures connection to a Redis server.
|
|
17
|
+
*/
|
|
18
|
+
export const RedisConfigType = StructType({
|
|
19
|
+
/** Redis server hostname or IP address */
|
|
20
|
+
host: StringType,
|
|
21
|
+
/** Redis server port (typically 6379) */
|
|
22
|
+
port: IntegerType,
|
|
23
|
+
/** Password for authentication (optional) */
|
|
24
|
+
password: OptionType(StringType),
|
|
25
|
+
/** Database index (0-15, optional, defaults to 0) */
|
|
26
|
+
db: OptionType(IntegerType),
|
|
27
|
+
/** Key prefix for all operations (optional) */
|
|
28
|
+
keyPrefix: OptionType(StringType),
|
|
29
|
+
});
|
|
30
|
+
/**
|
|
31
|
+
* MongoDB connection configuration.
|
|
32
|
+
*
|
|
33
|
+
* Configures connection to a MongoDB server.
|
|
34
|
+
*/
|
|
35
|
+
export const MongoConfigType = StructType({
|
|
36
|
+
/** MongoDB connection URI */
|
|
37
|
+
uri: StringType,
|
|
38
|
+
/** Database name */
|
|
39
|
+
database: StringType,
|
|
40
|
+
/** Collection name */
|
|
41
|
+
collection: StringType,
|
|
42
|
+
});
|
|
43
|
+
/**
|
|
44
|
+
* BSON-compatible value type (recursive).
|
|
45
|
+
*
|
|
46
|
+
* Represents a value that can be stored in MongoDB.
|
|
47
|
+
* Supports nested objects and arrays.
|
|
48
|
+
*/
|
|
49
|
+
export const BsonValueType = RecursiveType((self) => VariantType({
|
|
50
|
+
String: StringType,
|
|
51
|
+
Integer: IntegerType,
|
|
52
|
+
Float: FloatType,
|
|
53
|
+
Boolean: BooleanType,
|
|
54
|
+
Null: NullType,
|
|
55
|
+
Array: ArrayType(self),
|
|
56
|
+
Object: DictType(StringType, self),
|
|
57
|
+
}));
|
|
58
|
+
/**
|
|
59
|
+
* MongoDB find options.
|
|
60
|
+
*
|
|
61
|
+
* Options for limiting and offsetting query results.
|
|
62
|
+
*/
|
|
63
|
+
export const MongoFindOptionsType = StructType({
|
|
64
|
+
/** Maximum number of documents to return (optional) */
|
|
65
|
+
limit: OptionType(IntegerType),
|
|
66
|
+
/** Number of documents to skip (optional) */
|
|
67
|
+
skip: OptionType(IntegerType),
|
|
68
|
+
});
|
|
69
|
+
/**
|
|
70
|
+
* Opaque connection handle type.
|
|
71
|
+
*
|
|
72
|
+
* Represents an active Redis or MongoDB connection.
|
|
73
|
+
*
|
|
74
|
+
* @internal
|
|
75
|
+
*/
|
|
76
|
+
const ConnectionHandleType = StringType;
|
|
77
|
+
// Export for internal use within nosql module only
|
|
78
|
+
export { ConnectionHandleType };
|
|
79
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/nosql/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;GAMG;AAEH,OAAO,EACH,UAAU,EACV,UAAU,EACV,UAAU,EACV,WAAW,EACX,aAAa,EACb,WAAW,EACX,SAAS,EACT,QAAQ,EACR,WAAW,EACX,SAAS,EACT,QAAQ,GACX,MAAM,eAAe,CAAC;AAEvB;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,UAAU,CAAC;IACtC,0CAA0C;IAC1C,IAAI,EAAE,UAAU;IAEhB,yCAAyC;IACzC,IAAI,EAAE,WAAW;IAEjB,6CAA6C;IAC7C,QAAQ,EAAE,UAAU,CAAC,UAAU,CAAC;IAEhC,qDAAqD;IACrD,EAAE,EAAE,UAAU,CAAC,WAAW,CAAC;IAE3B,+CAA+C;IAC/C,SAAS,EAAE,UAAU,CAAC,UAAU,CAAC;CACpC,CAAC,CAAC;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,UAAU,CAAC;IACtC,6BAA6B;IAC7B,GAAG,EAAE,UAAU;IAEf,oBAAoB;IACpB,QAAQ,EAAE,UAAU;IAEpB,sBAAsB;IACtB,UAAU,EAAE,UAAU;CACzB,CAAC,CAAC;AAEH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,aAAa,GAAqC,aAAa,CAAC,CAAC,IAAI,EAAE,EAAE,CAClF,WAAW,CAAC;IACR,MAAM,EAAE,UAAU;IAClB,OAAO,EAAE,WAAW;IACpB,KAAK,EAAE,SAAS;IAChB,OAAO,EAAE,WAAW;IACpB,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,SAAS,CAAC,IAAI,CAAC;IACtB,MAAM,EAAE,QAAQ,CAAC,UAAU,EAAE,IAAI,CAAC;CACrC,CAAC,CACL,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,UAAU,CAAC;IAC3C,uDAAuD;IACvD,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC;IAE9B,6CAA6C;IAC7C,IAAI,EAAE,UAAU,CAAC,WAAW,CAAC;CAChC,CAAC,CAAC;AAEH;;;;;;GAMG;AACH,MAAM,oBAAoB,GAAG,UAAU,CAAC;AAExC,mDAAmD;AACnD,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Complete I/O platform implementation.
|
|
7
|
+
*
|
|
8
|
+
* Pass this array to the CLI or `compile()` to enable all I/O platform functions.
|
|
9
|
+
*/
|
|
10
|
+
declare const NodeIOPlatform: import("@elaraai/east/internal").PlatformFunction[];
|
|
11
|
+
export default NodeIOPlatform;
|
|
12
|
+
//# sourceMappingURL=platform.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../src/platform.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAmCH;;;;GAIG;AACH,QAAA,MAAM,cAAc,qDAanB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
package/dist/platform.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Platform export for east-node-cli.
|
|
7
|
+
*
|
|
8
|
+
* This module provides all I/O platform functions for use with the CLI.
|
|
9
|
+
* Import via `@elaraai/east-node-io/platform`.
|
|
10
|
+
*
|
|
11
|
+
* @packageDocumentation
|
|
12
|
+
*/
|
|
13
|
+
// SQL implementations
|
|
14
|
+
import { SqliteImpl } from "./sql/sqlite.js";
|
|
15
|
+
import { PostgresImpl } from "./sql/postgres.js";
|
|
16
|
+
import { MySqlImpl } from "./sql/mysql.js";
|
|
17
|
+
// Storage implementations
|
|
18
|
+
import { S3Impl } from "./storage/s3.js";
|
|
19
|
+
// Transfer implementations
|
|
20
|
+
import { FtpImpl } from "./transfer/ftp.js";
|
|
21
|
+
import { SftpImpl } from "./transfer/sftp.js";
|
|
22
|
+
// NoSQL implementations
|
|
23
|
+
import { RedisImpl } from "./nosql/redis.js";
|
|
24
|
+
import { MongoDBImpl } from "./nosql/mongodb.js";
|
|
25
|
+
// Format implementations
|
|
26
|
+
import { XlsxImpl } from "./format/xlsx.js";
|
|
27
|
+
// Compression implementations
|
|
28
|
+
import { GzipImpl } from "./compression/gzip.js";
|
|
29
|
+
import { ZipImpl } from "./compression/zip.js";
|
|
30
|
+
import { TarImpl } from "./compression/tar.js";
|
|
31
|
+
/**
|
|
32
|
+
* Complete I/O platform implementation.
|
|
33
|
+
*
|
|
34
|
+
* Pass this array to the CLI or `compile()` to enable all I/O platform functions.
|
|
35
|
+
*/
|
|
36
|
+
const NodeIOPlatform = [
|
|
37
|
+
...SqliteImpl,
|
|
38
|
+
...PostgresImpl,
|
|
39
|
+
...MySqlImpl,
|
|
40
|
+
...S3Impl,
|
|
41
|
+
...FtpImpl,
|
|
42
|
+
...SftpImpl,
|
|
43
|
+
...RedisImpl,
|
|
44
|
+
...MongoDBImpl,
|
|
45
|
+
...XlsxImpl,
|
|
46
|
+
...GzipImpl,
|
|
47
|
+
...ZipImpl,
|
|
48
|
+
...TarImpl,
|
|
49
|
+
];
|
|
50
|
+
export default NodeIOPlatform;
|
|
51
|
+
//# sourceMappingURL=platform.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform.js","sourceRoot":"","sources":["../src/platform.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;GAOG;AAEH,sBAAsB;AACtB,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,0BAA0B;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,2BAA2B;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,wBAAwB;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,yBAAyB;AACzB,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,8BAA8B;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE/C;;;;GAIG;AACH,MAAM,cAAc,GAAG;IACnB,GAAG,UAAU;IACb,GAAG,YAAY;IACf,GAAG,SAAS;IACZ,GAAG,MAAM;IACT,GAAG,OAAO;IACV,GAAG,QAAQ;IACX,GAAG,SAAS;IACZ,GAAG,WAAW;IACd,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,OAAO;IACV,GAAG,OAAO;CACb,CAAC;AAEF,eAAe,cAAc,CAAC"}
|