@dpuse/dpuse-shared 1.0.169 → 1.0.170

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.
@@ -5,10 +5,20 @@ export interface DataViewConfig extends ComponentInstanceConfig {
5
5
  typeId: 'dataView';
6
6
  connectionId: string;
7
7
  connectionNodeConfig: ConnectionNodeConfig | undefined;
8
- previewConfig: PreviewConfig | undefined;
9
- contentAuditConfig: ContentAuditConfig | undefined;
8
+ previewConfig: StoredPreviewConfig | undefined;
9
+ columnSetConfig: ColumnSetConfig | undefined;
10
+ auditSummaryConfig: AuditSummaryConfig | undefined;
10
11
  relationshipsAuditConfig: RelationshipsAuditConfig | undefined;
11
12
  }
13
+ export interface ColumnSetConfig {
14
+ asAt: number;
15
+ columnConfigs: DataViewColumnConfig[];
16
+ sourceId: ColumnSetSourceId;
17
+ }
18
+ export type ColumnSetSourceId = 'audit' | 'preview';
19
+ export interface DataViewColumnConfig extends ObjectColumnConfig {
20
+ chosenDataTypeId?: DataTypeId | undefined;
21
+ }
12
22
  export interface PreviewConfig {
13
23
  asAt: number;
14
24
  commentMarkId?: string | undefined;
@@ -39,6 +49,7 @@ export interface PreviewConfig {
39
49
  valueDelimiterOtherCharSeq?: string | undefined;
40
50
  valueTrimMethodId?: ValueTrimMethodId | undefined;
41
51
  }
52
+ export type StoredPreviewConfig = Omit<PreviewConfig, 'columnConfigs'>;
42
53
  export interface PreviewIssue {
43
54
  endLineNumber?: number | undefined;
44
55
  fieldNumber?: number | undefined;
@@ -70,6 +81,7 @@ export interface ContentAuditConfig {
70
81
  recordCount: number;
71
82
  sourceWaitDuration: number | undefined;
72
83
  }
84
+ export type AuditSummaryConfig = Omit<ContentAuditConfig, 'columns'>;
73
85
  interface RelationshipsAuditConfig {
74
86
  placeholder: string;
75
87
  }
@@ -120,9 +120,14 @@ export interface LoadObjectRecordsResult {
120
120
  }
121
121
  export interface EngineLoadObjectRecordsOptions extends LoadObjectRecordsOptions {
122
122
  hasHeaders: boolean;
123
+ headerValues: (string | null)[] | undefined;
123
124
  sourceConnectionConfig: ConnectionConfig | LocalisedConfig<ConnectionConfig>;
124
125
  sourceOptions: RetrieveRecordsOptions;
125
126
  }
127
+ export interface EngineLoadObjectRecordsResult extends LoadObjectRecordsResult {
128
+ columnsHaveChanged: boolean;
129
+ invalidValueCounts: number[];
130
+ }
126
131
  export type StoreRecord = StoreValue[];
127
132
  export type StoreValue = bigint | boolean | Date | number | string | null;
128
133
  export type OpenStoreOptions = EngineConnectorActionOptions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dpuse/dpuse-shared",
3
- "version": "1.0.169",
3
+ "version": "1.0.170",
4
4
  "private": false,
5
5
  "description": "Common constants, types and utilities used across DPUse projects.",
6
6
  "license": "MIT",