Add Revit initial import apply API
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import assert from "node:assert/strict";
|
||||
import { describe, it } from "node:test";
|
||||
import {
|
||||
applyExternalInitialImportSchema,
|
||||
planExternalInitialImportSchema,
|
||||
previewExternalCsvSchema,
|
||||
updateExternalCsvConfigurationSchema,
|
||||
@@ -31,6 +32,19 @@ describe("external CSV API contracts", () => {
|
||||
}).success,
|
||||
true
|
||||
);
|
||||
assert.equal(
|
||||
applyExternalInitialImportSchema.safeParse({
|
||||
expectedRevision: 5,
|
||||
expectedConfigurationVersion: 2,
|
||||
expectedSha256: "a".repeat(64),
|
||||
fileName: "revit.csv",
|
||||
contentBase64: "YWJj",
|
||||
sourceName: "Revit-Gesamtmodell",
|
||||
roomDecisions: [],
|
||||
familyProjectDeviceDecisions: [],
|
||||
}).success,
|
||||
true
|
||||
);
|
||||
});
|
||||
|
||||
it("rejects stale-shaped, oversized and unknown request fields", () => {
|
||||
|
||||
Reference in New Issue
Block a user