@elaraai/east-node-io 0.0.1-beta.16 → 0.0.1-beta.18
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/compression/gzip.d.ts +1 -1
- package/dist/compression/gzip.js +3 -3
- package/dist/compression/gzip.js.map +1 -1
- package/dist/compression/index.d.ts +16 -16
- package/dist/compression/tar.d.ts +2 -2
- package/dist/compression/tar.js +7 -7
- package/dist/compression/tar.js.map +1 -1
- package/dist/compression/types.d.ts +10 -10
- package/dist/compression/zip.d.ts +3 -3
- package/dist/compression/zip.js +4 -4
- package/dist/compression/zip.js.map +1 -1
- package/dist/connection/index.js +2 -2
- package/dist/connection/index.js.map +1 -1
- package/dist/format/index.d.ts +77 -77
- package/dist/format/types.d.ts +53 -53
- package/dist/format/xlsx.d.ts +20 -20
- package/dist/format/xlsx.js +6 -6
- package/dist/format/xlsx.js.map +1 -1
- package/dist/format/xml.d.ts +54 -54
- package/dist/format/xml.js +14 -14
- package/dist/format/xml.js.map +1 -1
- package/dist/nosql/index.d.ts +20 -20
- package/dist/nosql/mongodb.d.ts +5 -5
- package/dist/nosql/mongodb.js +8 -8
- package/dist/nosql/mongodb.js.map +1 -1
- package/dist/nosql/redis.d.ts +5 -5
- package/dist/nosql/redis.js +6 -6
- package/dist/nosql/redis.js.map +1 -1
- package/dist/nosql/types.d.ts +10 -10
- package/dist/sql/index.d.ts +214 -214
- package/dist/sql/mysql.d.ts +30 -30
- package/dist/sql/mysql.js +5 -5
- package/dist/sql/mysql.js.map +1 -1
- package/dist/sql/postgres.d.ts +30 -30
- package/dist/sql/postgres.js +5 -5
- package/dist/sql/postgres.js.map +1 -1
- package/dist/sql/sqlite.d.ts +26 -26
- package/dist/sql/sqlite.js +5 -5
- package/dist/sql/sqlite.js.map +1 -1
- package/dist/sql/types.d.ts +54 -54
- package/dist/storage/index.d.ts +61 -61
- package/dist/storage/s3.d.ts +43 -43
- package/dist/storage/s3.js +6 -6
- package/dist/storage/s3.js.map +1 -1
- package/dist/storage/types.d.ts +18 -18
- package/dist/transfer/ftp.d.ts +10 -10
- package/dist/transfer/ftp.js +6 -6
- package/dist/transfer/ftp.js.map +1 -1
- package/dist/transfer/index.d.ts +40 -40
- package/dist/transfer/sftp.d.ts +10 -10
- package/dist/transfer/sftp.js +6 -6
- package/dist/transfer/sftp.js.map +1 -1
- package/dist/transfer/types.d.ts +15 -15
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
package/dist/storage/types.d.ts
CHANGED
|
@@ -21,26 +21,26 @@ export declare const S3ConfigType: StructType<{
|
|
|
21
21
|
/**
|
|
22
22
|
* AWS region (e.g., "us-east-1", "eu-west-1").
|
|
23
23
|
*/
|
|
24
|
-
region: StringType;
|
|
24
|
+
readonly region: StringType;
|
|
25
25
|
/**
|
|
26
26
|
* S3 bucket name.
|
|
27
27
|
*/
|
|
28
|
-
bucket: StringType;
|
|
28
|
+
readonly bucket: StringType;
|
|
29
29
|
/**
|
|
30
30
|
* AWS access key ID for authentication.
|
|
31
31
|
* Optional, defaults to AWS credential chain.
|
|
32
32
|
*/
|
|
33
|
-
accessKeyId: OptionType<StringType>;
|
|
33
|
+
readonly accessKeyId: OptionType<StringType>;
|
|
34
34
|
/**
|
|
35
35
|
* AWS secret access key for authentication.
|
|
36
36
|
* Optional, defaults to AWS credential chain.
|
|
37
37
|
*/
|
|
38
|
-
secretAccessKey: OptionType<StringType>;
|
|
38
|
+
readonly secretAccessKey: OptionType<StringType>;
|
|
39
39
|
/**
|
|
40
40
|
* Custom endpoint for S3-compatible services (e.g., "http://localhost:9000" for MinIO).
|
|
41
41
|
* Optional, defaults to AWS S3 endpoint.
|
|
42
42
|
*/
|
|
43
|
-
endpoint: OptionType<StringType>;
|
|
43
|
+
readonly endpoint: OptionType<StringType>;
|
|
44
44
|
}>;
|
|
45
45
|
/**
|
|
46
46
|
* S3 object metadata.
|
|
@@ -51,25 +51,25 @@ export declare const S3ObjectMetadataType: StructType<{
|
|
|
51
51
|
/**
|
|
52
52
|
* Object key (path) in the bucket.
|
|
53
53
|
*/
|
|
54
|
-
key: StringType;
|
|
54
|
+
readonly key: StringType;
|
|
55
55
|
/**
|
|
56
56
|
* Object size in bytes.
|
|
57
57
|
*/
|
|
58
|
-
size: IntegerType;
|
|
58
|
+
readonly size: IntegerType;
|
|
59
59
|
/**
|
|
60
60
|
* Last modified timestamp as a Date object.
|
|
61
61
|
*/
|
|
62
|
-
lastModified: DateTimeType;
|
|
62
|
+
readonly lastModified: DateTimeType;
|
|
63
63
|
/**
|
|
64
64
|
* Content type of the object (MIME type).
|
|
65
65
|
* Optional, may be None if not set.
|
|
66
66
|
*/
|
|
67
|
-
contentType: OptionType<StringType>;
|
|
67
|
+
readonly contentType: OptionType<StringType>;
|
|
68
68
|
/**
|
|
69
69
|
* ETag of the object (entity tag for versioning/caching).
|
|
70
70
|
* Optional, may be None if not available.
|
|
71
71
|
*/
|
|
72
|
-
etag: OptionType<StringType>;
|
|
72
|
+
readonly etag: OptionType<StringType>;
|
|
73
73
|
}>;
|
|
74
74
|
/**
|
|
75
75
|
* S3 list objects result.
|
|
@@ -80,38 +80,38 @@ export declare const S3ListResultType: StructType<{
|
|
|
80
80
|
/**
|
|
81
81
|
* Array of object metadata for objects matching the prefix.
|
|
82
82
|
*/
|
|
83
|
-
objects: ArrayType<StructType<{
|
|
83
|
+
readonly objects: ArrayType<StructType<{
|
|
84
84
|
/**
|
|
85
85
|
* Object key (path) in the bucket.
|
|
86
86
|
*/
|
|
87
|
-
key: StringType;
|
|
87
|
+
readonly key: StringType;
|
|
88
88
|
/**
|
|
89
89
|
* Object size in bytes.
|
|
90
90
|
*/
|
|
91
|
-
size: IntegerType;
|
|
91
|
+
readonly size: IntegerType;
|
|
92
92
|
/**
|
|
93
93
|
* Last modified timestamp as a Date object.
|
|
94
94
|
*/
|
|
95
|
-
lastModified: DateTimeType;
|
|
95
|
+
readonly lastModified: DateTimeType;
|
|
96
96
|
/**
|
|
97
97
|
* Content type of the object (MIME type).
|
|
98
98
|
* Optional, may be None if not set.
|
|
99
99
|
*/
|
|
100
|
-
contentType: OptionType<StringType>;
|
|
100
|
+
readonly contentType: OptionType<StringType>;
|
|
101
101
|
/**
|
|
102
102
|
* ETag of the object (entity tag for versioning/caching).
|
|
103
103
|
* Optional, may be None if not available.
|
|
104
104
|
*/
|
|
105
|
-
etag: OptionType<StringType>;
|
|
105
|
+
readonly etag: OptionType<StringType>;
|
|
106
106
|
}>>;
|
|
107
107
|
/**
|
|
108
108
|
* Whether the result list is truncated (more results available).
|
|
109
109
|
*/
|
|
110
|
-
isTruncated: BooleanType;
|
|
110
|
+
readonly isTruncated: BooleanType;
|
|
111
111
|
/**
|
|
112
112
|
* Continuation token for fetching next page of results.
|
|
113
113
|
* Optional, None if no more results available.
|
|
114
114
|
*/
|
|
115
|
-
continuationToken: OptionType<StringType>;
|
|
115
|
+
readonly continuationToken: OptionType<StringType>;
|
|
116
116
|
}>;
|
|
117
117
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/transfer/ftp.d.ts
CHANGED
|
@@ -60,11 +60,11 @@ import { StringType } from "./types.js";
|
|
|
60
60
|
* - All operations are asynchronous (use East.compileAsync)
|
|
61
61
|
*/
|
|
62
62
|
export declare const ftp_connect: import("@elaraai/east").AsyncPlatformDefinition<[import("@elaraai/east").StructType<{
|
|
63
|
-
host: StringType;
|
|
64
|
-
port: import("@elaraai/east").IntegerType;
|
|
65
|
-
user: StringType;
|
|
66
|
-
password: StringType;
|
|
67
|
-
secure: import("@elaraai/east").BooleanType;
|
|
63
|
+
readonly host: StringType;
|
|
64
|
+
readonly port: import("@elaraai/east").IntegerType;
|
|
65
|
+
readonly user: StringType;
|
|
66
|
+
readonly password: StringType;
|
|
67
|
+
readonly secure: import("@elaraai/east").BooleanType;
|
|
68
68
|
}>], StringType>;
|
|
69
69
|
/**
|
|
70
70
|
* Uploads a file to an FTP server.
|
|
@@ -209,11 +209,11 @@ export declare const ftp_get: import("@elaraai/east").AsyncPlatformDefinition<[S
|
|
|
209
209
|
* - Use isDirectory field to distinguish between files and directories
|
|
210
210
|
*/
|
|
211
211
|
export declare const ftp_list: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType], ArrayType<import("@elaraai/east").StructType<{
|
|
212
|
-
name: StringType;
|
|
213
|
-
path: StringType;
|
|
214
|
-
size: import("@elaraai/east").IntegerType;
|
|
215
|
-
isDirectory: import("@elaraai/east").BooleanType;
|
|
216
|
-
modifiedTime: StringType;
|
|
212
|
+
readonly name: StringType;
|
|
213
|
+
readonly path: StringType;
|
|
214
|
+
readonly size: import("@elaraai/east").IntegerType;
|
|
215
|
+
readonly isDirectory: import("@elaraai/east").BooleanType;
|
|
216
|
+
readonly modifiedTime: StringType;
|
|
217
217
|
}>>>;
|
|
218
218
|
/**
|
|
219
219
|
* Deletes a file from an FTP server.
|
package/dist/transfer/ftp.js
CHANGED
|
@@ -338,7 +338,7 @@ export const FtpImpl = [
|
|
|
338
338
|
}
|
|
339
339
|
catch (err) {
|
|
340
340
|
throw new EastError(`FTP connection failed: ${err.message}`, {
|
|
341
|
-
location: { filename: "ftp_connect", line: 0n, column: 0n },
|
|
341
|
+
location: [{ filename: "ftp_connect", line: 0n, column: 0n }],
|
|
342
342
|
cause: err
|
|
343
343
|
});
|
|
344
344
|
}
|
|
@@ -353,7 +353,7 @@ export const FtpImpl = [
|
|
|
353
353
|
}
|
|
354
354
|
catch (err) {
|
|
355
355
|
throw new EastError(`FTP upload failed: ${err.message}`, {
|
|
356
|
-
location: { filename: "ftp_put", line: 0n, column: 0n },
|
|
356
|
+
location: [{ filename: "ftp_put", line: 0n, column: 0n }],
|
|
357
357
|
cause: err
|
|
358
358
|
});
|
|
359
359
|
}
|
|
@@ -376,7 +376,7 @@ export const FtpImpl = [
|
|
|
376
376
|
}
|
|
377
377
|
catch (err) {
|
|
378
378
|
throw new EastError(`FTP download failed: ${err.message}`, {
|
|
379
|
-
location: { filename: "ftp_get", line: 0n, column: 0n },
|
|
379
|
+
location: [{ filename: "ftp_get", line: 0n, column: 0n }],
|
|
380
380
|
cause: err
|
|
381
381
|
});
|
|
382
382
|
}
|
|
@@ -396,7 +396,7 @@ export const FtpImpl = [
|
|
|
396
396
|
}
|
|
397
397
|
catch (err) {
|
|
398
398
|
throw new EastError(`FTP list failed: ${err.message}`, {
|
|
399
|
-
location: { filename: "ftp_list", line: 0n, column: 0n },
|
|
399
|
+
location: [{ filename: "ftp_list", line: 0n, column: 0n }],
|
|
400
400
|
cause: err
|
|
401
401
|
});
|
|
402
402
|
}
|
|
@@ -409,7 +409,7 @@ export const FtpImpl = [
|
|
|
409
409
|
}
|
|
410
410
|
catch (err) {
|
|
411
411
|
throw new EastError(`FTP delete failed: ${err.message}`, {
|
|
412
|
-
location: { filename: "ftp_delete", line: 0n, column: 0n },
|
|
412
|
+
location: [{ filename: "ftp_delete", line: 0n, column: 0n }],
|
|
413
413
|
cause: err
|
|
414
414
|
});
|
|
415
415
|
}
|
|
@@ -424,7 +424,7 @@ export const FtpImpl = [
|
|
|
424
424
|
}
|
|
425
425
|
catch (err) {
|
|
426
426
|
throw new EastError(`FTP close failed: ${err.message}`, {
|
|
427
|
-
location: { filename: "ftp_close", line: 0n, column: 0n },
|
|
427
|
+
location: [{ filename: "ftp_close", line: 0n, column: 0n }],
|
|
428
428
|
cause: err
|
|
429
429
|
});
|
|
430
430
|
}
|
package/dist/transfer/ftp.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ftp.js","sourceRoot":"","sources":["../../src/transfer/ftp.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;GAOG;AAEH,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGpE,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,MAAM,IAAI,SAAS,EAAiB,MAAM,WAAW,CAAC;AAC/D,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AAC;YACpB,OAAO,IAAI,CAAC;QAChB,CAAC;QAAC,OAAO,GAAQ,EAAE,CAAC;YAChB,MAAM,IAAI,SAAS,CAAC,qBAAqB,GAAG,CAAC,OAAO,EAAE,EAAE;gBACpD,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;gBAC3D,KAAK,EAAE,GAAG;aACb,CAAC,CAAC;QACP,CAAC;IACL,CAAC,CAAC;IAEF,aAAa,CAAC,SAAS,CAAC,KAAK,IAAI,EAAE;QAC/B,MAAM,eAAe,EAAE,CAAC;QACxB,OAAO,IAAI,CAAC;IAChB,CAAC,CAAC;CACL,CAAC"}
|
package/dist/transfer/index.d.ts
CHANGED
|
@@ -77,11 +77,11 @@ export declare const Transfer: {
|
|
|
77
77
|
* ```
|
|
78
78
|
*/
|
|
79
79
|
readonly connect: import("@elaraai/east").AsyncPlatformDefinition<[import("@elaraai/east").StructType<{
|
|
80
|
-
host: import("./types.js").StringType;
|
|
81
|
-
port: import("@elaraai/east").IntegerType;
|
|
82
|
-
user: import("./types.js").StringType;
|
|
83
|
-
password: import("./types.js").StringType;
|
|
84
|
-
secure: import("@elaraai/east").BooleanType;
|
|
80
|
+
readonly host: import("./types.js").StringType;
|
|
81
|
+
readonly port: import("@elaraai/east").IntegerType;
|
|
82
|
+
readonly user: import("./types.js").StringType;
|
|
83
|
+
readonly password: import("./types.js").StringType;
|
|
84
|
+
readonly secure: import("@elaraai/east").BooleanType;
|
|
85
85
|
}>], import("./types.js").StringType>;
|
|
86
86
|
/**
|
|
87
87
|
* Uploads a file to an FTP server.
|
|
@@ -160,11 +160,11 @@ export declare const Transfer: {
|
|
|
160
160
|
* ```
|
|
161
161
|
*/
|
|
162
162
|
readonly list: import("@elaraai/east").AsyncPlatformDefinition<[import("./types.js").StringType, import("./types.js").StringType], import("@elaraai/east").ArrayType<import("@elaraai/east").StructType<{
|
|
163
|
-
name: import("./types.js").StringType;
|
|
164
|
-
path: import("./types.js").StringType;
|
|
165
|
-
size: import("@elaraai/east").IntegerType;
|
|
166
|
-
isDirectory: import("@elaraai/east").BooleanType;
|
|
167
|
-
modifiedTime: import("./types.js").StringType;
|
|
163
|
+
readonly name: import("./types.js").StringType;
|
|
164
|
+
readonly path: import("./types.js").StringType;
|
|
165
|
+
readonly size: import("@elaraai/east").IntegerType;
|
|
166
|
+
readonly isDirectory: import("@elaraai/east").BooleanType;
|
|
167
|
+
readonly modifiedTime: import("./types.js").StringType;
|
|
168
168
|
}>>>;
|
|
169
169
|
/**
|
|
170
170
|
* Deletes a file from an FTP server.
|
|
@@ -230,21 +230,21 @@ export declare const Transfer: {
|
|
|
230
230
|
* FTP connection configuration type.
|
|
231
231
|
*/
|
|
232
232
|
readonly Config: import("@elaraai/east").StructType<{
|
|
233
|
-
host: import("./types.js").StringType;
|
|
234
|
-
port: import("@elaraai/east").IntegerType;
|
|
235
|
-
user: import("./types.js").StringType;
|
|
236
|
-
password: import("./types.js").StringType;
|
|
237
|
-
secure: import("@elaraai/east").BooleanType;
|
|
233
|
+
readonly host: import("./types.js").StringType;
|
|
234
|
+
readonly port: import("@elaraai/east").IntegerType;
|
|
235
|
+
readonly user: import("./types.js").StringType;
|
|
236
|
+
readonly password: import("./types.js").StringType;
|
|
237
|
+
readonly secure: import("@elaraai/east").BooleanType;
|
|
238
238
|
}>;
|
|
239
239
|
/**
|
|
240
240
|
* File information metadata type.
|
|
241
241
|
*/
|
|
242
242
|
readonly FileInfo: import("@elaraai/east").StructType<{
|
|
243
|
-
name: import("./types.js").StringType;
|
|
244
|
-
path: import("./types.js").StringType;
|
|
245
|
-
size: import("@elaraai/east").IntegerType;
|
|
246
|
-
isDirectory: import("@elaraai/east").BooleanType;
|
|
247
|
-
modifiedTime: import("./types.js").StringType;
|
|
243
|
+
readonly name: import("./types.js").StringType;
|
|
244
|
+
readonly path: import("./types.js").StringType;
|
|
245
|
+
readonly size: import("@elaraai/east").IntegerType;
|
|
246
|
+
readonly isDirectory: import("@elaraai/east").BooleanType;
|
|
247
|
+
readonly modifiedTime: import("./types.js").StringType;
|
|
248
248
|
}>;
|
|
249
249
|
};
|
|
250
250
|
};
|
|
@@ -281,11 +281,11 @@ export declare const Transfer: {
|
|
|
281
281
|
* ```
|
|
282
282
|
*/
|
|
283
283
|
readonly connect: import("@elaraai/east").AsyncPlatformDefinition<[import("@elaraai/east").StructType<{
|
|
284
|
-
host: import("./types.js").StringType;
|
|
285
|
-
port: import("@elaraai/east").IntegerType;
|
|
286
|
-
username: import("./types.js").StringType;
|
|
287
|
-
password: import("@elaraai/east").OptionType<import("./types.js").StringType>;
|
|
288
|
-
privateKey: import("@elaraai/east").OptionType<import("./types.js").StringType>;
|
|
284
|
+
readonly host: import("./types.js").StringType;
|
|
285
|
+
readonly port: import("@elaraai/east").IntegerType;
|
|
286
|
+
readonly username: import("./types.js").StringType;
|
|
287
|
+
readonly password: import("@elaraai/east").OptionType<import("./types.js").StringType>;
|
|
288
|
+
readonly privateKey: import("@elaraai/east").OptionType<import("./types.js").StringType>;
|
|
289
289
|
}>], import("./types.js").StringType>;
|
|
290
290
|
/**
|
|
291
291
|
* Uploads a file to an SFTP server.
|
|
@@ -364,11 +364,11 @@ export declare const Transfer: {
|
|
|
364
364
|
* ```
|
|
365
365
|
*/
|
|
366
366
|
readonly list: import("@elaraai/east").AsyncPlatformDefinition<[import("./types.js").StringType, import("./types.js").StringType], import("@elaraai/east").ArrayType<import("@elaraai/east").StructType<{
|
|
367
|
-
name: import("./types.js").StringType;
|
|
368
|
-
path: import("./types.js").StringType;
|
|
369
|
-
size: import("@elaraai/east").IntegerType;
|
|
370
|
-
isDirectory: import("@elaraai/east").BooleanType;
|
|
371
|
-
modifiedTime: import("./types.js").StringType;
|
|
367
|
+
readonly name: import("./types.js").StringType;
|
|
368
|
+
readonly path: import("./types.js").StringType;
|
|
369
|
+
readonly size: import("@elaraai/east").IntegerType;
|
|
370
|
+
readonly isDirectory: import("@elaraai/east").BooleanType;
|
|
371
|
+
readonly modifiedTime: import("./types.js").StringType;
|
|
372
372
|
}>>>;
|
|
373
373
|
/**
|
|
374
374
|
* Deletes a file from an SFTP server.
|
|
@@ -434,21 +434,21 @@ export declare const Transfer: {
|
|
|
434
434
|
* SFTP connection configuration type.
|
|
435
435
|
*/
|
|
436
436
|
readonly Config: import("@elaraai/east").StructType<{
|
|
437
|
-
host: import("./types.js").StringType;
|
|
438
|
-
port: import("@elaraai/east").IntegerType;
|
|
439
|
-
username: import("./types.js").StringType;
|
|
440
|
-
password: import("@elaraai/east").OptionType<import("./types.js").StringType>;
|
|
441
|
-
privateKey: import("@elaraai/east").OptionType<import("./types.js").StringType>;
|
|
437
|
+
readonly host: import("./types.js").StringType;
|
|
438
|
+
readonly port: import("@elaraai/east").IntegerType;
|
|
439
|
+
readonly username: import("./types.js").StringType;
|
|
440
|
+
readonly password: import("@elaraai/east").OptionType<import("./types.js").StringType>;
|
|
441
|
+
readonly privateKey: import("@elaraai/east").OptionType<import("./types.js").StringType>;
|
|
442
442
|
}>;
|
|
443
443
|
/**
|
|
444
444
|
* File information metadata type.
|
|
445
445
|
*/
|
|
446
446
|
readonly FileInfo: import("@elaraai/east").StructType<{
|
|
447
|
-
name: import("./types.js").StringType;
|
|
448
|
-
path: import("./types.js").StringType;
|
|
449
|
-
size: import("@elaraai/east").IntegerType;
|
|
450
|
-
isDirectory: import("@elaraai/east").BooleanType;
|
|
451
|
-
modifiedTime: import("./types.js").StringType;
|
|
447
|
+
readonly name: import("./types.js").StringType;
|
|
448
|
+
readonly path: import("./types.js").StringType;
|
|
449
|
+
readonly size: import("@elaraai/east").IntegerType;
|
|
450
|
+
readonly isDirectory: import("@elaraai/east").BooleanType;
|
|
451
|
+
readonly modifiedTime: import("./types.js").StringType;
|
|
452
452
|
}>;
|
|
453
453
|
};
|
|
454
454
|
};
|
package/dist/transfer/sftp.d.ts
CHANGED
|
@@ -60,11 +60,11 @@ import { StringType } from "./types.js";
|
|
|
60
60
|
* - All operations are asynchronous (use East.compileAsync)
|
|
61
61
|
*/
|
|
62
62
|
export declare const sftp_connect: import("@elaraai/east").AsyncPlatformDefinition<[import("@elaraai/east").StructType<{
|
|
63
|
-
host: StringType;
|
|
64
|
-
port: import("@elaraai/east").IntegerType;
|
|
65
|
-
username: StringType;
|
|
66
|
-
password: import("@elaraai/east").OptionType<StringType>;
|
|
67
|
-
privateKey: import("@elaraai/east").OptionType<StringType>;
|
|
63
|
+
readonly host: StringType;
|
|
64
|
+
readonly port: import("@elaraai/east").IntegerType;
|
|
65
|
+
readonly username: StringType;
|
|
66
|
+
readonly password: import("@elaraai/east").OptionType<StringType>;
|
|
67
|
+
readonly privateKey: import("@elaraai/east").OptionType<StringType>;
|
|
68
68
|
}>], StringType>;
|
|
69
69
|
/**
|
|
70
70
|
* Uploads a file to an SFTP server.
|
|
@@ -209,11 +209,11 @@ export declare const sftp_get: import("@elaraai/east").AsyncPlatformDefinition<[
|
|
|
209
209
|
* - Use isDirectory field to distinguish between files and directories
|
|
210
210
|
*/
|
|
211
211
|
export declare const sftp_list: import("@elaraai/east").AsyncPlatformDefinition<[StringType, StringType], ArrayType<import("@elaraai/east").StructType<{
|
|
212
|
-
name: StringType;
|
|
213
|
-
path: StringType;
|
|
214
|
-
size: import("@elaraai/east").IntegerType;
|
|
215
|
-
isDirectory: import("@elaraai/east").BooleanType;
|
|
216
|
-
modifiedTime: StringType;
|
|
212
|
+
readonly name: StringType;
|
|
213
|
+
readonly path: StringType;
|
|
214
|
+
readonly size: import("@elaraai/east").IntegerType;
|
|
215
|
+
readonly isDirectory: import("@elaraai/east").BooleanType;
|
|
216
|
+
readonly modifiedTime: StringType;
|
|
217
217
|
}>>>;
|
|
218
218
|
/**
|
|
219
219
|
* Deletes a file from an SFTP server.
|
package/dist/transfer/sftp.js
CHANGED
|
@@ -343,7 +343,7 @@ export const SftpImpl = [
|
|
|
343
343
|
}
|
|
344
344
|
catch (err) {
|
|
345
345
|
throw new EastError(`SFTP connection failed: ${err.message}`, {
|
|
346
|
-
location: { filename: "sftp_connect", line: 0n, column: 0n },
|
|
346
|
+
location: [{ filename: "sftp_connect", line: 0n, column: 0n }],
|
|
347
347
|
cause: err
|
|
348
348
|
});
|
|
349
349
|
}
|
|
@@ -357,7 +357,7 @@ export const SftpImpl = [
|
|
|
357
357
|
}
|
|
358
358
|
catch (err) {
|
|
359
359
|
throw new EastError(`SFTP upload failed: ${err.message}`, {
|
|
360
|
-
location: { filename: "sftp_put", line: 0n, column: 0n },
|
|
360
|
+
location: [{ filename: "sftp_put", line: 0n, column: 0n }],
|
|
361
361
|
cause: err
|
|
362
362
|
});
|
|
363
363
|
}
|
|
@@ -376,7 +376,7 @@ export const SftpImpl = [
|
|
|
376
376
|
}
|
|
377
377
|
catch (err) {
|
|
378
378
|
throw new EastError(`SFTP download failed: ${err.message}`, {
|
|
379
|
-
location: { filename: "sftp_get", line: 0n, column: 0n },
|
|
379
|
+
location: [{ filename: "sftp_get", line: 0n, column: 0n }],
|
|
380
380
|
cause: err
|
|
381
381
|
});
|
|
382
382
|
}
|
|
@@ -396,7 +396,7 @@ export const SftpImpl = [
|
|
|
396
396
|
}
|
|
397
397
|
catch (err) {
|
|
398
398
|
throw new EastError(`SFTP list failed: ${err.message}`, {
|
|
399
|
-
location: { filename: "sftp_list", line: 0n, column: 0n },
|
|
399
|
+
location: [{ filename: "sftp_list", line: 0n, column: 0n }],
|
|
400
400
|
cause: err
|
|
401
401
|
});
|
|
402
402
|
}
|
|
@@ -409,7 +409,7 @@ export const SftpImpl = [
|
|
|
409
409
|
}
|
|
410
410
|
catch (err) {
|
|
411
411
|
throw new EastError(`SFTP delete failed: ${err.message}`, {
|
|
412
|
-
location: { filename: "sftp_delete", line: 0n, column: 0n },
|
|
412
|
+
location: [{ filename: "sftp_delete", line: 0n, column: 0n }],
|
|
413
413
|
cause: err
|
|
414
414
|
});
|
|
415
415
|
}
|
|
@@ -423,7 +423,7 @@ export const SftpImpl = [
|
|
|
423
423
|
}
|
|
424
424
|
catch (err) {
|
|
425
425
|
throw new EastError(`SFTP close failed: ${err.message}`, {
|
|
426
|
-
location: { filename: "sftp_close", line: 0n, column: 0n },
|
|
426
|
+
location: [{ filename: "sftp_close", line: 0n, column: 0n }],
|
|
427
427
|
cause: err
|
|
428
428
|
});
|
|
429
429
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sftp.js","sourceRoot":"","sources":["../../src/transfer/sftp.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;GAOG;AAEH,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGpE,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACnG,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE5F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAC,aAAa,CAAC,cAAc,EAAE,CAAC,cAAc,CAAC,EAAE,oBAAoB,CAAC,CAAC;AAEvG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAC,aAAa,CAAC,UAAU,EAAE,CAAC,oBAAoB,EAAE,UAAU,EAAE,QAAQ,CAAC,EAAE,QAAQ,CAAC,CAAC;AAE/G;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAC,aAAa,CAAC,UAAU,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AAI,SAAS,CAAC,uBAAuB,GAAG,CAAC,OAAO,EAAE,EAAE;gBACtD,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,aAAa,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;gBAC7D,KAAK,EAAE,GAAG;aACb,CAAC,CAAC;QACP,CAAC;IACL,CAAC,CAAC;IAEF,UAAU,CAAC,SAAS,CAAC,KAAK,EAAE,MAAgD,EAAE,EAAE;QAC5E,IAAI,CAAC;YACD,MAAM,MAAM,GAAG,aAAa,CAAa,MAAM,CAAC,CAAC;YACjD,MAAM,MAAM,CAAC,GAAG,EAAE,CAAC;YACnB,WAAW,CAAC,MAAM,CAAC,CAAC;YACpB,OAAO,IAAI,CAAC;QAChB,CAAC;QAAC,OAAO,GAAQ,EAAE,CAAC;YAChB,MAAM,IAAI,SAAS,CAAC,sBAAsB,GAAG,CAAC,OAAO,EAAE,EAAE;gBACrD,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,YAAY,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;gBAC5D,KAAK,EAAE,GAAG;aACb,CAAC,CAAC;QACP,CAAC;IACL,CAAC,CAAC;IAEF,cAAc,CAAC,SAAS,CAAC,KAAK,IAAI,EAAE;QAChC,MAAM,eAAe,EAAE,CAAC;QACxB,OAAO,IAAI,CAAC;IAChB,CAAC,CAAC;CACL,CAAC"}
|
package/dist/transfer/types.d.ts
CHANGED
|
@@ -21,23 +21,23 @@ export declare const FtpConfigType: StructType<{
|
|
|
21
21
|
/**
|
|
22
22
|
* FTP server hostname or IP address.
|
|
23
23
|
*/
|
|
24
|
-
host: StringType;
|
|
24
|
+
readonly host: StringType;
|
|
25
25
|
/**
|
|
26
26
|
* FTP server port (typically 21 for FTP, 990 for FTPS).
|
|
27
27
|
*/
|
|
28
|
-
port: IntegerType;
|
|
28
|
+
readonly port: IntegerType;
|
|
29
29
|
/**
|
|
30
30
|
* Username for authentication.
|
|
31
31
|
*/
|
|
32
|
-
user: StringType;
|
|
32
|
+
readonly user: StringType;
|
|
33
33
|
/**
|
|
34
34
|
* Password for authentication.
|
|
35
35
|
*/
|
|
36
|
-
password: StringType;
|
|
36
|
+
readonly password: StringType;
|
|
37
37
|
/**
|
|
38
38
|
* Use secure FTP (FTPS - FTP over SSL/TLS).
|
|
39
39
|
*/
|
|
40
|
-
secure: BooleanType;
|
|
40
|
+
readonly secure: BooleanType;
|
|
41
41
|
}>;
|
|
42
42
|
/**
|
|
43
43
|
* SFTP connection configuration.
|
|
@@ -48,25 +48,25 @@ export declare const SftpConfigType: StructType<{
|
|
|
48
48
|
/**
|
|
49
49
|
* SFTP server hostname or IP address.
|
|
50
50
|
*/
|
|
51
|
-
host: StringType;
|
|
51
|
+
readonly host: StringType;
|
|
52
52
|
/**
|
|
53
53
|
* SFTP server port (typically 22).
|
|
54
54
|
*/
|
|
55
|
-
port: IntegerType;
|
|
55
|
+
readonly port: IntegerType;
|
|
56
56
|
/**
|
|
57
57
|
* Username for authentication.
|
|
58
58
|
*/
|
|
59
|
-
username: StringType;
|
|
59
|
+
readonly username: StringType;
|
|
60
60
|
/**
|
|
61
61
|
* Password for authentication.
|
|
62
62
|
* Optional if using private key authentication.
|
|
63
63
|
*/
|
|
64
|
-
password: OptionType<StringType>;
|
|
64
|
+
readonly password: OptionType<StringType>;
|
|
65
65
|
/**
|
|
66
66
|
* SSH private key for authentication.
|
|
67
67
|
* Optional if using password authentication.
|
|
68
68
|
*/
|
|
69
|
-
privateKey: OptionType<StringType>;
|
|
69
|
+
readonly privateKey: OptionType<StringType>;
|
|
70
70
|
}>;
|
|
71
71
|
/**
|
|
72
72
|
* File information metadata.
|
|
@@ -77,23 +77,23 @@ export declare const FileInfoType: StructType<{
|
|
|
77
77
|
/**
|
|
78
78
|
* File or directory name.
|
|
79
79
|
*/
|
|
80
|
-
name: StringType;
|
|
80
|
+
readonly name: StringType;
|
|
81
81
|
/**
|
|
82
82
|
* Full path to the file or directory.
|
|
83
83
|
*/
|
|
84
|
-
path: StringType;
|
|
84
|
+
readonly path: StringType;
|
|
85
85
|
/**
|
|
86
86
|
* File size in bytes (0 for directories).
|
|
87
87
|
*/
|
|
88
|
-
size: IntegerType;
|
|
88
|
+
readonly size: IntegerType;
|
|
89
89
|
/**
|
|
90
90
|
* Whether this is a directory (true) or file (false).
|
|
91
91
|
*/
|
|
92
|
-
isDirectory: BooleanType;
|
|
92
|
+
readonly isDirectory: BooleanType;
|
|
93
93
|
/**
|
|
94
94
|
* Last modified timestamp (ISO 8601 format).
|
|
95
95
|
*/
|
|
96
|
-
modifiedTime: StringType;
|
|
96
|
+
readonly modifiedTime: StringType;
|
|
97
97
|
}>;
|
|
98
98
|
/**
|
|
99
99
|
* Opaque connection handle type.
|