@elevasis/core 0.25.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 +171 -90
- package/dist/index.js +377 -1541
- package/dist/knowledge/index.d.ts +48 -59
- package/dist/knowledge/index.js +1 -1
- package/dist/organization-model/index.d.ts +171 -90
- package/dist/organization-model/index.js +377 -1541
- package/dist/test-utils/index.d.ts +25 -33
- package/dist/test-utils/index.js +250 -1357
- package/package.json +1 -1
- package/src/_gen/__tests__/__snapshots__/contracts.md.snap +990 -1065
- package/src/business/acquisition/api-schemas.test.ts +1996 -1882
- package/src/business/acquisition/api-schemas.ts +1478 -1502
- 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 +101 -34
- package/src/business/acquisition/derive-actions.ts +8 -92
- package/src/business/acquisition/ontology-validation.ts +76 -162
- package/src/business/acquisition/types.ts +7 -8
- 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/knowledge/queries.ts +0 -1
- package/src/organization-model/__tests__/content-kinds-registry.test.ts +35 -210
- package/src/organization-model/__tests__/cross-ref.test.ts +167 -0
- package/src/organization-model/__tests__/defaults.test.ts +4 -4
- package/src/organization-model/__tests__/domains/actions.test.ts +12 -36
- package/src/organization-model/__tests__/domains/offerings.test.ts +13 -6
- package/src/organization-model/__tests__/domains/resources.test.ts +497 -350
- package/src/organization-model/__tests__/domains/systems.test.ts +6 -7
- package/src/organization-model/__tests__/flatten-additive-merge.test.ts +68 -80
- package/src/organization-model/__tests__/foundation.test.ts +81 -14
- package/src/organization-model/__tests__/graph.test.ts +662 -694
- package/src/organization-model/__tests__/knowledge.test.ts +31 -17
- package/src/organization-model/__tests__/lookup-helpers.test.ts +128 -438
- package/src/organization-model/__tests__/migration-helpers.test.ts +362 -591
- package/src/organization-model/__tests__/prospecting-ssot.test.ts +68 -103
- package/src/organization-model/__tests__/published-zero-leak.test.ts +76 -0
- package/src/organization-model/__tests__/recursive-system-schema.test.ts +159 -532
- package/src/organization-model/__tests__/resolve.test.ts +79 -42
- package/src/organization-model/__tests__/schema-refinements.test.ts +72 -0
- package/src/organization-model/__tests__/schema.test.ts +65 -56
- package/src/organization-model/catalogs/lead-gen.ts +0 -103
- package/src/organization-model/cross-ref.ts +175 -0
- package/src/organization-model/defaults.ts +17 -702
- package/src/organization-model/domains/actions.ts +116 -333
- package/src/organization-model/domains/branding.ts +6 -6
- package/src/organization-model/domains/knowledge.ts +15 -7
- package/src/organization-model/domains/projects.ts +4 -4
- package/src/organization-model/domains/prospecting.ts +405 -395
- package/src/organization-model/domains/resources.ts +206 -135
- package/src/organization-model/domains/sales.test.ts +104 -218
- package/src/organization-model/domains/sales.ts +217 -380
- package/src/organization-model/domains/systems.ts +8 -23
- package/src/organization-model/graph/build.ts +223 -294
- package/src/organization-model/graph/schema.ts +2 -3
- package/src/organization-model/graph/types.ts +12 -14
- package/src/organization-model/helpers.ts +130 -218
- package/src/organization-model/index.ts +105 -124
- package/src/organization-model/migration-helpers.ts +211 -249
- package/src/organization-model/ontology.ts +0 -60
- package/src/organization-model/organization-graph.mdx +4 -5
- package/src/organization-model/organization-model.mdx +1 -1
- package/src/organization-model/published.ts +236 -226
- package/src/organization-model/resolve.ts +4 -5
- package/src/organization-model/schema-refinements.ts +667 -0
- package/src/organization-model/schema.ts +88 -889
- package/src/organization-model/types.ts +167 -161
- package/src/platform/registry/__tests__/validation.test.ts +23 -0
- package/src/platform/registry/validation.ts +13 -2
- package/src/reference/_generated/contracts.md +990 -1065
- package/src/organization-model/content-kinds/config.ts +0 -36
- package/src/organization-model/content-kinds/index.ts +0 -78
- package/src/organization-model/content-kinds/pipeline.ts +0 -68
- package/src/organization-model/content-kinds/registry.ts +0 -44
- package/src/organization-model/content-kinds/status.ts +0 -71
- package/src/organization-model/content-kinds/template.ts +0 -83
- package/src/organization-model/content-kinds/types.ts +0 -117
|
@@ -3671,24 +3671,6 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
3671
3671
|
}, z.core.$strip>>;
|
|
3672
3672
|
type OntologyScope = z.infer<typeof OntologyScopeSchema>;
|
|
3673
3673
|
|
|
3674
|
-
/**
|
|
3675
|
-
* Placeholder discriminated union for ContentNode (Wave 1A).
|
|
3676
|
-
* Wave 2A wires concrete (kind, type) pairs via the registry.
|
|
3677
|
-
*
|
|
3678
|
-
* Per D2: unregistered (kind, type) pairs are allowed and pass through validation.
|
|
3679
|
-
* Per L14: every node carries BOTH `kind` and `type`.
|
|
3680
|
-
*/
|
|
3681
|
-
declare const ContentNodeSchema: z.ZodObject<{
|
|
3682
|
-
label: z.ZodString;
|
|
3683
|
-
description: z.ZodOptional<z.ZodString>;
|
|
3684
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
3685
|
-
parentContentId: z.ZodOptional<z.ZodString>;
|
|
3686
|
-
kind: z.ZodString;
|
|
3687
|
-
type: z.ZodString;
|
|
3688
|
-
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3689
|
-
}, z.core.$strip>;
|
|
3690
|
-
type ContentNode = z.infer<typeof ContentNodeSchema>;
|
|
3691
|
-
|
|
3692
3674
|
type JsonPrimitive = string | number | boolean | null;
|
|
3693
3675
|
type JsonValue = JsonPrimitive | JsonValue[] | {
|
|
3694
3676
|
[key: string]: JsonValue;
|
|
@@ -3730,11 +3712,6 @@ interface SystemEntry {
|
|
|
3730
3712
|
config?: Record<string, JsonValue>;
|
|
3731
3713
|
ontology?: OntologyScope;
|
|
3732
3714
|
systems?: Record<string, SystemEntry>;
|
|
3733
|
-
/**
|
|
3734
|
-
* @deprecated Compatibility-only bridge for old tenant data and migration readers.
|
|
3735
|
-
* Author new semantic catalogs in `ontology` and local settings in `config`.
|
|
3736
|
-
*/
|
|
3737
|
-
content?: Record<string, ContentNode>;
|
|
3738
3715
|
subsystems?: Record<string, SystemEntry>;
|
|
3739
3716
|
}
|
|
3740
3717
|
|
|
@@ -3952,7 +3929,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
3952
3929
|
lastModified: string;
|
|
3953
3930
|
} | undefined;
|
|
3954
3931
|
}>>;
|
|
3955
|
-
branding: z.ZodObject<{
|
|
3932
|
+
branding: z.ZodDefault<z.ZodObject<{
|
|
3956
3933
|
organizationName: z.ZodString;
|
|
3957
3934
|
productName: z.ZodString;
|
|
3958
3935
|
shortName: z.ZodString;
|
|
@@ -3961,7 +3938,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
3961
3938
|
light: z.ZodOptional<z.ZodString>;
|
|
3962
3939
|
dark: z.ZodOptional<z.ZodString>;
|
|
3963
3940
|
}, z.core.$strip>>;
|
|
3964
|
-
}, z.core.$strip
|
|
3941
|
+
}, z.core.$strip>>;
|
|
3965
3942
|
navigation: z.ZodDefault<z.ZodObject<{
|
|
3966
3943
|
sidebar: z.ZodDefault<z.ZodObject<{
|
|
3967
3944
|
primary: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SidebarNode, unknown, z.core.$ZodTypeInternals<SidebarNode, unknown>>>>;
|
|
@@ -4193,14 +4170,18 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
4193
4170
|
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4194
4171
|
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4195
4172
|
emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4173
|
+
contract: z.ZodOptional<z.ZodObject<{
|
|
4174
|
+
input: z.ZodOptional<z.ZodString>;
|
|
4175
|
+
output: z.ZodOptional<z.ZodString>;
|
|
4176
|
+
}, z.core.$strip>>;
|
|
4196
4177
|
}, z.core.$strip>>;
|
|
4197
4178
|
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4198
4179
|
path: z.ZodString;
|
|
4199
4180
|
role: z.ZodEnum<{
|
|
4200
|
-
schema: "schema";
|
|
4201
4181
|
config: "config";
|
|
4202
4182
|
entrypoint: "entrypoint";
|
|
4203
4183
|
handler: "handler";
|
|
4184
|
+
schema: "schema";
|
|
4204
4185
|
test: "test";
|
|
4205
4186
|
docs: "docs";
|
|
4206
4187
|
}>;
|
|
@@ -4239,14 +4220,18 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
4239
4220
|
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4240
4221
|
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4241
4222
|
emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4223
|
+
contract: z.ZodOptional<z.ZodObject<{
|
|
4224
|
+
input: z.ZodOptional<z.ZodString>;
|
|
4225
|
+
output: z.ZodOptional<z.ZodString>;
|
|
4226
|
+
}, z.core.$strip>>;
|
|
4242
4227
|
}, z.core.$strip>>;
|
|
4243
4228
|
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4244
4229
|
path: z.ZodString;
|
|
4245
4230
|
role: z.ZodEnum<{
|
|
4246
|
-
schema: "schema";
|
|
4247
4231
|
config: "config";
|
|
4248
4232
|
entrypoint: "entrypoint";
|
|
4249
4233
|
handler: "handler";
|
|
4234
|
+
schema: "schema";
|
|
4250
4235
|
test: "test";
|
|
4251
4236
|
docs: "docs";
|
|
4252
4237
|
}>;
|
|
@@ -4316,14 +4301,18 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
4316
4301
|
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4317
4302
|
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4318
4303
|
emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4304
|
+
contract: z.ZodOptional<z.ZodObject<{
|
|
4305
|
+
input: z.ZodOptional<z.ZodString>;
|
|
4306
|
+
output: z.ZodOptional<z.ZodString>;
|
|
4307
|
+
}, z.core.$strip>>;
|
|
4319
4308
|
}, z.core.$strip>>;
|
|
4320
4309
|
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4321
4310
|
path: z.ZodString;
|
|
4322
4311
|
role: z.ZodEnum<{
|
|
4323
|
-
schema: "schema";
|
|
4324
4312
|
config: "config";
|
|
4325
4313
|
entrypoint: "entrypoint";
|
|
4326
4314
|
handler: "handler";
|
|
4315
|
+
schema: "schema";
|
|
4327
4316
|
test: "test";
|
|
4328
4317
|
docs: "docs";
|
|
4329
4318
|
}>;
|
|
@@ -4351,14 +4340,18 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
4351
4340
|
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4352
4341
|
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4353
4342
|
emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4343
|
+
contract: z.ZodOptional<z.ZodObject<{
|
|
4344
|
+
input: z.ZodOptional<z.ZodString>;
|
|
4345
|
+
output: z.ZodOptional<z.ZodString>;
|
|
4346
|
+
}, z.core.$strip>>;
|
|
4354
4347
|
}, z.core.$strip>>;
|
|
4355
4348
|
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4356
4349
|
path: z.ZodString;
|
|
4357
4350
|
role: z.ZodEnum<{
|
|
4358
|
-
schema: "schema";
|
|
4359
4351
|
config: "config";
|
|
4360
4352
|
entrypoint: "entrypoint";
|
|
4361
4353
|
handler: "handler";
|
|
4354
|
+
schema: "schema";
|
|
4362
4355
|
test: "test";
|
|
4363
4356
|
docs: "docs";
|
|
4364
4357
|
}>;
|
|
@@ -4645,11 +4638,10 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
4645
4638
|
ontology: "ontology";
|
|
4646
4639
|
role: "role";
|
|
4647
4640
|
goal: "goal";
|
|
4648
|
-
stage: "stage";
|
|
4649
4641
|
resource: "resource";
|
|
4642
|
+
stage: "stage";
|
|
4650
4643
|
"customer-segment": "customer-segment";
|
|
4651
4644
|
offering: "offering";
|
|
4652
|
-
"content-node": "content-node";
|
|
4653
4645
|
}>;
|
|
4654
4646
|
id: z.ZodString;
|
|
4655
4647
|
}, z.core.$strip>;
|
|
@@ -4657,7 +4649,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
4657
4649
|
nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
|
|
4658
4650
|
}, z.core.$strip>]>, z.ZodTransform<{
|
|
4659
4651
|
target: {
|
|
4660
|
-
kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "
|
|
4652
|
+
kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "resource" | "stage" | "customer-segment" | "offering";
|
|
4661
4653
|
id: string;
|
|
4662
4654
|
};
|
|
4663
4655
|
nodeId: string;
|
|
@@ -4665,7 +4657,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
4665
4657
|
nodeId: string;
|
|
4666
4658
|
} | {
|
|
4667
4659
|
target: {
|
|
4668
|
-
kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "
|
|
4660
|
+
kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "resource" | "stage" | "customer-segment" | "offering";
|
|
4669
4661
|
id: string;
|
|
4670
4662
|
};
|
|
4671
4663
|
}>>>>;
|