@datapos/datapos-shared 0.1.867 → 0.1.868

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 CHANGED
@@ -1,6 +1,6 @@
1
- # Datapos - Core Share Library
1
+ # Datapos - Shared Library
2
2
 
3
- A TypeScript library of core declarations and utilities shared between Datapos applications and plugin components.
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
- - convertODataTypeToDataType
75
+ - convertODataTypeToDataType
76
76
 
77
77
  ### Extraction
78
78
 
79
- - extractDirectoryPathFromEntryPath
80
- - extractExtensionFromEntryPath
81
- - extractLastFolderNameFromFolderPath
79
+ - extractDirectoryPathFromEntryPath
80
+ - extractExtensionFromEntryPath
81
+ - extractLastFolderNameFromFolderPath
82
82
 
83
83
  ### Formatting
84
84
 
85
- - formatNumberAsDecimalNumber
86
- - formatNumberAsStorageSize
87
- - formatNumberAsWholeNumber
85
+ - formatNumberAsDecimalNumber
86
+ - formatNumberAsStorageSize
87
+ - formatNumberAsWholeNumber
88
88
 
89
89
  ### Lookup
90
90
 
91
- - lookupMimeTypeForFileExtension
91
+ - lookupMimeTypeForFileExtension
92
92
 
93
93
  ### Security
94
94
 
95
- - establishVendorAccessToken
95
+ - establishVendorAccessToken
96
96
 
97
97
  ## Repository Management Commands
98
98
 
@@ -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
- models: ModelConfig[];
3
+ modelConfigs: ModelConfig[];
7
4
  }
8
5
  export interface ModelConfig extends ComponentConfig {
9
- dimensions: DimensionConfig[];
10
- entities: EntityConfig[];
11
- views: ViewConfig[];
6
+ diagramURL: string;
7
+ dimensionGroupConfigs: DimensionGroupConfig[];
8
+ entityGroupConfigs: EntityGroupConfig[];
9
+ secondaryMeasureGroupConfigs: SecondaryMeasureGroupConfig[];
10
+ viewGroupConfigs: ViewGroupConfig[];
12
11
  }
13
- export interface DimensionConfig extends ComponentConfig {
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 HierarchyConfig extends ComponentConfig {
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 extends ComponentConfig {
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 ViewConfig extends ComponentConfig {
42
- placeholder: string;
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 {};
@@ -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 { ContextConfig, FocusConfig, ModelConfig, DimensionConfig, EntityCharacteristicConfig, EntityComputationConfig } from './context';
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';
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@datapos/datapos-shared",
3
3
  "license": "ISC",
4
4
  "private": false,
5
- "version": "0.1.867",
5
+ "version": "0.1.868",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist"