@datapos/datapos-shared 0.3.110 → 0.3.114

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.
@@ -35,6 +35,10 @@ export interface ConnectorConfig extends ComponentConfig {
35
35
  vendorHomeURL?: string;
36
36
  version: string;
37
37
  }
38
+ export type ConnectorLocalisedConfig = Omit<ConnectorConfig, 'label' | 'description'> & {
39
+ label: string;
40
+ description: string;
41
+ };
38
42
  export type ConnectorImplementation = {
39
43
  activeConnectionCount?: number;
40
44
  canDescribe?: boolean;
@@ -44,10 +48,6 @@ export type ConnectorImplementation = {
44
48
  maxConnectionCount?: number;
45
49
  params?: Record<string, string>[];
46
50
  };
47
- export type ConnectorLocalisedConfig = Omit<ConnectorConfig, 'label' | 'description'> & {
48
- label: string;
49
- description: string;
50
- };
51
51
  export type ConnectorTools = {
52
52
  csvParse: typeof csvParse;
53
53
  dataPos: {
@@ -3,6 +3,7 @@ export interface Context {
3
3
  readonly config: ContextConfig;
4
4
  list(settings?: ContextListSettings): Promise<ContextListResult>;
5
5
  }
6
+ export type ContextOperationSettings = {};
6
7
  export type ContextListSettings = {};
7
8
  export type ContextListResult = {
8
9
  models: ContextModelGroupConfig[];
@@ -1,4 +1,4 @@
1
- import { PreviewColumn } from './Z_PreviewColumn';
1
+ import { PreviewColumn } from '../../Z_PreviewColumn';
2
2
  export type ParsedValue = {
3
3
  isValid: boolean;
4
4
  value: bigint | boolean | number | string | null;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Build connector configuration.
3
+ */
4
+ export declare function buildConnectorConfig(): Promise<void>;
@@ -1,7 +1,7 @@
1
- import { ConnectionConfig } from './component/connector/connection';
2
- import { AuditContentResult, ConnectorCallbackData, ConnectorOperationSettings, InitialiseSettings, ListResult, RetrieveResult } from './component/connector';
3
- import { ContextCallbackData, ContextConfig, ContextOperationSettings } from './component/context';
4
- import { DataViewPreviewConfig, EncodingConfig } from './component/dataView';
1
+ import { ConnectionConfig } from '../component/connector/connection';
2
+ import { AuditContentResult, ConnectorCallbackData, ConnectorOperationSettings, InitialiseSettings, ListResult, RetrieveResult } from '../component/connector';
3
+ import { ContextCallbackData, ContextConfig, ContextOperationSettings } from '../component/context';
4
+ import { DataViewPreviewConfig, EncodingConfig } from '../component/dataView';
5
5
  type InitialiseEngine = (settings: InitialiseSettings) => Promise<void>;
6
6
  type ProcessConnectorRequest = (id: string, connectionConfig: ConnectionConfig, settings: ConnectorOperationSettings, callback?: ((callbackData: ContextCallbackData) => void) | undefined) => Promise<ContextInterfaceResult>;
7
7
  export type ContextInterfaceResult = AuditContentResult | DataViewPreviewConfig | ListResult | RetrieveResult;
@@ -1,5 +1,5 @@
1
- import { ContextModelGroupConfig } from './component/context';
2
- import { LocalisedString } from './index';
1
+ import { ContextModelGroupConfig } from '../component/context';
2
+ import { LocalisedString } from '../index';
3
3
  interface ModuleConfig {
4
4
  id: string;
5
5
  label: Partial<LocalisedString>;
@@ -1,2 +1,5 @@
1
+ /**
2
+ * Vite configuration.
3
+ */
1
4
  declare const _default: import('vite').UserConfig;
2
5
  export default _default;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@datapos/datapos-shared",
3
3
  "license": "MIT",
4
4
  "private": false,
5
- "version": "0.3.110",
5
+ "version": "0.3.114",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist"
@@ -35,7 +35,7 @@
35
35
  "prettier": "^3.6.2",
36
36
  "retire": "^5.3.0",
37
37
  "typescript": "^5.9.3",
38
- "vite": "^7.1.12",
38
+ "vite": "^7.2.1",
39
39
  "vite-plugin-dts": "^4.5.4"
40
40
  },
41
41
  "scripts": {