@polycyphers/bim 0.1.1 → 0.1.4
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 +34 -4
- package/dist/BimStudio.d.ts +8 -1
- package/dist/DigitizationReview.d.ts +22 -0
- package/dist/VersionHistory.d.ts +20 -0
- package/dist/digitizationTypes.d.ts +125 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +2490 -1235
- package/dist/licensing.d.ts +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/studioState.d.ts +5 -0
- package/dist/style.css +1 -1
- package/dist/types.d.ts +30 -9
- package/package.json +9 -4
package/dist/types.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ExistingGraph } from './digitizationTypes';
|
|
1
2
|
export type Lang = 'en' | 'de' | 'fr' | 'ar';
|
|
2
3
|
export interface Programme {
|
|
3
4
|
bedroomWidthM: number;
|
|
@@ -13,6 +14,9 @@ export interface Programme {
|
|
|
13
14
|
source: string;
|
|
14
15
|
}
|
|
15
16
|
export interface ProjectInput {
|
|
17
|
+
valueOrigins?: {
|
|
18
|
+
userGivenPaths: string[];
|
|
19
|
+
};
|
|
16
20
|
isDraft?: boolean;
|
|
17
21
|
footprint: {
|
|
18
22
|
diagonals?: {
|
|
@@ -77,21 +81,23 @@ export interface SketchObservation {
|
|
|
77
81
|
origin?: string;
|
|
78
82
|
confirmed?: boolean;
|
|
79
83
|
}
|
|
84
|
+
export interface PendingDraft {
|
|
85
|
+
workflow: 'manual' | 'existing-plan';
|
|
86
|
+
input?: ProjectInput;
|
|
87
|
+
graph?: ExistingGraph;
|
|
88
|
+
sourceObjectId?: string;
|
|
89
|
+
baseDigitizationRevision?: number;
|
|
90
|
+
brief?: string;
|
|
91
|
+
}
|
|
80
92
|
export interface Snapshot {
|
|
93
|
+
workflow?: 'manual' | 'existing-plan' | null;
|
|
94
|
+
pendingDraft?: PendingDraft | null;
|
|
81
95
|
projectId: string;
|
|
82
96
|
version: number;
|
|
83
97
|
input: ProjectInput;
|
|
84
98
|
proposals: Proposal[];
|
|
85
99
|
selectedProposalId: string | null;
|
|
86
|
-
reconciliation:
|
|
87
|
-
values?: ValueReport;
|
|
88
|
-
status: string;
|
|
89
|
-
solutions: {
|
|
90
|
-
areaM2: number;
|
|
91
|
-
perimeterM: number;
|
|
92
|
-
}[];
|
|
93
|
-
findings: unknown[];
|
|
94
|
-
};
|
|
100
|
+
reconciliation: FootprintReview;
|
|
95
101
|
}
|
|
96
102
|
export interface Bundle {
|
|
97
103
|
version: number;
|
|
@@ -173,3 +179,18 @@ export interface SavedArtifact {
|
|
|
173
179
|
}[];
|
|
174
180
|
createdAtUtc: string;
|
|
175
181
|
}
|
|
182
|
+
export interface ProjectVersionInfo {
|
|
183
|
+
version: number;
|
|
184
|
+
createdAtUtc: string;
|
|
185
|
+
operationId: string;
|
|
186
|
+
selectedProposalId: string | null;
|
|
187
|
+
note?: string | null;
|
|
188
|
+
}
|
|
189
|
+
export interface ProjectComparison {
|
|
190
|
+
leftVersion: number;
|
|
191
|
+
rightVersion: number;
|
|
192
|
+
changedInputs: string[];
|
|
193
|
+
areaDeltaM2: number | null;
|
|
194
|
+
leftProposalId: string | null;
|
|
195
|
+
rightProposalId: string | null;
|
|
196
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polycyphers/bim",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"files": [
|
|
@@ -25,8 +25,9 @@
|
|
|
25
25
|
"scripts": {
|
|
26
26
|
"build": "node scripts/prepare-build.mjs && tsc --emitDeclarationOnly && vite build",
|
|
27
27
|
"prepack": "npm run build",
|
|
28
|
-
"test": "node --test tests
|
|
29
|
-
"verify:package": "npm run build && npm test && node scripts/verify-package.mjs"
|
|
28
|
+
"test": "node --experimental-strip-types --test tests/*.test.mjs && vitest run",
|
|
29
|
+
"verify:package": "npm run build && npm test && node scripts/verify-package.mjs",
|
|
30
|
+
"test:dom": "vitest run"
|
|
30
31
|
},
|
|
31
32
|
"peerDependencies": {
|
|
32
33
|
"react": ">=18 <20",
|
|
@@ -37,13 +38,17 @@
|
|
|
37
38
|
"dompurify": "3.4.17"
|
|
38
39
|
},
|
|
39
40
|
"devDependencies": {
|
|
41
|
+
"@testing-library/jest-dom": "7.0.1",
|
|
42
|
+
"@testing-library/react": "16.3.3",
|
|
40
43
|
"@types/react": "19.2.14",
|
|
41
44
|
"@types/react-dom": "19.2.3",
|
|
42
45
|
"@vitejs/plugin-react": "6.0.5",
|
|
46
|
+
"jsdom": "30.1.3",
|
|
43
47
|
"react": "19.2.8",
|
|
44
48
|
"react-dom": "19.2.8",
|
|
45
49
|
"typescript": "5.9.3",
|
|
46
|
-
"vite": "8.3.5"
|
|
50
|
+
"vite": "8.3.5",
|
|
51
|
+
"vitest": "5.0.5"
|
|
47
52
|
},
|
|
48
53
|
"description": "Commercial React sketch-to-layout and BIM studio for the canonical Polycyphers BIM API",
|
|
49
54
|
"private": false,
|