@teselagen/file-utils 0.2.10 → 0.2.12
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/file-utils.d.ts +29 -0
- package/index.d.ts +1 -0
- package/index.js +14667 -150
- package/index.mjs +14814 -0
- package/package.json +3 -6
- package/CHANGELOG.md +0 -26
- package/README.md +0 -11
package/file-utils.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export function normalizeCsvHeader(header: any): any;
|
|
2
|
+
export function parseCsvOrExcelFile(fileOrFiles: any, { csvParserOptions }?: {
|
|
3
|
+
csvParserOptions: any;
|
|
4
|
+
}): globalThis.Promise<any>;
|
|
5
|
+
export function removeExt(filename: any): any;
|
|
6
|
+
export function uploadAndProcessFiles(files?: any[]): globalThis.Promise<any>;
|
|
7
|
+
export function encodeFilesForRequest(files: any): globalThis.Promise<{
|
|
8
|
+
type: any;
|
|
9
|
+
base64Data: any;
|
|
10
|
+
name: any;
|
|
11
|
+
}[]>;
|
|
12
|
+
export const allowedCsvFileTypes: string[];
|
|
13
|
+
export function isZipFile(file: any): boolean;
|
|
14
|
+
export function getExt(file: any): any;
|
|
15
|
+
export function isExcelFile(file: any): boolean;
|
|
16
|
+
export function isCsvFile(file: any): boolean;
|
|
17
|
+
export function isTextFile(file: any): boolean;
|
|
18
|
+
export function isCsvOrExcelFile(file: any): boolean;
|
|
19
|
+
export function extractZipFiles(allFiles: any): globalThis.Promise<any>;
|
|
20
|
+
export function setupCsvParserOptions(parserOptions?: {}): {};
|
|
21
|
+
export function parseCsvFile(csvFile: any, parserOptions?: {}): Promise<any>;
|
|
22
|
+
export function jsonToCsv(jsonData: any, options?: {}): string;
|
|
23
|
+
export function parseCsvString(csvString: any, parserOptions?: {}): void;
|
|
24
|
+
export function validateCSVRequiredHeaders(fields: any, requiredHeaders: any, filename: any): string | undefined;
|
|
25
|
+
export function validateCSVRow(row: any, requiredHeaders: any, index: any): string | undefined;
|
|
26
|
+
export function cleanCommaSeparatedCell(cellData: any): any;
|
|
27
|
+
export function cleanCsvExport(rows: any): any;
|
|
28
|
+
export function filterFilesInZip(file: any, accepted: any): globalThis.Promise<any[]>;
|
|
29
|
+
import * as Promise from "bluebird";
|
package/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./file-utils";
|