@milaboratories/pl-model-middle-layer 1.34.3 → 1.34.5
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/_virtual/_rolldown/runtime.cjs +2 -3
- package/dist/_virtual/_rolldown/runtime.js +1 -2
- package/dist/block_meta/block_components.cjs +1 -2
- package/dist/block_meta/block_components.d.ts +0 -2
- package/dist/block_meta/block_components.d.ts.map +1 -1
- package/dist/block_meta/block_components.js +1 -2
- package/dist/block_meta/block_description.cjs +1 -2
- package/dist/block_meta/block_description.cjs.map +1 -1
- package/dist/block_meta/block_description.d.ts +0 -2
- package/dist/block_meta/block_description.d.ts.map +1 -1
- package/dist/block_meta/block_description.js +1 -2
- package/dist/block_meta/block_id.cjs +1 -2
- package/dist/block_meta/block_id.d.ts +0 -2
- package/dist/block_meta/block_id.d.ts.map +1 -1
- package/dist/block_meta/block_id.js +1 -2
- package/dist/block_meta/block_manifest.cjs +1 -2
- package/dist/block_meta/block_manifest.cjs.map +1 -1
- package/dist/block_meta/block_manifest.d.ts +0 -2
- package/dist/block_meta/block_manifest.d.ts.map +1 -1
- package/dist/block_meta/block_manifest.js +1 -2
- package/dist/block_meta/block_meta.cjs +1 -2
- package/dist/block_meta/block_meta.d.ts +0 -2
- package/dist/block_meta/block_meta.d.ts.map +1 -1
- package/dist/block_meta/block_meta.js +1 -2
- package/dist/block_meta/common.d.ts +0 -2
- package/dist/block_meta/common.d.ts.map +1 -1
- package/dist/block_meta/content_conversion.cjs +1 -2
- package/dist/block_meta/content_conversion.d.ts +0 -2
- package/dist/block_meta/content_conversion.d.ts.map +1 -1
- package/dist/block_meta/content_conversion.js +1 -2
- package/dist/block_meta/content_types.cjs +1 -2
- package/dist/block_meta/content_types.d.ts +0 -2
- package/dist/block_meta/content_types.d.ts.map +1 -1
- package/dist/block_meta/content_types.js +1 -2
- package/dist/block_meta/semver.cjs +1 -2
- package/dist/block_meta/semver.cjs.map +1 -1
- package/dist/block_meta/semver.d.ts +0 -2
- package/dist/block_meta/semver.d.ts.map +1 -1
- package/dist/block_meta/semver.js +1 -2
- package/dist/block_registry/block_pack_spec.cjs +1 -2
- package/dist/block_registry/block_pack_spec.d.ts +0 -2
- package/dist/block_registry/block_pack_spec.d.ts.map +1 -1
- package/dist/block_registry/block_pack_spec.js +1 -2
- package/dist/block_registry/overview.cjs +1 -2
- package/dist/block_registry/overview.d.ts +0 -2
- package/dist/block_registry/overview.d.ts.map +1 -1
- package/dist/block_registry/overview.js +1 -2
- package/dist/block_registry/registry_spec.cjs +1 -2
- package/dist/block_registry/registry_spec.d.ts +0 -2
- package/dist/block_registry/registry_spec.d.ts.map +1 -1
- package/dist/block_registry/registry_spec.js +1 -2
- package/dist/block_settings.cjs +1 -2
- package/dist/block_settings.d.ts +0 -2
- package/dist/block_settings.d.ts.map +1 -1
- package/dist/block_settings.js +1 -2
- package/dist/block_state.d.ts +0 -2
- package/dist/block_state.d.ts.map +1 -1
- package/dist/folders/commit.cjs +1 -2
- package/dist/folders/commit.cjs.map +1 -1
- package/dist/folders/commit.d.ts +0 -2
- package/dist/folders/commit.d.ts.map +1 -1
- package/dist/folders/commit.js +1 -2
- package/dist/folders/commit.js.map +1 -1
- package/dist/folders/decode.cjs +1 -2
- package/dist/folders/decode.d.ts +0 -2
- package/dist/folders/decode.d.ts.map +1 -1
- package/dist/folders/decode.js +1 -2
- package/dist/folders/document.cjs +1 -2
- package/dist/folders/document.d.ts +0 -2
- package/dist/folders/document.d.ts.map +1 -1
- package/dist/folders/document.js +1 -2
- package/dist/folders/inheritance.cjs +3 -3
- package/dist/folders/inheritance.cjs.map +1 -1
- package/dist/folders/inheritance.d.ts +0 -2
- package/dist/folders/inheritance.d.ts.map +1 -1
- package/dist/folders/inheritance.js +3 -3
- package/dist/folders/inheritance.js.map +1 -1
- package/dist/folders/invariants.cjs +1 -2
- package/dist/folders/invariants.cjs.map +1 -1
- package/dist/folders/invariants.d.ts +0 -2
- package/dist/folders/invariants.d.ts.map +1 -1
- package/dist/folders/invariants.js +1 -2
- package/dist/folders/naming.cjs +1 -2
- package/dist/folders/naming.d.ts +0 -2
- package/dist/folders/naming.d.ts.map +1 -1
- package/dist/folders/naming.js +1 -2
- package/dist/folders/planner.cjs +1 -3
- package/dist/folders/planner.cjs.map +1 -1
- package/dist/folders/planner.d.ts +0 -2
- package/dist/folders/planner.d.ts.map +1 -1
- package/dist/folders/planner.js +1 -3
- package/dist/folders/planner.js.map +1 -1
- package/dist/folders/removal.cjs +1 -2
- package/dist/folders/removal.d.ts +0 -2
- package/dist/folders/removal.d.ts.map +1 -1
- package/dist/folders/removal.js +1 -2
- package/dist/folders/view.cjs +1 -2
- package/dist/folders/view.d.ts +0 -2
- package/dist/folders/view.d.ts.map +1 -1
- package/dist/folders/view.js +1 -2
- package/dist/json.cjs +6 -5
- package/dist/json.cjs.map +1 -1
- package/dist/json.d.ts +0 -2
- package/dist/json.d.ts.map +1 -1
- package/dist/json.js +6 -5
- package/dist/json.js.map +1 -1
- package/dist/pframe/internal_api/api_factory.cjs +1 -2
- package/dist/pframe/internal_api/api_factory.d.ts +0 -2
- package/dist/pframe/internal_api/api_factory.d.ts.map +1 -1
- package/dist/pframe/internal_api/api_factory.js +1 -2
- package/dist/pframe/internal_api/api_read.d.ts +0 -2
- package/dist/pframe/internal_api/api_read.d.ts.map +1 -1
- package/dist/pframe/internal_api/common.d.ts +0 -2
- package/dist/pframe/internal_api/common.d.ts.map +1 -1
- package/dist/pframe/internal_api/create_table.d.ts +0 -2
- package/dist/pframe/internal_api/create_table.d.ts.map +1 -1
- package/dist/pframe/internal_api/delete_column.d.ts +0 -2
- package/dist/pframe/internal_api/delete_column.d.ts.map +1 -1
- package/dist/pframe/internal_api/discover_columns.d.ts +0 -2
- package/dist/pframe/internal_api/discover_columns.d.ts.map +1 -1
- package/dist/pframe/internal_api/find_columns.d.ts +0 -2
- package/dist/pframe/internal_api/find_columns.d.ts.map +1 -1
- package/dist/pframe/internal_api/http_helpers.cjs +1 -2
- package/dist/pframe/internal_api/http_helpers.d.ts +0 -2
- package/dist/pframe/internal_api/http_helpers.d.ts.map +1 -1
- package/dist/pframe/internal_api/http_helpers.js +1 -2
- package/dist/pframe/internal_api/index.cjs +1 -2
- package/dist/pframe/internal_api/index.d.ts +0 -1
- package/dist/pframe/internal_api/index.js +1 -2
- package/dist/pframe/internal_api/pframe.d.ts +0 -2
- package/dist/pframe/internal_api/pframe.d.ts.map +1 -1
- package/dist/pframe/internal_api/table.d.ts +0 -2
- package/dist/pframe/internal_api/table.d.ts.map +1 -1
- package/dist/project.cjs +1 -2
- package/dist/project.d.ts +0 -2
- package/dist/project.d.ts.map +1 -1
- package/dist/project.js +1 -2
- package/dist/project_list.d.ts +0 -2
- package/dist/project_list.d.ts.map +1 -1
- package/dist/project_overview.d.ts +0 -2
- package/dist/project_overview.d.ts.map +1 -1
- package/dist/storage_debug_view.d.ts +0 -2
- package/dist/storage_debug_view.d.ts.map +1 -1
- package/dist/update_info.d.ts +0 -2
- package/dist/update_info.d.ts.map +1 -1
- package/package.json +15 -10
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
//#region src/block_registry/overview.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Latest information about specific block pack. Contain information about latest version of the package.
|
|
5
4
|
* */
|
|
@@ -15951,5 +15950,4 @@ export declare const BlockPackListing: z.ZodObject<{
|
|
|
15951
15950
|
}>;
|
|
15952
15951
|
export type BlockPackListing = z.infer<typeof BlockPackListing>;
|
|
15953
15952
|
export declare function blockPackOverviewToLegacy(bpo: BlockPackOverview): BlockPackOverviewLegacy;
|
|
15954
|
-
//#endregion
|
|
15955
15953
|
//# sourceMappingURL=overview.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overview.d.ts","names":[],"sources":["../../src/block_registry/overview.ts"],"mappings":";;;;;qBAea,yBAAuB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAIjB,mBAAmB,EAAE,aAAa;wBAE9B,0BAA0B,KAAK,oBAAoB"}
|
|
@@ -6,7 +6,7 @@ import "../block_meta/index.js";
|
|
|
6
6
|
import { BlockPackSpec } from "./block_pack_spec.js";
|
|
7
7
|
import { RegistryEntry } from "./registry_spec.js";
|
|
8
8
|
import { z } from "zod";
|
|
9
|
-
|
|
9
|
+
// src/block_registry/overview.ts
|
|
10
10
|
/**
|
|
11
11
|
* Latest information about specific block pack. Contain information about latest version of the package.
|
|
12
12
|
* */
|
|
@@ -62,7 +62,6 @@ function blockPackOverviewToLegacy(bpo) {
|
|
|
62
62
|
registryId: bpo.registryId
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
|
-
//#endregion
|
|
66
65
|
export { AnyChannel, BlockPackListing, BlockPackOverview, BlockPackOverviewLegacy, BlockPackOverviewNoRegistryId, BlockPackOverviewRaw, RegistryStatus, SingleBlockPackOverview, StableChannel, VersionWithChannels, blockPackOverviewToLegacy };
|
|
67
66
|
|
|
68
67
|
//# sourceMappingURL=overview.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
let zod = require("zod");
|
|
2
|
-
|
|
2
|
+
// src/block_registry/registry_spec.ts
|
|
3
3
|
const LocalDevFolder = zod.z.object({
|
|
4
4
|
type: zod.z.literal("local-dev"),
|
|
5
5
|
path: zod.z.string()
|
|
@@ -24,7 +24,6 @@ const RegistryEntry = zod.z.object({
|
|
|
24
24
|
spec: RegistrySpec
|
|
25
25
|
});
|
|
26
26
|
const RegistryList = zod.z.array(RegistryEntry);
|
|
27
|
-
//#endregion
|
|
28
27
|
exports.LocalDevFolder = LocalDevFolder;
|
|
29
28
|
exports.RegistryEntry = RegistryEntry;
|
|
30
29
|
exports.RegistryList = RegistryList;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
//#region src/block_registry/registry_spec.d.ts
|
|
3
2
|
export declare const LocalDevFolder: z.ZodObject<{
|
|
4
3
|
type: z.ZodLiteral<"local-dev">;
|
|
5
4
|
path: z.ZodString;
|
|
@@ -182,5 +181,4 @@ export declare const RegistryList: z.ZodArray<z.ZodObject<{
|
|
|
182
181
|
};
|
|
183
182
|
}>, "many">;
|
|
184
183
|
export type RegistryList = z.infer<typeof RegistryList>;
|
|
185
|
-
//#endregion
|
|
186
184
|
//# sourceMappingURL=registry_spec.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry_spec.d.ts","names":[],"sources":["../../src/block_registry/registry_spec.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"registry_spec.d.ts","names":[],"sources":["../../src/block_registry/registry_spec.ts"],"mappings":";qBAEa,gBAAc,EAAA;;;;;;;;;;YAIf,iBAAiB,EAAE,aAAa;;qBAG/B,sBAAoB,EAAA;;;;;;;;;;;YAKrB,uBAAuB,EAAE,aAAa;qBAErC,sBAAoB,EAAA;;;;;;;;;;YAIrB,uBAAuB,EAAE,aAAa;qBAErC,cAAY,EAAA,+BAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAKb,eAAe,EAAE,aAAa;qBAE7B,eAAa,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAKd,gBAAgB,EAAE,aAAa;qBAE9B,cAAY,EAAA,SAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YACb,eAAe,EAAE,aAAa"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
|
|
2
|
+
// src/block_registry/registry_spec.ts
|
|
3
3
|
const LocalDevFolder = z.object({
|
|
4
4
|
type: z.literal("local-dev"),
|
|
5
5
|
path: z.string()
|
|
@@ -24,7 +24,6 @@ const RegistryEntry = z.object({
|
|
|
24
24
|
spec: RegistrySpec
|
|
25
25
|
});
|
|
26
26
|
const RegistryList = z.array(RegistryEntry);
|
|
27
|
-
//#endregion
|
|
28
27
|
export { LocalDevFolder, RegistryEntry, RegistryList, RegistrySpec, RemoteRegistryV1Spec, RemoteRegistryV2Spec };
|
|
29
28
|
|
|
30
29
|
//# sourceMappingURL=registry_spec.js.map
|
package/dist/block_settings.cjs
CHANGED
package/dist/block_settings.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/block_settings.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* What part of block version should be locked against updates.
|
|
4
3
|
*
|
|
@@ -24,5 +23,4 @@ export type BlockSettings = {
|
|
|
24
23
|
versionLock?: VersionLock;
|
|
25
24
|
};
|
|
26
25
|
export declare const InitialBlockSettings: BlockSettings;
|
|
27
|
-
//#endregion
|
|
28
26
|
//# sourceMappingURL=block_settings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block_settings.d.ts","names":[],"sources":["../src/block_settings.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"block_settings.d.ts","names":[],"sources":["../src/block_settings.ts"],"mappings":";;;;;;;;YAQY;;;;;;;YAQA;;EAEV;;;;;EAKA,cAAc;;qBAGH,sBAAsB"}
|
package/dist/block_settings.js
CHANGED
package/dist/block_state.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { StorageDebugView } from "./storage_debug_view.js";
|
|
2
2
|
import { AuthorMarker, BlockOutputsBase, BlockState, NavigationState, StringifiedJson } from "@milaboratories/pl-model-common";
|
|
3
3
|
import { Optional } from "utility-types";
|
|
4
|
-
//#region src/block_state.d.ts
|
|
5
4
|
export type BlockStateInternal<Args = unknown, Outputs extends BlockOutputsBase = BlockOutputsBase, UiState = unknown, Href extends `/${string}` = `/${string}`> = Optional<Readonly<BlockState<Args, Outputs, UiState, Href>>, "outputs">;
|
|
6
5
|
export type BlockStateInternalV3<Outputs extends BlockOutputsBase = BlockOutputsBase, Href extends `/${string}` = `/${string}`> = {
|
|
7
6
|
/** Raw block storage - UI derives data using sdk/model */
|
|
@@ -14,5 +13,4 @@ export type BlockStateInternalV3<Outputs extends BlockOutputsBase = BlockOutputs
|
|
|
14
13
|
readonly navigationState: NavigationState<Href>;
|
|
15
14
|
readonly author: AuthorMarker | undefined;
|
|
16
15
|
};
|
|
17
|
-
//#endregion
|
|
18
16
|
//# sourceMappingURL=block_state.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block_state.d.ts","names":[],"sources":["../src/block_state.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"block_state.d.ts","names":[],"sources":["../src/block_state.ts"],"mappings":";;;YAWY,mBACV,gBACA,gBAAgB,mBAAmB,kBACnC,mBACA,4CACE,SAAS,SAAS,WAAW,MAAM,SAAS,SAAS;YAG7C,qBACV,gBAAgB,mBAAmB,kBACnC;;WAGS;;WAGA,mBAAmB,gBAAgB;;EAG5C,UAAU;;WAGD,iBAAiB,gBAAgB;WAEjC,QAAQ"}
|
package/dist/folders/commit.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_planner = require("./planner.cjs");
|
|
2
2
|
const require_removal = require("./removal.cjs");
|
|
3
|
-
|
|
3
|
+
// src/folders/commit.ts
|
|
4
4
|
/**
|
|
5
5
|
* The one place a move plan turns into a write.
|
|
6
6
|
*
|
|
@@ -72,7 +72,6 @@ function commitFoldersRemoval(view, planned, confirmed) {
|
|
|
72
72
|
deletedTemplates: planned.removal.templates
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
|
-
//#endregion
|
|
76
75
|
exports.commitFoldersMove = commitFoldersMove;
|
|
77
76
|
exports.commitFoldersRemoval = commitFoldersRemoval;
|
|
78
77
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commit.cjs","names":["foldersMovePlansEqual","applyFoldersMove","foldersRemovalsEqual","applyFoldersRemoval"],"sources":["../../src/folders/commit.ts"],"sourcesContent":["import type { ProjectId, TemplateId } from \"@milaboratories/pl-model-common\";\nimport type { FoldersDocument } from \"./document\";\nimport type {\n FoldersLabelRename,\n FoldersMoveIssue,\n FoldersMovePlan,\n FoldersMovePlanResult,\n} from \"./planner\";\nimport { applyFoldersMove, foldersMovePlansEqual } from \"./planner\";\nimport type { FoldersRemoval, FoldersRemovalIssue, FoldersRemovalPlanResult } from \"./removal\";\nimport { applyFoldersRemoval, foldersRemovalsEqual } from \"./removal\";\nimport type { FoldersView } from \"./view\";\n\n/** What one attempt of a folder write decided to do. */\nexport interface FoldersEdit<T> {\n /** Value handed back to the caller, whether or not anything is written. */\n readonly result: T;\n /** The document to persist. Absent means write nothing — a refused plan, or a no-op. */\n readonly document?: FoldersDocument;\n /** Project and template labels the edit changes; their names live in their own metadata. */\n readonly labelRenames?: readonly FoldersLabelRename[];\n /** Projects the edit destroys. A folder deletion is the only edit that sets this. */\n readonly deletedProjects?: readonly ProjectId[];\n /** Templates the edit destroys. A folder deletion is the only edit that sets this. */\n readonly deletedTemplates?: readonly TemplateId[];\n}\n\n/**\n * What a move did.\n *\n * `plan-changed` is the whole point of the confirm step: the plan was recomputed inside the write\n * transaction, it no longer matches the one the user confirmed, and nothing was written. The\n * fresh plan comes back to be confirmed again, so a confirmation dialog cannot lie about what an\n * item will end up called. `needs-confirmation` is the same guarantee reached from the other\n * side — a caller that supplied no plan at all for a move that renames something.\n *\n * All four cases have to be handled by whoever calls a move, which is why this type lives in this\n * package rather than in the node package.\n */\nexport type FoldersMoveOutcome =\n | { readonly ok: true; readonly plan: FoldersMovePlan }\n | { readonly ok: false; readonly reason: \"plan-changed\"; readonly plan: FoldersMovePlan }\n | {\n readonly ok: false;\n readonly reason: \"needs-confirmation\";\n readonly plan: FoldersMovePlan;\n }\n | {\n readonly ok: false;\n readonly reason: \"cannot-plan\";\n readonly issues: readonly FoldersMoveIssue[];\n };\n\n/** What a folder deletion did. */\nexport type FoldersRemovalOutcome =\n | { readonly ok: true; readonly removal: FoldersRemoval }\n | {\n readonly ok: false;\n readonly reason: \"plan-changed\";\n readonly removal: FoldersRemoval;\n }\n | {\n readonly ok: false;\n readonly reason: \"needs-confirmation\";\n readonly removal: FoldersRemoval;\n }\n | {\n readonly ok: false;\n readonly reason: \"cannot-plan\";\n readonly issues: readonly FoldersRemovalIssue[];\n };\n\n/**\n * The one place a move plan turns into a write.\n *\n * A move that renames nothing commits without a confirmed plan, because there is nothing to\n * confirm. A move that renames something needs one, and a confirmed plan must equal the plan\n * recomputed here, or nothing is written and the fresh plan goes back to be confirmed. A move of\n * nothing writes nothing.\n */\nexport function commitFoldersMove(\n view: FoldersView,\n planned: FoldersMovePlanResult,\n confirmedPlan: FoldersMovePlan | undefined,\n): FoldersEdit<FoldersMoveOutcome> {\n if (!planned.ok) return { result: { ok: false, reason: \"cannot-plan\", issues: planned.issues } };\n\n if (confirmedPlan !== undefined) {\n if (!foldersMovePlansEqual(planned.plan, confirmedPlan))\n return { result: { ok: false, reason: \"plan-changed\", plan: planned.plan } };\n } else if (planned.plan.entries.some((entry) => entry.renamed)) {\n return { result: { ok: false, reason: \"needs-confirmation\", plan: planned.plan } };\n }\n\n // A move of nothing changes nothing. Without this it still mints a value and re-points the\n // field, so an empty selection would conflict with whatever else is editing the tree and would\n // persist a heal nobody asked for.\n if (planned.plan.entries.length === 0) return { result: { ok: true, plan: planned.plan } };\n\n const applied = applyFoldersMove(view, planned.plan);\n return {\n result: { ok: true, plan: planned.plan },\n document: applied.document,\n labelRenames: applied.labelRenames,\n };\n}\n\n/**\n * The one place a removal turns into a write.\n *\n * A deletion always needs a confirmed removal, however little it destroys: unlike a move, it has\n * no harmless outcome to fall back on.\n */\nexport function commitFoldersRemoval(\n view: FoldersView,\n planned: FoldersRemovalPlanResult,\n confirmed: FoldersRemoval | undefined,\n): FoldersEdit<FoldersRemovalOutcome> {\n if (!planned.ok) return { result: { ok: false, reason: \"cannot-plan\", issues: planned.issues } };\n\n if (confirmed === undefined)\n return { result: { ok: false, reason: \"needs-confirmation\", removal: planned.removal } };\n\n if (!foldersRemovalsEqual(planned.removal, confirmed))\n return { result: { ok: false, reason: \"plan-changed\", removal: planned.removal } };\n\n return {\n result: { ok: true, removal: planned.removal },\n document: applyFoldersRemoval(view, planned.removal),\n deletedProjects: planned.removal.projects,\n deletedTemplates: planned.removal.templates,\n };\n}\n"],"mappings":";;;;;;;;;;;AAgFA,SAAgB,kBACd,MACA,SACA,eACiC;CACjC,IAAI,CAAC,QAAQ,IAAI,OAAO,EAAE,QAAQ;EAAE,IAAI;EAAO,QAAQ;EAAe,QAAQ,QAAQ;CAAO,EAAE;CAE/F,IAAI,kBAAkB,KAAA;
|
|
1
|
+
{"version":3,"file":"commit.cjs","names":["foldersMovePlansEqual","applyFoldersMove","foldersRemovalsEqual","applyFoldersRemoval"],"sources":["../../src/folders/commit.ts"],"sourcesContent":["import type { ProjectId, TemplateId } from \"@milaboratories/pl-model-common\";\nimport type { FoldersDocument } from \"./document\";\nimport type {\n FoldersLabelRename,\n FoldersMoveIssue,\n FoldersMovePlan,\n FoldersMovePlanResult,\n} from \"./planner\";\nimport { applyFoldersMove, foldersMovePlansEqual } from \"./planner\";\nimport type { FoldersRemoval, FoldersRemovalIssue, FoldersRemovalPlanResult } from \"./removal\";\nimport { applyFoldersRemoval, foldersRemovalsEqual } from \"./removal\";\nimport type { FoldersView } from \"./view\";\n\n/** What one attempt of a folder write decided to do. */\nexport interface FoldersEdit<T> {\n /** Value handed back to the caller, whether or not anything is written. */\n readonly result: T;\n /** The document to persist. Absent means write nothing — a refused plan, or a no-op. */\n readonly document?: FoldersDocument;\n /** Project and template labels the edit changes; their names live in their own metadata. */\n readonly labelRenames?: readonly FoldersLabelRename[];\n /** Projects the edit destroys. A folder deletion is the only edit that sets this. */\n readonly deletedProjects?: readonly ProjectId[];\n /** Templates the edit destroys. A folder deletion is the only edit that sets this. */\n readonly deletedTemplates?: readonly TemplateId[];\n}\n\n/**\n * What a move did.\n *\n * `plan-changed` is the whole point of the confirm step: the plan was recomputed inside the write\n * transaction, it no longer matches the one the user confirmed, and nothing was written. The\n * fresh plan comes back to be confirmed again, so a confirmation dialog cannot lie about what an\n * item will end up called. `needs-confirmation` is the same guarantee reached from the other\n * side — a caller that supplied no plan at all for a move that renames something.\n *\n * All four cases have to be handled by whoever calls a move, which is why this type lives in this\n * package rather than in the node package.\n */\nexport type FoldersMoveOutcome =\n | { readonly ok: true; readonly plan: FoldersMovePlan }\n | { readonly ok: false; readonly reason: \"plan-changed\"; readonly plan: FoldersMovePlan }\n | {\n readonly ok: false;\n readonly reason: \"needs-confirmation\";\n readonly plan: FoldersMovePlan;\n }\n | {\n readonly ok: false;\n readonly reason: \"cannot-plan\";\n readonly issues: readonly FoldersMoveIssue[];\n };\n\n/** What a folder deletion did. */\nexport type FoldersRemovalOutcome =\n | { readonly ok: true; readonly removal: FoldersRemoval }\n | {\n readonly ok: false;\n readonly reason: \"plan-changed\";\n readonly removal: FoldersRemoval;\n }\n | {\n readonly ok: false;\n readonly reason: \"needs-confirmation\";\n readonly removal: FoldersRemoval;\n }\n | {\n readonly ok: false;\n readonly reason: \"cannot-plan\";\n readonly issues: readonly FoldersRemovalIssue[];\n };\n\n/**\n * The one place a move plan turns into a write.\n *\n * A move that renames nothing commits without a confirmed plan, because there is nothing to\n * confirm. A move that renames something needs one, and a confirmed plan must equal the plan\n * recomputed here, or nothing is written and the fresh plan goes back to be confirmed. A move of\n * nothing writes nothing.\n */\nexport function commitFoldersMove(\n view: FoldersView,\n planned: FoldersMovePlanResult,\n confirmedPlan: FoldersMovePlan | undefined,\n): FoldersEdit<FoldersMoveOutcome> {\n if (!planned.ok) return { result: { ok: false, reason: \"cannot-plan\", issues: planned.issues } };\n\n if (confirmedPlan !== undefined) {\n if (!foldersMovePlansEqual(planned.plan, confirmedPlan))\n return { result: { ok: false, reason: \"plan-changed\", plan: planned.plan } };\n } else if (planned.plan.entries.some((entry) => entry.renamed)) {\n return { result: { ok: false, reason: \"needs-confirmation\", plan: planned.plan } };\n }\n\n // A move of nothing changes nothing. Without this it still mints a value and re-points the\n // field, so an empty selection would conflict with whatever else is editing the tree and would\n // persist a heal nobody asked for.\n if (planned.plan.entries.length === 0) return { result: { ok: true, plan: planned.plan } };\n\n const applied = applyFoldersMove(view, planned.plan);\n return {\n result: { ok: true, plan: planned.plan },\n document: applied.document,\n labelRenames: applied.labelRenames,\n };\n}\n\n/**\n * The one place a removal turns into a write.\n *\n * A deletion always needs a confirmed removal, however little it destroys: unlike a move, it has\n * no harmless outcome to fall back on.\n */\nexport function commitFoldersRemoval(\n view: FoldersView,\n planned: FoldersRemovalPlanResult,\n confirmed: FoldersRemoval | undefined,\n): FoldersEdit<FoldersRemovalOutcome> {\n if (!planned.ok) return { result: { ok: false, reason: \"cannot-plan\", issues: planned.issues } };\n\n if (confirmed === undefined)\n return { result: { ok: false, reason: \"needs-confirmation\", removal: planned.removal } };\n\n if (!foldersRemovalsEqual(planned.removal, confirmed))\n return { result: { ok: false, reason: \"plan-changed\", removal: planned.removal } };\n\n return {\n result: { ok: true, removal: planned.removal },\n document: applyFoldersRemoval(view, planned.removal),\n deletedProjects: planned.removal.projects,\n deletedTemplates: planned.removal.templates,\n };\n}\n"],"mappings":";;;;;;;;;;;AAgFA,SAAgB,kBACd,MACA,SACA,eACiC;CACjC,IAAI,CAAC,QAAQ,IAAI,OAAO,EAAE,QAAQ;EAAE,IAAI;EAAO,QAAQ;EAAe,QAAQ,QAAQ;CAAO,EAAE;CAE/F,IAAI,kBAAkB,KAAA,GAChB;MAAA,CAACA,gBAAAA,sBAAsB,QAAQ,MAAM,aAAa,GACpD,OAAO,EAAE,QAAQ;GAAE,IAAI;GAAO,QAAQ;GAAgB,MAAM,QAAQ;EAAK,EAAE;CAAA,OACxE,IAAI,QAAQ,KAAK,QAAQ,MAAM,UAAU,MAAM,OAAO,GAC3D,OAAO,EAAE,QAAQ;EAAE,IAAI;EAAO,QAAQ;EAAsB,MAAM,QAAQ;CAAK,EAAE;CAMnF,IAAI,QAAQ,KAAK,QAAQ,WAAW,GAAG,OAAO,EAAE,QAAQ;EAAE,IAAI;EAAM,MAAM,QAAQ;CAAK,EAAE;CAEzF,MAAM,UAAUC,gBAAAA,iBAAiB,MAAM,QAAQ,IAAI;CACnD,OAAO;EACL,QAAQ;GAAE,IAAI;GAAM,MAAM,QAAQ;EAAK;EACvC,UAAU,QAAQ;EAClB,cAAc,QAAQ;CACxB;AACF;;;;;;;AAQA,SAAgB,qBACd,MACA,SACA,WACoC;CACpC,IAAI,CAAC,QAAQ,IAAI,OAAO,EAAE,QAAQ;EAAE,IAAI;EAAO,QAAQ;EAAe,QAAQ,QAAQ;CAAO,EAAE;CAE/F,IAAI,cAAc,KAAA,GAChB,OAAO,EAAE,QAAQ;EAAE,IAAI;EAAO,QAAQ;EAAsB,SAAS,QAAQ;CAAQ,EAAE;CAEzF,IAAI,CAACC,gBAAAA,qBAAqB,QAAQ,SAAS,SAAS,GAClD,OAAO,EAAE,QAAQ;EAAE,IAAI;EAAO,QAAQ;EAAgB,SAAS,QAAQ;CAAQ,EAAE;CAEnF,OAAO;EACL,QAAQ;GAAE,IAAI;GAAM,SAAS,QAAQ;EAAQ;EAC7C,UAAUC,gBAAAA,oBAAoB,MAAM,QAAQ,OAAO;EACnD,iBAAiB,QAAQ,QAAQ;EACjC,kBAAkB,QAAQ,QAAQ;CACpC;AACF"}
|
package/dist/folders/commit.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { FoldersLabelRename, FoldersMoveIssue, FoldersMovePlan, FoldersMovePlanR
|
|
|
3
3
|
import { FoldersView } from "./view.js";
|
|
4
4
|
import { FoldersRemoval, FoldersRemovalIssue, FoldersRemovalPlanResult } from "./removal.js";
|
|
5
5
|
import { ProjectId, TemplateId } from "@milaboratories/pl-model-common";
|
|
6
|
-
//#region src/folders/commit.d.ts
|
|
7
6
|
/** What one attempt of a folder write decided to do. */
|
|
8
7
|
export interface FoldersEdit<T> {
|
|
9
8
|
/** Value handed back to the caller, whether or not anything is written. */
|
|
@@ -78,5 +77,4 @@ export declare function commitFoldersMove(view: FoldersView, planned: FoldersMov
|
|
|
78
77
|
* no harmless outcome to fall back on.
|
|
79
78
|
*/
|
|
80
79
|
export declare function commitFoldersRemoval(view: FoldersView, planned: FoldersRemovalPlanResult, confirmed: FoldersRemoval | undefined): FoldersEdit<FoldersRemovalOutcome>;
|
|
81
|
-
//#endregion
|
|
82
80
|
//# sourceMappingURL=commit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commit.d.ts","names":[],"sources":["../../src/folders/commit.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"commit.d.ts","names":[],"sources":["../../src/folders/commit.ts"],"mappings":";;;;;;iBAciB,YAAY;;WAElB,QAAQ;;WAER,WAAW;;WAEX,wBAAwB;;WAExB,2BAA2B;;WAE3B,4BAA4B;;;;;;;;;;;;;;YAe3B;WACG;WAAmB,MAAM;;WACzB;WAAoB;WAAiC,MAAM;;WAE3D;WACA;WACA,MAAM;;WAGN;WACA;WACA,iBAAiB;;;YAIpB;WACG;WAAmB,SAAS;;WAE5B;WACA;WACA,SAAS;;WAGT;WACA;WACA,SAAS;;WAGT;WACA;WACA,iBAAiB;;;;;;;;;;wBAWhB,kBACd,MAAM,aACN,SAAS,uBACT,eAAe,8BACd,YAAY;;;;;;;wBA6BC,qBACd,MAAM,aACN,SAAS,0BACT,WAAW,6BACV,YAAY"}
|
package/dist/folders/commit.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { applyFoldersMove, foldersMovePlansEqual } from "./planner.js";
|
|
2
2
|
import { applyFoldersRemoval, foldersRemovalsEqual } from "./removal.js";
|
|
3
|
-
|
|
3
|
+
// src/folders/commit.ts
|
|
4
4
|
/**
|
|
5
5
|
* The one place a move plan turns into a write.
|
|
6
6
|
*
|
|
@@ -72,7 +72,6 @@ function commitFoldersRemoval(view, planned, confirmed) {
|
|
|
72
72
|
deletedTemplates: planned.removal.templates
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
|
-
//#endregion
|
|
76
75
|
export { commitFoldersMove, commitFoldersRemoval };
|
|
77
76
|
|
|
78
77
|
//# sourceMappingURL=commit.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commit.js","names":[],"sources":["../../src/folders/commit.ts"],"sourcesContent":["import type { ProjectId, TemplateId } from \"@milaboratories/pl-model-common\";\nimport type { FoldersDocument } from \"./document\";\nimport type {\n FoldersLabelRename,\n FoldersMoveIssue,\n FoldersMovePlan,\n FoldersMovePlanResult,\n} from \"./planner\";\nimport { applyFoldersMove, foldersMovePlansEqual } from \"./planner\";\nimport type { FoldersRemoval, FoldersRemovalIssue, FoldersRemovalPlanResult } from \"./removal\";\nimport { applyFoldersRemoval, foldersRemovalsEqual } from \"./removal\";\nimport type { FoldersView } from \"./view\";\n\n/** What one attempt of a folder write decided to do. */\nexport interface FoldersEdit<T> {\n /** Value handed back to the caller, whether or not anything is written. */\n readonly result: T;\n /** The document to persist. Absent means write nothing — a refused plan, or a no-op. */\n readonly document?: FoldersDocument;\n /** Project and template labels the edit changes; their names live in their own metadata. */\n readonly labelRenames?: readonly FoldersLabelRename[];\n /** Projects the edit destroys. A folder deletion is the only edit that sets this. */\n readonly deletedProjects?: readonly ProjectId[];\n /** Templates the edit destroys. A folder deletion is the only edit that sets this. */\n readonly deletedTemplates?: readonly TemplateId[];\n}\n\n/**\n * What a move did.\n *\n * `plan-changed` is the whole point of the confirm step: the plan was recomputed inside the write\n * transaction, it no longer matches the one the user confirmed, and nothing was written. The\n * fresh plan comes back to be confirmed again, so a confirmation dialog cannot lie about what an\n * item will end up called. `needs-confirmation` is the same guarantee reached from the other\n * side — a caller that supplied no plan at all for a move that renames something.\n *\n * All four cases have to be handled by whoever calls a move, which is why this type lives in this\n * package rather than in the node package.\n */\nexport type FoldersMoveOutcome =\n | { readonly ok: true; readonly plan: FoldersMovePlan }\n | { readonly ok: false; readonly reason: \"plan-changed\"; readonly plan: FoldersMovePlan }\n | {\n readonly ok: false;\n readonly reason: \"needs-confirmation\";\n readonly plan: FoldersMovePlan;\n }\n | {\n readonly ok: false;\n readonly reason: \"cannot-plan\";\n readonly issues: readonly FoldersMoveIssue[];\n };\n\n/** What a folder deletion did. */\nexport type FoldersRemovalOutcome =\n | { readonly ok: true; readonly removal: FoldersRemoval }\n | {\n readonly ok: false;\n readonly reason: \"plan-changed\";\n readonly removal: FoldersRemoval;\n }\n | {\n readonly ok: false;\n readonly reason: \"needs-confirmation\";\n readonly removal: FoldersRemoval;\n }\n | {\n readonly ok: false;\n readonly reason: \"cannot-plan\";\n readonly issues: readonly FoldersRemovalIssue[];\n };\n\n/**\n * The one place a move plan turns into a write.\n *\n * A move that renames nothing commits without a confirmed plan, because there is nothing to\n * confirm. A move that renames something needs one, and a confirmed plan must equal the plan\n * recomputed here, or nothing is written and the fresh plan goes back to be confirmed. A move of\n * nothing writes nothing.\n */\nexport function commitFoldersMove(\n view: FoldersView,\n planned: FoldersMovePlanResult,\n confirmedPlan: FoldersMovePlan | undefined,\n): FoldersEdit<FoldersMoveOutcome> {\n if (!planned.ok) return { result: { ok: false, reason: \"cannot-plan\", issues: planned.issues } };\n\n if (confirmedPlan !== undefined) {\n if (!foldersMovePlansEqual(planned.plan, confirmedPlan))\n return { result: { ok: false, reason: \"plan-changed\", plan: planned.plan } };\n } else if (planned.plan.entries.some((entry) => entry.renamed)) {\n return { result: { ok: false, reason: \"needs-confirmation\", plan: planned.plan } };\n }\n\n // A move of nothing changes nothing. Without this it still mints a value and re-points the\n // field, so an empty selection would conflict with whatever else is editing the tree and would\n // persist a heal nobody asked for.\n if (planned.plan.entries.length === 0) return { result: { ok: true, plan: planned.plan } };\n\n const applied = applyFoldersMove(view, planned.plan);\n return {\n result: { ok: true, plan: planned.plan },\n document: applied.document,\n labelRenames: applied.labelRenames,\n };\n}\n\n/**\n * The one place a removal turns into a write.\n *\n * A deletion always needs a confirmed removal, however little it destroys: unlike a move, it has\n * no harmless outcome to fall back on.\n */\nexport function commitFoldersRemoval(\n view: FoldersView,\n planned: FoldersRemovalPlanResult,\n confirmed: FoldersRemoval | undefined,\n): FoldersEdit<FoldersRemovalOutcome> {\n if (!planned.ok) return { result: { ok: false, reason: \"cannot-plan\", issues: planned.issues } };\n\n if (confirmed === undefined)\n return { result: { ok: false, reason: \"needs-confirmation\", removal: planned.removal } };\n\n if (!foldersRemovalsEqual(planned.removal, confirmed))\n return { result: { ok: false, reason: \"plan-changed\", removal: planned.removal } };\n\n return {\n result: { ok: true, removal: planned.removal },\n document: applyFoldersRemoval(view, planned.removal),\n deletedProjects: planned.removal.projects,\n deletedTemplates: planned.removal.templates,\n };\n}\n"],"mappings":";;;;;;;;;;;AAgFA,SAAgB,kBACd,MACA,SACA,eACiC;CACjC,IAAI,CAAC,QAAQ,IAAI,OAAO,EAAE,QAAQ;EAAE,IAAI;EAAO,QAAQ;EAAe,QAAQ,QAAQ;CAAO,EAAE;CAE/F,IAAI,kBAAkB,KAAA;
|
|
1
|
+
{"version":3,"file":"commit.js","names":[],"sources":["../../src/folders/commit.ts"],"sourcesContent":["import type { ProjectId, TemplateId } from \"@milaboratories/pl-model-common\";\nimport type { FoldersDocument } from \"./document\";\nimport type {\n FoldersLabelRename,\n FoldersMoveIssue,\n FoldersMovePlan,\n FoldersMovePlanResult,\n} from \"./planner\";\nimport { applyFoldersMove, foldersMovePlansEqual } from \"./planner\";\nimport type { FoldersRemoval, FoldersRemovalIssue, FoldersRemovalPlanResult } from \"./removal\";\nimport { applyFoldersRemoval, foldersRemovalsEqual } from \"./removal\";\nimport type { FoldersView } from \"./view\";\n\n/** What one attempt of a folder write decided to do. */\nexport interface FoldersEdit<T> {\n /** Value handed back to the caller, whether or not anything is written. */\n readonly result: T;\n /** The document to persist. Absent means write nothing — a refused plan, or a no-op. */\n readonly document?: FoldersDocument;\n /** Project and template labels the edit changes; their names live in their own metadata. */\n readonly labelRenames?: readonly FoldersLabelRename[];\n /** Projects the edit destroys. A folder deletion is the only edit that sets this. */\n readonly deletedProjects?: readonly ProjectId[];\n /** Templates the edit destroys. A folder deletion is the only edit that sets this. */\n readonly deletedTemplates?: readonly TemplateId[];\n}\n\n/**\n * What a move did.\n *\n * `plan-changed` is the whole point of the confirm step: the plan was recomputed inside the write\n * transaction, it no longer matches the one the user confirmed, and nothing was written. The\n * fresh plan comes back to be confirmed again, so a confirmation dialog cannot lie about what an\n * item will end up called. `needs-confirmation` is the same guarantee reached from the other\n * side — a caller that supplied no plan at all for a move that renames something.\n *\n * All four cases have to be handled by whoever calls a move, which is why this type lives in this\n * package rather than in the node package.\n */\nexport type FoldersMoveOutcome =\n | { readonly ok: true; readonly plan: FoldersMovePlan }\n | { readonly ok: false; readonly reason: \"plan-changed\"; readonly plan: FoldersMovePlan }\n | {\n readonly ok: false;\n readonly reason: \"needs-confirmation\";\n readonly plan: FoldersMovePlan;\n }\n | {\n readonly ok: false;\n readonly reason: \"cannot-plan\";\n readonly issues: readonly FoldersMoveIssue[];\n };\n\n/** What a folder deletion did. */\nexport type FoldersRemovalOutcome =\n | { readonly ok: true; readonly removal: FoldersRemoval }\n | {\n readonly ok: false;\n readonly reason: \"plan-changed\";\n readonly removal: FoldersRemoval;\n }\n | {\n readonly ok: false;\n readonly reason: \"needs-confirmation\";\n readonly removal: FoldersRemoval;\n }\n | {\n readonly ok: false;\n readonly reason: \"cannot-plan\";\n readonly issues: readonly FoldersRemovalIssue[];\n };\n\n/**\n * The one place a move plan turns into a write.\n *\n * A move that renames nothing commits without a confirmed plan, because there is nothing to\n * confirm. A move that renames something needs one, and a confirmed plan must equal the plan\n * recomputed here, or nothing is written and the fresh plan goes back to be confirmed. A move of\n * nothing writes nothing.\n */\nexport function commitFoldersMove(\n view: FoldersView,\n planned: FoldersMovePlanResult,\n confirmedPlan: FoldersMovePlan | undefined,\n): FoldersEdit<FoldersMoveOutcome> {\n if (!planned.ok) return { result: { ok: false, reason: \"cannot-plan\", issues: planned.issues } };\n\n if (confirmedPlan !== undefined) {\n if (!foldersMovePlansEqual(planned.plan, confirmedPlan))\n return { result: { ok: false, reason: \"plan-changed\", plan: planned.plan } };\n } else if (planned.plan.entries.some((entry) => entry.renamed)) {\n return { result: { ok: false, reason: \"needs-confirmation\", plan: planned.plan } };\n }\n\n // A move of nothing changes nothing. Without this it still mints a value and re-points the\n // field, so an empty selection would conflict with whatever else is editing the tree and would\n // persist a heal nobody asked for.\n if (planned.plan.entries.length === 0) return { result: { ok: true, plan: planned.plan } };\n\n const applied = applyFoldersMove(view, planned.plan);\n return {\n result: { ok: true, plan: planned.plan },\n document: applied.document,\n labelRenames: applied.labelRenames,\n };\n}\n\n/**\n * The one place a removal turns into a write.\n *\n * A deletion always needs a confirmed removal, however little it destroys: unlike a move, it has\n * no harmless outcome to fall back on.\n */\nexport function commitFoldersRemoval(\n view: FoldersView,\n planned: FoldersRemovalPlanResult,\n confirmed: FoldersRemoval | undefined,\n): FoldersEdit<FoldersRemovalOutcome> {\n if (!planned.ok) return { result: { ok: false, reason: \"cannot-plan\", issues: planned.issues } };\n\n if (confirmed === undefined)\n return { result: { ok: false, reason: \"needs-confirmation\", removal: planned.removal } };\n\n if (!foldersRemovalsEqual(planned.removal, confirmed))\n return { result: { ok: false, reason: \"plan-changed\", removal: planned.removal } };\n\n return {\n result: { ok: true, removal: planned.removal },\n document: applyFoldersRemoval(view, planned.removal),\n deletedProjects: planned.removal.projects,\n deletedTemplates: planned.removal.templates,\n };\n}\n"],"mappings":";;;;;;;;;;;AAgFA,SAAgB,kBACd,MACA,SACA,eACiC;CACjC,IAAI,CAAC,QAAQ,IAAI,OAAO,EAAE,QAAQ;EAAE,IAAI;EAAO,QAAQ;EAAe,QAAQ,QAAQ;CAAO,EAAE;CAE/F,IAAI,kBAAkB,KAAA,GAChB;MAAA,CAAC,sBAAsB,QAAQ,MAAM,aAAa,GACpD,OAAO,EAAE,QAAQ;GAAE,IAAI;GAAO,QAAQ;GAAgB,MAAM,QAAQ;EAAK,EAAE;CAAA,OACxE,IAAI,QAAQ,KAAK,QAAQ,MAAM,UAAU,MAAM,OAAO,GAC3D,OAAO,EAAE,QAAQ;EAAE,IAAI;EAAO,QAAQ;EAAsB,MAAM,QAAQ;CAAK,EAAE;CAMnF,IAAI,QAAQ,KAAK,QAAQ,WAAW,GAAG,OAAO,EAAE,QAAQ;EAAE,IAAI;EAAM,MAAM,QAAQ;CAAK,EAAE;CAEzF,MAAM,UAAU,iBAAiB,MAAM,QAAQ,IAAI;CACnD,OAAO;EACL,QAAQ;GAAE,IAAI;GAAM,MAAM,QAAQ;EAAK;EACvC,UAAU,QAAQ;EAClB,cAAc,QAAQ;CACxB;AACF;;;;;;;AAQA,SAAgB,qBACd,MACA,SACA,WACoC;CACpC,IAAI,CAAC,QAAQ,IAAI,OAAO,EAAE,QAAQ;EAAE,IAAI;EAAO,QAAQ;EAAe,QAAQ,QAAQ;CAAO,EAAE;CAE/F,IAAI,cAAc,KAAA,GAChB,OAAO,EAAE,QAAQ;EAAE,IAAI;EAAO,QAAQ;EAAsB,SAAS,QAAQ;CAAQ,EAAE;CAEzF,IAAI,CAAC,qBAAqB,QAAQ,SAAS,SAAS,GAClD,OAAO,EAAE,QAAQ;EAAE,IAAI;EAAO,QAAQ;EAAgB,SAAS,QAAQ;CAAQ,EAAE;CAEnF,OAAO;EACL,QAAQ;GAAE,IAAI;GAAM,SAAS,QAAQ;EAAQ;EAC7C,UAAU,oBAAoB,MAAM,QAAQ,OAAO;EACnD,iBAAiB,QAAQ,QAAQ;EACjC,kBAAkB,QAAQ,QAAQ;CACpC;AACF"}
|
package/dist/folders/decode.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_document = require("./document.cjs");
|
|
2
|
-
|
|
2
|
+
// src/folders/decode.ts
|
|
3
3
|
/**
|
|
4
4
|
* Decode whatever the store holds for the folder document.
|
|
5
5
|
*
|
|
@@ -71,7 +71,6 @@ function formatIssue(issue) {
|
|
|
71
71
|
function errorText(error) {
|
|
72
72
|
return error instanceof Error ? error.message : String(error);
|
|
73
73
|
}
|
|
74
|
-
//#endregion
|
|
75
74
|
exports.decodeFoldersDocument = decodeFoldersDocument;
|
|
76
75
|
exports.decodeStoredFoldersDocument = decodeStoredFoldersDocument;
|
|
77
76
|
exports.encodeFoldersDocument = encodeFoldersDocument;
|
package/dist/folders/decode.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FoldersDocument } from "./document.js";
|
|
2
|
-
//#region src/folders/decode.d.ts
|
|
3
2
|
/** Why a stored document could not be read as it stands. */
|
|
4
3
|
export type FoldersDocumentProblem = {
|
|
5
4
|
readonly kind: "newer-schema";
|
|
@@ -53,5 +52,4 @@ export declare function decodeStoredFoldersDocument(stored: FoldersStoredDocumen
|
|
|
53
52
|
export declare function decodeFoldersDocument(raw: string): FoldersDecoded;
|
|
54
53
|
/** Serialise a document for storage. */
|
|
55
54
|
export declare function encodeFoldersDocument(document: FoldersDocument): string;
|
|
56
|
-
//#endregion
|
|
57
55
|
//# sourceMappingURL=decode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decode.d.ts","names":[],"sources":["../../src/folders/decode.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"decode.d.ts","names":[],"sources":["../../src/folders/decode.ts"],"mappings":";;YAGY;WAEG;;WAEA;WACA;;WAGA;WACA;;;;;;;;;;YAWH;WAEG,UAAU;WACV;WACA;;WAGA,UAAU;;WAEV;WACA,SAAS;;;;;;YAOZ;WACG;;WAEA;;WAEA;;;;;;;;;;;wBAYC,4BAA4B,QAAQ,wBAAwB;;wBAQ5D,sBAAsB,cAAc;;wBAYpC,sBAAsB,UAAU"}
|
package/dist/folders/decode.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FoldersDocument, emptyFoldersDocument } from "./document.js";
|
|
2
|
-
|
|
2
|
+
// src/folders/decode.ts
|
|
3
3
|
/**
|
|
4
4
|
* Decode whatever the store holds for the folder document.
|
|
5
5
|
*
|
|
@@ -71,7 +71,6 @@ function formatIssue(issue) {
|
|
|
71
71
|
function errorText(error) {
|
|
72
72
|
return error instanceof Error ? error.message : String(error);
|
|
73
73
|
}
|
|
74
|
-
//#endregion
|
|
75
74
|
export { decodeFoldersDocument, decodeStoredFoldersDocument, encodeFoldersDocument };
|
|
76
75
|
|
|
77
76
|
//# sourceMappingURL=decode.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
let zod = require("zod");
|
|
2
|
-
|
|
2
|
+
// src/folders/document.ts
|
|
3
3
|
/**
|
|
4
4
|
* Schema version this build writes and fully understands.
|
|
5
5
|
*
|
|
@@ -39,7 +39,6 @@ function emptyFoldersDocument() {
|
|
|
39
39
|
function folderId() {
|
|
40
40
|
return zod.z.string().min(1).transform(asFolderId);
|
|
41
41
|
}
|
|
42
|
-
//#endregion
|
|
43
42
|
exports.FOLDERS_SCHEMA_VERSION = FOLDERS_SCHEMA_VERSION;
|
|
44
43
|
exports.FolderEntry = FolderEntry;
|
|
45
44
|
exports.FoldersDocument = FoldersDocument;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { Branded } from "@milaboratories/pl-model-common";
|
|
3
|
-
//#region src/folders/document.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Schema version this build writes and fully understands.
|
|
6
5
|
*
|
|
@@ -52,5 +51,4 @@ export interface FoldersDocument {
|
|
|
52
51
|
export declare const FoldersDocument: z.ZodType<FoldersDocument, z.ZodTypeDef, unknown>;
|
|
53
52
|
/** The document of a user who has never made a folder. */
|
|
54
53
|
export declare function emptyFoldersDocument(): FoldersDocument;
|
|
55
|
-
//#endregion
|
|
56
54
|
//# sourceMappingURL=document.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document.d.ts","names":[],"sources":["../../src/folders/document.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"document.d.ts","names":[],"sources":["../../src/folders/document.ts"],"mappings":";;;;;;;;qBASa;;YAGD,WAAW;;wBAGP,WAAW,aAAa;;;;;;;;iBAWvB;WACN,IAAI;WACJ;;WAEA,SAAS;;WAET;;qBAGE,aAAa,EAAE,QAAQ,aAAa,EAAE;;;;;;;;;;;;;;iBAsBlC;WACN,sBAAsB;WACtB,kBAAkB;;WAElB,aAAa,SAAS,eAAe;;WAErC,qBAAqB,SAAS,eAAe;;qBAG3C,iBAAiB,EAAE,QAAQ,iBAAiB,EAAE;;wBAU3C,wBAAwB"}
|
package/dist/folders/document.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
|
|
2
|
+
// src/folders/document.ts
|
|
3
3
|
/**
|
|
4
4
|
* Schema version this build writes and fully understands.
|
|
5
5
|
*
|
|
@@ -39,7 +39,6 @@ function emptyFoldersDocument() {
|
|
|
39
39
|
function folderId() {
|
|
40
40
|
return z.string().min(1).transform(asFolderId);
|
|
41
41
|
}
|
|
42
|
-
//#endregion
|
|
43
42
|
export { FOLDERS_SCHEMA_VERSION, FolderEntry, FoldersDocument, asFolderId, emptyFoldersDocument };
|
|
44
43
|
|
|
45
44
|
//# sourceMappingURL=document.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_view = require("./view.cjs");
|
|
2
2
|
const require_naming = require("./naming.cjs");
|
|
3
|
-
|
|
3
|
+
// src/folders/inheritance.ts
|
|
4
4
|
/**
|
|
5
5
|
* The folder a newly created item should land in, given the project it was made from.
|
|
6
6
|
*
|
|
@@ -15,9 +15,9 @@ const require_naming = require("./naming.cjs");
|
|
|
15
15
|
function inheritedFolder(view, source, created, name) {
|
|
16
16
|
const folder = view.projects.find((candidate) => candidate.id === source)?.folder;
|
|
17
17
|
if (folder === void 0) return void 0;
|
|
18
|
-
|
|
18
|
+
const siblings = require_view.foldersSiblingNames(view, folder, [created.id], { kind: created.kind });
|
|
19
|
+
return require_naming.foldersNameTaken(name, siblings) ? void 0 : folder;
|
|
19
20
|
}
|
|
20
|
-
//#endregion
|
|
21
21
|
exports.inheritedFolder = inheritedFolder;
|
|
22
22
|
|
|
23
23
|
//# sourceMappingURL=inheritance.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inheritance.cjs","names":["
|
|
1
|
+
{"version":3,"file":"inheritance.cjs","names":["foldersSiblingNames","foldersNameTaken"],"sources":["../../src/folders/inheritance.ts"],"sourcesContent":["import type { ProjectId } from \"@milaboratories/pl-model-common\";\nimport type { FolderId } from \"./document\";\nimport { foldersNameTaken } from \"./naming\";\nimport type { FoldersLeafItem } from \"./planner\";\nimport type { FoldersView } from \"./view\";\nimport { foldersSiblingNames } from \"./view\";\n\n/**\n * The folder a newly created item should land in, given the project it was made from.\n *\n * A copy of a project, and a template taken from one, belong beside their source; landing at the\n * top level reads as the app having lost them. `undefined` means leave it at the top level:\n *\n * - the source is itself at the top level, or is no longer in the tree at all;\n * - an item of the created one's kind already carries the name where the source sits. The\n * creating caller chose that name, so suffixing it here would disagree with what it reported,\n * and refusing the whole creation over a placement would be the worse trade.\n */\nexport function inheritedFolder(\n view: FoldersView,\n source: ProjectId,\n created: FoldersLeafItem,\n name: string,\n): FolderId | undefined {\n const folder = view.projects.find((candidate) => candidate.id === source)?.folder;\n if (folder === undefined) return undefined;\n\n // Scoped to the destination and to the created item's kind, because the rule is: names are\n // unique among one kind within a parent, never globally. The item being created is left out in\n // case the view already lists it.\n const siblings = foldersSiblingNames(view, folder, [created.id], { kind: created.kind });\n return foldersNameTaken(name, siblings) ? undefined : folder;\n}\n"],"mappings":";;;;;;;;;;;;;;AAkBA,SAAgB,gBACd,MACA,QACA,SACA,MACsB;CACtB,MAAM,SAAS,KAAK,SAAS,MAAM,cAAc,UAAU,OAAO,MAAM,CAAC,EAAE;CAC3E,IAAI,WAAW,KAAA,GAAW,OAAO,KAAA;CAKjC,MAAM,WAAWA,aAAAA,oBAAoB,MAAM,QAAQ,CAAC,QAAQ,EAAE,GAAG,EAAE,MAAM,QAAQ,KAAK,CAAC;CACvF,OAAOC,eAAAA,iBAAiB,MAAM,QAAQ,IAAI,KAAA,IAAY;AACxD"}
|
|
@@ -2,7 +2,6 @@ import { FolderId } from "./document.js";
|
|
|
2
2
|
import { FoldersLeafItem } from "./planner.js";
|
|
3
3
|
import { FoldersView } from "./view.js";
|
|
4
4
|
import { ProjectId } from "@milaboratories/pl-model-common";
|
|
5
|
-
//#region src/folders/inheritance.d.ts
|
|
6
5
|
/**
|
|
7
6
|
* The folder a newly created item should land in, given the project it was made from.
|
|
8
7
|
*
|
|
@@ -15,5 +14,4 @@ import { ProjectId } from "@milaboratories/pl-model-common";
|
|
|
15
14
|
* and refusing the whole creation over a placement would be the worse trade.
|
|
16
15
|
*/
|
|
17
16
|
export declare function inheritedFolder(view: FoldersView, source: ProjectId, created: FoldersLeafItem, name: string): FolderId | undefined;
|
|
18
|
-
//#endregion
|
|
19
17
|
//# sourceMappingURL=inheritance.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inheritance.d.ts","names":[],"sources":["../../src/folders/inheritance.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"inheritance.d.ts","names":[],"sources":["../../src/folders/inheritance.ts"],"mappings":";;;;;;;;;;;;;;;wBAkBgB,gBACd,MAAM,aACN,QAAQ,WACR,SAAS,iBACT,eACC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { foldersSiblingNames } from "./view.js";
|
|
2
2
|
import { foldersNameTaken } from "./naming.js";
|
|
3
|
-
|
|
3
|
+
// src/folders/inheritance.ts
|
|
4
4
|
/**
|
|
5
5
|
* The folder a newly created item should land in, given the project it was made from.
|
|
6
6
|
*
|
|
@@ -15,9 +15,9 @@ import { foldersNameTaken } from "./naming.js";
|
|
|
15
15
|
function inheritedFolder(view, source, created, name) {
|
|
16
16
|
const folder = view.projects.find((candidate) => candidate.id === source)?.folder;
|
|
17
17
|
if (folder === void 0) return void 0;
|
|
18
|
-
|
|
18
|
+
const siblings = foldersSiblingNames(view, folder, [created.id], { kind: created.kind });
|
|
19
|
+
return foldersNameTaken(name, siblings) ? void 0 : folder;
|
|
19
20
|
}
|
|
20
|
-
//#endregion
|
|
21
21
|
export { inheritedFolder };
|
|
22
22
|
|
|
23
23
|
//# sourceMappingURL=inheritance.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inheritance.js","names":[],"sources":["../../src/folders/inheritance.ts"],"sourcesContent":["import type { ProjectId } from \"@milaboratories/pl-model-common\";\nimport type { FolderId } from \"./document\";\nimport { foldersNameTaken } from \"./naming\";\nimport type { FoldersLeafItem } from \"./planner\";\nimport type { FoldersView } from \"./view\";\nimport { foldersSiblingNames } from \"./view\";\n\n/**\n * The folder a newly created item should land in, given the project it was made from.\n *\n * A copy of a project, and a template taken from one, belong beside their source; landing at the\n * top level reads as the app having lost them. `undefined` means leave it at the top level:\n *\n * - the source is itself at the top level, or is no longer in the tree at all;\n * - an item of the created one's kind already carries the name where the source sits. The\n * creating caller chose that name, so suffixing it here would disagree with what it reported,\n * and refusing the whole creation over a placement would be the worse trade.\n */\nexport function inheritedFolder(\n view: FoldersView,\n source: ProjectId,\n created: FoldersLeafItem,\n name: string,\n): FolderId | undefined {\n const folder = view.projects.find((candidate) => candidate.id === source)?.folder;\n if (folder === undefined) return undefined;\n\n // Scoped to the destination and to the created item's kind, because the rule is: names are\n // unique among one kind within a parent, never globally. The item being created is left out in\n // case the view already lists it.\n const siblings = foldersSiblingNames(view, folder, [created.id], { kind: created.kind });\n return foldersNameTaken(name, siblings) ? undefined : folder;\n}\n"],"mappings":";;;;;;;;;;;;;;AAkBA,SAAgB,gBACd,MACA,QACA,SACA,MACsB;CACtB,MAAM,SAAS,KAAK,SAAS,MAAM,cAAc,UAAU,OAAO,MAAM,CAAC,EAAE;CAC3E,IAAI,WAAW,KAAA,GAAW,OAAO,KAAA;
|
|
1
|
+
{"version":3,"file":"inheritance.js","names":[],"sources":["../../src/folders/inheritance.ts"],"sourcesContent":["import type { ProjectId } from \"@milaboratories/pl-model-common\";\nimport type { FolderId } from \"./document\";\nimport { foldersNameTaken } from \"./naming\";\nimport type { FoldersLeafItem } from \"./planner\";\nimport type { FoldersView } from \"./view\";\nimport { foldersSiblingNames } from \"./view\";\n\n/**\n * The folder a newly created item should land in, given the project it was made from.\n *\n * A copy of a project, and a template taken from one, belong beside their source; landing at the\n * top level reads as the app having lost them. `undefined` means leave it at the top level:\n *\n * - the source is itself at the top level, or is no longer in the tree at all;\n * - an item of the created one's kind already carries the name where the source sits. The\n * creating caller chose that name, so suffixing it here would disagree with what it reported,\n * and refusing the whole creation over a placement would be the worse trade.\n */\nexport function inheritedFolder(\n view: FoldersView,\n source: ProjectId,\n created: FoldersLeafItem,\n name: string,\n): FolderId | undefined {\n const folder = view.projects.find((candidate) => candidate.id === source)?.folder;\n if (folder === undefined) return undefined;\n\n // Scoped to the destination and to the created item's kind, because the rule is: names are\n // unique among one kind within a parent, never globally. The item being created is left out in\n // case the view already lists it.\n const siblings = foldersSiblingNames(view, folder, [created.id], { kind: created.kind });\n return foldersNameTaken(name, siblings) ? undefined : folder;\n}\n"],"mappings":";;;;;;;;;;;;;;AAkBA,SAAgB,gBACd,MACA,QACA,SACA,MACsB;CACtB,MAAM,SAAS,KAAK,SAAS,MAAM,cAAc,UAAU,OAAO,MAAM,CAAC,EAAE;CAC3E,IAAI,WAAW,KAAA,GAAW,OAAO,KAAA;CAKjC,MAAM,WAAW,oBAAoB,MAAM,QAAQ,CAAC,QAAQ,EAAE,GAAG,EAAE,MAAM,QAAQ,KAAK,CAAC;CACvF,OAAO,iBAAiB,MAAM,QAAQ,IAAI,KAAA,IAAY;AACxD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_naming = require("./naming.cjs");
|
|
2
2
|
let _milaboratories_pl_model_common = require("@milaboratories/pl-model-common");
|
|
3
|
-
|
|
3
|
+
// src/folders/invariants.ts
|
|
4
4
|
/**
|
|
5
5
|
* Everything wrong with a document, in one pass.
|
|
6
6
|
*
|
|
@@ -108,7 +108,6 @@ function onCycle(id, byId) {
|
|
|
108
108
|
}
|
|
109
109
|
return false;
|
|
110
110
|
}
|
|
111
|
-
//#endregion
|
|
112
111
|
exports.formatFoldersViolation = formatFoldersViolation;
|
|
113
112
|
exports.validateFoldersDocument = validateFoldersDocument;
|
|
114
113
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invariants.cjs","names":["foldersNameBlank","foldersNameTaken"],"sources":["../../src/folders/invariants.ts"],"sourcesContent":["import type { ProjectId, TemplateId } from \"@milaboratories/pl-model-common\";\nimport { asProjectId, asTemplateId } from \"@milaboratories/pl-model-common\";\nimport type { FoldersDocument, FolderId } from \"./document\";\nimport { foldersNameBlank, foldersNameTaken } from \"./naming\";\nimport type { FoldersItem } from \"./planner\";\nimport type { FoldersProjectInput, FoldersTemplateInput } from \"./view\";\n\n/** One way a document breaks the rules the write path enforces. */\nexport type FoldersViolation =\n | { readonly kind: \"duplicate-folder-id\"; readonly folder: FolderId }\n | { readonly kind: \"empty-folder-name\"; readonly folder: FolderId }\n | {\n readonly kind: \"missing-parent\";\n readonly folder: FolderId;\n readonly parent: FolderId;\n }\n | { readonly kind: \"cycle\"; readonly folder: FolderId }\n | {\n readonly kind: \"duplicate-name\";\n /** Which kind of item the name is used twice among. */\n readonly item: FoldersItem[\"kind\"];\n readonly parent?: FolderId;\n readonly name: string;\n }\n | {\n readonly kind: \"unknown-assignment-folder\";\n readonly project: ProjectId;\n readonly folder: FolderId;\n }\n | {\n readonly kind: \"unknown-template-assignment-folder\";\n readonly template: TemplateId;\n readonly folder: FolderId;\n };\n\n/**\n * Everything wrong with a document, in one pass.\n *\n * This is the write path's check: a read heals the same problems instead of reporting them, but a\n * write that would persist any of them is refused, because a document no reader can render as\n * stored is a document someone has to repair by hand.\n *\n * Project and template names are optional. Without them only folder names can be checked for\n * duplicates, so a write path that can supply them should. The template list also tells an assignment for a template that is gone — which a read\n * prunes — from one naming a folder that does not exist, which is a broken document.\n */\nexport function validateFoldersDocument(\n document: FoldersDocument,\n projects?: readonly FoldersProjectInput[],\n templates?: readonly FoldersTemplateInput[],\n): readonly FoldersViolation[] {\n const violations: FoldersViolation[] = [];\n\n const byId = new Map<FolderId, { name: string; parent?: FolderId }>();\n for (const folder of document.folders) {\n if (byId.has(folder.id)) {\n violations.push({ kind: \"duplicate-folder-id\", folder: folder.id });\n continue;\n }\n if (foldersNameBlank(folder.name))\n violations.push({ kind: \"empty-folder-name\", folder: folder.id });\n byId.set(folder.id, { name: folder.name, parent: folder.parent });\n }\n\n for (const [id, folder] of byId) {\n if (folder.parent !== undefined && !byId.has(folder.parent)) {\n violations.push({ kind: \"missing-parent\", folder: id, parent: folder.parent });\n continue;\n }\n\n if (onCycle(id, byId)) violations.push({ kind: \"cycle\", folder: id });\n }\n\n // The comparison is the naming rule's, not a second one written here: a document is invalid in\n // exactly the cases the rule would have refused, or the write path and the checker would drift.\n // Each kind of item has a namespace of its own inside a parent.\n const namesByParent = new Map<string, string[]>();\n const claim = (item: FoldersItem[\"kind\"], parent: FolderId | undefined, name: string) => {\n const key = `${item}:${parent ?? \"\"}`;\n const names = namesByParent.get(key) ?? [];\n namesByParent.set(key, names);\n if (foldersNameTaken(name, names))\n violations.push({ kind: \"duplicate-name\", item, parent, name });\n names.push(name);\n };\n\n for (const folder of byId.values()) claim(\"folder\", folder.parent, folder.name);\n\n const knownProjects = new Set<string>((projects ?? []).map((project) => project.id));\n for (const project of projects ?? []) {\n const parent = document.assignments[project.id];\n if (parent === undefined || byId.has(parent)) claim(\"project\", parent, project.name);\n }\n\n for (const [project, folder] of Object.entries(document.assignments))\n if (!byId.has(folder) && (projects === undefined || knownProjects.has(project)))\n violations.push({\n kind: \"unknown-assignment-folder\",\n project: asProjectId(project),\n folder,\n });\n\n for (const template of templates ?? []) {\n const parent = document.templateAssignments[template.id];\n if (parent === undefined || byId.has(parent)) claim(\"template\", parent, template.name);\n }\n\n const knownTemplates = new Set<string>((templates ?? []).map((template) => template.id));\n for (const [template, folder] of Object.entries(document.templateAssignments))\n if (!byId.has(folder) && (templates === undefined || knownTemplates.has(template)))\n violations.push({\n kind: \"unknown-template-assignment-folder\",\n template: asTemplateId(template),\n folder,\n });\n\n return violations;\n}\n\n/** A one-line description of a violation, for an error a user or a log will read. */\nexport function formatFoldersViolation(violation: FoldersViolation): string {\n switch (violation.kind) {\n case \"duplicate-folder-id\":\n return `folder id ${violation.folder} appears more than once`;\n case \"empty-folder-name\":\n return `folder ${violation.folder} has an empty name`;\n case \"missing-parent\":\n return `folder ${violation.folder} names a parent that does not exist (${violation.parent})`;\n case \"cycle\":\n return `folder ${violation.folder} sits in a cycle of parents`;\n case \"duplicate-name\":\n return violation.parent === undefined\n ? `the ${violation.item} name \"${violation.name}\" is used more than once at the top level`\n : `the ${violation.item} name \"${violation.name}\" is used more than once inside folder ${violation.parent}`;\n case \"unknown-assignment-folder\":\n return `project ${violation.project} is assigned to a folder that does not exist (${violation.folder})`;\n case \"unknown-template-assignment-folder\":\n return `template ${violation.template} is assigned to a folder that does not exist (${violation.folder})`;\n }\n}\n\n//\n// Internals\n//\n\n/**\n * True when following parents from this folder leads back to it. A folder that merely hangs below\n * a cycle is not on it.\n */\nfunction onCycle(id: FolderId, byId: ReadonlyMap<FolderId, { parent?: FolderId }>): boolean {\n const seen = new Set<FolderId>();\n let current = byId.get(id)?.parent;\n while (current !== undefined && !seen.has(current)) {\n if (current === id) return true;\n seen.add(current);\n current = byId.get(current)?.parent;\n }\n return false;\n}\n"],"mappings":";;;;;;;;;;;;;;AA8CA,SAAgB,wBACd,UACA,UACA,WAC6B;CAC7B,MAAM,aAAiC,CAAC;CAExC,MAAM,uBAAO,IAAI,IAAmD;CACpE,KAAK,MAAM,UAAU,SAAS,SAAS;EACrC,IAAI,KAAK,IAAI,OAAO,EAAE,GAAG;GACvB,WAAW,KAAK;IAAE,MAAM;IAAuB,QAAQ,OAAO;GAAG,CAAC;GAClE;EACF;EACA,IAAIA,eAAAA,iBAAiB,OAAO,IAAI,GAC9B,WAAW,KAAK;GAAE,MAAM;GAAqB,QAAQ,OAAO;EAAG,CAAC;EAClE,KAAK,IAAI,OAAO,IAAI;GAAE,MAAM,OAAO;GAAM,QAAQ,OAAO;EAAO,CAAC;CAClE;CAEA,KAAK,MAAM,CAAC,IAAI,WAAW,MAAM;EAC/B,IAAI,OAAO,WAAW,KAAA,KAAa,CAAC,KAAK,IAAI,OAAO,MAAM,GAAG;GAC3D,WAAW,KAAK;IAAE,MAAM;IAAkB,QAAQ;IAAI,QAAQ,OAAO;GAAO,CAAC;GAC7E;EACF;EAEA,IAAI,QAAQ,IAAI,IAAI,GAAG,WAAW,KAAK;GAAE,MAAM;GAAS,QAAQ;EAAG,CAAC;CACtE;CAKA,MAAM,gCAAgB,IAAI,IAAsB;CAChD,MAAM,SAAS,MAA2B,QAA8B,SAAiB;EACvF,MAAM,MAAM,GAAG,KAAK,GAAG,UAAU;EACjC,MAAM,QAAQ,cAAc,IAAI,GAAG,KAAK,CAAC;EACzC,cAAc,IAAI,KAAK,KAAK;EAC5B,IAAIC,eAAAA,iBAAiB,MAAM,KAAK,GAC9B,WAAW,KAAK;GAAE,MAAM;GAAkB;GAAM;GAAQ;EAAK,CAAC;EAChE,MAAM,KAAK,IAAI;CACjB;CAEA,KAAK,MAAM,UAAU,KAAK,OAAO,GAAG,MAAM,UAAU,OAAO,QAAQ,OAAO,IAAI;CAE9E,MAAM,gBAAgB,IAAI,KAAa,YAAY,CAAC,EAAA,CAAG,KAAK,YAAY,QAAQ,EAAE,CAAC;CACnF,KAAK,MAAM,WAAW,YAAY,CAAC,GAAG;EACpC,MAAM,SAAS,SAAS,YAAY,QAAQ;EAC5C,IAAI,WAAW,KAAA,KAAa,KAAK,IAAI,MAAM,GAAG,MAAM,WAAW,QAAQ,QAAQ,IAAI;CACrF;CAEA,KAAK,MAAM,CAAC,SAAS,WAAW,OAAO,QAAQ,SAAS,WAAW,GACjE,IAAI,CAAC,KAAK,IAAI,MAAM,MAAM,aAAa,KAAA,KAAa,cAAc,IAAI,OAAO,IAC3E,WAAW,KAAK;EACd,MAAM;EACN,UAAA,
|
|
1
|
+
{"version":3,"file":"invariants.cjs","names":["foldersNameBlank","foldersNameTaken","asProjectId","asTemplateId"],"sources":["../../src/folders/invariants.ts"],"sourcesContent":["import type { ProjectId, TemplateId } from \"@milaboratories/pl-model-common\";\nimport { asProjectId, asTemplateId } from \"@milaboratories/pl-model-common\";\nimport type { FoldersDocument, FolderId } from \"./document\";\nimport { foldersNameBlank, foldersNameTaken } from \"./naming\";\nimport type { FoldersItem } from \"./planner\";\nimport type { FoldersProjectInput, FoldersTemplateInput } from \"./view\";\n\n/** One way a document breaks the rules the write path enforces. */\nexport type FoldersViolation =\n | { readonly kind: \"duplicate-folder-id\"; readonly folder: FolderId }\n | { readonly kind: \"empty-folder-name\"; readonly folder: FolderId }\n | {\n readonly kind: \"missing-parent\";\n readonly folder: FolderId;\n readonly parent: FolderId;\n }\n | { readonly kind: \"cycle\"; readonly folder: FolderId }\n | {\n readonly kind: \"duplicate-name\";\n /** Which kind of item the name is used twice among. */\n readonly item: FoldersItem[\"kind\"];\n readonly parent?: FolderId;\n readonly name: string;\n }\n | {\n readonly kind: \"unknown-assignment-folder\";\n readonly project: ProjectId;\n readonly folder: FolderId;\n }\n | {\n readonly kind: \"unknown-template-assignment-folder\";\n readonly template: TemplateId;\n readonly folder: FolderId;\n };\n\n/**\n * Everything wrong with a document, in one pass.\n *\n * This is the write path's check: a read heals the same problems instead of reporting them, but a\n * write that would persist any of them is refused, because a document no reader can render as\n * stored is a document someone has to repair by hand.\n *\n * Project and template names are optional. Without them only folder names can be checked for\n * duplicates, so a write path that can supply them should. The template list also tells an assignment for a template that is gone — which a read\n * prunes — from one naming a folder that does not exist, which is a broken document.\n */\nexport function validateFoldersDocument(\n document: FoldersDocument,\n projects?: readonly FoldersProjectInput[],\n templates?: readonly FoldersTemplateInput[],\n): readonly FoldersViolation[] {\n const violations: FoldersViolation[] = [];\n\n const byId = new Map<FolderId, { name: string; parent?: FolderId }>();\n for (const folder of document.folders) {\n if (byId.has(folder.id)) {\n violations.push({ kind: \"duplicate-folder-id\", folder: folder.id });\n continue;\n }\n if (foldersNameBlank(folder.name))\n violations.push({ kind: \"empty-folder-name\", folder: folder.id });\n byId.set(folder.id, { name: folder.name, parent: folder.parent });\n }\n\n for (const [id, folder] of byId) {\n if (folder.parent !== undefined && !byId.has(folder.parent)) {\n violations.push({ kind: \"missing-parent\", folder: id, parent: folder.parent });\n continue;\n }\n\n if (onCycle(id, byId)) violations.push({ kind: \"cycle\", folder: id });\n }\n\n // The comparison is the naming rule's, not a second one written here: a document is invalid in\n // exactly the cases the rule would have refused, or the write path and the checker would drift.\n // Each kind of item has a namespace of its own inside a parent.\n const namesByParent = new Map<string, string[]>();\n const claim = (item: FoldersItem[\"kind\"], parent: FolderId | undefined, name: string) => {\n const key = `${item}:${parent ?? \"\"}`;\n const names = namesByParent.get(key) ?? [];\n namesByParent.set(key, names);\n if (foldersNameTaken(name, names))\n violations.push({ kind: \"duplicate-name\", item, parent, name });\n names.push(name);\n };\n\n for (const folder of byId.values()) claim(\"folder\", folder.parent, folder.name);\n\n const knownProjects = new Set<string>((projects ?? []).map((project) => project.id));\n for (const project of projects ?? []) {\n const parent = document.assignments[project.id];\n if (parent === undefined || byId.has(parent)) claim(\"project\", parent, project.name);\n }\n\n for (const [project, folder] of Object.entries(document.assignments))\n if (!byId.has(folder) && (projects === undefined || knownProjects.has(project)))\n violations.push({\n kind: \"unknown-assignment-folder\",\n project: asProjectId(project),\n folder,\n });\n\n for (const template of templates ?? []) {\n const parent = document.templateAssignments[template.id];\n if (parent === undefined || byId.has(parent)) claim(\"template\", parent, template.name);\n }\n\n const knownTemplates = new Set<string>((templates ?? []).map((template) => template.id));\n for (const [template, folder] of Object.entries(document.templateAssignments))\n if (!byId.has(folder) && (templates === undefined || knownTemplates.has(template)))\n violations.push({\n kind: \"unknown-template-assignment-folder\",\n template: asTemplateId(template),\n folder,\n });\n\n return violations;\n}\n\n/** A one-line description of a violation, for an error a user or a log will read. */\nexport function formatFoldersViolation(violation: FoldersViolation): string {\n switch (violation.kind) {\n case \"duplicate-folder-id\":\n return `folder id ${violation.folder} appears more than once`;\n case \"empty-folder-name\":\n return `folder ${violation.folder} has an empty name`;\n case \"missing-parent\":\n return `folder ${violation.folder} names a parent that does not exist (${violation.parent})`;\n case \"cycle\":\n return `folder ${violation.folder} sits in a cycle of parents`;\n case \"duplicate-name\":\n return violation.parent === undefined\n ? `the ${violation.item} name \"${violation.name}\" is used more than once at the top level`\n : `the ${violation.item} name \"${violation.name}\" is used more than once inside folder ${violation.parent}`;\n case \"unknown-assignment-folder\":\n return `project ${violation.project} is assigned to a folder that does not exist (${violation.folder})`;\n case \"unknown-template-assignment-folder\":\n return `template ${violation.template} is assigned to a folder that does not exist (${violation.folder})`;\n }\n}\n\n//\n// Internals\n//\n\n/**\n * True when following parents from this folder leads back to it. A folder that merely hangs below\n * a cycle is not on it.\n */\nfunction onCycle(id: FolderId, byId: ReadonlyMap<FolderId, { parent?: FolderId }>): boolean {\n const seen = new Set<FolderId>();\n let current = byId.get(id)?.parent;\n while (current !== undefined && !seen.has(current)) {\n if (current === id) return true;\n seen.add(current);\n current = byId.get(current)?.parent;\n }\n return false;\n}\n"],"mappings":";;;;;;;;;;;;;;AA8CA,SAAgB,wBACd,UACA,UACA,WAC6B;CAC7B,MAAM,aAAiC,CAAC;CAExC,MAAM,uBAAO,IAAI,IAAmD;CACpE,KAAK,MAAM,UAAU,SAAS,SAAS;EACrC,IAAI,KAAK,IAAI,OAAO,EAAE,GAAG;GACvB,WAAW,KAAK;IAAE,MAAM;IAAuB,QAAQ,OAAO;GAAG,CAAC;GAClE;EACF;EACA,IAAIA,eAAAA,iBAAiB,OAAO,IAAI,GAC9B,WAAW,KAAK;GAAE,MAAM;GAAqB,QAAQ,OAAO;EAAG,CAAC;EAClE,KAAK,IAAI,OAAO,IAAI;GAAE,MAAM,OAAO;GAAM,QAAQ,OAAO;EAAO,CAAC;CAClE;CAEA,KAAK,MAAM,CAAC,IAAI,WAAW,MAAM;EAC/B,IAAI,OAAO,WAAW,KAAA,KAAa,CAAC,KAAK,IAAI,OAAO,MAAM,GAAG;GAC3D,WAAW,KAAK;IAAE,MAAM;IAAkB,QAAQ;IAAI,QAAQ,OAAO;GAAO,CAAC;GAC7E;EACF;EAEA,IAAI,QAAQ,IAAI,IAAI,GAAG,WAAW,KAAK;GAAE,MAAM;GAAS,QAAQ;EAAG,CA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