@htilabs/platform-common-models 0.19.0 → 0.20.0
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/dist/cvcs/index.cjs +4769 -643
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +5036 -606
- package/dist/cvcs/index.d.ts +5036 -606
- package/dist/cvcs/index.js +4769 -643
- package/dist/cvcs/index.js.map +1 -1
- package/dist/enums/index.cjs +74 -1
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.cts +77 -4
- package/dist/enums/index.d.ts +77 -4
- package/dist/enums/index.js +74 -1
- package/dist/enums/index.js.map +1 -1
- package/dist/index.cjs +5199 -588
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +5189 -588
- package/dist/index.js.map +1 -1
- package/dist/information-scope/index.cjs +440 -0
- package/dist/information-scope/index.cjs.map +1 -0
- package/dist/information-scope/index.d.cts +313 -0
- package/dist/information-scope/index.d.ts +313 -0
- package/dist/information-scope/index.js +404 -0
- package/dist/information-scope/index.js.map +1 -0
- package/dist/services/index.cjs +414 -2
- package/dist/services/index.cjs.map +1 -1
- package/dist/services/index.d.cts +1 -0
- package/dist/services/index.d.ts +1 -0
- package/dist/services/index.js +403 -1
- package/dist/services/index.js.map +1 -1
- package/package.json +32 -26
- package/src/__tests__/__snapshots__/cvc-sot.snap +3 -3
- package/src/__tests__/core-information-scope-invariant.test.ts +709 -456
- package/src/__tests__/cvc-sot-snapshot.test.ts +16 -17
- package/src/__tests__/cvc-structural.test.ts +2 -2
- package/src/__tests__/location-type-routing-invariant.test.ts +25 -8
- package/src/cvcs/coreInformationScope.v2.0.0.json +5396 -0
- package/src/cvcs/index.ts +2 -2
- package/src/cvcs/roiScope.v1.3.0.json +360 -0
- package/src/generated/cvc-enums.ts +77 -4
- package/src/services/__tests__/fixtures/infoscope-v4/information_scope_v4.migrations.csv +106 -0
- package/src/services/__tests__/fixtures/infoscope-v4/information_scope_v4.rows.csv +117 -0
- package/src/services/__tests__/fixtures/infoscope-v4/loadInfoscopeV4Fixtures.ts +116 -0
- package/src/services/__tests__/informationScopeResolver.test.ts +964 -0
- package/src/services/index.ts +10 -3
- package/src/services/informationScope.ts +10 -0
- package/src/services/informationScopeResolver.ts +672 -0
- package/src/services/informationScopeSot.ts +161 -0
- package/src/cvcs/coreInformationScope.v1.1.0.json +0 -1290
- package/src/cvcs/roiScope.v1.2.0.json +0 -340
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htilabs/platform-common-models",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"description": "Shared constants, types, and models for HTI Labs applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -61,12 +61,42 @@
|
|
|
61
61
|
"types": "./dist/mongo/index.d.ts",
|
|
62
62
|
"import": "./dist/mongo/index.js",
|
|
63
63
|
"require": "./dist/mongo/index.cjs"
|
|
64
|
+
},
|
|
65
|
+
"./information-scope": {
|
|
66
|
+
"types": "./dist/information-scope/index.d.ts",
|
|
67
|
+
"import": "./dist/information-scope/index.js",
|
|
68
|
+
"require": "./dist/information-scope/index.cjs"
|
|
64
69
|
}
|
|
65
70
|
},
|
|
66
71
|
"files": [
|
|
67
72
|
"dist",
|
|
68
73
|
"src"
|
|
69
74
|
],
|
|
75
|
+
"scripts": {
|
|
76
|
+
"build": "tsup",
|
|
77
|
+
"dev": "tsup --watch",
|
|
78
|
+
"typecheck": "tsc --noEmit && tsc --noEmit -p scripts/tsconfig.json",
|
|
79
|
+
"lint": "eslint src --ext .ts",
|
|
80
|
+
"lint:fix": "eslint src --ext .ts --fix",
|
|
81
|
+
"test": "vitest run",
|
|
82
|
+
"test:watch": "vitest",
|
|
83
|
+
"test:snapshot": "UPDATE_SNAPSHOT=1 vitest run",
|
|
84
|
+
"clean": "rm -rf dist",
|
|
85
|
+
"codegen:cvc": "tsx scripts/codegen-cvc-enums.ts",
|
|
86
|
+
"codegen:cvc:check": "tsx scripts/codegen-cvc-enums.ts --check",
|
|
87
|
+
"import:cvcs": "node scripts/import-prototype-cvcs.mjs",
|
|
88
|
+
"sot:pins": "tsx scripts/sot-pins.ts",
|
|
89
|
+
"sot:pins:check": "tsx scripts/sot-pins.ts --check",
|
|
90
|
+
"gate:cvc": "vitest run src/__tests__/cvc-drift-gate.test.ts",
|
|
91
|
+
"bridge:codebook": "tsx scripts/codebook-bridge.ts",
|
|
92
|
+
"bridge:codebook:check": "tsx scripts/codebook-bridge.ts --check",
|
|
93
|
+
"test:bridge": "node --import tsx --test scripts/codebook-bridge.test.ts",
|
|
94
|
+
"seed:cvc": "tsx scripts/seed-cvc.ts",
|
|
95
|
+
"seed:cvc:all": "tsx scripts/seed-all-cvcs.ts",
|
|
96
|
+
"test:seed": "node --import tsx --test scripts/seed-cvc.test.ts",
|
|
97
|
+
"test:guard": "node --import tsx --test scripts/lib/confirmTargetDb.test.ts",
|
|
98
|
+
"prepublishOnly": "npm run build"
|
|
99
|
+
},
|
|
70
100
|
"keywords": [
|
|
71
101
|
"hti",
|
|
72
102
|
"platform-common",
|
|
@@ -101,29 +131,5 @@
|
|
|
101
131
|
},
|
|
102
132
|
"engines": {
|
|
103
133
|
"node": ">=18.0.0"
|
|
104
|
-
},
|
|
105
|
-
"scripts": {
|
|
106
|
-
"build": "tsup",
|
|
107
|
-
"dev": "tsup --watch",
|
|
108
|
-
"typecheck": "tsc --noEmit && tsc --noEmit -p scripts/tsconfig.json",
|
|
109
|
-
"lint": "eslint src --ext .ts",
|
|
110
|
-
"lint:fix": "eslint src --ext .ts --fix",
|
|
111
|
-
"test": "vitest run",
|
|
112
|
-
"test:watch": "vitest",
|
|
113
|
-
"test:snapshot": "UPDATE_SNAPSHOT=1 vitest run",
|
|
114
|
-
"clean": "rm -rf dist",
|
|
115
|
-
"codegen:cvc": "tsx scripts/codegen-cvc-enums.ts",
|
|
116
|
-
"codegen:cvc:check": "tsx scripts/codegen-cvc-enums.ts --check",
|
|
117
|
-
"import:cvcs": "node scripts/import-prototype-cvcs.mjs",
|
|
118
|
-
"sot:pins": "tsx scripts/sot-pins.ts",
|
|
119
|
-
"sot:pins:check": "tsx scripts/sot-pins.ts --check",
|
|
120
|
-
"gate:cvc": "vitest run src/__tests__/cvc-drift-gate.test.ts",
|
|
121
|
-
"bridge:codebook": "tsx scripts/codebook-bridge.ts",
|
|
122
|
-
"bridge:codebook:check": "tsx scripts/codebook-bridge.ts --check",
|
|
123
|
-
"test:bridge": "node --import tsx --test scripts/codebook-bridge.test.ts",
|
|
124
|
-
"seed:cvc": "tsx scripts/seed-cvc.ts",
|
|
125
|
-
"seed:cvc:all": "tsx scripts/seed-all-cvcs.ts",
|
|
126
|
-
"test:seed": "node --import tsx --test scripts/seed-cvc.test.ts",
|
|
127
|
-
"test:guard": "node --import tsx --test scripts/lib/confirmTargetDb.test.ts"
|
|
128
134
|
}
|
|
129
|
-
}
|
|
135
|
+
}
|
|
@@ -584,7 +584,7 @@
|
|
|
584
584
|
},
|
|
585
585
|
"roi_scope": {
|
|
586
586
|
"count": 31,
|
|
587
|
-
"hash": "
|
|
587
|
+
"hash": "e3154d8e0e332324dc36f58f542fda07d7e028b68aafba6eca8a0743f7330a02"
|
|
588
588
|
},
|
|
589
589
|
"roi_status": {
|
|
590
590
|
"count": 9,
|
|
@@ -703,8 +703,8 @@
|
|
|
703
703
|
"hash": "9d8972c65373a9981aab6b8749661659ecc632004e67bc9c2b3c88aa76f30977"
|
|
704
704
|
},
|
|
705
705
|
"core_information_scope": {
|
|
706
|
-
"count":
|
|
707
|
-
"hash": "
|
|
706
|
+
"count": 146,
|
|
707
|
+
"hash": "98f2ba7146b986b66f6ebdf66acfc34fc0da21cc787055fb58de070d5cc5f5bb"
|
|
708
708
|
}
|
|
709
709
|
}
|
|
710
710
|
}
|