@dpuse/dpuse-shared 1.0.135 → 1.0.137

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.
@@ -0,0 +1,6 @@
1
+ import { DataFormatId } from '.';
2
+ export interface DataFormatIconConfig {
3
+ icon: string;
4
+ iconDark: string | null;
5
+ }
6
+ export declare const DATA_FORMAT_ICON_CONFIGS: Record<Exclude<DataFormatId, 'unknown'>, DataFormatIconConfig>;
@@ -38,7 +38,7 @@ export interface PreviewConfig {
38
38
  valueDelimiterOtherCharSeq?: string | undefined;
39
39
  valueTrimMethodId?: ValueTrimMethodId | undefined;
40
40
  }
41
- export type DataFormatId = 'arrow' | 'avro' | 'dpe' | 'dtv' | 'json' | 'jsonl' | 'markdown' | 'ods' | 'parquet' | 'sav' | 'sqlite' | 'text' | 'xlsm' | 'xlsx' | 'xml' | 'unknown';
41
+ export type DataFormatId = 'arrow' | 'avro' | 'dtv' | 'json' | 'jsonl' | 'markdown' | 'ods' | 'parquet' | 'sav' | 'sqlite' | 'xlsx' | 'xml' | 'unknown';
42
42
  export type ParsingRecord = ParsingResult[];
43
43
  interface ParsingResult {
44
44
  value: string | null;
@@ -129,5 +129,5 @@ interface UnknownInferenceResult {
129
129
  inputValueWasQuoted: boolean;
130
130
  inferredValue: null;
131
131
  }
132
+ export { DATA_FORMAT_ICON_CONFIGS, type DataFormatIconConfig } from './dataFormatIcons';
132
133
  export declare const ORDERED_VALUE_DELIMITER_IDS: ValueDelimiterId[];
133
- export {};
@@ -5,7 +5,7 @@ import { LocalisedConfig } from '../../../locale';
5
5
  import { ToolConfig } from '../tool';
6
6
  import { ConnectionDescriptionConfig, ConnectionNodeConfig, ObjectColumnConfig } from '../../connection';
7
7
  import { connectorActionNameSchema, connectorCategoryConfigSchema, connectorConfigSchema, connectorItemTypeConfigSchema, connectorItemTypeIdSchema, connectorUsageConfigSchema, connectorUsageIdSchema } from './connectorConfig.schema';
8
- import { InferenceRecord, InferenceSummary, ParsingRecord, PreviewConfig, ValueDelimiterId } from '../../dataView';
8
+ import { DataFormatId, InferenceRecord, InferenceSummary, ParsingRecord, PreviewConfig, ValueDelimiterId } from '../../dataView';
9
9
  export { connectorConfigSchema } from './connectorConfig.schema';
10
10
  export interface ConnectorInterface extends Component {
11
11
  abortController: AbortController | undefined;
@@ -100,6 +100,8 @@ export interface ListNodesResult {
100
100
  }
101
101
  export interface PreviewObjectOptions extends EngineConnectorActionOptions {
102
102
  chunkSize: number | undefined;
103
+ dataFormatId: DataFormatId | undefined;
104
+ encodingId: string | undefined;
103
105
  extension: string | undefined;
104
106
  mimeType: string | undefined;
105
107
  path: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dpuse/dpuse-shared",
3
- "version": "1.0.135",
3
+ "version": "1.0.137",
4
4
  "private": false,
5
5
  "description": "Common constants, types and utilities used across DPUse projects.",
6
6
  "license": "MIT",
@@ -69,7 +69,7 @@
69
69
  "@types/node": "^26.6.5",
70
70
  "@vitest/coverage-v8": "^5.0.5",
71
71
  "eslint": "^10.13.0",
72
- "fallow": "^3.35.0",
72
+ "fallow": "^3.36.0",
73
73
  "fast-check": "^4.10.2",
74
74
  "jschardet": "^4.0.0",
75
75
  "prettier": "^3.9.10",