@datapos/datapos-shared 0.3.284 → 0.3.287
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 +6 -7
- package/package.json +5 -18
- package/dist/types/_SCHEMA_TYPES.d.ts +0 -42
package/README.md
CHANGED
|
@@ -125,13 +125,12 @@ The OWASP Dependency Check Report identifies known vulnerabilities in project de
|
|
|
125
125
|
The following table lists top-level production and peer dependencies. All these dependencies (including transitive ones) have been recursively verified to use Apache-2.0, CC0-1.0, or MIT—commercially friendly licenses with minimal restrictions. Developers cloning this repository should independently verify dev and optional dependencies; users of the uploaded library are covered by these checks.
|
|
126
126
|
|
|
127
127
|
<!-- DEPENDENCY_LICENSES_START -->
|
|
128
|
-
|
|
129
|
-
|
|
|
130
|
-
|
|
|
131
|
-
|
|
|
132
|
-
|
|
|
133
|
-
|
|
|
134
|
-
|
|
128
|
+
| Name | Type | Installed | Latest | Latest Modified |
|
|
129
|
+
| :-------- | :--: | :-------: | :----: | :----------------------- |
|
|
130
|
+
| csv-parse | MIT | 6.1.0 | 6.1.0 | 2025-07-16T18:42:21.126Z |
|
|
131
|
+
| date-fns | MIT | 4.1.0 | 4.1.0 | 2025-08-03T13:10:27.925Z |
|
|
132
|
+
| nanoid | MIT | 5.1.6 | 5.1.6 | 2025-09-22T09:45:52.899Z |
|
|
133
|
+
| zod | MIT | 4.1.13 | 4.1.13 | 2025-12-02T06:21:25.529Z |
|
|
135
134
|
<!-- DEPENDENCY_LICENSES_END -->
|
|
136
135
|
|
|
137
136
|
**Installed dependencies are kept up-to-date with latest releases.**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datapos/datapos-shared",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.287",
|
|
4
4
|
"description": "A library containing common declarations and utilities used across all other Data Positioning projects.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
@@ -56,9 +56,12 @@
|
|
|
56
56
|
"jiti": "^2.6.1",
|
|
57
57
|
"license-report": "^6.8.1",
|
|
58
58
|
"license-report-check": "^0.1.2",
|
|
59
|
+
"license-report-recursive": "^6.8.2",
|
|
60
|
+
"nanoid": "^5.1.6",
|
|
59
61
|
"npm-check-updates": "^19.1.2",
|
|
62
|
+
"owasp-dependency-check": "^1.0.0",
|
|
60
63
|
"prettier": "^3.7.4",
|
|
61
|
-
"
|
|
64
|
+
"rollup-plugin-visualizer": "^6.0.5",
|
|
62
65
|
"ts-to-zod": "^5.1.0",
|
|
63
66
|
"typescript": "^5.9.3",
|
|
64
67
|
"vite": "^7.2.6",
|
|
@@ -75,22 +78,6 @@
|
|
|
75
78
|
"sync": "node -e \"import('@datapos/datapos-development').then(m => m.syncProjectWithGitHub())\"",
|
|
76
79
|
"test": "node -e \"import('@datapos/datapos-development').then(m => m.testProject())\"",
|
|
77
80
|
"update": "node -e \"import('@datapos/datapos-development').then(m => m.updateDataPosDependencies(['development']))\"",
|
|
78
|
-
"audit1": "npm audit",
|
|
79
|
-
"build1": "vite build",
|
|
80
|
-
"bump:version1": "node -e \"import('@datapos/datapos-development').then(m => m.bumpVersion())\"",
|
|
81
|
-
"check1": "npm outdated; npm-check-updates -i && retire",
|
|
82
|
-
"document1": "npm run _document:licenceReport && npm run _document:licenceCheck",
|
|
83
|
-
"format1": "prettier --write src/",
|
|
84
|
-
"lint1": "eslint .",
|
|
85
|
-
"publish:toNPM1": "npm publish --access public",
|
|
86
|
-
"release1": "npm run bump:version && npm run build && npm run _sync:withGitHub && npm run publish:toNPM",
|
|
87
|
-
"sync1": "npm run bump:version && npm run _sync:withGitHub",
|
|
88
|
-
"test1": "node -e \"import('@datapos/datapos-development').then(m => m.echoScriptNotImplemented('Test'))\"",
|
|
89
|
-
"update:dataPosDep1s": "npm run _update:developDep",
|
|
90
|
-
"_document:licenceReport1": "license-report --only=prod,peer > LICENSES.json",
|
|
91
|
-
"_document:licenceCheck1": "license-report-check --source ./LICENSES.json --allowed 'MIT' --allowed 'n/a' --allowed 'Apache-2.0' --output=table",
|
|
92
|
-
"_sync:withGitHub1": "node -e \"import('@datapos/datapos-development').then(m => m.syncWithGitHub())\"",
|
|
93
|
-
"_update:developDep1": "npm install --save-dev @datapos/datapos-development@latest",
|
|
94
81
|
"___ts-to-zod": "npx ts-to-zod src/schemaTypes.ts src/schemaZOD.ts"
|
|
95
82
|
},
|
|
96
83
|
"engines": {
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
type ComponentStatus = {
|
|
2
|
-
id: string;
|
|
3
|
-
color: StatusColorId;
|
|
4
|
-
label: string;
|
|
5
|
-
};
|
|
6
|
-
type ComponentStatusId = 'alpha' | 'beta' | 'generalAvailability' | 'notApplicable' | 'preAlpha' | 'proposed' | 'releaseCandidate' | 'unavailable' | 'underReview';
|
|
7
|
-
type ComponentTypeId = 'app' | 'connector' | 'connectorConnection' | 'context' | 'contextModelGroup' | 'contextModel' | 'contextModelDimensionGroup' | 'contextModelDimension' | 'contextModelDimensionHierarchy' | 'contextModelEntityGroup' | 'contextModelEntity' | 'contextModelEntityDataItem' | 'contextModelEntityEvent' | 'contextModelEntityPrimaryMeasure' | 'contextModelSecondaryMeasureGroup' | 'contextModelSecondaryMeasure' | 'dataView' | 'dimension' | 'engine' | 'eventQuery' | 'presenter' | 'presenterPresentation' | 'tool';
|
|
8
|
-
type StatusColorId = 'amber' | 'green' | 'red' | 'other';
|
|
9
|
-
type Timestamp = number;
|
|
10
|
-
interface ComponentConfig {
|
|
11
|
-
id: string;
|
|
12
|
-
label: Record<string, string>;
|
|
13
|
-
description: Record<string, string>;
|
|
14
|
-
firstCreatedAt?: Timestamp;
|
|
15
|
-
icon?: string;
|
|
16
|
-
iconDark?: string;
|
|
17
|
-
lastUpdatedAt?: Timestamp;
|
|
18
|
-
status?: ComponentStatus;
|
|
19
|
-
statusId: ComponentStatusId;
|
|
20
|
-
typeId: ComponentTypeId;
|
|
21
|
-
}
|
|
22
|
-
type ComponentRef = {
|
|
23
|
-
id: string;
|
|
24
|
-
label: Record<string, string>;
|
|
25
|
-
description: Record<string, string>;
|
|
26
|
-
icon?: string;
|
|
27
|
-
iconDark?: string;
|
|
28
|
-
order: number;
|
|
29
|
-
path: string;
|
|
30
|
-
};
|
|
31
|
-
interface ModuleConfig extends ComponentConfig {
|
|
32
|
-
typeId: ModuleTypeId;
|
|
33
|
-
version: string;
|
|
34
|
-
}
|
|
35
|
-
type ModuleTypeId = 'app' | 'engine' | 'connector' | 'context' | 'presenter' | 'tool';
|
|
36
|
-
export interface PresenterConfig extends ModuleConfig {
|
|
37
|
-
presentations: ComponentRef[];
|
|
38
|
-
operations: PresenterOperation[];
|
|
39
|
-
typeId: 'presenter';
|
|
40
|
-
}
|
|
41
|
-
type PresenterOperation = 'list' | 'render' | 'setColorMode';
|
|
42
|
-
export {};
|