@gruncellka/porto-data 0.1.0 → 0.2.1

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/index.d.ts ADDED
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Type declarations for @gruncellka/porto-data (npm).
3
+ * Default export is metadata; data files live under porto_data/.
4
+ */
5
+
6
+ export interface FileRef {
7
+ path: string;
8
+ checksum: string;
9
+ size: number;
10
+ url?: string;
11
+ }
12
+
13
+ export interface EntityMeta {
14
+ data: FileRef;
15
+ schema: FileRef;
16
+ }
17
+
18
+ export interface PortoDataMetadata {
19
+ project: {
20
+ name: string;
21
+ version: string;
22
+ description: string;
23
+ };
24
+ generated_at: string;
25
+ entities: Record<string, EntityMeta>;
26
+ checksums: {
27
+ algorithm: string;
28
+ note: string;
29
+ };
30
+ }
31
+
32
+ declare const metadata: PortoDataMetadata;
33
+ export default metadata;
package/index.js ADDED
@@ -0,0 +1,7 @@
1
+ 'use strict'
2
+
3
+ /**
4
+ * Entry point for @gruncellka/porto-data (npm).
5
+ * Exports metadata; data files live under porto_data/ (data/, schemas/, mappings.json).
6
+ */
7
+ module.exports = require('./porto_data/metadata.json')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gruncellka/porto-data",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "description": "Deutsche Post pricing and rules data with schema validation",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -23,6 +23,13 @@
23
23
  "porto_data/mappings.json",
24
24
  "porto_data/metadata.json",
25
25
  "README.md",
26
- "LICENSE"
27
- ]
28
- }
26
+ "LICENSE",
27
+ "index.js",
28
+ "index.d.ts"
29
+ ],
30
+ "main": "index.js",
31
+ "types": "index.d.ts",
32
+ "devDependencies": {
33
+ "typescript": "^5.9.3"
34
+ }
35
+ }
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "project": {
3
3
  "name": "gruncellka-porto-data",
4
- "version": "0.1.0",
4
+ "version": "0.2.1",
5
5
  "description": "Deutsche Post pricing and rules data with schema validation"
6
6
  },
7
- "generated_at": "2026-02-28T16:19:36.359977Z",
7
+ "generated_at": "2026-03-01T16:13:12.554748Z",
8
8
  "entities": {
9
9
  "products": {
10
10
  "data": {