@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
|
@@ -26,96 +26,98 @@ export {
|
|
|
26
26
|
DEFAULT_ORGANIZATION_MODEL_DOMAIN_METADATA,
|
|
27
27
|
OrganizationModelDomainKeySchema,
|
|
28
28
|
OrganizationModelDomainMetadataByDomainSchema,
|
|
29
|
-
OrganizationModelDomainMetadataSchema,
|
|
30
|
-
OrganizationModelSchema
|
|
31
|
-
} from './schema'
|
|
32
|
-
export { NodeIdPathSchema, NodeIdStringSchema, UiPositionSchema } from './domains/systems'
|
|
33
|
-
export { LinkSchema } from './graph/link'
|
|
34
|
-
export { IconNameSchema, TechStackEntrySchema } from './domains/shared'
|
|
35
|
-
export {
|
|
36
|
-
ORGANIZATION_MODEL_ICON_TOKENS,
|
|
37
|
-
OrganizationModelBuiltinIconTokenSchema,
|
|
38
|
-
OrganizationModelIconTokenSchema
|
|
39
|
-
} from './icons'
|
|
40
|
-
export {
|
|
41
|
-
KNOWLEDGE_FEATURE_ID,
|
|
42
|
-
KNOWLEDGE_SYSTEM_ID,
|
|
43
|
-
PROJECTS_FEATURE_ID,
|
|
44
|
-
PROJECTS_SYSTEM_ID,
|
|
45
|
-
PROJECTS_INDEX_SURFACE_ID,
|
|
46
|
-
PROJECTS_VIEW_ACTION_ID,
|
|
47
|
-
SALES_FEATURE_ID,
|
|
48
|
-
PROSPECTING_FEATURE_ID,
|
|
49
|
-
OPERATIONS_FEATURE_ID,
|
|
50
|
-
SALES_SYSTEM_ID,
|
|
51
|
-
PROSPECTING_SYSTEM_ID,
|
|
52
|
-
OPERATIONS_SYSTEM_ID,
|
|
53
|
-
MONITORING_FEATURE_ID,
|
|
54
|
-
MONITORING_SYSTEM_ID,
|
|
55
|
-
SETTINGS_FEATURE_ID,
|
|
56
|
-
SETTINGS_SYSTEM_ID,
|
|
57
|
-
SEO_FEATURE_ID,
|
|
58
|
-
SEO_SYSTEM_ID,
|
|
59
|
-
SALES_PIPELINE_SURFACE_ID,
|
|
60
|
-
PROSPECTING_LISTS_SURFACE_ID,
|
|
61
|
-
OPERATIONS_COMMAND_VIEW_SURFACE_ID,
|
|
62
|
-
SETTINGS_ROLES_SURFACE_ID
|
|
63
|
-
} from './contracts'
|
|
64
|
-
export { DEFAULT_ORGANIZATION_MODEL } from './defaults'
|
|
65
|
-
export {
|
|
66
|
-
DEFAULT_ORGANIZATION_MODEL_STATUSES,
|
|
67
|
-
StatusesDomainSchema,
|
|
68
|
-
StatusEntrySchema,
|
|
69
|
-
StatusSemanticClassSchema
|
|
70
|
-
} from './domains/statuses'
|
|
71
|
-
export {
|
|
72
|
-
DEFAULT_ORGANIZATION_MODEL_CUSTOMERS,
|
|
73
|
-
CustomersDomainSchema,
|
|
74
|
-
CustomerSegmentSchema,
|
|
75
|
-
FirmographicsSchema
|
|
76
|
-
} from './domains/customers'
|
|
77
|
-
export {
|
|
78
|
-
DEFAULT_ORGANIZATION_MODEL_OFFERINGS,
|
|
79
|
-
OfferingsDomainSchema,
|
|
80
|
-
ProductSchema,
|
|
81
|
-
PricingModelSchema
|
|
82
|
-
} from './domains/offerings'
|
|
83
|
-
export {
|
|
84
|
-
AgentRoleHolderSchema,
|
|
85
|
-
DEFAULT_ORGANIZATION_MODEL_ROLES,
|
|
86
|
-
HumanRoleHolderSchema,
|
|
87
|
-
RoleHolderSchema,
|
|
88
|
-
RoleHoldersSchema,
|
|
89
|
-
RoleIdSchema,
|
|
90
|
-
RolesDomainSchema,
|
|
91
|
-
RoleSchema,
|
|
92
|
-
TeamRoleHolderSchema
|
|
93
|
-
} from './domains/roles'
|
|
94
|
-
export { DEFAULT_ORGANIZATION_MODEL_GOALS, GoalsDomainSchema, ObjectiveSchema, KeyResultSchema } from './domains/goals'
|
|
95
|
-
export {
|
|
96
|
-
DEFAULT_ORGANIZATION_MODEL_SYSTEMS,
|
|
97
|
-
SystemEntrySchema,
|
|
98
|
-
SystemIdSchema,
|
|
99
|
-
SystemKindSchema,
|
|
100
|
-
SystemLifecycleSchema,
|
|
101
|
-
SystemPathSchema,
|
|
102
|
-
SystemUiSchema,
|
|
103
|
-
SystemsDomainSchema,
|
|
104
|
-
SystemStatusSchema
|
|
105
|
-
} from './domains/systems'
|
|
106
|
-
export {
|
|
107
|
-
AgentKindSchema,
|
|
108
|
-
AgentResourceEntrySchema,
|
|
109
|
-
CodeReferenceRoleSchema,
|
|
29
|
+
OrganizationModelDomainMetadataSchema,
|
|
30
|
+
OrganizationModelSchema
|
|
31
|
+
} from './schema'
|
|
32
|
+
export { NodeIdPathSchema, NodeIdStringSchema, UiPositionSchema } from './domains/systems'
|
|
33
|
+
export { LinkSchema } from './graph/link'
|
|
34
|
+
export { IconNameSchema, TechStackEntrySchema } from './domains/shared'
|
|
35
|
+
export {
|
|
36
|
+
ORGANIZATION_MODEL_ICON_TOKENS,
|
|
37
|
+
OrganizationModelBuiltinIconTokenSchema,
|
|
38
|
+
OrganizationModelIconTokenSchema
|
|
39
|
+
} from './icons'
|
|
40
|
+
export {
|
|
41
|
+
KNOWLEDGE_FEATURE_ID,
|
|
42
|
+
KNOWLEDGE_SYSTEM_ID,
|
|
43
|
+
PROJECTS_FEATURE_ID,
|
|
44
|
+
PROJECTS_SYSTEM_ID,
|
|
45
|
+
PROJECTS_INDEX_SURFACE_ID,
|
|
46
|
+
PROJECTS_VIEW_ACTION_ID,
|
|
47
|
+
SALES_FEATURE_ID,
|
|
48
|
+
PROSPECTING_FEATURE_ID,
|
|
49
|
+
OPERATIONS_FEATURE_ID,
|
|
50
|
+
SALES_SYSTEM_ID,
|
|
51
|
+
PROSPECTING_SYSTEM_ID,
|
|
52
|
+
OPERATIONS_SYSTEM_ID,
|
|
53
|
+
MONITORING_FEATURE_ID,
|
|
54
|
+
MONITORING_SYSTEM_ID,
|
|
55
|
+
SETTINGS_FEATURE_ID,
|
|
56
|
+
SETTINGS_SYSTEM_ID,
|
|
57
|
+
SEO_FEATURE_ID,
|
|
58
|
+
SEO_SYSTEM_ID,
|
|
59
|
+
SALES_PIPELINE_SURFACE_ID,
|
|
60
|
+
PROSPECTING_LISTS_SURFACE_ID,
|
|
61
|
+
OPERATIONS_COMMAND_VIEW_SURFACE_ID,
|
|
62
|
+
SETTINGS_ROLES_SURFACE_ID
|
|
63
|
+
} from './contracts'
|
|
64
|
+
export { DEFAULT_ORGANIZATION_MODEL } from './defaults'
|
|
65
|
+
export {
|
|
66
|
+
DEFAULT_ORGANIZATION_MODEL_STATUSES,
|
|
67
|
+
StatusesDomainSchema,
|
|
68
|
+
StatusEntrySchema,
|
|
69
|
+
StatusSemanticClassSchema
|
|
70
|
+
} from './domains/statuses'
|
|
71
|
+
export {
|
|
72
|
+
DEFAULT_ORGANIZATION_MODEL_CUSTOMERS,
|
|
73
|
+
CustomersDomainSchema,
|
|
74
|
+
CustomerSegmentSchema,
|
|
75
|
+
FirmographicsSchema
|
|
76
|
+
} from './domains/customers'
|
|
77
|
+
export {
|
|
78
|
+
DEFAULT_ORGANIZATION_MODEL_OFFERINGS,
|
|
79
|
+
OfferingsDomainSchema,
|
|
80
|
+
ProductSchema,
|
|
81
|
+
PricingModelSchema
|
|
82
|
+
} from './domains/offerings'
|
|
83
|
+
export {
|
|
84
|
+
AgentRoleHolderSchema,
|
|
85
|
+
DEFAULT_ORGANIZATION_MODEL_ROLES,
|
|
86
|
+
HumanRoleHolderSchema,
|
|
87
|
+
RoleHolderSchema,
|
|
88
|
+
RoleHoldersSchema,
|
|
89
|
+
RoleIdSchema,
|
|
90
|
+
RolesDomainSchema,
|
|
91
|
+
RoleSchema,
|
|
92
|
+
TeamRoleHolderSchema
|
|
93
|
+
} from './domains/roles'
|
|
94
|
+
export { DEFAULT_ORGANIZATION_MODEL_GOALS, GoalsDomainSchema, ObjectiveSchema, KeyResultSchema } from './domains/goals'
|
|
95
|
+
export {
|
|
96
|
+
DEFAULT_ORGANIZATION_MODEL_SYSTEMS,
|
|
97
|
+
SystemEntrySchema,
|
|
98
|
+
SystemIdSchema,
|
|
99
|
+
SystemKindSchema,
|
|
100
|
+
SystemLifecycleSchema,
|
|
101
|
+
SystemPathSchema,
|
|
102
|
+
SystemUiSchema,
|
|
103
|
+
SystemsDomainSchema,
|
|
104
|
+
SystemStatusSchema
|
|
105
|
+
} from './domains/systems'
|
|
106
|
+
export {
|
|
107
|
+
AgentKindSchema,
|
|
108
|
+
AgentResourceEntrySchema,
|
|
109
|
+
CodeReferenceRoleSchema,
|
|
110
110
|
CodeReferenceSchema,
|
|
111
|
+
ContractRefSchema,
|
|
111
112
|
DEFAULT_ORGANIZATION_MODEL_RESOURCES,
|
|
112
113
|
defineResource,
|
|
113
114
|
defineResourceOntology,
|
|
114
115
|
defineResources,
|
|
115
|
-
EventDescriptorSchema,
|
|
116
|
-
EventEmissionDescriptorSchema,
|
|
117
|
-
EventIdSchema,
|
|
118
|
-
IntegrationResourceEntrySchema,
|
|
116
|
+
EventDescriptorSchema,
|
|
117
|
+
EventEmissionDescriptorSchema,
|
|
118
|
+
EventIdSchema,
|
|
119
|
+
IntegrationResourceEntrySchema,
|
|
120
|
+
parseContractRef,
|
|
119
121
|
ResourceEntrySchema,
|
|
120
122
|
ResourceGovernanceStatusSchema,
|
|
121
123
|
ResourceIdSchema,
|
|
@@ -143,66 +145,65 @@ export {
|
|
|
143
145
|
topologyRelationship,
|
|
144
146
|
topologyRef
|
|
145
147
|
} from './domains/topology'
|
|
146
|
-
export {
|
|
147
|
-
ActionsDomainSchema,
|
|
148
|
-
ActionIdSchema,
|
|
149
|
-
ActionInvocationKindSchema,
|
|
150
|
-
ActionInvocationSchema,
|
|
151
|
-
ActionRefSchema,
|
|
152
|
-
ActionSchema,
|
|
153
|
-
ActionScopeSchema,
|
|
154
|
-
ApiEndpointInvocationSchema,
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
} from './domains/knowledge'
|
|
202
|
-
export { defineOrganizationModel, resolveOrganizationModel, resolveOrganizationModelWithResources } from './resolve'
|
|
203
|
-
export type { ResolvedSystemEntry, ResolvedOrganizationModel } from './resolve'
|
|
148
|
+
export {
|
|
149
|
+
ActionsDomainSchema,
|
|
150
|
+
ActionIdSchema,
|
|
151
|
+
ActionInvocationKindSchema,
|
|
152
|
+
ActionInvocationSchema,
|
|
153
|
+
ActionRefSchema,
|
|
154
|
+
ActionSchema,
|
|
155
|
+
ActionScopeSchema,
|
|
156
|
+
ApiEndpointInvocationSchema,
|
|
157
|
+
DEFAULT_ORGANIZATION_MODEL_ACTIONS,
|
|
158
|
+
findOrganizationActionById,
|
|
159
|
+
McpToolInvocationSchema,
|
|
160
|
+
ScriptExecutionInvocationSchema,
|
|
161
|
+
SlashCommandInvocationSchema
|
|
162
|
+
} from './domains/actions'
|
|
163
|
+
export {
|
|
164
|
+
DEFAULT_ORGANIZATION_MODEL_ENTITIES,
|
|
165
|
+
EntitiesDomainSchema,
|
|
166
|
+
EntityIdSchema,
|
|
167
|
+
EntityLinkKindSchema,
|
|
168
|
+
EntityLinkSchema,
|
|
169
|
+
EntitySchema
|
|
170
|
+
} from './domains/entities'
|
|
171
|
+
export {
|
|
172
|
+
DEFAULT_ORGANIZATION_MODEL_POLICIES,
|
|
173
|
+
PoliciesDomainSchema,
|
|
174
|
+
PolicyEffectSchema,
|
|
175
|
+
PolicyApplicabilitySchema,
|
|
176
|
+
PolicyIdSchema,
|
|
177
|
+
PolicyPredicateSchema,
|
|
178
|
+
PolicySchema,
|
|
179
|
+
PolicyTriggerSchema
|
|
180
|
+
} from './domains/policies'
|
|
181
|
+
export {
|
|
182
|
+
DEFAULT_ORGANIZATION_MODEL_NAVIGATION,
|
|
183
|
+
getSortedSidebarEntries,
|
|
184
|
+
NavigationGroupSchema,
|
|
185
|
+
OrganizationModelNavigationSchema,
|
|
186
|
+
SidebarNavigationSchema,
|
|
187
|
+
SidebarNodeSchema,
|
|
188
|
+
SidebarSectionSchema,
|
|
189
|
+
SidebarSurfaceTargetsSchema,
|
|
190
|
+
SurfaceDefinitionSchema,
|
|
191
|
+
SurfaceTypeSchema
|
|
192
|
+
} from './domains/navigation'
|
|
193
|
+
export {
|
|
194
|
+
KnowledgeDomainSchema,
|
|
195
|
+
KnowledgeLinkSchema,
|
|
196
|
+
KnowledgeTargetKindSchema,
|
|
197
|
+
KnowledgeTargetRefSchema,
|
|
198
|
+
OrgKnowledgeNodeSchema,
|
|
199
|
+
OrgKnowledgeKindSchema
|
|
200
|
+
} from './domains/knowledge'
|
|
201
|
+
export { defineOrganizationModel, resolveOrganizationModel, resolveOrganizationModelWithResources } from './resolve'
|
|
202
|
+
export type { ResolvedSystemEntry, ResolvedOrganizationModel } from './resolve'
|
|
204
203
|
export { createFoundationOrganizationModel } from './foundation'
|
|
205
204
|
export { scaffoldOrganizationModel } from './scaffolders'
|
|
205
|
+
export { listAllSystems } from './helpers'
|
|
206
|
+
export { projectOrganizationSurfaces, validateOrganizationSurfaceProjection } from './surface-projection'
|
|
206
207
|
export type {
|
|
207
208
|
BaseOmScaffoldSpec,
|
|
208
209
|
KnowledgeNodeScaffoldSpec,
|
|
@@ -215,6 +216,12 @@ export type {
|
|
|
215
216
|
ResourceScaffoldSpec,
|
|
216
217
|
SystemScaffoldSpec
|
|
217
218
|
} from './scaffolders'
|
|
219
|
+
export type { SystemEntryWithTree } from './helpers'
|
|
220
|
+
export type {
|
|
221
|
+
OrganizationSurfaceProjection,
|
|
222
|
+
OrganizationSurfaceProjectionIssue,
|
|
223
|
+
OrganizationSurfaceProjectionIssueCode
|
|
224
|
+
} from './surface-projection'
|
|
218
225
|
|
|
219
226
|
export type {
|
|
220
227
|
OntologyActionType,
|
|
@@ -241,44 +248,47 @@ export type {
|
|
|
241
248
|
|
|
242
249
|
export type {
|
|
243
250
|
DeepPartial,
|
|
244
|
-
KnowledgeLink,
|
|
245
|
-
KnowledgeTargetKind,
|
|
246
|
-
KnowledgeTargetRef,
|
|
247
|
-
OrganizationModel,
|
|
248
|
-
OrganizationModelBranding,
|
|
249
|
-
OrganizationModelCustomerFirmographics,
|
|
250
|
-
OrganizationModelCustomers,
|
|
251
|
-
OrganizationModelCustomerSegment,
|
|
252
|
-
OrganizationModelGoals,
|
|
253
|
-
OrganizationModelNavigation,
|
|
254
|
-
OrganizationModelSidebar,
|
|
255
|
-
OrganizationModelSidebarGroupNode,
|
|
256
|
-
OrganizationModelSidebarNode,
|
|
257
|
-
OrganizationModelSidebarSection,
|
|
258
|
-
OrganizationModelSidebarSurfaceNode,
|
|
259
|
-
OrganizationModelSidebarSurfaceTargets,
|
|
260
|
-
OrganizationModelKeyResult,
|
|
261
|
-
OrganizationModelObjective,
|
|
262
|
-
OrganizationModelSystemEntry,
|
|
263
|
-
OrganizationModelSystemId,
|
|
264
|
-
OrganizationModelSystemKind,
|
|
265
|
-
OrganizationModelSystemLifecycle,
|
|
266
|
-
OrganizationModelSystems,
|
|
267
|
-
OrganizationModelSystemStatus,
|
|
268
|
-
OrganizationModelAgentKind,
|
|
269
|
-
OrganizationModelAgentResourceEntry,
|
|
270
|
-
EventDescriptor,
|
|
271
|
-
EventEmissionDescriptor,
|
|
272
|
-
EventId,
|
|
273
|
-
OrganizationModelIntegrationResourceEntry,
|
|
274
|
-
OrganizationModelResourceEntry,
|
|
275
|
-
OrganizationModelCodeReference,
|
|
276
|
-
OrganizationModelCodeReferenceRole,
|
|
251
|
+
KnowledgeLink,
|
|
252
|
+
KnowledgeTargetKind,
|
|
253
|
+
KnowledgeTargetRef,
|
|
254
|
+
OrganizationModel,
|
|
255
|
+
OrganizationModelBranding,
|
|
256
|
+
OrganizationModelCustomerFirmographics,
|
|
257
|
+
OrganizationModelCustomers,
|
|
258
|
+
OrganizationModelCustomerSegment,
|
|
259
|
+
OrganizationModelGoals,
|
|
260
|
+
OrganizationModelNavigation,
|
|
261
|
+
OrganizationModelSidebar,
|
|
262
|
+
OrganizationModelSidebarGroupNode,
|
|
263
|
+
OrganizationModelSidebarNode,
|
|
264
|
+
OrganizationModelSidebarSection,
|
|
265
|
+
OrganizationModelSidebarSurfaceNode,
|
|
266
|
+
OrganizationModelSidebarSurfaceTargets,
|
|
267
|
+
OrganizationModelKeyResult,
|
|
268
|
+
OrganizationModelObjective,
|
|
269
|
+
OrganizationModelSystemEntry,
|
|
270
|
+
OrganizationModelSystemId,
|
|
271
|
+
OrganizationModelSystemKind,
|
|
272
|
+
OrganizationModelSystemLifecycle,
|
|
273
|
+
OrganizationModelSystems,
|
|
274
|
+
OrganizationModelSystemStatus,
|
|
275
|
+
OrganizationModelAgentKind,
|
|
276
|
+
OrganizationModelAgentResourceEntry,
|
|
277
|
+
EventDescriptor,
|
|
278
|
+
EventEmissionDescriptor,
|
|
279
|
+
EventId,
|
|
280
|
+
OrganizationModelIntegrationResourceEntry,
|
|
281
|
+
OrganizationModelResourceEntry,
|
|
282
|
+
OrganizationModelCodeReference,
|
|
283
|
+
OrganizationModelCodeReferenceRole,
|
|
277
284
|
OrganizationModelResourceGovernanceStatus,
|
|
278
285
|
OrganizationModelResourceId,
|
|
279
286
|
OrganizationModelResourceKind,
|
|
287
|
+
OrganizationModelContractRef,
|
|
280
288
|
OrganizationModelResourceOntologyBinding,
|
|
289
|
+
OrganizationModelResourceOntologyBindingContract,
|
|
281
290
|
OrganizationModelResources,
|
|
291
|
+
ParsedContractRef,
|
|
282
292
|
OrganizationModelScriptResourceEntry,
|
|
283
293
|
OrganizationModelScriptResourceLanguage,
|
|
284
294
|
OrganizationModelScriptResourceSource,
|
|
@@ -289,58 +299,58 @@ export type {
|
|
|
289
299
|
OrganizationModelTopologyRelationship,
|
|
290
300
|
OrganizationModelTopologyRelationshipKind,
|
|
291
301
|
OrganizationModelWorkflowResourceEntry,
|
|
292
|
-
OrganizationModelActions,
|
|
293
|
-
OrganizationModelAction,
|
|
294
|
-
OrganizationModelActionId,
|
|
295
|
-
OrganizationModelActionInvocation,
|
|
296
|
-
OrganizationModelActionInvocationKind,
|
|
297
|
-
OrganizationModelActionRef,
|
|
298
|
-
OrganizationModelActionScope,
|
|
299
|
-
Entity,
|
|
300
|
-
EntityId,
|
|
301
|
-
EntityLink,
|
|
302
|
-
OrganizationModelEntities,
|
|
303
|
-
OrganizationModelEntity,
|
|
304
|
-
OrganizationModelPolicies,
|
|
305
|
-
OrganizationModelPolicy,
|
|
306
|
-
OrganizationModelPolicyEffect,
|
|
307
|
-
OrganizationModelPolicyApplicability,
|
|
308
|
-
OrganizationModelPolicyId,
|
|
309
|
-
OrganizationModelPolicyPredicate,
|
|
310
|
-
OrganizationModelPolicyTrigger,
|
|
311
|
-
OrganizationModelOfferings,
|
|
312
|
-
OrganizationModelPricingModel,
|
|
313
|
-
OrganizationModelProduct,
|
|
314
|
-
OrganizationModelRole,
|
|
315
|
-
OrganizationModelAgentRoleHolder,
|
|
316
|
-
OrganizationModelHumanRoleHolder,
|
|
317
|
-
OrganizationModelRoleHolder,
|
|
318
|
-
OrganizationModelRoleId,
|
|
319
|
-
OrganizationModelTechStackEntry,
|
|
320
|
-
OrganizationModelTeamRoleHolder,
|
|
321
|
-
OrganizationModelRoles,
|
|
322
|
-
OrganizationModelStatuses,
|
|
323
|
-
OrganizationModelStatusEntry,
|
|
324
|
-
OrganizationModelStatusSemanticClass,
|
|
325
|
-
NodeIdPath,
|
|
326
|
-
NodeIdString,
|
|
327
|
-
OrganizationModelKnowledge,
|
|
328
|
-
OrgKnowledgeNode,
|
|
329
|
-
OrgKnowledgeNodeInput,
|
|
330
|
-
OrgKnowledgeKind,
|
|
331
|
-
OrganizationModelIconToken,
|
|
302
|
+
OrganizationModelActions,
|
|
303
|
+
OrganizationModelAction,
|
|
304
|
+
OrganizationModelActionId,
|
|
305
|
+
OrganizationModelActionInvocation,
|
|
306
|
+
OrganizationModelActionInvocationKind,
|
|
307
|
+
OrganizationModelActionRef,
|
|
308
|
+
OrganizationModelActionScope,
|
|
309
|
+
Entity,
|
|
310
|
+
EntityId,
|
|
311
|
+
EntityLink,
|
|
312
|
+
OrganizationModelEntities,
|
|
313
|
+
OrganizationModelEntity,
|
|
314
|
+
OrganizationModelPolicies,
|
|
315
|
+
OrganizationModelPolicy,
|
|
316
|
+
OrganizationModelPolicyEffect,
|
|
317
|
+
OrganizationModelPolicyApplicability,
|
|
318
|
+
OrganizationModelPolicyId,
|
|
319
|
+
OrganizationModelPolicyPredicate,
|
|
320
|
+
OrganizationModelPolicyTrigger,
|
|
321
|
+
OrganizationModelOfferings,
|
|
322
|
+
OrganizationModelPricingModel,
|
|
323
|
+
OrganizationModelProduct,
|
|
324
|
+
OrganizationModelRole,
|
|
325
|
+
OrganizationModelAgentRoleHolder,
|
|
326
|
+
OrganizationModelHumanRoleHolder,
|
|
327
|
+
OrganizationModelRoleHolder,
|
|
328
|
+
OrganizationModelRoleId,
|
|
329
|
+
OrganizationModelTechStackEntry,
|
|
330
|
+
OrganizationModelTeamRoleHolder,
|
|
331
|
+
OrganizationModelRoles,
|
|
332
|
+
OrganizationModelStatuses,
|
|
333
|
+
OrganizationModelStatusEntry,
|
|
334
|
+
OrganizationModelStatusSemanticClass,
|
|
335
|
+
NodeIdPath,
|
|
336
|
+
NodeIdString,
|
|
337
|
+
OrganizationModelKnowledge,
|
|
338
|
+
OrgKnowledgeNode,
|
|
339
|
+
OrgKnowledgeNodeInput,
|
|
340
|
+
OrgKnowledgeKind,
|
|
341
|
+
OrganizationModelIconToken,
|
|
332
342
|
OrganizationModelBuiltinIconToken,
|
|
333
343
|
OrganizationModelDomainKey,
|
|
334
344
|
OrganizationModelDomainMetadata,
|
|
335
345
|
OrganizationModelDomainMetadataByDomain
|
|
336
346
|
} from './types'
|
|
337
|
-
|
|
338
|
-
export type { LeadGenStageCatalogEntry } from './catalogs/lead-gen'
|
|
339
|
-
|
|
340
|
-
export type {
|
|
341
|
-
FoundationBranding,
|
|
342
|
-
FoundationNavigationSurface,
|
|
343
|
-
FoundationOrganizationModel,
|
|
344
|
-
FoundationSurfaceIcon,
|
|
345
|
-
FoundationSurfaceType
|
|
346
|
-
} from './foundation'
|
|
347
|
+
|
|
348
|
+
export type { LeadGenStageCatalogEntry } from './catalogs/lead-gen'
|
|
349
|
+
|
|
350
|
+
export type {
|
|
351
|
+
FoundationBranding,
|
|
352
|
+
FoundationNavigationSurface,
|
|
353
|
+
FoundationOrganizationModel,
|
|
354
|
+
FoundationSurfaceIcon,
|
|
355
|
+
FoundationSurfaceType
|
|
356
|
+
} from './foundation'
|
|
@@ -120,11 +120,10 @@ export function resolveOrganizationModel(
|
|
|
120
120
|
const resolvedOptions = typeof organizationIdOrOptions === 'object' ? organizationIdOrOptions : options
|
|
121
121
|
const mergeDefaults = resolvedOptions?.mergeDefaults ?? true
|
|
122
122
|
const merged = mergeDefaults ? deepMerge(DEFAULT_ORGANIZATION_MODEL, override) : (override ?? {})
|
|
123
|
-
//
|
|
124
|
-
//
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
}
|
|
123
|
+
// Pipeline data lives in ontology catalogTypes; use getAllPipelines(model)
|
|
124
|
+
// from migration-helpers to check pipeline presence when needed.
|
|
125
|
+
return OrganizationModelSchema.parse(merged)
|
|
126
|
+
}
|
|
128
127
|
|
|
129
128
|
/**
|
|
130
129
|
* Resolve the organization model and enrich each flat system entry in
|