@datapos/datapos-shared 0.1.867 → 0.1.869
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/README.md +11 -11
- package/dist/types/src/component.d.ts +4 -2
- package/dist/types/src/context.d.ts +44 -13
- package/dist/types/src/index.d.ts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# Datapos -
|
|
1
|
+
# Datapos - Shared Library
|
|
2
2
|
|
|
3
|
-
A TypeScript library of
|
|
3
|
+
A TypeScript library of declarations and utilities shared between Datapos applications and plugin components.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -72,27 +72,27 @@ The following diagram illustrates the connection entry class hierarchy, showcasi
|
|
|
72
72
|
|
|
73
73
|
### Conversion
|
|
74
74
|
|
|
75
|
-
-
|
|
75
|
+
- convertODataTypeToDataType
|
|
76
76
|
|
|
77
77
|
### Extraction
|
|
78
78
|
|
|
79
|
-
-
|
|
80
|
-
-
|
|
81
|
-
-
|
|
79
|
+
- extractDirectoryPathFromEntryPath
|
|
80
|
+
- extractExtensionFromEntryPath
|
|
81
|
+
- extractLastFolderNameFromFolderPath
|
|
82
82
|
|
|
83
83
|
### Formatting
|
|
84
84
|
|
|
85
|
-
-
|
|
86
|
-
-
|
|
87
|
-
-
|
|
85
|
+
- formatNumberAsDecimalNumber
|
|
86
|
+
- formatNumberAsStorageSize
|
|
87
|
+
- formatNumberAsWholeNumber
|
|
88
88
|
|
|
89
89
|
### Lookup
|
|
90
90
|
|
|
91
|
-
-
|
|
91
|
+
- lookupMimeTypeForFileExtension
|
|
92
92
|
|
|
93
93
|
### Security
|
|
94
94
|
|
|
95
|
-
-
|
|
95
|
+
- establishVendorAccessToken
|
|
96
96
|
|
|
97
97
|
## Repository Management Commands
|
|
98
98
|
|
|
@@ -7,9 +7,11 @@ export interface ComponentConfig extends Record<string, unknown> {
|
|
|
7
7
|
lastUpdatedAt?: Timestamp;
|
|
8
8
|
logo?: string;
|
|
9
9
|
status?: ComponentStatus;
|
|
10
|
-
statusId:
|
|
11
|
-
typeId:
|
|
10
|
+
statusId: ComponentStatusId;
|
|
11
|
+
typeId: ComponentTypeId;
|
|
12
12
|
}
|
|
13
|
+
export type ComponentTypeId = 'connection' | 'connector' | 'focus' | 'model' | 'dataView' | 'eventQuery' | 'presentation' | 'presenter' | 'tutorial';
|
|
14
|
+
export type ComponentStatusId = 'alpha' | 'beta' | 'generalAvailability' | 'notApplicable' | 'preAlpha' | 'proposed' | 'releaseCandidate' | 'unavailable' | 'underReview';
|
|
13
15
|
export type ComponentStatus = {
|
|
14
16
|
id: string;
|
|
15
17
|
color?: string;
|
|
@@ -1,25 +1,50 @@
|
|
|
1
1
|
import { ComponentConfig } from './component';
|
|
2
|
-
export interface ContextConfig extends ComponentConfig {
|
|
3
|
-
focuses: FocusConfig[];
|
|
4
|
-
}
|
|
5
2
|
export interface FocusConfig extends ComponentConfig {
|
|
6
|
-
|
|
3
|
+
modelConfigs: ModelConfig[];
|
|
7
4
|
}
|
|
8
5
|
export interface ModelConfig extends ComponentConfig {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
diagramURL: string;
|
|
7
|
+
dimensionGroupConfigs: DimensionGroupConfig[];
|
|
8
|
+
entityGroupConfigs: EntityGroupConfig[];
|
|
9
|
+
secondaryMeasureGroupConfigs: SecondaryMeasureGroupConfig[];
|
|
10
|
+
viewGroupConfigs: ViewGroupConfig[];
|
|
12
11
|
}
|
|
13
|
-
|
|
12
|
+
interface DimensionGroupConfig {
|
|
13
|
+
id: string;
|
|
14
|
+
label: Record<string, string>;
|
|
15
|
+
description: Record<string, string>;
|
|
16
|
+
dimensionConfigs: DimensionConfig[];
|
|
17
|
+
}
|
|
18
|
+
interface EntityGroupConfig {
|
|
19
|
+
id: string;
|
|
20
|
+
label: Record<string, string>;
|
|
21
|
+
description: Record<string, string>;
|
|
22
|
+
entityConfigs: EntityConfig[];
|
|
23
|
+
}
|
|
24
|
+
interface SecondaryMeasureGroupConfig {
|
|
25
|
+
id: string;
|
|
26
|
+
label: Record<string, string>;
|
|
27
|
+
description: Record<string, string>;
|
|
28
|
+
secondaryMeasureConfigs: SecondaryMeasureConfig[];
|
|
29
|
+
}
|
|
30
|
+
interface ViewGroupConfig {
|
|
14
31
|
id: string;
|
|
15
|
-
hierarchies: HierarchyConfig[];
|
|
16
32
|
label: Record<string, string>;
|
|
33
|
+
description: Record<string, string>;
|
|
34
|
+
viewConfigs: ViewConfig[];
|
|
17
35
|
}
|
|
18
|
-
export interface
|
|
36
|
+
export interface DimensionConfig {
|
|
37
|
+
id: string;
|
|
38
|
+
label: Record<string, string>;
|
|
39
|
+
hierarchies: HierarchyConfig[];
|
|
40
|
+
}
|
|
41
|
+
export interface HierarchyConfig {
|
|
19
42
|
id: string;
|
|
20
43
|
label: Record<string, string>;
|
|
21
44
|
}
|
|
22
|
-
export interface EntityConfig
|
|
45
|
+
export interface EntityConfig {
|
|
46
|
+
id: string;
|
|
47
|
+
label: Record<string, string>;
|
|
23
48
|
labelPlural: Record<string, string>;
|
|
24
49
|
characteristics: EntityCharacteristicConfig[];
|
|
25
50
|
computations: EntityComputationConfig[];
|
|
@@ -38,8 +63,13 @@ export interface EntityEventConfig {
|
|
|
38
63
|
labelAction: Record<string, string>;
|
|
39
64
|
labelState: Record<string, string>;
|
|
40
65
|
}
|
|
41
|
-
export interface
|
|
42
|
-
|
|
66
|
+
export interface SecondaryMeasureConfig {
|
|
67
|
+
id: string;
|
|
68
|
+
label: Record<string, string>;
|
|
69
|
+
}
|
|
70
|
+
export interface ViewConfig {
|
|
71
|
+
id: string;
|
|
72
|
+
label: Record<string, string>;
|
|
43
73
|
}
|
|
44
74
|
export interface Event {
|
|
45
75
|
id?: number;
|
|
@@ -47,3 +77,4 @@ export interface Event {
|
|
|
47
77
|
effDate: number;
|
|
48
78
|
typeId: string;
|
|
49
79
|
}
|
|
80
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { DefaultTimestamp } from './timestamp';
|
|
2
|
-
export type { ComponentConfig, ComponentStatus } from './component';
|
|
2
|
+
export type { ComponentConfig, ComponentStatus, ComponentStatusId, ComponentTypeId } from './component';
|
|
3
3
|
export type { ConnectionAuthorizationConfig, ConnectionColumnConfig, ConnectionConfig, ConnectionNodeConfig } from './connection';
|
|
4
4
|
export type { DPAFileSystemFileHandle, Encoding, StorageTypeId, UsageTypeId } from './connection';
|
|
5
5
|
export type { AuditContentResult, AuditContentSettings } from './connector';
|
|
@@ -14,7 +14,7 @@ export type { PreviewResult, PreviewSettings } from './connector';
|
|
|
14
14
|
export type { RemoveSettings } from './connector';
|
|
15
15
|
export type { RetrieveResult, RetrieveSettings, RetrieveSummary, RetrieveTools } from './connector';
|
|
16
16
|
export type { UpsertSettings } from './connector';
|
|
17
|
-
export type {
|
|
17
|
+
export type { FocusConfig, ModelConfig, DimensionConfig, EntityCharacteristicConfig, EntityComputationConfig } from './context';
|
|
18
18
|
export type { EntityConfig, EntityEventConfig, HierarchyConfig, ViewConfig, Event } from './context';
|
|
19
19
|
export type { DataFormatId, EncodingConfig, RecordDelimiterId, ValueDelimiterId } from './dataView';
|
|
20
20
|
export type { DataViewConfig, DataViewContentAuditConfig, DataViewPreviewConfig, DataViewRelationshipsAuditConfig, ParsedValue } from './dataView';
|