@datapos/datapos-shared 0.3.501 → 0.3.503

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.
@@ -23,25 +23,36 @@ interface ConnectionAuthorisationConfig {
23
23
  tokenType: string;
24
24
  uid: string;
25
25
  }
26
+ /**
27
+ * Connection description configuration.
28
+ */
29
+ interface ConnectionDescriptionConfig {
30
+ objects: {
31
+ id: string;
32
+ label: Record<string, string>;
33
+ columns: ObjectColumnConfig[];
34
+ }[];
35
+ }
26
36
  /**
27
37
  * Connection node configuration.
28
38
  */
29
39
  interface ConnectionNodeConfig {
30
- childCount?: number;
31
- columnsConfigs?: ObjectColumnConfig[];
40
+ childCount: number | undefined;
41
+ childNodes: ConnectionNodeConfig[] | undefined;
32
42
  extension: string | undefined;
33
43
  folderPath: string;
34
- handle?: DPAFileSystemFileHandle;
44
+ handle: DPAFileSystemFileHandle | undefined;
35
45
  id: string;
36
- nodeDisplayHeight?: number;
37
- nodes?: ConnectionNodeConfig[];
38
46
  label: string;
39
- lastModifiedAt?: number;
40
- mimeType?: string;
47
+ lastModifiedAt: number | undefined;
48
+ mimeType: string | undefined;
41
49
  name: string;
42
- size?: number;
50
+ size: number | undefined;
43
51
  typeId: NodeTypeId;
44
52
  }
53
+ /**
54
+ *
55
+ */
45
56
  interface DPAFileSystemFileHandle {
46
57
  readonly kind: 'file';
47
58
  getFile(): Promise<File>;
@@ -50,16 +61,6 @@ interface DPAFileSystemFileHandle {
50
61
  * Connection node type identifier.
51
62
  */
52
63
  type NodeTypeId = 'folder' | 'object';
53
- /**
54
- * Connection description configuration.
55
- */
56
- interface ConnectionDescriptionConfig {
57
- objects: {
58
- id: string;
59
- label: Record<string, string>;
60
- columns: ObjectColumnConfig[];
61
- }[];
62
- }
63
64
  /**
64
65
  * Object column configuration.
65
66
  */
@@ -67,23 +68,24 @@ interface ObjectColumnConfig {
67
68
  dataTypeId: DataTypeId;
68
69
  dataSubtypeId: DataSubtypeId | undefined;
69
70
  inferenceCounts: Record<string, number>;
70
- invalidValueCount?: number;
71
- invalidValues?: string[];
72
- isIgnored?: boolean;
73
- isRequired?: boolean;
74
- isUnique?: boolean;
71
+ invalidValueCount: number | undefined;
72
+ invalidValues: string[] | undefined;
73
+ isIgnored: boolean | undefined;
74
+ isRequired: boolean | undefined;
75
+ isUnique: boolean | undefined;
75
76
  label: Record<string, string>;
76
- maxDecimals?: number;
77
- maxSize?: number;
78
- maxValue?: string;
79
- minDecimals?: number;
80
- minSize?: number;
81
- minValue?: string;
82
- patterns?: Record<string, string>;
83
- storageTypeId?: StorageTypeId;
84
- validValueCount?: number;
85
- validValues?: Record<string, string>;
86
- voidValueCount?: number;
77
+ leadingInferenceCounts: Record<string, number> | undefined;
78
+ maxDecimals: number | undefined;
79
+ maxSize: number | undefined;
80
+ maxValue: string | undefined;
81
+ minDecimals: number | undefined;
82
+ minSize: number | undefined;
83
+ minValue: string | undefined;
84
+ formats: Record<string, string> | undefined;
85
+ storageTypeId: StorageTypeId | undefined;
86
+ validValueCount: number | undefined;
87
+ validValues: Record<string, string> | undefined;
88
+ voidValueCount: number | undefined;
87
89
  }
88
90
  type StorageTypeId = 'binary' | 'boolean' | 'byte' | 'date' | 'dateTime' | 'dateTimeOffset' | 'decimal' | 'double' | 'int8' | 'int16' | 'int32' | 'int64' | 'object' | 'single' | 'string' | 'time' | 'unknown';
89
91
  export type { ConnectionConfig, ConnectionDescriptionConfig, ConnectionNodeConfig, ObjectColumnConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datapos/datapos-shared",
3
- "version": "0.3.501",
3
+ "version": "0.3.503",
4
4
  "description": "A library containing common constants, types and utilities used across all Data Positioning projects.",
5
5
  "license": "MIT",
6
6
  "author": "Jonathan Terrell <terrell.jm@gmail.com>",