@hestia-earth/schema-convert 32.1.0 → 32.1.1
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/json.d.ts +3 -3
- package/package.json +1 -1
package/json.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export declare enum ErrorKeys {
|
|
|
34
34
|
DuplicatedIdFields = "duplicated-id-fields",
|
|
35
35
|
ObjectArrayInvalid = "object-array-invalid"
|
|
36
36
|
}
|
|
37
|
-
interface
|
|
37
|
+
export interface IJSONConversionParams {
|
|
38
38
|
/**
|
|
39
39
|
* Ignore all internal fields (see `internal: true` in the schema). Defaults to `true`.
|
|
40
40
|
*/
|
|
@@ -50,7 +50,7 @@ interface IConversionParams {
|
|
|
50
50
|
}
|
|
51
51
|
export declare const throwCSVErrors: <T extends ICSVError>(errors: T[]) => never;
|
|
52
52
|
export declare const cleanStringValue: (value: string) => string;
|
|
53
|
-
export declare const formatNode: (schemas: definitions, type: SchemaType, data: ICSVContent, params?:
|
|
53
|
+
export declare const formatNode: (schemas: definitions, type: SchemaType, data: ICSVContent, params?: IJSONConversionParams) => any;
|
|
54
54
|
export declare const filterEmptyNode: (schemas: definitions, node: any) => boolean;
|
|
55
55
|
/**
|
|
56
56
|
* Convert CSV to HESTIA JSON-LD format.
|
|
@@ -60,5 +60,5 @@ export declare const filterEmptyNode: (schemas: definitions, node: any) => boole
|
|
|
60
60
|
* @param params Conversion parameters.
|
|
61
61
|
* @returns A list of JSON-LD content.
|
|
62
62
|
*/
|
|
63
|
-
export declare const toJson: (schemas: definitions, content: string, params?:
|
|
63
|
+
export declare const toJson: (schemas: definitions, content: string, params?: IJSONConversionParams) => Promise<any[]>;
|
|
64
64
|
export {};
|