@datapos/datapos-shared 0.3.316 → 0.3.319
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 +1 -2
- package/dist/datapos-shared.es.js +357 -330
- package/dist/types/src/component/componentConfig.schema.d.ts +22 -17
- package/dist/types/src/component/connector/connection.d.ts +5 -6
- package/dist/types/src/component/connector/connectorConfig.schema.d.ts +6 -6
- package/dist/types/src/component/connector/index.d.ts +10 -12
- package/dist/types/src/component/context/contextConfig.schema.d.ts +5 -5
- package/dist/types/src/component/context/index.d.ts +12 -12
- package/dist/types/src/component/dataView/OLD_ContentAuditColumn.d.ts +2 -2
- package/dist/types/src/component/dataView/index.d.ts +9 -11
- package/dist/types/src/component/index.d.ts +5 -5
- package/dist/types/src/component/presenter/index.d.ts +3 -3
- package/dist/types/src/component/presenter/presentation.d.ts +3 -3
- package/dist/types/src/component/presenter/presenterConfig.schema.d.ts +3 -3
- package/dist/types/src/engine/index.d.ts +4 -4
- package/dist/types/src/index.d.ts +36 -14
- package/package.json +4 -3
- package/dist/types/src/timestamp.d.ts +0 -4
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Shared composables, constants,
|
|
2
|
+
* Shared composables, constants, errors, interfaces, schemas, types and utilities.
|
|
3
3
|
*/
|
|
4
|
+
/** Interfaces/Types */
|
|
4
5
|
export type LocaleCode = 'en-au' | 'en-gb' | 'en-us' | 'es-es';
|
|
5
6
|
export type LocalisedString = Record<LocaleCode, string>;
|
|
7
|
+
/** Interfaces/Types - Component */
|
|
8
|
+
export type { ComponentConfig, ComponentReference, ComponentStatus, ComponentStatusId, ComponentTypeId, ModuleConfig, ModuleTypeId } from './component';
|
|
6
9
|
export type StatusColorId = 'amber' | 'green' | 'red' | 'other';
|
|
10
|
+
/** Schemas - Component */
|
|
7
11
|
export { componentConfigSchema } from './component';
|
|
8
|
-
|
|
9
|
-
export { connectorConfigSchema } from './component/connector';
|
|
10
|
-
export type { ConnectorOperation, ConnectorUsageId } from './component/connector';
|
|
12
|
+
/** Constants - Connector */
|
|
11
13
|
export { CONNECTOR_DESTINATION_OPERATIONS, CONNECTOR_SOURCE_OPERATIONS } from './component/connector';
|
|
14
|
+
/** Interfaces/Types Component - Connector */
|
|
15
|
+
export type { ConnectorOperation, ConnectorUsageId } from './component/connector';
|
|
12
16
|
export type { AuditContentResult, AuditContentSettings } from './component/connector';
|
|
13
17
|
export type { Connector, ConnectorCallbackData, ConnectorConfig, ConnectorImplementation, ConnectorOperationSettings, ConnectorLocalisedConfig, ConnectorTools } from './component/connector';
|
|
14
18
|
export type { CreateSettings } from './component/connector';
|
|
@@ -21,41 +25,59 @@ export type { PreviewResult, PreviewSettings } from './component/connector';
|
|
|
21
25
|
export type { RemoveSettings } from './component/connector';
|
|
22
26
|
export type { RetrieveResult, RetrieveSettings, RetrieveSummary } from './component/connector';
|
|
23
27
|
export type { UpsertSettings } from './component/connector';
|
|
28
|
+
/** Interfaces/Types - Connection */
|
|
24
29
|
export type { ConnectionAuthorizationConfig, ConnectionColumnConfig, ConnectionConfig, ConnectionNodeConfig } from './component/connector/connection';
|
|
25
30
|
export type { DPAFileSystemFileHandle, Encoding, StorageTypeId, UsageTypeId } from './component/connector/connection';
|
|
31
|
+
/** Schemas - Connector */
|
|
32
|
+
export { connectorConfigSchema } from './component/connector';
|
|
33
|
+
/** Interfaces/Types - Context. */
|
|
26
34
|
export { contextConfigSchema } from './component/context';
|
|
27
35
|
export type { Context, ContextConfig, ContextLocalisedConfig, ContextListSettings, ContextListResult, ContextOperation, ContextCallbackData } from './component/context';
|
|
36
|
+
/** Interfaces/Types - Context model. */
|
|
28
37
|
export type { ContextModelGroupConfig, ContextModelGroupLocalisedConfig, ContextModelConfig, ContextModelLocalisedConfig } from './component/context';
|
|
38
|
+
/** Interfaces/Types - Context model dimension. */
|
|
29
39
|
export type { ContextModelDimensionGroupConfig, ContextModelDimensionGroupLocalisedConfig, ContextModelDimensionConfig, ContextModelDimensionLocalisedConfig, ContextModelDimensionHierarchyConfig, ContextModelDimensionHierarchyLocalisedConfig } from './component/context';
|
|
40
|
+
/** Interfaces/Types - Context model entity. */
|
|
30
41
|
export type { ContextModelEntityGroupConfig, ContextModelEntityGroupLocalisedConfig, ContextModelEntityConfig, ContextModelEntityLocalisedConfig, ContextModelEntityDataItemConfig, // Data items.
|
|
31
42
|
ContextModelEntityDataItemLocalisedConfig, ContextModelEntityEventConfig, // Events.
|
|
32
43
|
ContextModelEntityEventLocalisedConfig, ContextModelEntityPrimaryMeasureConfig, // Primary measures.
|
|
33
44
|
ContextModelEntityPrimaryMeasureLocalisedConfig } from './component/context';
|
|
45
|
+
/** Interfaces/Types - Context model secondary measure. */
|
|
34
46
|
export type { ContextModelSecondaryMeasureGroupConfig, ContextModelSecondaryMeasureGroupLocalisedConfig, ContextModelSecondaryMeasureConfig, ContextModelSecondaryMeasureLocalisedConfig } from './component/context';
|
|
47
|
+
/** Interfaces/Types - Context Operator Settings */
|
|
48
|
+
export interface ContextOperationSettings {
|
|
49
|
+
accountId?: string;
|
|
50
|
+
appCheckToken?: string;
|
|
51
|
+
sessionAccessToken?: string;
|
|
52
|
+
}
|
|
53
|
+
/** Interfaces/Types - Data view. */
|
|
35
54
|
export type { DataFormatId, EncodingConfig, RecordDelimiterId, ValueDelimiterId } from './component/dataView';
|
|
36
55
|
export type { DataViewConfig, DataViewContentAuditConfig, DataViewLocalisedConfig, DataViewPreviewConfig, DataViewRelationshipsAuditConfig, ParsedValue } from './component/dataView';
|
|
56
|
+
/** Interfaces/Types - Dimension. */
|
|
37
57
|
export type { DimensionConfig, DimensionLocalisedConfig } from './component/dimension';
|
|
58
|
+
/** Interfaces/Types - Engine. */
|
|
38
59
|
export type { ConnectorInterfaceResult, ContextInterfaceResult, Engine, EngineConfig, EngineWorker, TestSettings } from './engine';
|
|
60
|
+
/** Interfaces/Types */
|
|
39
61
|
export type { SerialisedError } from './errors';
|
|
62
|
+
/** Errors */
|
|
63
|
+
export { APIError, ApplicationError, EngineError, FetchError, OperationalError, VueError, WindowRuntimeError, WindowPromiseRejectionError } from './errors';
|
|
64
|
+
/** Utilities */
|
|
65
|
+
export { buildFetchError, concatenateSerialisedErrorMessages, normalizeToError, serialiseError } from './errors';
|
|
66
|
+
/** Interfaces/Types - Event query. */
|
|
40
67
|
export type { EventQueryConfig, EventQueryLocalisedConfig } from './component/eventQuery';
|
|
68
|
+
/** Interfaces/Types */
|
|
41
69
|
export { presenterConfigSchema } from './component/presenter';
|
|
42
70
|
export type { Presenter, PresenterConfig, PresenterLocalisedConfig, PresenterOperation } from './component/presenter';
|
|
71
|
+
/** Interfaces/Types - Presenter presentation. */
|
|
43
72
|
export type { PresentationConfig, PresentationView } from './component/presenter/presentation';
|
|
44
73
|
export type { PresentationCategoryId, PresentationCartesianTypeId, PresentationPolarTypeId, PresentationRangeTypeId, PresentationVisualConfig, PresentationVisualContentConfig, PresentationVisualViewConfig, PresentationVisualCartesianChartViewConfig, PresentationVisualChordDiagramViewConfig, PresentationVisualPeriodFlowBoundariesChartViewConfig, PresentationVisualPolarChartViewConfig, PresentationVisualRangeChartViewConfig, PresentationVisualSankeyDiagramViewConfig, PresentationVisualStreamGraphViewConfig, PresentationVisualValueTableViewConfig } from './component/presenter/presentation';
|
|
45
74
|
export type { ToolConfig } from './component/tool';
|
|
46
|
-
|
|
47
|
-
accountId?: string;
|
|
48
|
-
appCheckToken?: string;
|
|
49
|
-
sessionAccessToken?: string;
|
|
50
|
-
}
|
|
51
|
-
export type { Timestamp } from './timestamp';
|
|
75
|
+
/** Composables */
|
|
52
76
|
export { type CytoscapeJSView, useCytoscapeJS } from './composables/useCytoscapeJS';
|
|
53
77
|
export { useDataTable } from './composables/useDataTable';
|
|
78
|
+
/** Constants */
|
|
54
79
|
export declare const DEFAULT_LOCALE_CODE: LocaleCode;
|
|
55
|
-
|
|
56
|
-
export { APIError, ApplicationError, EngineError, FetchError, OperationalError, VueError, WindowRuntimeError, WindowPromiseRejectionError } from './errors';
|
|
57
|
-
export { buildFetchError, concatenateSerialisedErrorMessages, normalizeToError, serialiseError } from './errors';
|
|
58
|
-
export { convertMillisecondsToTimestamp, getCurrentTimestamp } from './timestamp';
|
|
80
|
+
/** Utilities */
|
|
59
81
|
export { convertODataTypeIdToUsageTypeId } from './utilities';
|
|
60
82
|
export { extractExtensionFromPath, extractNameFromPath } from './utilities';
|
|
61
83
|
export { formatNumberAsDecimalNumber, formatNumberAsDuration, formatNumberAsSize, formatNumberAsStorageSize, formatNumberAsWholeNumber } from './utilities';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datapos/datapos-shared",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.319",
|
|
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>",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"nanoid": "^5.1.6"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@datapos/datapos-development": "^0.3.
|
|
37
|
-
"@datapos/eslint-config-datapos": "^1.0.
|
|
36
|
+
"@datapos/datapos-development": "^0.3.395",
|
|
37
|
+
"@datapos/eslint-config-datapos": "^1.0.27",
|
|
38
38
|
"@types/node": "^25.0.3",
|
|
39
39
|
"@typescript-eslint/eslint-plugin": "^8.50.0",
|
|
40
40
|
"@typescript-eslint/parser": "^8.50.0",
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"prettier": "^3.7.4",
|
|
56
56
|
"rollup-plugin-visualizer": "^6.0.5",
|
|
57
57
|
"sonda": "^0.10.1",
|
|
58
|
+
"type-fest": "^5.3.1",
|
|
58
59
|
"typescript": "^5.9.3",
|
|
59
60
|
"valibot": "^1.2.0",
|
|
60
61
|
"vite": "^7.3.0",
|