@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.
Files changed (115) hide show
  1. package/README.md +38 -0
  2. package/dist/compression/gzip.d.ts +108 -0
  3. package/dist/compression/gzip.d.ts.map +1 -0
  4. package/dist/compression/gzip.js +153 -0
  5. package/dist/compression/gzip.js.map +1 -0
  6. package/dist/compression/index.d.ts +308 -0
  7. package/dist/compression/index.d.ts.map +1 -0
  8. package/dist/compression/index.js +289 -0
  9. package/dist/compression/index.js.map +1 -0
  10. package/dist/compression/tar.d.ts +115 -0
  11. package/dist/compression/tar.d.ts.map +1 -0
  12. package/dist/compression/tar.js +254 -0
  13. package/dist/compression/tar.js.map +1 -0
  14. package/dist/compression/types.d.ts +124 -0
  15. package/dist/compression/types.d.ts.map +1 -0
  16. package/dist/compression/types.js +106 -0
  17. package/dist/compression/types.js.map +1 -0
  18. package/dist/compression/zip.d.ts +121 -0
  19. package/dist/compression/zip.d.ts.map +1 -0
  20. package/dist/compression/zip.js +200 -0
  21. package/dist/compression/zip.js.map +1 -0
  22. package/dist/connection/index.d.ts +78 -0
  23. package/dist/connection/index.d.ts.map +1 -0
  24. package/dist/connection/index.js +134 -0
  25. package/dist/connection/index.js.map +1 -0
  26. package/dist/format/index.d.ts +421 -0
  27. package/dist/format/index.d.ts.map +1 -0
  28. package/dist/format/index.js +326 -0
  29. package/dist/format/index.js.map +1 -0
  30. package/dist/format/types.d.ts +176 -0
  31. package/dist/format/types.d.ts.map +1 -0
  32. package/dist/format/types.js +122 -0
  33. package/dist/format/types.js.map +1 -0
  34. package/dist/format/xlsx.d.ts +178 -0
  35. package/dist/format/xlsx.d.ts.map +1 -0
  36. package/dist/format/xlsx.js +313 -0
  37. package/dist/format/xlsx.js.map +1 -0
  38. package/dist/format/xml.d.ts +302 -0
  39. package/dist/format/xml.d.ts.map +1 -0
  40. package/dist/format/xml.js +602 -0
  41. package/dist/format/xml.js.map +1 -0
  42. package/dist/index.d.ts +25 -0
  43. package/dist/index.d.ts.map +1 -0
  44. package/dist/index.js +32 -0
  45. package/dist/index.js.map +1 -0
  46. package/dist/nosql/index.d.ts +503 -0
  47. package/dist/nosql/index.d.ts.map +1 -0
  48. package/dist/nosql/index.js +483 -0
  49. package/dist/nosql/index.js.map +1 -0
  50. package/dist/nosql/mongodb.d.ts +306 -0
  51. package/dist/nosql/mongodb.d.ts.map +1 -0
  52. package/dist/nosql/mongodb.js +552 -0
  53. package/dist/nosql/mongodb.js.map +1 -0
  54. package/dist/nosql/redis.d.ts +268 -0
  55. package/dist/nosql/redis.d.ts.map +1 -0
  56. package/dist/nosql/redis.js +371 -0
  57. package/dist/nosql/redis.js.map +1 -0
  58. package/dist/nosql/types.d.ts +70 -0
  59. package/dist/nosql/types.d.ts.map +1 -0
  60. package/dist/nosql/types.js +79 -0
  61. package/dist/nosql/types.js.map +1 -0
  62. package/dist/platform.d.ts +12 -0
  63. package/dist/platform.d.ts.map +1 -0
  64. package/dist/platform.js +51 -0
  65. package/dist/platform.js.map +1 -0
  66. package/dist/sql/index.d.ts +777 -0
  67. package/dist/sql/index.d.ts.map +1 -0
  68. package/dist/sql/index.js +515 -0
  69. package/dist/sql/index.js.map +1 -0
  70. package/dist/sql/mysql.d.ts +238 -0
  71. package/dist/sql/mysql.d.ts.map +1 -0
  72. package/dist/sql/mysql.js +396 -0
  73. package/dist/sql/mysql.js.map +1 -0
  74. package/dist/sql/postgres.d.ts +237 -0
  75. package/dist/sql/postgres.d.ts.map +1 -0
  76. package/dist/sql/postgres.js +381 -0
  77. package/dist/sql/postgres.js.map +1 -0
  78. package/dist/sql/sqlite.d.ts +217 -0
  79. package/dist/sql/sqlite.d.ts.map +1 -0
  80. package/dist/sql/sqlite.js +366 -0
  81. package/dist/sql/sqlite.js.map +1 -0
  82. package/dist/sql/types.d.ts +205 -0
  83. package/dist/sql/types.d.ts.map +1 -0
  84. package/dist/sql/types.js +175 -0
  85. package/dist/sql/types.js.map +1 -0
  86. package/dist/storage/index.d.ts +304 -0
  87. package/dist/storage/index.d.ts.map +1 -0
  88. package/dist/storage/index.js +234 -0
  89. package/dist/storage/index.js.map +1 -0
  90. package/dist/storage/s3.d.ts +373 -0
  91. package/dist/storage/s3.d.ts.map +1 -0
  92. package/dist/storage/s3.js +502 -0
  93. package/dist/storage/s3.js.map +1 -0
  94. package/dist/storage/types.d.ts +117 -0
  95. package/dist/storage/types.d.ts.map +1 -0
  96. package/dist/storage/types.js +94 -0
  97. package/dist/storage/types.js.map +1 -0
  98. package/dist/transfer/ftp.d.ts +333 -0
  99. package/dist/transfer/ftp.d.ts.map +1 -0
  100. package/dist/transfer/ftp.js +437 -0
  101. package/dist/transfer/ftp.js.map +1 -0
  102. package/dist/transfer/index.d.ts +456 -0
  103. package/dist/transfer/index.d.ts.map +1 -0
  104. package/dist/transfer/index.js +414 -0
  105. package/dist/transfer/index.js.map +1 -0
  106. package/dist/transfer/sftp.d.ts +333 -0
  107. package/dist/transfer/sftp.d.ts.map +1 -0
  108. package/dist/transfer/sftp.js +436 -0
  109. package/dist/transfer/sftp.js.map +1 -0
  110. package/dist/transfer/types.d.ts +108 -0
  111. package/dist/transfer/types.d.ts.map +1 -0
  112. package/dist/transfer/types.js +110 -0
  113. package/dist/transfer/types.js.map +1 -0
  114. package/dist/tsconfig.tsbuildinfo +1 -0
  115. 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"}
@@ -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"}