@thatopen/services 0.27.0 → 0.28.1
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/cli.js +9 -6
- package/dist/cli.js.map +1 -1
- package/dist/core/builtin-recipes/records-to-revit.d.ts +7 -3
- package/dist/core/builtin-recipes/shared.d.ts +7 -0
- package/dist/index.cjs.js +36 -41
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1133 -1057
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -7034,6 +7034,13 @@ const versionTag = () => `v-${Date.now()}`;
|
|
|
7034
7034
|
function childrenOf(folders, parentId) {
|
|
7035
7035
|
return folders.filter((f) => String(f.parentId ?? "") === parentId);
|
|
7036
7036
|
}
|
|
7037
|
+
function hiddenIdOf(created) {
|
|
7038
|
+
const id2 = created?.hiddenFileId;
|
|
7039
|
+
if (typeof id2 !== "string" || !id2) {
|
|
7040
|
+
throw new Error("The hidden-file upload answered without a hiddenFileId.");
|
|
7041
|
+
}
|
|
7042
|
+
return id2;
|
|
7043
|
+
}
|
|
7037
7044
|
function idOf(item) {
|
|
7038
7045
|
return String(item._id ?? item.id ?? "");
|
|
7039
7046
|
}
|
|
@@ -7386,9 +7393,7 @@ class FlowDoc {
|
|
|
7386
7393
|
input.delta,
|
|
7387
7394
|
modelFile.id
|
|
7388
7395
|
);
|
|
7389
|
-
version2.deltaId =
|
|
7390
|
-
hidden._id ?? hidden.id
|
|
7391
|
-
);
|
|
7396
|
+
version2.deltaId = hiddenIdOf(hidden);
|
|
7392
7397
|
}
|
|
7393
7398
|
const fresh = await this.#readHistory();
|
|
7394
7399
|
if (fresh) {
|
|
@@ -7440,9 +7445,7 @@ class FlowDoc {
|
|
|
7440
7445
|
input.payload,
|
|
7441
7446
|
holder.id
|
|
7442
7447
|
);
|
|
7443
|
-
suggestion.fragId =
|
|
7444
|
-
hidden._id ?? hidden.id
|
|
7445
|
-
);
|
|
7448
|
+
suggestion.fragId = hiddenIdOf(hidden);
|
|
7446
7449
|
}
|
|
7447
7450
|
const fresh = await this.#readOps() ?? index;
|
|
7448
7451
|
fresh.schema ??= OPS_SCHEMA;
|