@swmmrs/swmmrs 0.1.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/README.md +264 -0
- package/dist/README.md +264 -0
- package/dist/serial/README.md +264 -0
- package/dist/serial/swmmrs.d.ts +395 -0
- package/dist/serial/swmmrs.js +3169 -0
- package/dist/serial/swmmrs_bg.wasm +0 -0
- package/dist/snippets/swmmrs-parallel-5d1c71108133e81d/worker-pool/browser.js +98 -0
- package/dist/swmmrs.d.ts +422 -0
- package/dist/swmmrs.js +3330 -0
- package/dist/swmmrs_bg.wasm +0 -0
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/lib/swmmrs/client.d.ts +11 -0
- package/lib/swmmrs/client.d.ts.map +1 -0
- package/lib/swmmrs/client.js +82 -0
- package/lib/swmmrs/client.js.map +1 -0
- package/lib/swmmrs/enums.d.ts +41 -0
- package/lib/swmmrs/enums.d.ts.map +1 -0
- package/lib/swmmrs/enums.js +2 -0
- package/lib/swmmrs/enums.js.map +1 -0
- package/lib/swmmrs/exceptions.d.ts +98 -0
- package/lib/swmmrs/exceptions.d.ts.map +1 -0
- package/lib/swmmrs/exceptions.js +86 -0
- package/lib/swmmrs/exceptions.js.map +1 -0
- package/lib/swmmrs/index.d.ts +27 -0
- package/lib/swmmrs/index.d.ts.map +1 -0
- package/lib/swmmrs/index.js +13 -0
- package/lib/swmmrs/index.js.map +1 -0
- package/lib/swmmrs/objects/amm.d.ts +114 -0
- package/lib/swmmrs/objects/amm.d.ts.map +1 -0
- package/lib/swmmrs/objects/amm.js +19 -0
- package/lib/swmmrs/objects/amm.js.map +1 -0
- package/lib/swmmrs/objects/collections.d.ts +109 -0
- package/lib/swmmrs/objects/collections.d.ts.map +1 -0
- package/lib/swmmrs/objects/collections.js +158 -0
- package/lib/swmmrs/objects/collections.js.map +1 -0
- package/lib/swmmrs/objects/definitions.d.ts +215 -0
- package/lib/swmmrs/objects/definitions.d.ts.map +1 -0
- package/lib/swmmrs/objects/definitions.js +69 -0
- package/lib/swmmrs/objects/definitions.js.map +1 -0
- package/lib/swmmrs/objects/lids.d.ts +446 -0
- package/lib/swmmrs/objects/lids.d.ts.map +1 -0
- package/lib/swmmrs/objects/lids.js +90 -0
- package/lib/swmmrs/objects/lids.js.map +1 -0
- package/lib/swmmrs/objects/links.d.ts +615 -0
- package/lib/swmmrs/objects/links.d.ts.map +1 -0
- package/lib/swmmrs/objects/links.js +90 -0
- package/lib/swmmrs/objects/links.js.map +1 -0
- package/lib/swmmrs/objects/nodes.d.ts +494 -0
- package/lib/swmmrs/objects/nodes.d.ts.map +1 -0
- package/lib/swmmrs/objects/nodes.js +147 -0
- package/lib/swmmrs/objects/nodes.js.map +1 -0
- package/lib/swmmrs/objects/options.d.ts +112 -0
- package/lib/swmmrs/objects/options.d.ts.map +1 -0
- package/lib/swmmrs/objects/options.js +27 -0
- package/lib/swmmrs/objects/options.js.map +1 -0
- package/lib/swmmrs/objects/rtk.d.ts +82 -0
- package/lib/swmmrs/objects/rtk.d.ts.map +1 -0
- package/lib/swmmrs/objects/rtk.js +19 -0
- package/lib/swmmrs/objects/rtk.js.map +1 -0
- package/lib/swmmrs/objects/subcatchments.d.ts +575 -0
- package/lib/swmmrs/objects/subcatchments.d.ts.map +1 -0
- package/lib/swmmrs/objects/subcatchments.js +243 -0
- package/lib/swmmrs/objects/subcatchments.js.map +1 -0
- package/lib/swmmrs/output.d.ts +412 -0
- package/lib/swmmrs/output.d.ts.map +1 -0
- package/lib/swmmrs/output.js +507 -0
- package/lib/swmmrs/output.js.map +1 -0
- package/lib/swmmrs/protocol.d.ts +80 -0
- package/lib/swmmrs/protocol.d.ts.map +1 -0
- package/lib/swmmrs/protocol.js +2 -0
- package/lib/swmmrs/protocol.js.map +1 -0
- package/lib/swmmrs/runtime.d.ts +22 -0
- package/lib/swmmrs/runtime.d.ts.map +1 -0
- package/lib/swmmrs/runtime.js +146 -0
- package/lib/swmmrs/runtime.js.map +1 -0
- package/lib/swmmrs/scenarios.d.ts +41 -0
- package/lib/swmmrs/scenarios.d.ts.map +1 -0
- package/lib/swmmrs/scenarios.js +2 -0
- package/lib/swmmrs/scenarios.js.map +1 -0
- package/lib/swmmrs/simulation.d.ts +249 -0
- package/lib/swmmrs/simulation.d.ts.map +1 -0
- package/lib/swmmrs/simulation.js +415 -0
- package/lib/swmmrs/simulation.js.map +1 -0
- package/lib/swmmrs/snapshots.d.ts +192 -0
- package/lib/swmmrs/snapshots.d.ts.map +1 -0
- package/lib/swmmrs/snapshots.js +2 -0
- package/lib/swmmrs/snapshots.js.map +1 -0
- package/lib/swmmrs/types.d.ts +123 -0
- package/lib/swmmrs/types.d.ts.map +1 -0
- package/lib/swmmrs/types.js +2 -0
- package/lib/swmmrs/types.js.map +1 -0
- package/lib/swmmrs/worker.d.ts +2 -0
- package/lib/swmmrs/worker.d.ts.map +1 -0
- package/lib/swmmrs/worker.js +488 -0
- package/lib/swmmrs/worker.js.map +1 -0
- package/package.json +33 -0
- package/src/swmmrs/client.ts +76 -0
- package/src/swmmrs/enums.ts +73 -0
- package/src/swmmrs/exceptions.ts +120 -0
- package/src/swmmrs/index.ts +79 -0
- package/src/swmmrs/objects/amm.ts +113 -0
- package/src/swmmrs/objects/collections.ts +153 -0
- package/src/swmmrs/objects/definitions.ts +246 -0
- package/src/swmmrs/objects/lids.ts +487 -0
- package/src/swmmrs/objects/links.ts +626 -0
- package/src/swmmrs/objects/nodes.ts +504 -0
- package/src/swmmrs/objects/options.ts +114 -0
- package/src/swmmrs/objects/rtk.ts +79 -0
- package/src/swmmrs/objects/subcatchments.ts +650 -0
- package/src/swmmrs/output.ts +798 -0
- package/src/swmmrs/protocol.ts +62 -0
- package/src/swmmrs/runtime.ts +188 -0
- package/src/swmmrs/scenarios.ts +40 -0
- package/src/swmmrs/simulation.ts +406 -0
- package/src/swmmrs/snapshots.ts +199 -0
- package/src/swmmrs/types.ts +123 -0
- package/src/swmmrs/worker.ts +233 -0
- package/worker-node.js +142 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4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "git+https://github.com/swmm-rs/swmmrs.git",
|
|
7
|
+
"directory": "js"
|
|
8
|
+
},
|
|
9
|
+
"type": "module",
|
|
10
|
+
"engines": { "node": ">=22" },
|
|
11
|
+
"exports": {
|
|
12
|
+
".": { "types": "./index.d.ts", "import": "./index.js" },
|
|
13
|
+
"./worker.js": "./worker.js",
|
|
14
|
+
"./worker-node.js": "./worker-node.js"
|
|
15
|
+
},
|
|
16
|
+
"types": "./index.d.ts",
|
|
17
|
+
"files": ["index.js", "index.d.ts", "worker.js", "worker-node.js", "lib/swmmrs", "src/swmmrs", "dist/swmmrs.js", "dist/swmmrs.d.ts", "dist/swmmrs_bg.wasm", "dist/snippets/**/*.js", "dist/serial/swmmrs.js", "dist/serial/swmmrs.d.ts", "dist/serial/swmmrs_bg.wasm", "README.md"],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "npm run build:wasm && npm run build:ts",
|
|
20
|
+
"build:wasm": "./build.sh",
|
|
21
|
+
"build:ts": "tsc -p tsconfig.json",
|
|
22
|
+
"typecheck": "npm run build:wasm -- --dev && npm run build:ts && tsc -p tests/typing/tsconfig.json",
|
|
23
|
+
"test": "npm run build:wasm -- --dev && npm run build:ts && playwright test",
|
|
24
|
+
"test:parity": "node --test tests/parity.mjs",
|
|
25
|
+
"test:package": "node tests/package.mjs",
|
|
26
|
+
"test:docs": "node tests/docs.mjs",
|
|
27
|
+
"start": "node serve.js"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@playwright/test": "1.63.0",
|
|
31
|
+
"typescript": "7.0.2"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { fromWorkerError, LifecycleError, WorkerError } from "./exceptions.js";
|
|
2
|
+
import type { Args, Call, Method, Response, Result } from "./protocol.js";
|
|
3
|
+
|
|
4
|
+
type Pending = { resolve: (value: unknown) => void; reject: (reason: unknown) => void };
|
|
5
|
+
|
|
6
|
+
/** Private transport for the worker shipped with this package. */
|
|
7
|
+
export class WorkerClient {
|
|
8
|
+
readonly #worker: Worker;
|
|
9
|
+
readonly #pending = new Map<number, Pending>();
|
|
10
|
+
#nextId = 0;
|
|
11
|
+
#failure: Error | undefined;
|
|
12
|
+
#closing: Promise<void> | undefined;
|
|
13
|
+
|
|
14
|
+
constructor(worker: Worker) {
|
|
15
|
+
this.#worker = worker;
|
|
16
|
+
worker.onerror = (event) => {
|
|
17
|
+
event.preventDefault();
|
|
18
|
+
this.stop(new WorkerError({ message: event.message || "SWMM worker failed" }));
|
|
19
|
+
};
|
|
20
|
+
worker.onmessageerror = () => this.stop(new WorkerError({ message: "Cannot read SWMM worker response" }));
|
|
21
|
+
worker.onmessage = ({ data }: MessageEvent<Response>) => {
|
|
22
|
+
const pending = this.#pending.get(data.id);
|
|
23
|
+
if (!pending) return;
|
|
24
|
+
this.#pending.delete(data.id);
|
|
25
|
+
if (data.ok) pending.resolve(freezeRecord(data.result));
|
|
26
|
+
else {
|
|
27
|
+
const error = fromWorkerError(data.error);
|
|
28
|
+
pending.reject(error);
|
|
29
|
+
if (data.fatal) this.stop(error);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
assertOpen(): void {
|
|
35
|
+
if (this.#failure) throw this.#failure;
|
|
36
|
+
if (this.#closing) throw new LifecycleError({ message: "Simulation is closing", operation: "close" });
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
readonly call: Call = <K extends Method>(method: K, ...args: Args<K>): Promise<Result<K>> => {
|
|
40
|
+
try { this.assertOpen(); } catch (error) { return Promise.reject(error); }
|
|
41
|
+
const id = this.#nextId++;
|
|
42
|
+
return new Promise<Result<K>>((resolve, reject) => {
|
|
43
|
+
// The bundled worker implements the same Operations contract. This is the
|
|
44
|
+
// only type erasure needed to correlate request IDs with response values.
|
|
45
|
+
this.#pending.set(id, { resolve: (value) => resolve(value as Result<K>), reject });
|
|
46
|
+
try { this.#worker.postMessage({ id, method, args }); }
|
|
47
|
+
catch (error) {
|
|
48
|
+
this.#pending.delete(id);
|
|
49
|
+
reject(error);
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
stop(error: Error): void {
|
|
55
|
+
this.#failure ??= error;
|
|
56
|
+
try { this.#worker.terminate(); } catch { /* The worker may already have exited. */ }
|
|
57
|
+
for (const pending of this.#pending.values()) pending.reject(this.#failure);
|
|
58
|
+
this.#pending.clear();
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
close(): Promise<void> {
|
|
62
|
+
this.#closing ??= this.call("close").finally(() =>
|
|
63
|
+
this.stop(new LifecycleError({ message: "Simulation is closed", operation: "close" })),
|
|
64
|
+
);
|
|
65
|
+
return this.#closing;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/** Freeze copied domain records; output bytes remain caller-owned typed arrays. */
|
|
70
|
+
function freezeRecord<T>(value: T): T {
|
|
71
|
+
if (value && typeof value === "object" && !ArrayBuffer.isView(value)) {
|
|
72
|
+
for (const item of Object.values(value)) freezeRecord(item);
|
|
73
|
+
Object.freeze(value);
|
|
74
|
+
}
|
|
75
|
+
return value;
|
|
76
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/** Owner lifecycle state. A type-only union, not a runtime enum. */
|
|
2
|
+
export type SimulationState = "open" | "running" | "complete" | "ended" | "failed" | "closed";
|
|
3
|
+
/** Project flow units: ft³/s, US gal/min, million US gal/day, m³/s, L/s, or million L/day. */
|
|
4
|
+
export type FlowUnits = "Cfs" | "Gpm" | "Mgd" | "Cms" | "Lps" | "Mld";
|
|
5
|
+
/** No routing, steady flow, kinematic wave, extended kinematic wave, or Dynamic Wave. */
|
|
6
|
+
export type RoutingModel = "NoRouting" | "Sf" | "Kw" | "Ekw" | "Dw";
|
|
7
|
+
/** Configured node kind. A type-only string union, not a JavaScript enum object. */
|
|
8
|
+
export type NodeKind = "Junction" | "Outfall" | "Storage" | "Divider";
|
|
9
|
+
/** Configured hydraulic link family; handles do not have public subtype subclasses. */
|
|
10
|
+
export type LinkKind = "Conduit" | "Pump" | "Orifice" | "Weir" | "Outlet";
|
|
11
|
+
/** Model calendar time, YYYY-MM-DDTHH:mm:ss, with no timezone. */
|
|
12
|
+
export type ModelTime = string;
|
|
13
|
+
/** Model unit system: US customary or SI. */
|
|
14
|
+
export type UnitSystem = "us" | "si";
|
|
15
|
+
/** Legacy EPA ellipse interpretation or true-ellipse geometry. */
|
|
16
|
+
export type CustomEllipseModel = "epa_legacy" | "true_ellipse";
|
|
17
|
+
/** EXTRAN surcharge treatment or the slot method. */
|
|
18
|
+
export type SurchargeMethod = "extran" | "slot";
|
|
19
|
+
/** Dynamic Wave inertial-term damping. */
|
|
20
|
+
export type InertiaDamping = "none" | "partial" | "full";
|
|
21
|
+
/** Criterion for limiting flow to the normal-flow value. */
|
|
22
|
+
export type NormalFlowLimit = "slope" | "froude" | "both" | "neither";
|
|
23
|
+
/** Side or bottom orifice orientation. */
|
|
24
|
+
export type OrificeKind = "side" | "bottom";
|
|
25
|
+
/** Supported weir geometries. */
|
|
26
|
+
export type WeirKind = "transverse" | "sideflow" | "v_notch" | "trapezoidal" | "roadway";
|
|
27
|
+
/** Roadway-weir surface used by its discharge relationship. */
|
|
28
|
+
export type RoadSurface = "unspecified" | "paved" | "gravel";
|
|
29
|
+
/** Outlet rating uses upstream depth or hydraulic head difference. */
|
|
30
|
+
export type OutletHeadBasis = "depth" | "head";
|
|
31
|
+
/** Native standard cross-section shape names; geometry interpretation depends on the shape. */
|
|
32
|
+
export type StandardCrossSectionShape =
|
|
33
|
+
| "dummy" | "circular" | "filled_circular" | "rect_closed" | "rect_open"
|
|
34
|
+
| "trapezoidal" | "triangular" | "parabolic" | "power_function" | "rect_triangular"
|
|
35
|
+
| "rect_round" | "modified_basket" | "horizontal_ellipse" | "vertical_ellipse"
|
|
36
|
+
| "arch" | "egg_shaped" | "horseshoe" | "gothic" | "catenary" | "semi_elliptical"
|
|
37
|
+
| "basket_handle" | "semi_circular" | "force_main";
|
|
38
|
+
/** Supported Horton, Green-Ampt, and curve-number infiltration models. */
|
|
39
|
+
export type InfilKind = "horton" | "modified_horton" | "green_ampt" | "modified_green_ampt" | "curve_number";
|
|
40
|
+
/** Receiving object family for a subcatchment outlet. */
|
|
41
|
+
export type OutKind = "node" | "subcatchment";
|
|
42
|
+
/** Seven hydraulic flow classes, in the same order used by link statistics duration arrays. */
|
|
43
|
+
export type FlowClass = "dry" | "upstream_dry" | "downstream_dry" | "subcritical" | "supercritical" | "upstream_critical" | "downstream_critical";
|
|
44
|
+
/** Known semantic solver categories. Numeric native codes remain available on errors. */
|
|
45
|
+
export type SolverErrorCode =
|
|
46
|
+
| "memory" | "kinwave" | "ode_solver" | "timestep" | "subcatch_outlet"
|
|
47
|
+
| "aquifer_params" | "ground_elev" | "length" | "elev_drop" | "roughness" | "barrels"
|
|
48
|
+
| "slope" | "no_xsect" | "xsect" | "no_curve" | "pump_limits" | "loop" | "multi_outlet"
|
|
49
|
+
| "dummy_link" | "divider" | "divider_link" | "weir_divider" | "node_depth" | "regulator"
|
|
50
|
+
| "storage_volume" | "outfall" | "regulator_shape" | "no_outlets" | "unithyd_times"
|
|
51
|
+
| "unithyd_ratios" | "rdii_area" | "rain_file_conflict" | "rain_gage_format"
|
|
52
|
+
| "rain_gage_tseries" | "rain_gage_interval" | "cyclic_treatment" | "curve_sequence"
|
|
53
|
+
| "timeseries_sequence" | "snowmelt_params" | "snowpack_params" | "lid_type"
|
|
54
|
+
| "lid_layer" | "lid_params" | "lid_areas" | "lid_capture_area" | "start_date"
|
|
55
|
+
| "report_date" | "report_step" | "input" | "line_length" | "items" | "keyword"
|
|
56
|
+
| "dup_name" | "name" | "number" | "datetime" | "rule" | "transect_unknown"
|
|
57
|
+
| "transect_sequence" | "transect_too_few" | "transect_too_many" | "transect_manning"
|
|
58
|
+
| "transect_overbank" | "transect_no_depth" | "math_expr" | "infil_params" | "file_name"
|
|
59
|
+
| "inp_file" | "rpt_file" | "out_file" | "out_size" | "out_write" | "out_read"
|
|
60
|
+
| "rain_file_scratch" | "rain_file_open" | "rain_file_data" | "rain_file_sequence"
|
|
61
|
+
| "rain_file_format" | "rain_iface_format" | "rain_file_gage" | "runoff_file_open"
|
|
62
|
+
| "runoff_file_format" | "runoff_file_end" | "runoff_file_read" | "hotstart_file_open"
|
|
63
|
+
| "hotstart_file_format" | "hotstart_file_read" | "no_climate_file" | "climate_file_open"
|
|
64
|
+
| "climate_file_read" | "climate_end_of_file" | "rdii_file_scratch" | "rdii_file_open"
|
|
65
|
+
| "rdii_file_format" | "routing_file_open" | "routing_file_format" | "routing_file_nomatch"
|
|
66
|
+
| "routing_file_names" | "table_file_open" | "table_file_read" | "checkpoint_invalid"
|
|
67
|
+
| "checkpoint_unsupported_feature" | "checkpoint_integrity" | "checkpoint_external_dependency"
|
|
68
|
+
| "checkpoint_sidecar_validation" | "checkpoint_rebuild" | "checkpoint_compatibility"
|
|
69
|
+
| "checkpoint_decode" | "checkpoint_source_identity" | "checkpoint_destination_open"
|
|
70
|
+
| "checkpoint_destination_validation" | "checkpoint_source_flush" | "checkpoint_source_preflight"
|
|
71
|
+
| "checkpoint_sidecar_copy" | "checkpoint_rain_resource" | "checkpoint_sidecar_absent"
|
|
72
|
+
| "checkpoint_rdii_resource" | "checkpoint_routing_interface" | "checkpoint_runoff_interface"
|
|
73
|
+
| "checkpoint_read" | "checkpoint_append_role" | "system";
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/** Native identity attached to a configuration diagnostic, not a lookup handle. */
|
|
2
|
+
export interface ConfigurationObjectIdentity {
|
|
3
|
+
/** Native object-family name. */
|
|
4
|
+
readonly objectType: string;
|
|
5
|
+
/** Canonical object ID. */
|
|
6
|
+
readonly id: string;
|
|
7
|
+
/** Native configured-order index for diagnostics. */
|
|
8
|
+
readonly index: number;
|
|
9
|
+
}
|
|
10
|
+
/** One rejected configuration rule; the complete patch remains unapplied. */
|
|
11
|
+
export interface ConfigurationDiagnostic {
|
|
12
|
+
/** Object whose declaration failed validation. */
|
|
13
|
+
readonly object: ConfigurationObjectIdentity;
|
|
14
|
+
/** Property path identifying the rejected value. */
|
|
15
|
+
readonly propertyPath: string;
|
|
16
|
+
/** Stable native validation-rule identifier. */
|
|
17
|
+
readonly ruleCode: string;
|
|
18
|
+
/** Human-readable explanation. */
|
|
19
|
+
readonly message: string;
|
|
20
|
+
/** Other object involved in the conflict, or null. */
|
|
21
|
+
readonly conflictingObject: ConfigurationObjectIdentity | null;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** Details retained when an error crosses the worker boundary. */
|
|
25
|
+
export interface ErrorDetails {
|
|
26
|
+
/** Required human-readable error text. */
|
|
27
|
+
message: string;
|
|
28
|
+
/** Native numeric code, when supplied. */
|
|
29
|
+
code?: number | undefined;
|
|
30
|
+
/** Operation that failed. */
|
|
31
|
+
operation?: string | undefined;
|
|
32
|
+
/** Additional native detail. */
|
|
33
|
+
detail?: string | undefined;
|
|
34
|
+
/** Semantic category, preserving unknown future values. */
|
|
35
|
+
semanticCode?: string | undefined;
|
|
36
|
+
/** Native failure category. */
|
|
37
|
+
category?: string | undefined;
|
|
38
|
+
/** Configuration diagnostics; presence takes precedence over numeric-code mapping. */
|
|
39
|
+
diagnostics?: readonly ConfigurationDiagnostic[] | undefined;
|
|
40
|
+
/** Partial report text, when available. */
|
|
41
|
+
report?: string | undefined;
|
|
42
|
+
/** Serialized secondary cleanup failure, when supplied by the worker. */
|
|
43
|
+
cleanupError?: string | undefined;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/** Base runtime exception for binding and solver failures; supports `instanceof`.
|
|
47
|
+
* Ordinary Error message, name, and stack are retained. Standalone output failures
|
|
48
|
+
* use `OutputError`, not this hierarchy.
|
|
49
|
+
*/
|
|
50
|
+
export class SwmmError extends Error {
|
|
51
|
+
/** Native numeric failure code, when available. */
|
|
52
|
+
readonly code: number | undefined;
|
|
53
|
+
/** Failed public operation, when available. */
|
|
54
|
+
readonly operation: string | undefined;
|
|
55
|
+
/** Additional native failure detail. */
|
|
56
|
+
readonly detail: string | undefined;
|
|
57
|
+
/** Preserves unknown future categories rather than discarding them. */
|
|
58
|
+
readonly semanticCode: string | undefined;
|
|
59
|
+
/** Native error category. */
|
|
60
|
+
readonly category: string | undefined;
|
|
61
|
+
/** Partial report text, when available. */
|
|
62
|
+
readonly report: string | undefined;
|
|
63
|
+
/** Secondary cleanup failure retained after a primary run failure. */
|
|
64
|
+
cleanupError: unknown;
|
|
65
|
+
|
|
66
|
+
/** Construct an error with serialized or caller-supplied details.
|
|
67
|
+
* @param details - Message and optional structured failure metadata.
|
|
68
|
+
*/
|
|
69
|
+
constructor(details: ErrorDetails) {
|
|
70
|
+
super(details.message);
|
|
71
|
+
this.name = new.target.name;
|
|
72
|
+
this.code = details.code;
|
|
73
|
+
this.operation = details.operation;
|
|
74
|
+
this.detail = details.detail;
|
|
75
|
+
this.semanticCode = details.semanticCode;
|
|
76
|
+
this.category = details.category;
|
|
77
|
+
this.report = details.report;
|
|
78
|
+
this.cleanupError = details.cleanupError;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
/** Native failure without a more specific binding category, including unmapped future codes. */
|
|
82
|
+
export class SolverError extends SwmmError {}
|
|
83
|
+
/** Invalid phase, closed owner, or competing advancement. Native codes: 501, 502, 503, 2001, 2002, 2013. */
|
|
84
|
+
export class LifecycleError extends SwmmError {}
|
|
85
|
+
/** Retained owner-bound view no longer matches the live owner. */
|
|
86
|
+
export class StaleViewError extends LifecycleError {}
|
|
87
|
+
/** Invalid value or read. Native codes: 504, 507, 508, 509, 2003, 2006, 2010, 2012. */
|
|
88
|
+
export class ValidationError extends SwmmError {}
|
|
89
|
+
/** Configuration rejected with object-level diagnostics; takes precedence over code-based categorization. */
|
|
90
|
+
export class ConfigurationError extends ValidationError {
|
|
91
|
+
/** Frozen diagnostic array with frozen object identities. */
|
|
92
|
+
readonly diagnostics: readonly ConfigurationDiagnostic[];
|
|
93
|
+
/** Construct a configuration failure and defensively freeze its diagnostics.
|
|
94
|
+
* @param details - Error metadata and optional diagnostic list (defaults to empty).
|
|
95
|
+
*/
|
|
96
|
+
constructor(details: ErrorDetails) {
|
|
97
|
+
super(details);
|
|
98
|
+
this.diagnostics = Object.freeze((details.diagnostics ?? []).map(diagnostic => Object.freeze({
|
|
99
|
+
...diagnostic,
|
|
100
|
+
object: Object.freeze({ ...diagnostic.object }),
|
|
101
|
+
conflictingObject: diagnostic.conflictingObject === null ? null : Object.freeze({ ...diagnostic.conflictingObject }),
|
|
102
|
+
})));
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
/** Unknown object/definition ID. Native codes: 505, 506, 2000, 2004, 2005, 2007, 2008, 2009. */
|
|
106
|
+
export class ObjectNotFoundError extends SwmmError {}
|
|
107
|
+
/** Worker startup, communication, or runtime prerequisite failure. */
|
|
108
|
+
export class WorkerError extends SwmmError {}
|
|
109
|
+
/** Internal native simulation failure, mapped from code 9999. */
|
|
110
|
+
export class InternalSimulationError extends WorkerError {}
|
|
111
|
+
|
|
112
|
+
/** @internal */
|
|
113
|
+
export function fromWorkerError(details: ErrorDetails): SwmmError {
|
|
114
|
+
if (details.diagnostics !== undefined) return new ConfigurationError(details);
|
|
115
|
+
if ([501, 502, 503, 2001, 2002, 2013].includes(details.code ?? -1)) return new LifecycleError(details);
|
|
116
|
+
if ([505, 506, 2000, 2004, 2005, 2007, 2008, 2009].includes(details.code ?? -1)) return new ObjectNotFoundError(details);
|
|
117
|
+
if ([504, 507, 508, 509, 2003, 2006, 2010, 2012].includes(details.code ?? -1)) return new ValidationError(details);
|
|
118
|
+
if (details.code === 9999) return new InternalSimulationError(details);
|
|
119
|
+
return new SolverError(details);
|
|
120
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
export { Simulation, runSwmm, runSwmm as default } from "./simulation.js";
|
|
2
|
+
export { Node } from "./objects/nodes.js";
|
|
3
|
+
export { Link } from "./objects/links.js";
|
|
4
|
+
export { Subcatchment, RainGage } from "./objects/subcatchments.js";
|
|
5
|
+
export { Definition, Aquifer, SnowmeltParameterSet } from "./objects/definitions.js";
|
|
6
|
+
export { AmmModel } from "./objects/amm.js";
|
|
7
|
+
export { UnitHydrograph } from "./objects/rtk.js";
|
|
8
|
+
export { LidControl, LidUnit, LidUnitCollection } from "./objects/lids.js";
|
|
9
|
+
export type {
|
|
10
|
+
StorageShapeKind, StorageShape, StorageShapePatch, StorageExfiltration,
|
|
11
|
+
StorageExfiltrationPatch, OutfallBoundaryKind, OutfallBoundary, OutfallBoundaryPatch,
|
|
12
|
+
DividerRuleKind, DividerRule, DividerRulePatch, NodePatch,
|
|
13
|
+
NodeConfiguration, NodeQuality, NodeQualitySnapshot, NodeStatistics,
|
|
14
|
+
StorageStatistics, OutfallStatistics, NodeStatisticsSnapshot, PollutantValues,
|
|
15
|
+
} from "./objects/nodes.js";
|
|
16
|
+
export type {
|
|
17
|
+
FunctionalOutletRating, TabularOutletRating, OutletRating, OutletRatingPatch,
|
|
18
|
+
CircularCrossSection, StandardCrossSection, CustomCrossSection, IrregularCrossSection,
|
|
19
|
+
StreetCrossSection, CrossSection, CrossSectionPatch, InletConfiguration,
|
|
20
|
+
InletPatch, InletResults, ConduitConfiguration, PumpConfiguration,
|
|
21
|
+
OrificeConfiguration, WeirConfiguration, OutletConfiguration, LinkSubtypeConfiguration,
|
|
22
|
+
LinkConfiguration, ConduitPatch, PumpPatch, OrificePatch,
|
|
23
|
+
WeirPatch, OutletPatch, LinkSubtypePatch, LinkPatch,
|
|
24
|
+
LinkQuality, LinkQualitySnapshot, LinkStatistics, PumpStatistics,
|
|
25
|
+
LinkStatisticsSnapshot,
|
|
26
|
+
} from "./objects/links.js";
|
|
27
|
+
export type {
|
|
28
|
+
SubcatchmentOutlet, HortonInfiltrationSettings, ModifiedHortonInfiltrationSettings, GreenAmptInfiltrationSettings,
|
|
29
|
+
ModifiedGreenAmptInfiltrationSettings, CurveNumberInfiltrationSettings, SubcatchmentInfiltrationConfiguration, SubcatchmentInfiltrationPatch,
|
|
30
|
+
SubcatchmentGroundwaterConfiguration, SubcatchmentGroundwaterPatch, SubcatchmentPatch, SubcatchmentConfiguration,
|
|
31
|
+
SubcatchmentQuality, SubcatchmentQualitySnapshot, SubcatchmentStatistics, SubcatchmentStatisticsSnapshot,
|
|
32
|
+
SubcatchmentPrecipitationScaleFactors, SubcatchmentExternalForcing, SubcatchmentNamedSettingsKind, SubcatchmentNamedValues,
|
|
33
|
+
SubcatchmentPollutantValues,
|
|
34
|
+
} from "./objects/subcatchments.js";
|
|
35
|
+
export type {
|
|
36
|
+
Pollutant, LandUse, TimePattern, Curve,
|
|
37
|
+
TimeSeries, ControlRule, Transect, CustomShape,
|
|
38
|
+
Street, InletDesign, AquiferConfiguration, AquiferPatch,
|
|
39
|
+
SnowmeltSurfaceName, SnowmeltSurfaceConfiguration, SnowmeltSurfacePatch, SnowmeltParameterSetConfiguration,
|
|
40
|
+
SnowmeltParameterSetPatch,
|
|
41
|
+
} from "./objects/definitions.js";
|
|
42
|
+
export type {
|
|
43
|
+
AmmComponentKind, AmmStandardComponent, AmmBaseflowComponent, AmmComponent,
|
|
44
|
+
AmmModelConfiguration, AmmModelPatch, AmmAssignment,
|
|
45
|
+
} from "./objects/amm.js";
|
|
46
|
+
export type {
|
|
47
|
+
UnitHydrographResponse, UnitHydrographMonth, UnitHydrographConfiguration, UnitHydrographPatch,
|
|
48
|
+
RdiiAssignment,
|
|
49
|
+
} from "./objects/rtk.js";
|
|
50
|
+
export type {
|
|
51
|
+
LidRelationshipKind, LidRelationship, LidControlRelationship, LidDrainDestination,
|
|
52
|
+
LidCurveRelationship, LidUnitConfiguration, LidSurfaceConfiguration, LidSoilConfiguration,
|
|
53
|
+
LidStorageConfiguration, LidPavementConfiguration, LidDrainConfiguration, LidDrainageMatConfiguration,
|
|
54
|
+
LidControlConfiguration, LidSurfacePatch, LidSoilPatch, LidStoragePatch,
|
|
55
|
+
LidPavementPatch, LidDrainPatch, LidDrainageMatPatch, LidLayerName,
|
|
56
|
+
LidLayerPatch, LidUnitPatch, LidUnitSnapshot, SubcatchmentLidSnapshot,
|
|
57
|
+
} from "./objects/lids.js";
|
|
58
|
+
export type {
|
|
59
|
+
CheckpointBundle, ScenarioMethod, ScenarioArgs, ScenarioResult,
|
|
60
|
+
} from "./scenarios.js";
|
|
61
|
+
export { OutputReader, OutputError, OutputName, ReportTiming, BulkSeriesResult } from "./output.js";
|
|
62
|
+
export type {
|
|
63
|
+
ResultElementType, ConcentrationUnits, OutputFlowUnits, OutputUnitSystem,
|
|
64
|
+
UnknownCode, ResultAttributeCode, PollutantAttribute, SubcatchmentResultAttribute,
|
|
65
|
+
NodeResultAttribute, LinkResultAttribute, SystemResultAttribute, SubcatchmentSchemaEntry,
|
|
66
|
+
NodeSchemaEntry, LinkSchemaEntry, SystemSchemaEntry, OutputAttribute,
|
|
67
|
+
OutputElementSelector, SeriesSelection, RunStatus, SubcatchmentMetadata,
|
|
68
|
+
NodeMetadata, LinkMetadata, PollutantMetadata, ResultSchema,
|
|
69
|
+
OutputMetadata, OutputValueSeries, OutputTimeSeries, OutputReadOptions,
|
|
70
|
+
OutputRange, OutputReaderOptions,
|
|
71
|
+
} from "./output.js";
|
|
72
|
+
export { ObjectCollection, NodeCollection, LinkCollection, SubcatchmentCollection, RainGageCollection } from "./objects/collections.js";
|
|
73
|
+
export { SimulationOptionsView } from "./objects/options.js";
|
|
74
|
+
export { SwmmError, SolverError, LifecycleError, StaleViewError, ValidationError, ConfigurationError, ObjectNotFoundError, WorkerError, InternalSimulationError } from "./exceptions.js";
|
|
75
|
+
export type { ErrorDetails, ConfigurationDiagnostic, ConfigurationObjectIdentity } from "./exceptions.js";
|
|
76
|
+
export type * from "./enums.js";
|
|
77
|
+
export type * from "./types.js";
|
|
78
|
+
export type * from "./snapshots.js";
|
|
79
|
+
export type { ModelOptions, ModelOptionsPatch, SchedulePatch, SweepDay } from "./objects/options.js";
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import type { Call } from "../protocol.js";
|
|
2
|
+
|
|
3
|
+
/** Standard runoff-response or seasonal baseflow AMM component. */
|
|
4
|
+
export type AmmComponentKind = "standard" | "baseflow";
|
|
5
|
+
|
|
6
|
+
/** Detached standard AMM component. `kind` is exactly `"standard"`. */
|
|
7
|
+
export interface AmmStandardComponent {
|
|
8
|
+
/** Standard response discriminator. */
|
|
9
|
+
readonly kind: "standard";
|
|
10
|
+
/** Component identity within this model. */
|
|
11
|
+
readonly id: string;
|
|
12
|
+
/** Dry-weather capture parameter in the model's native capture units. */
|
|
13
|
+
readonly dryCapture: number;
|
|
14
|
+
/** Precipitation averaging window in hours. */
|
|
15
|
+
readonly precipitationWindowHours: number;
|
|
16
|
+
/** Response hydrograph half-life in hours. */
|
|
17
|
+
readonly hydrographHalfLifeHours: number;
|
|
18
|
+
/** Initial wet capture parameter in native capture units. */
|
|
19
|
+
readonly initialWetCapture: number;
|
|
20
|
+
/** Antecedent moisture half-life in hours. */
|
|
21
|
+
readonly moistureHalfLifeHours: number;
|
|
22
|
+
/** Temperature averaging window in hours. */
|
|
23
|
+
readonly temperatureWindowHours: number;
|
|
24
|
+
/** Spring cold seasonal hydrograph capture factor. */
|
|
25
|
+
readonly springColdShcf: number;
|
|
26
|
+
/** Hot seasonal hydrograph capture factor. */
|
|
27
|
+
readonly hotShcf: number;
|
|
28
|
+
/** Fall cold seasonal hydrograph capture factor. */
|
|
29
|
+
readonly fallColdShcf: number;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/** Detached baseflow AMM component. `kind` is exactly `"baseflow"`. */
|
|
33
|
+
export interface AmmBaseflowComponent {
|
|
34
|
+
/** Seasonal baseflow discriminator. */
|
|
35
|
+
readonly kind: "baseflow";
|
|
36
|
+
/** Component identity within this model. */
|
|
37
|
+
readonly id: string;
|
|
38
|
+
/** Precipitation averaging window in hours. */
|
|
39
|
+
readonly precipitationWindowHours: number;
|
|
40
|
+
/** Response hydrograph half-life in hours. */
|
|
41
|
+
readonly hydrographHalfLifeHours: number;
|
|
42
|
+
/** Temperature averaging window in hours. */
|
|
43
|
+
readonly temperatureWindowHours: number;
|
|
44
|
+
/** Spring cold capture parameter in native capture units. */
|
|
45
|
+
readonly springColdCapture: number;
|
|
46
|
+
/** Hot capture parameter in native capture units. */
|
|
47
|
+
readonly hotCapture: number;
|
|
48
|
+
/** Fall cold capture parameter in native capture units. */
|
|
49
|
+
readonly fallColdCapture: number;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/** AMM component discriminated by `kind`; component arrays are replaced as a whole. */
|
|
53
|
+
export type AmmComponent = AmmStandardComponent | AmmBaseflowComponent;
|
|
54
|
+
|
|
55
|
+
/** Complete AMM model configuration in native project units. */
|
|
56
|
+
export interface AmmModelConfiguration {
|
|
57
|
+
/** Canonical rain-gage ID. */
|
|
58
|
+
readonly rainGage: string;
|
|
59
|
+
/** Cold reference temperature in the model's configured temperature units. */
|
|
60
|
+
readonly coldTemperature: number;
|
|
61
|
+
/** Hot reference temperature in the model's configured temperature units. */
|
|
62
|
+
readonly hotTemperature: number;
|
|
63
|
+
/** Complete ordered standard/baseflow component list. */
|
|
64
|
+
readonly components: readonly AmmComponent[];
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/** Sparse AMM model update. Omitted fields retain their current values. */
|
|
68
|
+
export interface AmmModelPatch {
|
|
69
|
+
/** {@inheritDoc AmmModelConfiguration.rainGage} */
|
|
70
|
+
rainGage?: string;
|
|
71
|
+
/** {@inheritDoc AmmModelConfiguration.coldTemperature} */
|
|
72
|
+
coldTemperature?: number;
|
|
73
|
+
/** {@inheritDoc AmmModelConfiguration.hotTemperature} */
|
|
74
|
+
hotTemperature?: number;
|
|
75
|
+
/** Replacement complete component array; omission retains it. */
|
|
76
|
+
components?: readonly AmmComponent[];
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/** Detached AMM node assignment in native project units. IDs are canonical. */
|
|
80
|
+
export interface AmmAssignment {
|
|
81
|
+
/** Canonical receiving node ID. */
|
|
82
|
+
readonly node: string;
|
|
83
|
+
/** Canonical AMM-model ID. */
|
|
84
|
+
readonly model: string;
|
|
85
|
+
/** Assigned land area in acres (US) or hectares (SI). */
|
|
86
|
+
readonly area: number;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export interface AmmOperations {
|
|
90
|
+
ammModelConfiguration: { args: [string]; result: AmmModelConfiguration };
|
|
91
|
+
configureAmmModel: { args: [string, AmmModelPatch]; result: void };
|
|
92
|
+
ammAssignments: { args: []; result: readonly AmmAssignment[] };
|
|
93
|
+
replaceAmmAssignments: { args: [readonly AmmAssignment[]]; result: void };
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/** Editable AMM definition from `simulation.ammModels`; node assignments are managed on the simulation. */
|
|
97
|
+
export class AmmModel {
|
|
98
|
+
/** Canonical configured model ID. */
|
|
99
|
+
readonly id: string;
|
|
100
|
+
readonly #call: Call;
|
|
101
|
+
private constructor(id: string, call: Call) { this.id = id; this.#call = call; Object.freeze(this); }
|
|
102
|
+
/** @internal */
|
|
103
|
+
static create(id: string, call: Call): AmmModel { return new AmmModel(id, call); }
|
|
104
|
+
/** Read the definition in any healthy owner state.
|
|
105
|
+
* @returns Detached complete AMM configuration.
|
|
106
|
+
*/
|
|
107
|
+
configuration(): Promise<AmmModelConfiguration> { return this.#call("ammModelConfiguration", this.id); }
|
|
108
|
+
/** Atomically update an AMM definition in `open` or `ended`; accepted edits return the owner to `open`.
|
|
109
|
+
* @param patch - Sparse fields; supplying components replaces the complete array.
|
|
110
|
+
* @returns Resolves after all fields are accepted.
|
|
111
|
+
*/
|
|
112
|
+
configure(patch: AmmModelPatch): Promise<void> { return this.#call("configureAmmModel", this.id, patch); }
|
|
113
|
+
}
|