@elevasis/core 0.26.0 → 0.27.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/dist/index.d.ts +5 -5
- package/dist/index.js +209 -173
- package/dist/knowledge/index.d.ts +21 -21
- package/dist/organization-model/index.d.ts +5 -5
- package/dist/organization-model/index.js +209 -173
- package/dist/test-utils/index.d.ts +2 -2
- package/dist/test-utils/index.js +182 -126
- package/package.json +1 -1
- package/src/_gen/__tests__/__snapshots__/contracts.md.snap +976 -1063
- package/src/business/acquisition/api-schemas.test.ts +1962 -1841
- package/src/business/acquisition/api-schemas.ts +1461 -1464
- package/src/business/acquisition/crm-next-action.test.ts +45 -25
- package/src/business/acquisition/crm-next-action.ts +227 -220
- package/src/business/acquisition/crm-priority.test.ts +41 -8
- package/src/business/acquisition/crm-priority.ts +365 -349
- package/src/business/acquisition/crm-state-actions.test.ts +208 -153
- package/src/business/acquisition/derive-actions.test.ts +90 -13
- package/src/business/acquisition/derive-actions.ts +8 -139
- package/src/business/acquisition/ontology-validation.ts +72 -158
- package/src/business/pdf/sections/investment.ts +1 -1
- package/src/business/pdf/sections/summary-investment.ts +1 -1
- package/src/execution/engine/tools/tool-maps.ts +872 -831
- package/src/organization-model/__tests__/cross-ref.test.ts +167 -0
- package/src/organization-model/__tests__/published-zero-leak.test.ts +60 -1
- package/src/organization-model/__tests__/resolve.test.ts +1 -1
- package/src/organization-model/__tests__/schema-refinements.test.ts +72 -0
- package/src/organization-model/cross-ref.ts +175 -0
- package/src/organization-model/domains/branding.ts +6 -6
- package/src/organization-model/domains/sales.test.ts +104 -218
- package/src/organization-model/domains/sales.ts +212 -375
- package/src/organization-model/index.ts +1 -0
- package/src/organization-model/schema-refinements.ts +667 -0
- package/src/organization-model/schema.ts +8 -715
- package/src/reference/_generated/contracts.md +976 -1063
package/dist/test-utils/index.js
CHANGED
|
@@ -19906,8 +19906,8 @@ var OrganizationModelBrandingSchema = z.object({
|
|
|
19906
19906
|
});
|
|
19907
19907
|
var DEFAULT_ORGANIZATION_MODEL_BRANDING = {
|
|
19908
19908
|
organizationName: "Default Organization",
|
|
19909
|
-
productName: "
|
|
19910
|
-
shortName: "
|
|
19909
|
+
productName: "Organization OS",
|
|
19910
|
+
shortName: "Org OS",
|
|
19911
19911
|
logos: {}
|
|
19912
19912
|
};
|
|
19913
19913
|
var SurfaceTypeSchema = z.enum(["page", "dashboard", "graph", "detail", "list", "settings"]).meta({ label: "Surface type", color: "blue" });
|
|
@@ -20879,79 +20879,106 @@ var PoliciesDomainSchema = z.record(z.string(), PolicySchema).refine((record) =>
|
|
|
20879
20879
|
}).default({});
|
|
20880
20880
|
var DEFAULT_ORGANIZATION_MODEL_POLICIES = {};
|
|
20881
20881
|
|
|
20882
|
-
// src/organization-model/
|
|
20883
|
-
|
|
20884
|
-
|
|
20885
|
-
|
|
20886
|
-
|
|
20887
|
-
|
|
20888
|
-
|
|
20889
|
-
|
|
20890
|
-
|
|
20891
|
-
|
|
20892
|
-
|
|
20893
|
-
|
|
20894
|
-
|
|
20895
|
-
|
|
20896
|
-
|
|
20897
|
-
|
|
20898
|
-
|
|
20899
|
-
|
|
20900
|
-
|
|
20901
|
-
|
|
20902
|
-
|
|
20903
|
-
var
|
|
20904
|
-
|
|
20905
|
-
|
|
20906
|
-
|
|
20907
|
-
|
|
20908
|
-
|
|
20909
|
-
|
|
20910
|
-
|
|
20911
|
-
|
|
20912
|
-
|
|
20913
|
-
|
|
20914
|
-
|
|
20915
|
-
entities: { version: 1, lastModified: "2026-05-10" },
|
|
20916
|
-
policies: { version: 1, lastModified: "2026-05-10" },
|
|
20917
|
-
knowledge: { version: 1, lastModified: "2026-05-10" }
|
|
20882
|
+
// src/organization-model/helpers.ts
|
|
20883
|
+
function childSystemsOf2(system) {
|
|
20884
|
+
return system.systems ?? system.subsystems ?? {};
|
|
20885
|
+
}
|
|
20886
|
+
function listAllSystems(model) {
|
|
20887
|
+
const results = [];
|
|
20888
|
+
function walk(map2, prefix) {
|
|
20889
|
+
for (const [localId, system] of Object.entries(map2)) {
|
|
20890
|
+
const fullPath = prefix ? `${prefix}.${localId}` : localId;
|
|
20891
|
+
results.push({ path: fullPath, system });
|
|
20892
|
+
const childSystems = childSystemsOf2(system);
|
|
20893
|
+
if (Object.keys(childSystems).length > 0) {
|
|
20894
|
+
walk(childSystems, fullPath);
|
|
20895
|
+
}
|
|
20896
|
+
}
|
|
20897
|
+
}
|
|
20898
|
+
walk(model.systems, "");
|
|
20899
|
+
return results;
|
|
20900
|
+
}
|
|
20901
|
+
|
|
20902
|
+
// src/organization-model/cross-ref.ts
|
|
20903
|
+
var ONTOLOGY_REFERENCE_KEY_KINDS = {
|
|
20904
|
+
valueType: "value-type",
|
|
20905
|
+
catalogType: "catalog",
|
|
20906
|
+
objectType: "object",
|
|
20907
|
+
eventType: "event",
|
|
20908
|
+
actionType: "action",
|
|
20909
|
+
linkType: "link",
|
|
20910
|
+
interfaceType: "interface",
|
|
20911
|
+
propertyType: "property",
|
|
20912
|
+
groupType: "group",
|
|
20913
|
+
surfaceType: "surface",
|
|
20914
|
+
stepCatalog: "catalog"
|
|
20918
20915
|
};
|
|
20919
|
-
|
|
20920
|
-
|
|
20921
|
-
|
|
20922
|
-
|
|
20923
|
-
|
|
20924
|
-
|
|
20925
|
-
|
|
20926
|
-
|
|
20927
|
-
|
|
20928
|
-
|
|
20929
|
-
|
|
20930
|
-
|
|
20931
|
-
|
|
20932
|
-
|
|
20933
|
-
|
|
20934
|
-
|
|
20935
|
-
|
|
20936
|
-
|
|
20937
|
-
|
|
20938
|
-
|
|
20939
|
-
|
|
20940
|
-
|
|
20941
|
-
|
|
20942
|
-
|
|
20943
|
-
|
|
20944
|
-
|
|
20945
|
-
|
|
20946
|
-
|
|
20947
|
-
|
|
20948
|
-
|
|
20949
|
-
|
|
20950
|
-
|
|
20951
|
-
|
|
20952
|
-
|
|
20953
|
-
|
|
20954
|
-
}
|
|
20916
|
+
function buildOmCrossRefIndex(model) {
|
|
20917
|
+
const systemsById = /* @__PURE__ */ new Map();
|
|
20918
|
+
for (const { path, system } of listAllSystems(model)) {
|
|
20919
|
+
systemsById.set(path, system);
|
|
20920
|
+
systemsById.set(system.id, system);
|
|
20921
|
+
}
|
|
20922
|
+
const resourceIds = new Set(Object.keys(model.resources ?? {}));
|
|
20923
|
+
const knowledgeIds = new Set(Object.keys(model.knowledge ?? {}));
|
|
20924
|
+
const roleIds = new Set(Object.keys(model.roles ?? {}));
|
|
20925
|
+
const goalIds = new Set(Object.keys(model.goals ?? {}));
|
|
20926
|
+
const actionIds = new Set(Object.keys(model.actions ?? {}));
|
|
20927
|
+
const customerSegmentIds = new Set(Object.keys(model.customers ?? {}));
|
|
20928
|
+
const offeringIds = new Set(Object.keys(model.offerings ?? {}));
|
|
20929
|
+
const ontologyCompilation = compileOrganizationOntology(model);
|
|
20930
|
+
const ontologyIndexByKind = {
|
|
20931
|
+
object: ontologyCompilation.ontology.objectTypes,
|
|
20932
|
+
link: ontologyCompilation.ontology.linkTypes,
|
|
20933
|
+
action: ontologyCompilation.ontology.actionTypes,
|
|
20934
|
+
catalog: ontologyCompilation.ontology.catalogTypes,
|
|
20935
|
+
event: ontologyCompilation.ontology.eventTypes,
|
|
20936
|
+
interface: ontologyCompilation.ontology.interfaceTypes,
|
|
20937
|
+
"value-type": ontologyCompilation.ontology.valueTypes,
|
|
20938
|
+
property: ontologyCompilation.ontology.sharedProperties,
|
|
20939
|
+
group: ontologyCompilation.ontology.groups,
|
|
20940
|
+
surface: ontologyCompilation.ontology.surfaces
|
|
20941
|
+
};
|
|
20942
|
+
const ontologyIds = new Set(Object.values(ontologyIndexByKind).flatMap((index2) => Object.keys(index2)));
|
|
20943
|
+
const stageIds = /* @__PURE__ */ new Set();
|
|
20944
|
+
for (const catalog of Object.values(ontologyCompilation.ontology.catalogTypes)) {
|
|
20945
|
+
if (catalog.kind !== "stage") continue;
|
|
20946
|
+
const entries = catalog.entries;
|
|
20947
|
+
if (entries !== void 0) {
|
|
20948
|
+
for (const stageId of Object.keys(entries)) {
|
|
20949
|
+
stageIds.add(stageId);
|
|
20950
|
+
}
|
|
20951
|
+
}
|
|
20952
|
+
}
|
|
20953
|
+
return {
|
|
20954
|
+
systemsById,
|
|
20955
|
+
resourceIds,
|
|
20956
|
+
knowledgeIds,
|
|
20957
|
+
roleIds,
|
|
20958
|
+
goalIds,
|
|
20959
|
+
actionIds,
|
|
20960
|
+
customerSegmentIds,
|
|
20961
|
+
offeringIds,
|
|
20962
|
+
ontologyIds,
|
|
20963
|
+
ontologyIndexByKind,
|
|
20964
|
+
stageIds
|
|
20965
|
+
};
|
|
20966
|
+
}
|
|
20967
|
+
function knowledgeTargetExists(index2, kind, id) {
|
|
20968
|
+
if (kind === "system") return index2.systemsById.has(id);
|
|
20969
|
+
if (kind === "resource") return index2.resourceIds.has(id);
|
|
20970
|
+
if (kind === "knowledge") return index2.knowledgeIds.has(id);
|
|
20971
|
+
if (kind === "stage") return index2.stageIds.has(id);
|
|
20972
|
+
if (kind === "action") return index2.actionIds.has(id);
|
|
20973
|
+
if (kind === "role") return index2.roleIds.has(id);
|
|
20974
|
+
if (kind === "goal") return index2.goalIds.has(id);
|
|
20975
|
+
if (kind === "customer-segment") return index2.customerSegmentIds.has(id);
|
|
20976
|
+
if (kind === "offering") return index2.offeringIds.has(id);
|
|
20977
|
+
if (kind === "ontology") return index2.ontologyIds.has(id);
|
|
20978
|
+
return false;
|
|
20979
|
+
}
|
|
20980
|
+
|
|
20981
|
+
// src/organization-model/schema-refinements.ts
|
|
20955
20982
|
function addIssue(ctx, path, message) {
|
|
20956
20983
|
ctx.addIssue({
|
|
20957
20984
|
code: z.ZodIssueCode.custom,
|
|
@@ -20982,7 +21009,7 @@ function isKnowledgeKindCompatibleWithTarget(knowledgeKind, targetKind) {
|
|
|
20982
21009
|
function isRecord(value) {
|
|
20983
21010
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
20984
21011
|
}
|
|
20985
|
-
|
|
21012
|
+
function refineOrganizationModel(model, ctx) {
|
|
20986
21013
|
function collectAllSystems(systems, prefix = "", schemaPath = ["systems"]) {
|
|
20987
21014
|
const result = [];
|
|
20988
21015
|
for (const [key, system] of Object.entries(systems)) {
|
|
@@ -21154,7 +21181,7 @@ var OrganizationModelSchema = OrganizationModelSchemaBase.superRefine((model, ct
|
|
|
21154
21181
|
});
|
|
21155
21182
|
});
|
|
21156
21183
|
Object.values(model.entities).forEach((entity) => {
|
|
21157
|
-
if (!systemsById.has(entity.ownedBySystemId)) {
|
|
21184
|
+
if (systemsById.size > 0 && !systemsById.has(entity.ownedBySystemId)) {
|
|
21158
21185
|
addIssue(
|
|
21159
21186
|
ctx,
|
|
21160
21187
|
["entities", entity.id, "ownedBySystemId"],
|
|
@@ -21272,29 +21299,9 @@ var OrganizationModelSchema = OrganizationModelSchemaBase.superRefine((model, ct
|
|
|
21272
21299
|
}
|
|
21273
21300
|
});
|
|
21274
21301
|
});
|
|
21275
|
-
const
|
|
21276
|
-
const
|
|
21302
|
+
const idx = buildOmCrossRefIndex(model);
|
|
21303
|
+
const { ontologyIndexByKind, ontologyIds } = idx;
|
|
21277
21304
|
const ontologyCompilation = compileOrganizationOntology(model);
|
|
21278
|
-
const stageIds = /* @__PURE__ */ new Set();
|
|
21279
|
-
for (const catalog of Object.values(ontologyCompilation.ontology.catalogTypes)) {
|
|
21280
|
-
if (catalog.kind !== "stage") continue;
|
|
21281
|
-
for (const stageId of Object.keys(catalog.entries ?? {})) {
|
|
21282
|
-
stageIds.add(stageId);
|
|
21283
|
-
}
|
|
21284
|
-
}
|
|
21285
|
-
const ontologyIndexByKind = {
|
|
21286
|
-
object: ontologyCompilation.ontology.objectTypes,
|
|
21287
|
-
link: ontologyCompilation.ontology.linkTypes,
|
|
21288
|
-
action: ontologyCompilation.ontology.actionTypes,
|
|
21289
|
-
catalog: ontologyCompilation.ontology.catalogTypes,
|
|
21290
|
-
event: ontologyCompilation.ontology.eventTypes,
|
|
21291
|
-
interface: ontologyCompilation.ontology.interfaceTypes,
|
|
21292
|
-
"value-type": ontologyCompilation.ontology.valueTypes,
|
|
21293
|
-
property: ontologyCompilation.ontology.sharedProperties,
|
|
21294
|
-
group: ontologyCompilation.ontology.groups,
|
|
21295
|
-
surface: ontologyCompilation.ontology.surfaces
|
|
21296
|
-
};
|
|
21297
|
-
const ontologyIds = new Set(Object.values(ontologyIndexByKind).flatMap((index2) => Object.keys(index2)));
|
|
21298
21305
|
function topologyTargetExists(ref) {
|
|
21299
21306
|
if (ref.kind === "system") return systemsById.has(ref.id);
|
|
21300
21307
|
if (ref.kind === "resource") return resourcesById.has(ref.id);
|
|
@@ -21314,19 +21321,6 @@ var OrganizationModelSchema = OrganizationModelSchemaBase.superRefine((model, ct
|
|
|
21314
21321
|
);
|
|
21315
21322
|
});
|
|
21316
21323
|
});
|
|
21317
|
-
const ontologyReferenceKeyKinds = {
|
|
21318
|
-
valueType: "value-type",
|
|
21319
|
-
catalogType: "catalog",
|
|
21320
|
-
objectType: "object",
|
|
21321
|
-
eventType: "event",
|
|
21322
|
-
actionType: "action",
|
|
21323
|
-
linkType: "link",
|
|
21324
|
-
interfaceType: "interface",
|
|
21325
|
-
propertyType: "property",
|
|
21326
|
-
groupType: "group",
|
|
21327
|
-
surfaceType: "surface",
|
|
21328
|
-
stepCatalog: "catalog"
|
|
21329
|
-
};
|
|
21330
21324
|
function validateKnownOntologyReferences(ownerId, value, path, seen = /* @__PURE__ */ new WeakSet()) {
|
|
21331
21325
|
if (Array.isArray(value)) {
|
|
21332
21326
|
value.forEach((entry, index2) => validateKnownOntologyReferences(ownerId, entry, [...path, index2], seen));
|
|
@@ -21336,7 +21330,7 @@ var OrganizationModelSchema = OrganizationModelSchemaBase.superRefine((model, ct
|
|
|
21336
21330
|
if (seen.has(value)) return;
|
|
21337
21331
|
seen.add(value);
|
|
21338
21332
|
Object.entries(value).forEach(([key, entry]) => {
|
|
21339
|
-
const expectedKind =
|
|
21333
|
+
const expectedKind = ONTOLOGY_REFERENCE_KEY_KINDS[key];
|
|
21340
21334
|
if (expectedKind !== void 0) {
|
|
21341
21335
|
if (typeof entry !== "string") {
|
|
21342
21336
|
addIssue(ctx, [...path, key], `Ontology record "${ownerId}" ${key} must be an ontology ID string`);
|
|
@@ -21397,22 +21391,9 @@ var OrganizationModelSchema = OrganizationModelSchemaBase.superRefine((model, ct
|
|
|
21397
21391
|
);
|
|
21398
21392
|
}
|
|
21399
21393
|
});
|
|
21400
|
-
function knowledgeTargetExists(kind, id) {
|
|
21401
|
-
if (kind === "system") return systemsById.has(id);
|
|
21402
|
-
if (kind === "resource") return resourcesById.has(id);
|
|
21403
|
-
if (kind === "knowledge") return knowledgeById.has(id);
|
|
21404
|
-
if (kind === "stage") return stageIds.has(id);
|
|
21405
|
-
if (kind === "action") return actionIds.has(id);
|
|
21406
|
-
if (kind === "role") return rolesById.has(id);
|
|
21407
|
-
if (kind === "goal") return goalsById.has(id);
|
|
21408
|
-
if (kind === "customer-segment") return segmentsById.has(id);
|
|
21409
|
-
if (kind === "offering") return offeringsById.has(id);
|
|
21410
|
-
if (kind === "ontology") return ontologyIds.has(id);
|
|
21411
|
-
return false;
|
|
21412
|
-
}
|
|
21413
21394
|
Object.entries(model.knowledge).forEach(([nodeId, node]) => {
|
|
21414
21395
|
node.links.forEach((link, linkIndex) => {
|
|
21415
|
-
if (!knowledgeTargetExists(link.target.kind, link.target.id)) {
|
|
21396
|
+
if (!knowledgeTargetExists(idx, link.target.kind, link.target.id)) {
|
|
21416
21397
|
addIssue(
|
|
21417
21398
|
ctx,
|
|
21418
21399
|
["knowledge", nodeId, "links", linkIndex, "target"],
|
|
@@ -21526,7 +21507,82 @@ var OrganizationModelSchema = OrganizationModelSchemaBase.superRefine((model, ct
|
|
|
21526
21507
|
for (const diagnostic of ontologyCompilation.diagnostics) {
|
|
21527
21508
|
addIssue(ctx, diagnostic.path, diagnostic.message);
|
|
21528
21509
|
}
|
|
21510
|
+
}
|
|
21511
|
+
|
|
21512
|
+
// src/organization-model/schema.ts
|
|
21513
|
+
z.enum([
|
|
21514
|
+
"branding",
|
|
21515
|
+
"identity",
|
|
21516
|
+
"customers",
|
|
21517
|
+
"offerings",
|
|
21518
|
+
"roles",
|
|
21519
|
+
"goals",
|
|
21520
|
+
"systems",
|
|
21521
|
+
"ontology",
|
|
21522
|
+
"resources",
|
|
21523
|
+
"topology",
|
|
21524
|
+
"actions",
|
|
21525
|
+
"entities",
|
|
21526
|
+
"policies",
|
|
21527
|
+
"knowledge"
|
|
21528
|
+
]);
|
|
21529
|
+
var OrganizationModelDomainMetadataSchema = z.object({
|
|
21530
|
+
version: z.literal(1).default(1),
|
|
21531
|
+
lastModified: z.string().regex(/^\d{4}-\d{2}-\d{2}$/, "lastModified must be an ISO date string (YYYY-MM-DD)")
|
|
21532
|
+
});
|
|
21533
|
+
var DEFAULT_ORGANIZATION_MODEL_DOMAIN_METADATA = {
|
|
21534
|
+
branding: { version: 1, lastModified: "2026-05-10" },
|
|
21535
|
+
identity: { version: 1, lastModified: "2026-05-10" },
|
|
21536
|
+
customers: { version: 1, lastModified: "2026-05-10" },
|
|
21537
|
+
offerings: { version: 1, lastModified: "2026-05-10" },
|
|
21538
|
+
roles: { version: 1, lastModified: "2026-05-10" },
|
|
21539
|
+
goals: { version: 1, lastModified: "2026-05-10" },
|
|
21540
|
+
systems: { version: 1, lastModified: "2026-05-10" },
|
|
21541
|
+
ontology: { version: 1, lastModified: "2026-05-14" },
|
|
21542
|
+
resources: { version: 1, lastModified: "2026-05-10" },
|
|
21543
|
+
topology: { version: 1, lastModified: "2026-05-14" },
|
|
21544
|
+
actions: { version: 1, lastModified: "2026-05-10" },
|
|
21545
|
+
entities: { version: 1, lastModified: "2026-05-10" },
|
|
21546
|
+
policies: { version: 1, lastModified: "2026-05-10" },
|
|
21547
|
+
knowledge: { version: 1, lastModified: "2026-05-10" }
|
|
21548
|
+
};
|
|
21549
|
+
var OrganizationModelDomainMetadataByDomainSchema = z.object({
|
|
21550
|
+
branding: OrganizationModelDomainMetadataSchema,
|
|
21551
|
+
identity: OrganizationModelDomainMetadataSchema,
|
|
21552
|
+
customers: OrganizationModelDomainMetadataSchema,
|
|
21553
|
+
offerings: OrganizationModelDomainMetadataSchema,
|
|
21554
|
+
roles: OrganizationModelDomainMetadataSchema,
|
|
21555
|
+
goals: OrganizationModelDomainMetadataSchema,
|
|
21556
|
+
systems: OrganizationModelDomainMetadataSchema,
|
|
21557
|
+
ontology: OrganizationModelDomainMetadataSchema,
|
|
21558
|
+
resources: OrganizationModelDomainMetadataSchema,
|
|
21559
|
+
topology: OrganizationModelDomainMetadataSchema,
|
|
21560
|
+
actions: OrganizationModelDomainMetadataSchema,
|
|
21561
|
+
entities: OrganizationModelDomainMetadataSchema,
|
|
21562
|
+
policies: OrganizationModelDomainMetadataSchema,
|
|
21563
|
+
knowledge: OrganizationModelDomainMetadataSchema
|
|
21564
|
+
}).partial().default(DEFAULT_ORGANIZATION_MODEL_DOMAIN_METADATA).transform((metadata) => ({ ...DEFAULT_ORGANIZATION_MODEL_DOMAIN_METADATA, ...metadata }));
|
|
21565
|
+
var OrganizationModelSchemaBase = z.object({
|
|
21566
|
+
version: z.literal(1).default(1),
|
|
21567
|
+
domainMetadata: OrganizationModelDomainMetadataByDomainSchema,
|
|
21568
|
+
branding: OrganizationModelBrandingSchema.default(DEFAULT_ORGANIZATION_MODEL_BRANDING),
|
|
21569
|
+
navigation: OrganizationModelNavigationSchema,
|
|
21570
|
+
identity: IdentityDomainSchema.default(DEFAULT_ORGANIZATION_MODEL_IDENTITY),
|
|
21571
|
+
customers: CustomersDomainSchema.default(DEFAULT_ORGANIZATION_MODEL_CUSTOMERS),
|
|
21572
|
+
offerings: OfferingsDomainSchema.default(DEFAULT_ORGANIZATION_MODEL_OFFERINGS),
|
|
21573
|
+
roles: RolesDomainSchema.default(DEFAULT_ORGANIZATION_MODEL_ROLES),
|
|
21574
|
+
goals: GoalsDomainSchema.default(DEFAULT_ORGANIZATION_MODEL_GOALS),
|
|
21575
|
+
systems: SystemsDomainSchema.default(DEFAULT_ORGANIZATION_MODEL_SYSTEMS),
|
|
21576
|
+
ontology: OntologyScopeSchema.default(DEFAULT_ONTOLOGY_SCOPE),
|
|
21577
|
+
resources: ResourcesDomainSchema.default(DEFAULT_ORGANIZATION_MODEL_RESOURCES),
|
|
21578
|
+
topology: OmTopologyDomainSchema.default(DEFAULT_ORGANIZATION_MODEL_TOPOLOGY),
|
|
21579
|
+
actions: ActionsDomainSchema.default(DEFAULT_ORGANIZATION_MODEL_ACTIONS),
|
|
21580
|
+
entities: EntitiesDomainSchema.default(DEFAULT_ORGANIZATION_MODEL_ENTITIES),
|
|
21581
|
+
policies: PoliciesDomainSchema.default(DEFAULT_ORGANIZATION_MODEL_POLICIES),
|
|
21582
|
+
// D3: flat Record<id, OrgKnowledgeNode> — no wrapper object
|
|
21583
|
+
knowledge: KnowledgeDomainSchema.default({})
|
|
21529
21584
|
});
|
|
21585
|
+
var OrganizationModelSchema = OrganizationModelSchemaBase.superRefine(refineOrganizationModel);
|
|
21530
21586
|
|
|
21531
21587
|
// src/organization-model/defaults.ts
|
|
21532
21588
|
var DEFAULT_ORGANIZATION_MODEL_KNOWLEDGE = {};
|