@struktur/benchmarks 2.6.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/LICENSE +110 -0
- package/README.md +108 -0
- package/dist/cache.d.ts +5 -0
- package/dist/cache.d.ts.map +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +961 -0
- package/dist/cli.js.map +1 -0
- package/dist/config.d.ts +13 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/datasets/index.d.ts +5 -0
- package/dist/datasets/index.d.ts.map +1 -0
- package/dist/datasets/longdoc.d.ts +34 -0
- package/dist/datasets/longdoc.d.ts.map +1 -0
- package/dist/datasets/source.d.ts +48 -0
- package/dist/datasets/source.d.ts.map +1 -0
- package/dist/datasets/sroie.d.ts +14 -0
- package/dist/datasets/sroie.d.ts.map +1 -0
- package/dist/datasets/synthetic.d.ts +27 -0
- package/dist/datasets/synthetic.d.ts.map +1 -0
- package/dist/datasets.js +392 -0
- package/dist/datasets.js.map +1 -0
- package/dist/expose/gold-score.d.ts +15 -0
- package/dist/expose/gold-score.d.ts.map +1 -0
- package/dist/expose/gold.d.ts +8 -0
- package/dist/expose/gold.d.ts.map +1 -0
- package/dist/expose/instructions.d.ts +2 -0
- package/dist/expose/instructions.d.ts.map +1 -0
- package/dist/expose/metric.d.ts +7 -0
- package/dist/expose/metric.d.ts.map +1 -0
- package/dist/expose/schema.d.ts +304 -0
- package/dist/expose/schema.d.ts.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +686 -0
- package/dist/index.js.map +1 -0
- package/dist/pricing.d.ts +15 -0
- package/dist/pricing.d.ts.map +1 -0
- package/dist/report.d.ts +6 -0
- package/dist/report.d.ts.map +1 -0
- package/dist/runner.d.ts +81 -0
- package/dist/runner.d.ts.map +1 -0
- package/dist/scoring/normalize.d.ts +20 -0
- package/dist/scoring/normalize.d.ts.map +1 -0
- package/dist/scoring/score.d.ts +39 -0
- package/dist/scoring/score.d.ts.map +1 -0
- package/dist/tracks.d.ts +16 -0
- package/dist/tracks.d.ts.map +1 -0
- package/dist/types.d.ts +88 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +40 -0
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
export declare const USAGES: readonly ["office", "living", "production", "storage", "retail", "gastronomy", "research", "health", "open-space", "outdoor-space", "hotel", "education", "entertainment", "sports", "infrastructure", "data-center", "coworking"];
|
|
2
|
+
export declare const FEATURES: readonly ["1a-location", "1b-location", "access-control", "acoustic-ceiling", "address", "air-conditioning", "apartment-building", "balcony", "bees", "bike-slots", "bikesharing", "block-heating", "cable-ducts", "cantina", "carpet-flooring", "carsharing", "cctv", "central-fire-alarm-system", "central-fire-alarm-system-fire-department", "central-heating", "ceramic-facade", "cleaning-service", "close-to-public-transport", "commercial-building", "completely-renovated", "concrete-core-cooling", "concrete-flooring", "convection-cooling", "cooled-halls", "cooling", "cooling-ceiling", "corner-location", "custom", "delivery-for-24h", "department-store", "display-window", "distance-airport", "distance-highway", "distance-main-station", "distance-port", "district-heating", "district-location", "double-floor", "dressing-room", "ecoenergy", "electric-heating", "electric-vehicle-charging-station", "electronic-lock", "elevators", "epoxy-flooring", "facade-signage", "fiberglass-connection", "floor-heating", "floored-windows", "floors", "front-loaded-layout", "gas-heating", "gastronomy-on-site", "geo-thermal", "green-courtyard", "green-lease-contracts", "greened-facade", "greened-roof", "ground-level-access", "guarded", "handicap-accessible", "handicap-fully-accessible", "hardwood-flooring", "heat-pump", "heated-halls", "heating-cooling-ceiling", "heavy-duty-crane", "heavy-duty-elevator", "high-ceilings", "high-foot-traffic", "high-voltage-outlet", "hydraulic-lift", "hydro-energy", "hypermarket", "individually-expandable", "infrared-heating", "janitor", "kindergarden", "kitchen", "l-shaped-layout", "lkw-slots", "laboratory-s1", "laboratory-s2", "laminate-flooring", "led-lighting", "lifting-platform", "lighting-with-motion-detection", "long-narrow-layout", "luxury-location", "marketing-website", "max-floor-load", "maximum-surface-desealing", "meeting-rooms", "mixed-use-building", "modernized", "monument-protection", "natural-stone-facade", "near-water", "nearby-sports", "needs-renovation", "nesting-box", "new-construction", "number-of-rooms", "number-of-workplaces", "oil-heating", "open-rooms", "outdoor-sunshade", "outdoor-sunshade-electric", "parking-garage", "pellet-heating", "pkw-slots", "places-for-socializing", "plot-area", "public-parking", "pylon-signage", "ramp-access", "receptionist", "recycling", "rentable-area", "representative-foyer", "retail-park", "revitalized", "rolling-gates", "roof-terrace", "server-room", "shopping-center", "shower", "signage-area", "smart-metering", "smoke-alarm-system", "smoke-outlet", "social-tenant", "solar-energy", "solar-heating", "sprinkler-system", "square-layout", "storage-rack", "storefront", "storey-heating", "tee-kitchen", "terrace", "think-tanks", "tile-flooring", "urban-gardening", "variable-room-division", "ventilation", "vinyl-flooring", "washing-clothes", "water-retention", "wild-flower-grasses", "wind-energy", "wired-with-cat7", "wood-hybrid-construction", "year-of-construction", "year-of-renovation"];
|
|
3
|
+
/** Full schema (images/floorplans required) — for image-enabled runs. */
|
|
4
|
+
export declare const estateSchema: {
|
|
5
|
+
readonly type: "object";
|
|
6
|
+
readonly required: readonly ["real_estate_property"];
|
|
7
|
+
readonly properties: {
|
|
8
|
+
readonly real_estate_property: {
|
|
9
|
+
readonly type: "object";
|
|
10
|
+
readonly required: readonly ["name", "description_text", "address", "features", "buildings"];
|
|
11
|
+
readonly properties: {
|
|
12
|
+
readonly name: {
|
|
13
|
+
readonly type: "string";
|
|
14
|
+
};
|
|
15
|
+
readonly description_text: {
|
|
16
|
+
readonly type: "string";
|
|
17
|
+
};
|
|
18
|
+
readonly location_text: {
|
|
19
|
+
readonly type: readonly ["string", "null"];
|
|
20
|
+
};
|
|
21
|
+
readonly address: {
|
|
22
|
+
readonly type: "object";
|
|
23
|
+
readonly required: readonly ["street", "number", "postal_code", "city", "country"];
|
|
24
|
+
readonly properties: {
|
|
25
|
+
readonly street: {
|
|
26
|
+
readonly type: readonly ["string", "null"];
|
|
27
|
+
};
|
|
28
|
+
readonly number: {
|
|
29
|
+
readonly type: readonly ["string", "null"];
|
|
30
|
+
};
|
|
31
|
+
readonly postal_code: {
|
|
32
|
+
readonly type: readonly ["string", "null"];
|
|
33
|
+
};
|
|
34
|
+
readonly city: {
|
|
35
|
+
readonly type: "string";
|
|
36
|
+
};
|
|
37
|
+
readonly country: {
|
|
38
|
+
readonly type: "string";
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
readonly additionalProperties: false;
|
|
42
|
+
};
|
|
43
|
+
readonly features: {
|
|
44
|
+
readonly type: "array";
|
|
45
|
+
readonly items: {
|
|
46
|
+
readonly type: "string";
|
|
47
|
+
readonly enum: readonly ["1a-location", "1b-location", "access-control", "acoustic-ceiling", "address", "air-conditioning", "apartment-building", "balcony", "bees", "bike-slots", "bikesharing", "block-heating", "cable-ducts", "cantina", "carpet-flooring", "carsharing", "cctv", "central-fire-alarm-system", "central-fire-alarm-system-fire-department", "central-heating", "ceramic-facade", "cleaning-service", "close-to-public-transport", "commercial-building", "completely-renovated", "concrete-core-cooling", "concrete-flooring", "convection-cooling", "cooled-halls", "cooling", "cooling-ceiling", "corner-location", "custom", "delivery-for-24h", "department-store", "display-window", "distance-airport", "distance-highway", "distance-main-station", "distance-port", "district-heating", "district-location", "double-floor", "dressing-room", "ecoenergy", "electric-heating", "electric-vehicle-charging-station", "electronic-lock", "elevators", "epoxy-flooring", "facade-signage", "fiberglass-connection", "floor-heating", "floored-windows", "floors", "front-loaded-layout", "gas-heating", "gastronomy-on-site", "geo-thermal", "green-courtyard", "green-lease-contracts", "greened-facade", "greened-roof", "ground-level-access", "guarded", "handicap-accessible", "handicap-fully-accessible", "hardwood-flooring", "heat-pump", "heated-halls", "heating-cooling-ceiling", "heavy-duty-crane", "heavy-duty-elevator", "high-ceilings", "high-foot-traffic", "high-voltage-outlet", "hydraulic-lift", "hydro-energy", "hypermarket", "individually-expandable", "infrared-heating", "janitor", "kindergarden", "kitchen", "l-shaped-layout", "lkw-slots", "laboratory-s1", "laboratory-s2", "laminate-flooring", "led-lighting", "lifting-platform", "lighting-with-motion-detection", "long-narrow-layout", "luxury-location", "marketing-website", "max-floor-load", "maximum-surface-desealing", "meeting-rooms", "mixed-use-building", "modernized", "monument-protection", "natural-stone-facade", "near-water", "nearby-sports", "needs-renovation", "nesting-box", "new-construction", "number-of-rooms", "number-of-workplaces", "oil-heating", "open-rooms", "outdoor-sunshade", "outdoor-sunshade-electric", "parking-garage", "pellet-heating", "pkw-slots", "places-for-socializing", "plot-area", "public-parking", "pylon-signage", "ramp-access", "receptionist", "recycling", "rentable-area", "representative-foyer", "retail-park", "revitalized", "rolling-gates", "roof-terrace", "server-room", "shopping-center", "shower", "signage-area", "smart-metering", "smoke-alarm-system", "smoke-outlet", "social-tenant", "solar-energy", "solar-heating", "sprinkler-system", "square-layout", "storage-rack", "storefront", "storey-heating", "tee-kitchen", "terrace", "think-tanks", "tile-flooring", "urban-gardening", "variable-room-division", "ventilation", "vinyl-flooring", "washing-clothes", "water-retention", "wild-flower-grasses", "wind-energy", "wired-with-cat7", "wood-hybrid-construction", "year-of-construction", "year-of-renovation"];
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
readonly buildings: {
|
|
51
|
+
readonly type: "array";
|
|
52
|
+
readonly items: {
|
|
53
|
+
readonly type: "object";
|
|
54
|
+
readonly required: readonly ["label", "features", "units", ...string[]];
|
|
55
|
+
readonly properties: {
|
|
56
|
+
readonly units: {
|
|
57
|
+
readonly type: "array";
|
|
58
|
+
readonly items: {
|
|
59
|
+
readonly type: "object";
|
|
60
|
+
readonly required: readonly ["label", "usages", "area", "floor", "rent_per_m2", "extra_costs_per_m2", "features", ...string[]];
|
|
61
|
+
readonly properties: {
|
|
62
|
+
readonly images?: {
|
|
63
|
+
type: string;
|
|
64
|
+
items: {
|
|
65
|
+
type: string;
|
|
66
|
+
};
|
|
67
|
+
} | undefined;
|
|
68
|
+
readonly floorplans?: {
|
|
69
|
+
type: string;
|
|
70
|
+
items: {
|
|
71
|
+
type: string;
|
|
72
|
+
};
|
|
73
|
+
} | undefined;
|
|
74
|
+
readonly label: {
|
|
75
|
+
readonly type: "string";
|
|
76
|
+
};
|
|
77
|
+
readonly usages: {
|
|
78
|
+
readonly type: "array";
|
|
79
|
+
readonly items: {
|
|
80
|
+
readonly type: "string";
|
|
81
|
+
readonly enum: readonly ["office", "living", "production", "storage", "retail", "gastronomy", "research", "health", "open-space", "outdoor-space", "hotel", "education", "entertainment", "sports", "infrastructure", "data-center", "coworking"];
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
readonly area: {
|
|
85
|
+
readonly type: "number";
|
|
86
|
+
};
|
|
87
|
+
readonly floor: {
|
|
88
|
+
readonly type: "number";
|
|
89
|
+
readonly minimum: -5;
|
|
90
|
+
};
|
|
91
|
+
readonly rent_per_m2: {
|
|
92
|
+
readonly type: readonly ["number", "null"];
|
|
93
|
+
readonly minimum: 0;
|
|
94
|
+
};
|
|
95
|
+
readonly extra_costs_per_m2: {
|
|
96
|
+
readonly type: readonly ["number", "null"];
|
|
97
|
+
readonly minimum: 0;
|
|
98
|
+
};
|
|
99
|
+
readonly features: {
|
|
100
|
+
readonly type: "array";
|
|
101
|
+
readonly items: {
|
|
102
|
+
readonly type: "string";
|
|
103
|
+
readonly enum: readonly ["1a-location", "1b-location", "access-control", "acoustic-ceiling", "address", "air-conditioning", "apartment-building", "balcony", "bees", "bike-slots", "bikesharing", "block-heating", "cable-ducts", "cantina", "carpet-flooring", "carsharing", "cctv", "central-fire-alarm-system", "central-fire-alarm-system-fire-department", "central-heating", "ceramic-facade", "cleaning-service", "close-to-public-transport", "commercial-building", "completely-renovated", "concrete-core-cooling", "concrete-flooring", "convection-cooling", "cooled-halls", "cooling", "cooling-ceiling", "corner-location", "custom", "delivery-for-24h", "department-store", "display-window", "distance-airport", "distance-highway", "distance-main-station", "distance-port", "district-heating", "district-location", "double-floor", "dressing-room", "ecoenergy", "electric-heating", "electric-vehicle-charging-station", "electronic-lock", "elevators", "epoxy-flooring", "facade-signage", "fiberglass-connection", "floor-heating", "floored-windows", "floors", "front-loaded-layout", "gas-heating", "gastronomy-on-site", "geo-thermal", "green-courtyard", "green-lease-contracts", "greened-facade", "greened-roof", "ground-level-access", "guarded", "handicap-accessible", "handicap-fully-accessible", "hardwood-flooring", "heat-pump", "heated-halls", "heating-cooling-ceiling", "heavy-duty-crane", "heavy-duty-elevator", "high-ceilings", "high-foot-traffic", "high-voltage-outlet", "hydraulic-lift", "hydro-energy", "hypermarket", "individually-expandable", "infrared-heating", "janitor", "kindergarden", "kitchen", "l-shaped-layout", "lkw-slots", "laboratory-s1", "laboratory-s2", "laminate-flooring", "led-lighting", "lifting-platform", "lighting-with-motion-detection", "long-narrow-layout", "luxury-location", "marketing-website", "max-floor-load", "maximum-surface-desealing", "meeting-rooms", "mixed-use-building", "modernized", "monument-protection", "natural-stone-facade", "near-water", "nearby-sports", "needs-renovation", "nesting-box", "new-construction", "number-of-rooms", "number-of-workplaces", "oil-heating", "open-rooms", "outdoor-sunshade", "outdoor-sunshade-electric", "parking-garage", "pellet-heating", "pkw-slots", "places-for-socializing", "plot-area", "public-parking", "pylon-signage", "ramp-access", "receptionist", "recycling", "rentable-area", "representative-foyer", "retail-park", "revitalized", "rolling-gates", "roof-terrace", "server-room", "shopping-center", "shower", "signage-area", "smart-metering", "smoke-alarm-system", "smoke-outlet", "social-tenant", "solar-energy", "solar-heating", "sprinkler-system", "square-layout", "storage-rack", "storefront", "storey-heating", "tee-kitchen", "terrace", "think-tanks", "tile-flooring", "urban-gardening", "variable-room-division", "ventilation", "vinyl-flooring", "washing-clothes", "water-retention", "wild-flower-grasses", "wind-energy", "wired-with-cat7", "wood-hybrid-construction", "year-of-construction", "year-of-renovation"];
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
readonly additionalProperties: false;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
readonly images?: {
|
|
111
|
+
type: string;
|
|
112
|
+
items: {
|
|
113
|
+
type: string;
|
|
114
|
+
};
|
|
115
|
+
} | undefined;
|
|
116
|
+
readonly label: {
|
|
117
|
+
readonly type: "string";
|
|
118
|
+
};
|
|
119
|
+
readonly features: {
|
|
120
|
+
readonly type: "array";
|
|
121
|
+
readonly items: {
|
|
122
|
+
readonly type: "string";
|
|
123
|
+
readonly enum: readonly ["1a-location", "1b-location", "access-control", "acoustic-ceiling", "address", "air-conditioning", "apartment-building", "balcony", "bees", "bike-slots", "bikesharing", "block-heating", "cable-ducts", "cantina", "carpet-flooring", "carsharing", "cctv", "central-fire-alarm-system", "central-fire-alarm-system-fire-department", "central-heating", "ceramic-facade", "cleaning-service", "close-to-public-transport", "commercial-building", "completely-renovated", "concrete-core-cooling", "concrete-flooring", "convection-cooling", "cooled-halls", "cooling", "cooling-ceiling", "corner-location", "custom", "delivery-for-24h", "department-store", "display-window", "distance-airport", "distance-highway", "distance-main-station", "distance-port", "district-heating", "district-location", "double-floor", "dressing-room", "ecoenergy", "electric-heating", "electric-vehicle-charging-station", "electronic-lock", "elevators", "epoxy-flooring", "facade-signage", "fiberglass-connection", "floor-heating", "floored-windows", "floors", "front-loaded-layout", "gas-heating", "gastronomy-on-site", "geo-thermal", "green-courtyard", "green-lease-contracts", "greened-facade", "greened-roof", "ground-level-access", "guarded", "handicap-accessible", "handicap-fully-accessible", "hardwood-flooring", "heat-pump", "heated-halls", "heating-cooling-ceiling", "heavy-duty-crane", "heavy-duty-elevator", "high-ceilings", "high-foot-traffic", "high-voltage-outlet", "hydraulic-lift", "hydro-energy", "hypermarket", "individually-expandable", "infrared-heating", "janitor", "kindergarden", "kitchen", "l-shaped-layout", "lkw-slots", "laboratory-s1", "laboratory-s2", "laminate-flooring", "led-lighting", "lifting-platform", "lighting-with-motion-detection", "long-narrow-layout", "luxury-location", "marketing-website", "max-floor-load", "maximum-surface-desealing", "meeting-rooms", "mixed-use-building", "modernized", "monument-protection", "natural-stone-facade", "near-water", "nearby-sports", "needs-renovation", "nesting-box", "new-construction", "number-of-rooms", "number-of-workplaces", "oil-heating", "open-rooms", "outdoor-sunshade", "outdoor-sunshade-electric", "parking-garage", "pellet-heating", "pkw-slots", "places-for-socializing", "plot-area", "public-parking", "pylon-signage", "ramp-access", "receptionist", "recycling", "rentable-area", "representative-foyer", "retail-park", "revitalized", "rolling-gates", "roof-terrace", "server-room", "shopping-center", "shower", "signage-area", "smart-metering", "smoke-alarm-system", "smoke-outlet", "social-tenant", "solar-energy", "solar-heating", "sprinkler-system", "square-layout", "storage-rack", "storefront", "storey-heating", "tee-kitchen", "terrace", "think-tanks", "tile-flooring", "urban-gardening", "variable-room-division", "ventilation", "vinyl-flooring", "washing-clothes", "water-retention", "wild-flower-grasses", "wind-energy", "wired-with-cat7", "wood-hybrid-construction", "year-of-construction", "year-of-renovation"];
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
readonly additionalProperties: false;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
readonly additionalProperties: false;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
readonly additionalProperties: false;
|
|
135
|
+
};
|
|
136
|
+
/** Text-only schema (no image/floorplan arrays) — for `parsePdf` without images. */
|
|
137
|
+
export declare const estateTextSchema: {
|
|
138
|
+
readonly type: "object";
|
|
139
|
+
readonly required: readonly ["real_estate_property"];
|
|
140
|
+
readonly properties: {
|
|
141
|
+
readonly real_estate_property: {
|
|
142
|
+
readonly type: "object";
|
|
143
|
+
readonly required: readonly ["name", "description_text", "address", "features", "buildings"];
|
|
144
|
+
readonly properties: {
|
|
145
|
+
readonly name: {
|
|
146
|
+
readonly type: "string";
|
|
147
|
+
};
|
|
148
|
+
readonly description_text: {
|
|
149
|
+
readonly type: "string";
|
|
150
|
+
};
|
|
151
|
+
readonly location_text: {
|
|
152
|
+
readonly type: readonly ["string", "null"];
|
|
153
|
+
};
|
|
154
|
+
readonly address: {
|
|
155
|
+
readonly type: "object";
|
|
156
|
+
readonly required: readonly ["street", "number", "postal_code", "city", "country"];
|
|
157
|
+
readonly properties: {
|
|
158
|
+
readonly street: {
|
|
159
|
+
readonly type: readonly ["string", "null"];
|
|
160
|
+
};
|
|
161
|
+
readonly number: {
|
|
162
|
+
readonly type: readonly ["string", "null"];
|
|
163
|
+
};
|
|
164
|
+
readonly postal_code: {
|
|
165
|
+
readonly type: readonly ["string", "null"];
|
|
166
|
+
};
|
|
167
|
+
readonly city: {
|
|
168
|
+
readonly type: "string";
|
|
169
|
+
};
|
|
170
|
+
readonly country: {
|
|
171
|
+
readonly type: "string";
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
readonly additionalProperties: false;
|
|
175
|
+
};
|
|
176
|
+
readonly features: {
|
|
177
|
+
readonly type: "array";
|
|
178
|
+
readonly items: {
|
|
179
|
+
readonly type: "string";
|
|
180
|
+
readonly enum: readonly ["1a-location", "1b-location", "access-control", "acoustic-ceiling", "address", "air-conditioning", "apartment-building", "balcony", "bees", "bike-slots", "bikesharing", "block-heating", "cable-ducts", "cantina", "carpet-flooring", "carsharing", "cctv", "central-fire-alarm-system", "central-fire-alarm-system-fire-department", "central-heating", "ceramic-facade", "cleaning-service", "close-to-public-transport", "commercial-building", "completely-renovated", "concrete-core-cooling", "concrete-flooring", "convection-cooling", "cooled-halls", "cooling", "cooling-ceiling", "corner-location", "custom", "delivery-for-24h", "department-store", "display-window", "distance-airport", "distance-highway", "distance-main-station", "distance-port", "district-heating", "district-location", "double-floor", "dressing-room", "ecoenergy", "electric-heating", "electric-vehicle-charging-station", "electronic-lock", "elevators", "epoxy-flooring", "facade-signage", "fiberglass-connection", "floor-heating", "floored-windows", "floors", "front-loaded-layout", "gas-heating", "gastronomy-on-site", "geo-thermal", "green-courtyard", "green-lease-contracts", "greened-facade", "greened-roof", "ground-level-access", "guarded", "handicap-accessible", "handicap-fully-accessible", "hardwood-flooring", "heat-pump", "heated-halls", "heating-cooling-ceiling", "heavy-duty-crane", "heavy-duty-elevator", "high-ceilings", "high-foot-traffic", "high-voltage-outlet", "hydraulic-lift", "hydro-energy", "hypermarket", "individually-expandable", "infrared-heating", "janitor", "kindergarden", "kitchen", "l-shaped-layout", "lkw-slots", "laboratory-s1", "laboratory-s2", "laminate-flooring", "led-lighting", "lifting-platform", "lighting-with-motion-detection", "long-narrow-layout", "luxury-location", "marketing-website", "max-floor-load", "maximum-surface-desealing", "meeting-rooms", "mixed-use-building", "modernized", "monument-protection", "natural-stone-facade", "near-water", "nearby-sports", "needs-renovation", "nesting-box", "new-construction", "number-of-rooms", "number-of-workplaces", "oil-heating", "open-rooms", "outdoor-sunshade", "outdoor-sunshade-electric", "parking-garage", "pellet-heating", "pkw-slots", "places-for-socializing", "plot-area", "public-parking", "pylon-signage", "ramp-access", "receptionist", "recycling", "rentable-area", "representative-foyer", "retail-park", "revitalized", "rolling-gates", "roof-terrace", "server-room", "shopping-center", "shower", "signage-area", "smart-metering", "smoke-alarm-system", "smoke-outlet", "social-tenant", "solar-energy", "solar-heating", "sprinkler-system", "square-layout", "storage-rack", "storefront", "storey-heating", "tee-kitchen", "terrace", "think-tanks", "tile-flooring", "urban-gardening", "variable-room-division", "ventilation", "vinyl-flooring", "washing-clothes", "water-retention", "wild-flower-grasses", "wind-energy", "wired-with-cat7", "wood-hybrid-construction", "year-of-construction", "year-of-renovation"];
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
readonly buildings: {
|
|
184
|
+
readonly type: "array";
|
|
185
|
+
readonly items: {
|
|
186
|
+
readonly type: "object";
|
|
187
|
+
readonly required: readonly ["label", "features", "units", ...string[]];
|
|
188
|
+
readonly properties: {
|
|
189
|
+
readonly units: {
|
|
190
|
+
readonly type: "array";
|
|
191
|
+
readonly items: {
|
|
192
|
+
readonly type: "object";
|
|
193
|
+
readonly required: readonly ["label", "usages", "area", "floor", "rent_per_m2", "extra_costs_per_m2", "features", ...string[]];
|
|
194
|
+
readonly properties: {
|
|
195
|
+
readonly images?: {
|
|
196
|
+
type: string;
|
|
197
|
+
items: {
|
|
198
|
+
type: string;
|
|
199
|
+
};
|
|
200
|
+
} | undefined;
|
|
201
|
+
readonly floorplans?: {
|
|
202
|
+
type: string;
|
|
203
|
+
items: {
|
|
204
|
+
type: string;
|
|
205
|
+
};
|
|
206
|
+
} | undefined;
|
|
207
|
+
readonly label: {
|
|
208
|
+
readonly type: "string";
|
|
209
|
+
};
|
|
210
|
+
readonly usages: {
|
|
211
|
+
readonly type: "array";
|
|
212
|
+
readonly items: {
|
|
213
|
+
readonly type: "string";
|
|
214
|
+
readonly enum: readonly ["office", "living", "production", "storage", "retail", "gastronomy", "research", "health", "open-space", "outdoor-space", "hotel", "education", "entertainment", "sports", "infrastructure", "data-center", "coworking"];
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
readonly area: {
|
|
218
|
+
readonly type: "number";
|
|
219
|
+
};
|
|
220
|
+
readonly floor: {
|
|
221
|
+
readonly type: "number";
|
|
222
|
+
readonly minimum: -5;
|
|
223
|
+
};
|
|
224
|
+
readonly rent_per_m2: {
|
|
225
|
+
readonly type: readonly ["number", "null"];
|
|
226
|
+
readonly minimum: 0;
|
|
227
|
+
};
|
|
228
|
+
readonly extra_costs_per_m2: {
|
|
229
|
+
readonly type: readonly ["number", "null"];
|
|
230
|
+
readonly minimum: 0;
|
|
231
|
+
};
|
|
232
|
+
readonly features: {
|
|
233
|
+
readonly type: "array";
|
|
234
|
+
readonly items: {
|
|
235
|
+
readonly type: "string";
|
|
236
|
+
readonly enum: readonly ["1a-location", "1b-location", "access-control", "acoustic-ceiling", "address", "air-conditioning", "apartment-building", "balcony", "bees", "bike-slots", "bikesharing", "block-heating", "cable-ducts", "cantina", "carpet-flooring", "carsharing", "cctv", "central-fire-alarm-system", "central-fire-alarm-system-fire-department", "central-heating", "ceramic-facade", "cleaning-service", "close-to-public-transport", "commercial-building", "completely-renovated", "concrete-core-cooling", "concrete-flooring", "convection-cooling", "cooled-halls", "cooling", "cooling-ceiling", "corner-location", "custom", "delivery-for-24h", "department-store", "display-window", "distance-airport", "distance-highway", "distance-main-station", "distance-port", "district-heating", "district-location", "double-floor", "dressing-room", "ecoenergy", "electric-heating", "electric-vehicle-charging-station", "electronic-lock", "elevators", "epoxy-flooring", "facade-signage", "fiberglass-connection", "floor-heating", "floored-windows", "floors", "front-loaded-layout", "gas-heating", "gastronomy-on-site", "geo-thermal", "green-courtyard", "green-lease-contracts", "greened-facade", "greened-roof", "ground-level-access", "guarded", "handicap-accessible", "handicap-fully-accessible", "hardwood-flooring", "heat-pump", "heated-halls", "heating-cooling-ceiling", "heavy-duty-crane", "heavy-duty-elevator", "high-ceilings", "high-foot-traffic", "high-voltage-outlet", "hydraulic-lift", "hydro-energy", "hypermarket", "individually-expandable", "infrared-heating", "janitor", "kindergarden", "kitchen", "l-shaped-layout", "lkw-slots", "laboratory-s1", "laboratory-s2", "laminate-flooring", "led-lighting", "lifting-platform", "lighting-with-motion-detection", "long-narrow-layout", "luxury-location", "marketing-website", "max-floor-load", "maximum-surface-desealing", "meeting-rooms", "mixed-use-building", "modernized", "monument-protection", "natural-stone-facade", "near-water", "nearby-sports", "needs-renovation", "nesting-box", "new-construction", "number-of-rooms", "number-of-workplaces", "oil-heating", "open-rooms", "outdoor-sunshade", "outdoor-sunshade-electric", "parking-garage", "pellet-heating", "pkw-slots", "places-for-socializing", "plot-area", "public-parking", "pylon-signage", "ramp-access", "receptionist", "recycling", "rentable-area", "representative-foyer", "retail-park", "revitalized", "rolling-gates", "roof-terrace", "server-room", "shopping-center", "shower", "signage-area", "smart-metering", "smoke-alarm-system", "smoke-outlet", "social-tenant", "solar-energy", "solar-heating", "sprinkler-system", "square-layout", "storage-rack", "storefront", "storey-heating", "tee-kitchen", "terrace", "think-tanks", "tile-flooring", "urban-gardening", "variable-room-division", "ventilation", "vinyl-flooring", "washing-clothes", "water-retention", "wild-flower-grasses", "wind-energy", "wired-with-cat7", "wood-hybrid-construction", "year-of-construction", "year-of-renovation"];
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
readonly additionalProperties: false;
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
readonly images?: {
|
|
244
|
+
type: string;
|
|
245
|
+
items: {
|
|
246
|
+
type: string;
|
|
247
|
+
};
|
|
248
|
+
} | undefined;
|
|
249
|
+
readonly label: {
|
|
250
|
+
readonly type: "string";
|
|
251
|
+
};
|
|
252
|
+
readonly features: {
|
|
253
|
+
readonly type: "array";
|
|
254
|
+
readonly items: {
|
|
255
|
+
readonly type: "string";
|
|
256
|
+
readonly enum: readonly ["1a-location", "1b-location", "access-control", "acoustic-ceiling", "address", "air-conditioning", "apartment-building", "balcony", "bees", "bike-slots", "bikesharing", "block-heating", "cable-ducts", "cantina", "carpet-flooring", "carsharing", "cctv", "central-fire-alarm-system", "central-fire-alarm-system-fire-department", "central-heating", "ceramic-facade", "cleaning-service", "close-to-public-transport", "commercial-building", "completely-renovated", "concrete-core-cooling", "concrete-flooring", "convection-cooling", "cooled-halls", "cooling", "cooling-ceiling", "corner-location", "custom", "delivery-for-24h", "department-store", "display-window", "distance-airport", "distance-highway", "distance-main-station", "distance-port", "district-heating", "district-location", "double-floor", "dressing-room", "ecoenergy", "electric-heating", "electric-vehicle-charging-station", "electronic-lock", "elevators", "epoxy-flooring", "facade-signage", "fiberglass-connection", "floor-heating", "floored-windows", "floors", "front-loaded-layout", "gas-heating", "gastronomy-on-site", "geo-thermal", "green-courtyard", "green-lease-contracts", "greened-facade", "greened-roof", "ground-level-access", "guarded", "handicap-accessible", "handicap-fully-accessible", "hardwood-flooring", "heat-pump", "heated-halls", "heating-cooling-ceiling", "heavy-duty-crane", "heavy-duty-elevator", "high-ceilings", "high-foot-traffic", "high-voltage-outlet", "hydraulic-lift", "hydro-energy", "hypermarket", "individually-expandable", "infrared-heating", "janitor", "kindergarden", "kitchen", "l-shaped-layout", "lkw-slots", "laboratory-s1", "laboratory-s2", "laminate-flooring", "led-lighting", "lifting-platform", "lighting-with-motion-detection", "long-narrow-layout", "luxury-location", "marketing-website", "max-floor-load", "maximum-surface-desealing", "meeting-rooms", "mixed-use-building", "modernized", "monument-protection", "natural-stone-facade", "near-water", "nearby-sports", "needs-renovation", "nesting-box", "new-construction", "number-of-rooms", "number-of-workplaces", "oil-heating", "open-rooms", "outdoor-sunshade", "outdoor-sunshade-electric", "parking-garage", "pellet-heating", "pkw-slots", "places-for-socializing", "plot-area", "public-parking", "pylon-signage", "ramp-access", "receptionist", "recycling", "rentable-area", "representative-foyer", "retail-park", "revitalized", "rolling-gates", "roof-terrace", "server-room", "shopping-center", "shower", "signage-area", "smart-metering", "smoke-alarm-system", "smoke-outlet", "social-tenant", "solar-energy", "solar-heating", "sprinkler-system", "square-layout", "storage-rack", "storefront", "storey-heating", "tee-kitchen", "terrace", "think-tanks", "tile-flooring", "urban-gardening", "variable-room-division", "ventilation", "vinyl-flooring", "washing-clothes", "water-retention", "wild-flower-grasses", "wind-energy", "wired-with-cat7", "wood-hybrid-construction", "year-of-construction", "year-of-renovation"];
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
readonly additionalProperties: false;
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
readonly additionalProperties: false;
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
readonly additionalProperties: false;
|
|
268
|
+
};
|
|
269
|
+
export type Unit = {
|
|
270
|
+
label: string;
|
|
271
|
+
usages: string[];
|
|
272
|
+
area: number;
|
|
273
|
+
floor: number;
|
|
274
|
+
rent_per_m2: number | null;
|
|
275
|
+
extra_costs_per_m2: number | null;
|
|
276
|
+
features: string[];
|
|
277
|
+
images: string[];
|
|
278
|
+
floorplans: string[];
|
|
279
|
+
};
|
|
280
|
+
export type ExposeGold = {
|
|
281
|
+
name: string;
|
|
282
|
+
description_text: string;
|
|
283
|
+
location_text?: string | null;
|
|
284
|
+
address: {
|
|
285
|
+
street: string | null;
|
|
286
|
+
number: string | null;
|
|
287
|
+
postal_code: string | null;
|
|
288
|
+
city: string;
|
|
289
|
+
country: string;
|
|
290
|
+
};
|
|
291
|
+
features: string[];
|
|
292
|
+
buildings: {
|
|
293
|
+
label: string;
|
|
294
|
+
features: string[];
|
|
295
|
+
units: Unit[];
|
|
296
|
+
}[];
|
|
297
|
+
};
|
|
298
|
+
/** Build a strict-mode-valid partial gold for a case. */
|
|
299
|
+
export declare const wrapGold: (gold: ExposeGold) => {
|
|
300
|
+
real_estate_property: ExposeGold;
|
|
301
|
+
};
|
|
302
|
+
/** Sets that should be scored order-insensitively. */
|
|
303
|
+
export declare const exposeSets: readonly ["real_estate_property.features", "real_estate_property.buildings[].features", "real_estate_property.buildings[].units[].features", "real_estate_property.buildings[].units[].usages"];
|
|
304
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/expose/schema.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,MAAM,oOAkBT,CAAC;AAEX,eAAO,MAAM,QAAQ,+6FAiKX,CAAC;AAoFX,yEAAyE;AACzE,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAe,CAAC;AAEzC,oFAAoF;AACpF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAgB,CAAC;AAE9C,MAAM,MAAM,IAAI,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,OAAO,EAAE;QACP,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;QACtB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;QACtB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;QAC3B,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,SAAS,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,EAAE,CAAC;QAAC,KAAK,EAAE,IAAI,EAAE,CAAA;KAAE,EAAE,CAAC;CACnE,CAAC;AAEF,yDAAyD;AACzD,eAAO,MAAM,QAAQ,GAAI,MAAM,UAAU;;CAAqC,CAAC;AAE/E,sDAAsD;AACtD,eAAO,MAAM,UAAU,iMAKb,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { TRACKS, defineCase, type Track, type SchemaOutput, type FieldMetric, type FieldMetricSpec, type ArrayAlignment, type CaseSourceInfo, type BenchmarkCase, } from "./types";
|
|
2
|
+
export { BENCHMARK_MODEL, defaultDatasetDir, defaultResultsDir } from "./config";
|
|
3
|
+
export { estimateCostUsd, pricingFor, type ModelPricing } from "./pricing";
|
|
4
|
+
export { trackToPdfOptions, materializeTrack } from "./tracks";
|
|
5
|
+
export { scoreData, leafCount, EMPTY, type FieldScore, type FieldError } from "./scoring/score";
|
|
6
|
+
export { normalizeString, normalizeAggressive, normalizeValue, valuesEqual, } from "./scoring/normalize";
|
|
7
|
+
export { runBenchmark, buildReport, type RunOptions, type CellResult, type SummaryRow, type BenchmarkReport, type StrategyFactory, type StrategyEntry, type StrategyLike, } from "./runner";
|
|
8
|
+
export { toMarkdownTable, saveReport } from "./report";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,UAAU,EACV,KAAK,KAAK,EACV,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,aAAa,GACnB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAEjF,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AAE3E,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE/D,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAChG,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,WAAW,GACZ,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,YAAY,EACZ,WAAW,EACX,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,YAAY,GAClB,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC"}
|