@elaraai/east-node-io 0.0.1-beta.2 → 0.0.1-beta.20

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 (70) hide show
  1. package/README.md +38 -0
  2. package/dist/compression/gzip.d.ts +1 -1
  3. package/dist/compression/gzip.js +3 -3
  4. package/dist/compression/gzip.js.map +1 -1
  5. package/dist/compression/index.d.ts +16 -16
  6. package/dist/compression/tar.d.ts +2 -2
  7. package/dist/compression/tar.d.ts.map +1 -1
  8. package/dist/compression/tar.js +9 -9
  9. package/dist/compression/tar.js.map +1 -1
  10. package/dist/compression/types.d.ts +10 -10
  11. package/dist/compression/zip.d.ts +3 -3
  12. package/dist/compression/zip.d.ts.map +1 -1
  13. package/dist/compression/zip.js +6 -6
  14. package/dist/compression/zip.js.map +1 -1
  15. package/dist/connection/index.js +2 -2
  16. package/dist/connection/index.js.map +1 -1
  17. package/dist/format/index.d.ts +78 -298
  18. package/dist/format/index.d.ts.map +1 -1
  19. package/dist/format/index.js +1 -138
  20. package/dist/format/index.js.map +1 -1
  21. package/dist/format/types.d.ts +53 -53
  22. package/dist/format/xlsx.d.ts +20 -20
  23. package/dist/format/xlsx.js +6 -6
  24. package/dist/format/xlsx.js.map +1 -1
  25. package/dist/format/xml.d.ts +54 -54
  26. package/dist/format/xml.d.ts.map +1 -1
  27. package/dist/format/xml.js +16 -16
  28. package/dist/format/xml.js.map +1 -1
  29. package/dist/nosql/index.d.ts +20 -20
  30. package/dist/nosql/mongodb.d.ts +5 -5
  31. package/dist/nosql/mongodb.js +8 -8
  32. package/dist/nosql/mongodb.js.map +1 -1
  33. package/dist/nosql/redis.d.ts +5 -5
  34. package/dist/nosql/redis.js +6 -6
  35. package/dist/nosql/redis.js.map +1 -1
  36. package/dist/nosql/types.d.ts +10 -10
  37. package/dist/platform.d.ts +12 -0
  38. package/dist/platform.d.ts.map +1 -0
  39. package/dist/platform.js +51 -0
  40. package/dist/platform.js.map +1 -0
  41. package/dist/sql/index.d.ts +214 -214
  42. package/dist/sql/mysql.d.ts +30 -30
  43. package/dist/sql/mysql.js +6 -6
  44. package/dist/sql/mysql.js.map +1 -1
  45. package/dist/sql/postgres.d.ts +30 -30
  46. package/dist/sql/postgres.js +6 -6
  47. package/dist/sql/postgres.js.map +1 -1
  48. package/dist/sql/sqlite.d.ts +26 -26
  49. package/dist/sql/sqlite.js +6 -6
  50. package/dist/sql/sqlite.js.map +1 -1
  51. package/dist/sql/types.d.ts +54 -54
  52. package/dist/storage/index.d.ts +61 -61
  53. package/dist/storage/s3.d.ts +43 -43
  54. package/dist/storage/s3.js +6 -6
  55. package/dist/storage/s3.js.map +1 -1
  56. package/dist/storage/types.d.ts +18 -18
  57. package/dist/transfer/ftp.d.ts +10 -10
  58. package/dist/transfer/ftp.js +6 -6
  59. package/dist/transfer/ftp.js.map +1 -1
  60. package/dist/transfer/index.d.ts +40 -40
  61. package/dist/transfer/sftp.d.ts +10 -10
  62. package/dist/transfer/sftp.js +6 -6
  63. package/dist/transfer/sftp.js.map +1 -1
  64. package/dist/transfer/types.d.ts +15 -15
  65. package/dist/tsconfig.tsbuildinfo +1 -1
  66. package/package.json +13 -5
  67. package/dist/format/csv.d.ts +0 -210
  68. package/dist/format/csv.d.ts.map +0 -1
  69. package/dist/format/csv.js +0 -729
  70. package/dist/format/csv.js.map +0 -1
@@ -6,7 +6,7 @@
6
6
  * File format platform functions for East Node IO.
7
7
  *
8
8
  * Provides functions for reading and writing structured file formats like
9
- * Excel (XLSX), CSV, and more.
9
+ * Excel (XLSX), XML, and more.
10
10
  *
11
11
  * @example
12
12
  * ```ts
@@ -33,11 +33,9 @@
33
33
  export * from "./types.js";
34
34
  // Export platform functions and implementation
35
35
  export { xlsx_read, xlsx_write, xlsx_info, XlsxImpl } from "./xlsx.js";
36
- export { csv_parse, csv_serialize, CsvImpl, CsvParseConfig, CsvSerializeConfig, CsvRowType, CsvDataType } from "./csv.js";
37
36
  export { xml_parse, xml_serialize, XmlImpl, XmlParseConfig, XmlSerializeConfig, XmlNode } from "./xml.js";
38
37
  // Import for grouped exports
39
38
  import { xlsx_read, xlsx_write, xlsx_info, XlsxImpl } from "./xlsx.js";
40
- import { csv_parse, csv_serialize, CsvImpl, CsvParseConfig, CsvSerializeConfig, CsvRowType, CsvDataType } from "./csv.js";
41
39
  import { xml_parse, xml_serialize, XmlImpl, XmlParseConfig, XmlSerializeConfig, XmlNode } from "./xml.js";
42
40
  import { XlsxCellType, XlsxRowType, XlsxSheetType, XlsxReadOptionsType, XlsxWriteOptionsType, XlsxSheetInfoType, XlsxInfoType, } from "./types.js";
43
41
  /**
@@ -211,141 +209,6 @@ export const Format = {
211
209
  Info: XlsxInfoType,
212
210
  },
213
211
  },
214
- /**
215
- * CSV (Comma-Separated Values) file format operations.
216
- *
217
- * Provides functions for parsing and serializing CSV files as arrays of dictionaries,
218
- * where each row is a dictionary mapping column names to optional string values.
219
- */
220
- CSV: {
221
- /**
222
- * Parses CSV data from a binary blob into structured row data.
223
- *
224
- * Converts CSV-formatted binary data into an array of row dictionaries,
225
- * where each dictionary maps column names to optional string values.
226
- *
227
- * @example
228
- * ```ts
229
- * import { East, BlobType, variant } from "@elaraai/east";
230
- * import { Format } from "@elaraai/east-node-io";
231
- *
232
- * const parseCSV = East.function([BlobType], Format.CSV.Types.Data, ($, csvBlob) => {
233
- * const config = $.let({
234
- * delimiter: variant('none', null),
235
- * quoteChar: variant('none', null),
236
- * escapeChar: variant('none', null),
237
- * newline: variant('none', null),
238
- * hasHeader: true,
239
- * nullString: variant('some', ""),
240
- * skipEmptyLines: true,
241
- * trimFields: false,
242
- * });
243
- *
244
- * return $.return(Format.CSV.parse(csvBlob, config));
245
- * });
246
- *
247
- * const compiled = East.compile(parseCSV.toIR(), Format.CSV.Implementation);
248
- * const csvBlob = new TextEncoder().encode("name,age\nAlice,30\nBob,25");
249
- * compiled(csvBlob); // Returns parsed CSV data
250
- * ```
251
- */
252
- parse: csv_parse,
253
- /**
254
- * Serializes structured row data into CSV-formatted binary data.
255
- *
256
- * Converts an array of row dictionaries into CSV-formatted binary data
257
- * with configurable formatting options.
258
- *
259
- * @example
260
- * ```ts
261
- * import { East, BlobType, variant } from "@elaraai/east";
262
- * import { Format } from "@elaraai/east-node-io";
263
- *
264
- * const serializeCSV = East.function([Format.CSV.Types.Data], BlobType, ($, data) => {
265
- * const config = $.let({
266
- * delimiter: ",",
267
- * quoteChar: '"',
268
- * escapeChar: '"',
269
- * newline: "\n",
270
- * includeHeader: true,
271
- * nullString: "",
272
- * alwaysQuote: false,
273
- * });
274
- *
275
- * return $.return(Format.CSV.serialize(data, config));
276
- * });
277
- *
278
- * const compiled = East.compile(serializeCSV.toIR(), Format.CSV.Implementation);
279
- * const data = [new Map([["name", variant("some", "Alice")], ["age", variant("some", "30")]])];
280
- * compiled(data); // Returns CSV blob
281
- * ```
282
- */
283
- serialize: csv_serialize,
284
- /**
285
- * Node.js implementation of CSV platform functions.
286
- *
287
- * Pass this to {@link East.compile} to enable CSV operations.
288
- *
289
- * @example
290
- * ```ts
291
- * import { East, BlobType } from "@elaraai/east";
292
- * import { Format } from "@elaraai/east-node-io";
293
- *
294
- * const myFunction = East.function([BlobType], BlobType, ($, csvBlob) => {
295
- * const parseConfig = $.let({
296
- * delimiter: variant('none', null),
297
- * quoteChar: variant('none', null),
298
- * escapeChar: variant('none', null),
299
- * newline: variant('none', null),
300
- * hasHeader: true,
301
- * nullString: variant('none', null),
302
- * skipEmptyLines: true,
303
- * trimFields: false,
304
- * });
305
- *
306
- * const data = $.let(Format.CSV.parse(csvBlob, parseConfig));
307
- *
308
- * const serializeConfig = $.let({
309
- * delimiter: ",",
310
- * quoteChar: '"',
311
- * escapeChar: '"',
312
- * newline: "\n",
313
- * includeHeader: true,
314
- * nullString: "",
315
- * alwaysQuote: false,
316
- * });
317
- *
318
- * return $.return(Format.CSV.serialize(data, serializeConfig));
319
- * });
320
- *
321
- * const compiled = East.compile(myFunction.toIR(), Format.CSV.Implementation);
322
- * const csvBlob = new TextEncoder().encode("name,age\nAlice,30");
323
- * compiled(csvBlob);
324
- * ```
325
- */
326
- Implementation: CsvImpl,
327
- /**
328
- * Type definitions for CSV operations.
329
- */
330
- Types: {
331
- /**
332
- * CSV parse configuration options.
333
- */
334
- ParseConfig: CsvParseConfig,
335
- /**
336
- * CSV serialize configuration options.
337
- */
338
- SerializeConfig: CsvSerializeConfig,
339
- /**
340
- * A row in a CSV file (dictionary mapping column names to optional string values).
341
- */
342
- Row: CsvRowType,
343
- /**
344
- * CSV data as an array of rows.
345
- */
346
- Data: CsvDataType,
347
- },
348
- },
349
212
  /**
350
213
  * XML (Extensible Markup Language) file format operations.
351
214
  *
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/format/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,eAAe;AACf,cAAc,YAAY,CAAC;AAE3B,+CAA+C;AAC/C,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC1H,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAE1G,6BAA6B;AAC7B,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC1H,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,kBAAk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M,MAAM,GAAG;IAClB;;;;;OAKG;IACH,IAAI,EAAE;QACF;;;;;;;;;;;;;;;;;;;;;;;WAuBG;QACH,IAAI,EAAE,SAAS;QAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;WA2BG;QACH,KAAK,EAAE,UAAU;QAEjB;;;;;;;;;;;;;;;;;;;WAmBG;QACH,IAAI,EAAE,SAAS;QAEf;;;;;;;;;;;;;;;;;;;;;;WAsBG;QACH,cAAc,EAAE,QAAQ;QAExB;;WAEG;QACH,KAAK,EAAE;YACH;;eAEG;YACH,IAAI,EAAE,YAAY;YAElB;;eAEG;YACH,GAAG,EAAE,WAAW;YAEhB;;eAEG;YACH,KAAK,EAAE,aAAa;YAEpB;;eAEG;YACH,WAAW,EAAE,mBAAmB;YAEhC;;eAEG;YACH,YAAY,EAAE,oBAAoB;YAElC;;eAEG;YACH,SAAS,EAAE,iBAAiB;YAE5B;;eAEG;YACH,IAAI,EAAE,YAAY;SACrB;KACJ;IAED;;;;;OAKG;IACH,GAAG,EAAE;QACD;;;;;;;;;;;;;;;;;;;;;;;;WAwBG;QACH,KAAK,EAAE,SAAS;QAEhB;;;;;;;;;;;;;;;;;;;;;;;;;;WA0BG;QACH,SAAS,EAAE,aAAa;QAExB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAgCG;QACH,cAAc,EAAE,OAAO;QAEvB;;WAEG;QACH,KAAK,EAAE;YACH;;eAEG;YACH,WAAW,EAAE,cAAc;YAE3B;;eAEG;YACH,eAAe,EAAE,kBAAkB;YAEnC;;eAEG;YACH,IAAI,EAAE,OAAO;SAChB;KACJ;CACK,CAAC"}
@@ -18,13 +18,13 @@ import { StructType, OptionType, ArrayType, DictType, StringType, IntegerType }
18
18
  * which supports all primitive JavaScript values that can appear in Excel cells.
19
19
  */
20
20
  export declare const XlsxCellType: import("@elaraai/east").VariantType<{
21
- Null: import("@elaraai/east").NullType;
22
- Boolean: import("@elaraai/east").BooleanType;
23
- Integer: IntegerType;
24
- Float: import("@elaraai/east").FloatType;
25
- String: StringType;
26
- DateTime: import("@elaraai/east").DateTimeType;
27
- Blob: import("@elaraai/east").BlobType;
21
+ readonly Null: import("@elaraai/east").NullType;
22
+ readonly Boolean: import("@elaraai/east").BooleanType;
23
+ readonly Integer: IntegerType;
24
+ readonly Float: import("@elaraai/east").FloatType;
25
+ readonly String: StringType;
26
+ readonly DateTime: import("@elaraai/east").DateTimeType;
27
+ readonly Blob: import("@elaraai/east").BlobType;
28
28
  }>;
29
29
  /**
30
30
  * A row of cells in a spreadsheet.
@@ -32,13 +32,13 @@ export declare const XlsxCellType: import("@elaraai/east").VariantType<{
32
32
  * Represents a single row as an array of cell values.
33
33
  */
34
34
  export declare const XlsxRowType: ArrayType<import("@elaraai/east").VariantType<{
35
- Null: import("@elaraai/east").NullType;
36
- Boolean: import("@elaraai/east").BooleanType;
37
- Integer: IntegerType;
38
- Float: import("@elaraai/east").FloatType;
39
- String: StringType;
40
- DateTime: import("@elaraai/east").DateTimeType;
41
- Blob: import("@elaraai/east").BlobType;
35
+ readonly Null: import("@elaraai/east").NullType;
36
+ readonly Boolean: import("@elaraai/east").BooleanType;
37
+ readonly Integer: IntegerType;
38
+ readonly Float: import("@elaraai/east").FloatType;
39
+ readonly String: StringType;
40
+ readonly DateTime: import("@elaraai/east").DateTimeType;
41
+ readonly Blob: import("@elaraai/east").BlobType;
42
42
  }>>;
43
43
  /**
44
44
  * A 2D array representing a complete worksheet.
@@ -47,13 +47,13 @@ export declare const XlsxRowType: ArrayType<import("@elaraai/east").VariantType<
47
47
  * This is the main data structure for reading/writing XLSX files.
48
48
  */
49
49
  export declare const XlsxSheetType: ArrayType<ArrayType<import("@elaraai/east").VariantType<{
50
- Null: import("@elaraai/east").NullType;
51
- Boolean: import("@elaraai/east").BooleanType;
52
- Integer: IntegerType;
53
- Float: import("@elaraai/east").FloatType;
54
- String: StringType;
55
- DateTime: import("@elaraai/east").DateTimeType;
56
- Blob: import("@elaraai/east").BlobType;
50
+ readonly Null: import("@elaraai/east").NullType;
51
+ readonly Boolean: import("@elaraai/east").BooleanType;
52
+ readonly Integer: IntegerType;
53
+ readonly Float: import("@elaraai/east").FloatType;
54
+ readonly String: StringType;
55
+ readonly DateTime: import("@elaraai/east").DateTimeType;
56
+ readonly Blob: import("@elaraai/east").BlobType;
57
57
  }>>>;
58
58
  /**
59
59
  * XLSX read options configuration.
@@ -65,7 +65,7 @@ export declare const XlsxReadOptionsType: StructType<{
65
65
  * Name of the sheet to read.
66
66
  * If not specified, reads the first sheet.
67
67
  */
68
- sheetName: OptionType<StringType>;
68
+ readonly sheetName: OptionType<StringType>;
69
69
  }>;
70
70
  /**
71
71
  * XLSX write options configuration.
@@ -77,31 +77,31 @@ export declare const XlsxWriteOptionsType: StructType<{
77
77
  * Name of the sheet to create.
78
78
  * Defaults to "Sheet1" if not specified.
79
79
  */
80
- sheetName: OptionType<StringType>;
80
+ readonly sheetName: OptionType<StringType>;
81
81
  }>;
82
82
  /**
83
83
  * Information about sheets in an XLSX file.
84
84
  */
85
85
  export declare const XlsxSheetInfoType: StructType<{
86
86
  /** Sheet name */
87
- name: StringType;
87
+ readonly name: StringType;
88
88
  /** Number of rows (approximate) */
89
- rowCount: IntegerType;
89
+ readonly rowCount: IntegerType;
90
90
  /** Number of columns (approximate) */
91
- columnCount: IntegerType;
91
+ readonly columnCount: IntegerType;
92
92
  }>;
93
93
  /**
94
94
  * XLSX file metadata and sheet listing.
95
95
  */
96
96
  export declare const XlsxInfoType: StructType<{
97
97
  /** List of sheets in the workbook */
98
- sheets: ArrayType<StructType<{
98
+ readonly sheets: ArrayType<StructType<{
99
99
  /** Sheet name */
100
- name: StringType;
100
+ readonly name: StringType;
101
101
  /** Number of rows (approximate) */
102
- rowCount: IntegerType;
102
+ readonly rowCount: IntegerType;
103
103
  /** Number of columns (approximate) */
104
- columnCount: IntegerType;
104
+ readonly columnCount: IntegerType;
105
105
  }>>;
106
106
  }>;
107
107
  /**
@@ -111,13 +111,13 @@ export declare const XlsxInfoType: StructType<{
111
111
  * which supports all primitive JavaScript values that can appear in CSV cells.
112
112
  */
113
113
  export declare const CsvCellType: import("@elaraai/east").VariantType<{
114
- Null: import("@elaraai/east").NullType;
115
- Boolean: import("@elaraai/east").BooleanType;
116
- Integer: IntegerType;
117
- Float: import("@elaraai/east").FloatType;
118
- String: StringType;
119
- DateTime: import("@elaraai/east").DateTimeType;
120
- Blob: import("@elaraai/east").BlobType;
114
+ readonly Null: import("@elaraai/east").NullType;
115
+ readonly Boolean: import("@elaraai/east").BooleanType;
116
+ readonly Integer: IntegerType;
117
+ readonly Float: import("@elaraai/east").FloatType;
118
+ readonly String: StringType;
119
+ readonly DateTime: import("@elaraai/east").DateTimeType;
120
+ readonly Blob: import("@elaraai/east").BlobType;
121
121
  }>;
122
122
  /**
123
123
  * A row of cells in a CSV file represented as a dictionary.
@@ -126,13 +126,13 @@ export declare const CsvCellType: import("@elaraai/east").VariantType<{
126
126
  * This allows accessing cells by name rather than index.
127
127
  */
128
128
  export declare const CsvRowType: DictType<StringType, import("@elaraai/east").VariantType<{
129
- Null: import("@elaraai/east").NullType;
130
- Boolean: import("@elaraai/east").BooleanType;
131
- Integer: IntegerType;
132
- Float: import("@elaraai/east").FloatType;
133
- String: StringType;
134
- DateTime: import("@elaraai/east").DateTimeType;
135
- Blob: import("@elaraai/east").BlobType;
129
+ readonly Null: import("@elaraai/east").NullType;
130
+ readonly Boolean: import("@elaraai/east").BooleanType;
131
+ readonly Integer: IntegerType;
132
+ readonly Float: import("@elaraai/east").FloatType;
133
+ readonly String: StringType;
134
+ readonly DateTime: import("@elaraai/east").DateTimeType;
135
+ readonly Blob: import("@elaraai/east").BlobType;
136
136
  }>>;
137
137
  /**
138
138
  * CSV data as an array of rows.
@@ -141,13 +141,13 @@ export declare const CsvRowType: DictType<StringType, import("@elaraai/east").Va
141
141
  * The first row of the CSV file is used as column headers.
142
142
  */
143
143
  export declare const CsvDataType: ArrayType<DictType<StringType, import("@elaraai/east").VariantType<{
144
- Null: import("@elaraai/east").NullType;
145
- Boolean: import("@elaraai/east").BooleanType;
146
- Integer: IntegerType;
147
- Float: import("@elaraai/east").FloatType;
148
- String: StringType;
149
- DateTime: import("@elaraai/east").DateTimeType;
150
- Blob: import("@elaraai/east").BlobType;
144
+ readonly Null: import("@elaraai/east").NullType;
145
+ readonly Boolean: import("@elaraai/east").BooleanType;
146
+ readonly Integer: IntegerType;
147
+ readonly Float: import("@elaraai/east").FloatType;
148
+ readonly String: StringType;
149
+ readonly DateTime: import("@elaraai/east").DateTimeType;
150
+ readonly Blob: import("@elaraai/east").BlobType;
151
151
  }>>>;
152
152
  /**
153
153
  * CSV read options configuration.
@@ -159,7 +159,7 @@ export declare const CsvReadOptionsType: StructType<{
159
159
  * Delimiter character.
160
160
  * Defaults to "," if not specified.
161
161
  */
162
- delimiter: OptionType<StringType>;
162
+ readonly delimiter: OptionType<StringType>;
163
163
  }>;
164
164
  /**
165
165
  * CSV write options configuration.
@@ -171,6 +171,6 @@ export declare const CsvWriteOptionsType: StructType<{
171
171
  * Delimiter character.
172
172
  * Defaults to "," if not specified.
173
173
  */
174
- delimiter: OptionType<StringType>;
174
+ readonly delimiter: OptionType<StringType>;
175
175
  }>;
176
176
  //# sourceMappingURL=types.d.ts.map
@@ -62,15 +62,15 @@ import type { PlatformFunction } from "@elaraai/east/internal";
62
62
  * - Formulas are evaluated and their results are returned
63
63
  */
64
64
  export declare const xlsx_read: import("@elaraai/east").PlatformDefinition<[BlobType, import("@elaraai/east").StructType<{
65
- sheetName: import("@elaraai/east").OptionType<import("@elaraai/east").StringType>;
65
+ readonly sheetName: import("@elaraai/east").OptionType<import("@elaraai/east").StringType>;
66
66
  }>], import("@elaraai/east").ArrayType<import("@elaraai/east").ArrayType<import("@elaraai/east").VariantType<{
67
- Null: import("@elaraai/east").NullType;
68
- Boolean: import("@elaraai/east").BooleanType;
69
- Integer: import("@elaraai/east").IntegerType;
70
- Float: import("@elaraai/east").FloatType;
71
- String: import("@elaraai/east").StringType;
72
- DateTime: import("@elaraai/east").DateTimeType;
73
- Blob: BlobType;
67
+ readonly Null: import("@elaraai/east").NullType;
68
+ readonly Boolean: import("@elaraai/east").BooleanType;
69
+ readonly Integer: import("@elaraai/east").IntegerType;
70
+ readonly Float: import("@elaraai/east").FloatType;
71
+ readonly String: import("@elaraai/east").StringType;
72
+ readonly DateTime: import("@elaraai/east").DateTimeType;
73
+ readonly Blob: BlobType;
74
74
  }>>>>;
75
75
  /**
76
76
  * Writes a 2D array of cell values to an XLSX file.
@@ -122,15 +122,15 @@ export declare const xlsx_read: import("@elaraai/east").PlatformDefinition<[Blob
122
122
  * - All rows should ideally have the same number of columns
123
123
  */
124
124
  export declare const xlsx_write: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<import("@elaraai/east").ArrayType<import("@elaraai/east").VariantType<{
125
- Null: import("@elaraai/east").NullType;
126
- Boolean: import("@elaraai/east").BooleanType;
127
- Integer: import("@elaraai/east").IntegerType;
128
- Float: import("@elaraai/east").FloatType;
129
- String: import("@elaraai/east").StringType;
130
- DateTime: import("@elaraai/east").DateTimeType;
131
- Blob: BlobType;
125
+ readonly Null: import("@elaraai/east").NullType;
126
+ readonly Boolean: import("@elaraai/east").BooleanType;
127
+ readonly Integer: import("@elaraai/east").IntegerType;
128
+ readonly Float: import("@elaraai/east").FloatType;
129
+ readonly String: import("@elaraai/east").StringType;
130
+ readonly DateTime: import("@elaraai/east").DateTimeType;
131
+ readonly Blob: BlobType;
132
132
  }>>>, import("@elaraai/east").StructType<{
133
- sheetName: import("@elaraai/east").OptionType<import("@elaraai/east").StringType>;
133
+ readonly sheetName: import("@elaraai/east").OptionType<import("@elaraai/east").StringType>;
134
134
  }>], BlobType>;
135
135
  /**
136
136
  * Gets metadata about an XLSX file without reading all data.
@@ -162,10 +162,10 @@ export declare const xlsx_write: import("@elaraai/east").PlatformDefinition<[imp
162
162
  * ```
163
163
  */
164
164
  export declare const xlsx_info: import("@elaraai/east").PlatformDefinition<[BlobType], import("@elaraai/east").StructType<{
165
- sheets: import("@elaraai/east").ArrayType<import("@elaraai/east").StructType<{
166
- name: import("@elaraai/east").StringType;
167
- rowCount: import("@elaraai/east").IntegerType;
168
- columnCount: import("@elaraai/east").IntegerType;
165
+ readonly sheets: import("@elaraai/east").ArrayType<import("@elaraai/east").StructType<{
166
+ readonly name: import("@elaraai/east").StringType;
167
+ readonly rowCount: import("@elaraai/east").IntegerType;
168
+ readonly columnCount: import("@elaraai/east").IntegerType;
169
169
  }>>;
170
170
  }>>;
171
171
  /**
@@ -181,7 +181,7 @@ export const XlsxImpl = [
181
181
  sheetName = options.sheetName.value;
182
182
  if (!workbook.Sheets[sheetName]) {
183
183
  throw new EastError(`Sheet "${sheetName}" not found in workbook`, {
184
- location: { filename: "xlsx_read", line: 0n, column: 0n }
184
+ location: [{ filename: "xlsx_read", line: 0n, column: 0n }]
185
185
  });
186
186
  }
187
187
  }
@@ -190,7 +190,7 @@ export const XlsxImpl = [
190
190
  const firstSheetName = workbook.SheetNames[0];
191
191
  if (!firstSheetName) {
192
192
  throw new EastError('Workbook contains no sheets', {
193
- location: { filename: "xlsx_read", line: 0n, column: 0n }
193
+ location: [{ filename: "xlsx_read", line: 0n, column: 0n }]
194
194
  });
195
195
  }
196
196
  sheetName = firstSheetName;
@@ -198,7 +198,7 @@ export const XlsxImpl = [
198
198
  const worksheet = workbook.Sheets[sheetName];
199
199
  if (!worksheet) {
200
200
  throw new EastError(`Sheet "${sheetName}" not found in workbook`, {
201
- location: { filename: "xlsx_read", line: 0n, column: 0n }
201
+ location: [{ filename: "xlsx_read", line: 0n, column: 0n }]
202
202
  });
203
203
  }
204
204
  // Get the range of the worksheet
@@ -246,7 +246,7 @@ export const XlsxImpl = [
246
246
  throw err;
247
247
  }
248
248
  throw new EastError(`Failed to read XLSX file: ${err.message}`, {
249
- location: { filename: "xlsx_read", line: 0n, column: 0n },
249
+ location: [{ filename: "xlsx_read", line: 0n, column: 0n }],
250
250
  cause: err
251
251
  });
252
252
  }
@@ -272,7 +272,7 @@ export const XlsxImpl = [
272
272
  }
273
273
  catch (err) {
274
274
  throw new EastError(`Failed to write XLSX file: ${err.message}`, {
275
- location: { filename: "xlsx_write", line: 0n, column: 0n },
275
+ location: [{ filename: "xlsx_write", line: 0n, column: 0n }],
276
276
  cause: err
277
277
  });
278
278
  }
@@ -304,7 +304,7 @@ export const XlsxImpl = [
304
304
  }
305
305
  catch (err) {
306
306
  throw new EastError(`Failed to read XLSX file info: ${err.message}`, {
307
- location: { filename: "xlsx_info", line: 0n, column: 0n },
307
+ location: [{ filename: "xlsx_info", line: 0n, column: 0n }],
308
308
  cause: err
309
309
  });
310
310
  }
@@ -1 +1 @@
1
- {"version":3,"file":"xlsx.js","sourceRoot":"","sources":["../../src/format/xlsx.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;GAOG;AAEH,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAG/D,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,EACH,aAAa,EACb,mBAAmB,EACnB,oBAAoB,EACpB,YAAY,GACf,MAAM,YAAY,CAAC;AAEpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE,mBAAmB,CAAC,EAAE,aAAa,CAAC,CAAC;AACpG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,CAAC,QAAQ,CAAC,YAAY,EAAE,CAAC,aAAa,EAAE,oBAAoB,CAAC,EAAE,QAAQ,CAAC,CAAC;AAEvG;;;;;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