@elevasis/core 0.23.0 → 0.24.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +4343 -2690
- package/dist/index.js +1101 -156
- package/dist/knowledge/index.d.ts +574 -210
- package/dist/knowledge/index.js +104 -1
- package/dist/organization-model/index.d.ts +4343 -2690
- package/dist/organization-model/index.js +1101 -156
- package/dist/test-utils/index.d.ts +483 -109
- package/dist/test-utils/index.js +904 -144
- package/package.json +3 -3
- package/src/README.md +14 -14
- package/src/__tests__/publish.test.ts +24 -24
- package/src/__tests__/template-core-compatibility.test.ts +9 -12
- package/src/_gen/__tests__/__snapshots__/contracts.md.snap +2137 -2093
- package/src/_gen/__tests__/scaffold-contracts.test.ts +30 -30
- package/src/auth/multi-tenancy/credentials/__tests__/encryption.test.ts +217 -217
- package/src/auth/multi-tenancy/credentials/server/encryption.ts +69 -69
- package/src/auth/multi-tenancy/credentials/server/kek-loader.ts +37 -37
- package/src/auth/multi-tenancy/index.ts +26 -26
- package/src/auth/multi-tenancy/invitations/api-schemas.ts +104 -104
- package/src/auth/multi-tenancy/memberships/api-schemas.ts +143 -143
- package/src/auth/multi-tenancy/memberships/index.ts +26 -26
- package/src/auth/multi-tenancy/memberships/membership.ts +130 -130
- package/src/auth/multi-tenancy/organizations/__tests__/api-schemas.test.ts +194 -194
- package/src/auth/multi-tenancy/organizations/api-schemas.ts +136 -136
- package/src/auth/multi-tenancy/permissions.test.ts +42 -42
- package/src/auth/multi-tenancy/permissions.ts +123 -123
- package/src/auth/multi-tenancy/role-management/api-schemas.ts +78 -78
- package/src/auth/multi-tenancy/role-management/index.ts +16 -16
- package/src/auth/multi-tenancy/theme-presets.ts +45 -45
- package/src/auth/multi-tenancy/types.ts +57 -57
- package/src/auth/multi-tenancy/users/api-schemas.ts +165 -165
- package/src/business/README.md +2 -2
- package/src/business/acquisition/activity-events.test.ts +250 -250
- package/src/business/acquisition/activity-events.ts +93 -93
- package/src/business/acquisition/api-schemas.test.ts +1883 -1843
- package/src/business/acquisition/api-schemas.ts +1492 -1497
- package/src/business/acquisition/build-templates.test.ts +240 -240
- package/src/business/acquisition/build-templates.ts +98 -98
- package/src/business/acquisition/crm-next-action.test.ts +262 -262
- package/src/business/acquisition/crm-next-action.ts +220 -220
- package/src/business/acquisition/crm-priority.test.ts +216 -216
- package/src/business/acquisition/crm-priority.ts +349 -349
- package/src/business/acquisition/crm-state-actions.test.ts +153 -153
- package/src/business/acquisition/deal-ownership.test.ts +351 -351
- package/src/business/acquisition/deal-ownership.ts +120 -120
- package/src/business/acquisition/derive-actions.test.ts +129 -104
- package/src/business/acquisition/derive-actions.ts +74 -84
- package/src/business/acquisition/index.ts +171 -170
- package/src/business/acquisition/ontology-validation.ts +309 -0
- package/src/business/acquisition/stateful.ts +30 -30
- package/src/business/acquisition/types.ts +396 -396
- package/src/business/clients/api-schemas.test.ts +115 -115
- package/src/business/clients/api-schemas.ts +158 -158
- package/src/business/clients/index.ts +1 -1
- package/src/business/crm/api-schemas.ts +40 -40
- package/src/business/crm/index.ts +1 -1
- package/src/business/deals/api-schemas.ts +87 -87
- package/src/business/deals/index.ts +1 -1
- package/src/business/index.ts +5 -5
- package/src/business/projects/types.ts +144 -144
- package/src/commands/queue/types/task.ts +15 -15
- package/src/execution/core/runner-types.ts +61 -61
- package/src/execution/core/sse-executions.ts +7 -7
- package/src/execution/engine/__tests__/fixtures/test-agents.ts +10 -10
- package/src/execution/engine/agent/core/__tests__/agent.test.ts +16 -16
- package/src/execution/engine/agent/core/__tests__/error-passthrough.test.ts +4 -4
- package/src/execution/engine/agent/core/types.ts +25 -25
- package/src/execution/engine/agent/index.ts +6 -6
- package/src/execution/engine/agent/reasoning/__tests__/request-builder.test.ts +24 -24
- package/src/execution/engine/index.ts +443 -443
- package/src/execution/engine/tools/integration/server/adapters/apify/__tests__/apify-run-actor.integration.test.ts +298 -298
- package/src/execution/engine/tools/integration/server/adapters/apify/apify-adapter.test.ts +55 -55
- package/src/execution/engine/tools/integration/server/adapters/apify/apify-adapter.ts +107 -107
- package/src/execution/engine/tools/integration/server/adapters/apollo/apollo-adapter.test.ts +48 -48
- package/src/execution/engine/tools/integration/server/adapters/apollo/apollo-adapter.ts +99 -99
- package/src/execution/engine/tools/integration/server/adapters/apollo/index.ts +1 -1
- package/src/execution/engine/tools/integration/server/adapters/attio/__tests__/attio-crud.integration.test.ts +363 -363
- package/src/execution/engine/tools/integration/server/adapters/attio/fetch/get-record/index.test.ts +162 -162
- package/src/execution/engine/tools/integration/server/adapters/attio/fetch/list-records/index.test.ts +316 -316
- package/src/execution/engine/tools/integration/server/adapters/clickup/clickup-adapter.test.ts +18 -18
- package/src/execution/engine/tools/integration/server/adapters/clickup/clickup-adapter.ts +194 -194
- package/src/execution/engine/tools/integration/server/adapters/clickup/index.ts +7 -7
- package/src/execution/engine/tools/integration/server/adapters/gmail/gmail-adapter.ts +204 -204
- package/src/execution/engine/tools/integration/server/adapters/gmail/gmail-tools.ts +105 -105
- package/src/execution/engine/tools/integration/server/adapters/google-calendar/google-calendar-adapter.ts +428 -428
- package/src/execution/engine/tools/integration/server/adapters/google-calendar/index.ts +2 -2
- package/src/execution/engine/tools/integration/server/adapters/google-sheets/__tests__/google-sheets.integration.test.ts +261 -261
- package/src/execution/engine/tools/integration/server/adapters/instantly/instantly-tools.ts +1474 -1474
- package/src/execution/engine/tools/integration/server/adapters/millionverifier/millionverifier-tools.ts +103 -103
- package/src/execution/engine/tools/integration/server/adapters/resend/fetch/send-email/index.test.ts +88 -88
- package/src/execution/engine/tools/integration/server/adapters/resend/fetch/send-email/index.ts +141 -141
- package/src/execution/engine/tools/integration/server/adapters/resend/fetch/utils/types.ts +76 -76
- package/src/execution/engine/tools/integration/server/adapters/signature-api/signature-api-tools.ts +182 -182
- package/src/execution/engine/tools/integration/server/adapters/stripe/stripe-tools.ts +310 -310
- package/src/execution/engine/tools/integration/service.test.ts +239 -239
- package/src/execution/engine/tools/integration/service.ts +172 -172
- package/src/execution/engine/tools/integration/tool.ts +255 -255
- package/src/execution/engine/tools/lead-service-types.ts +1005 -1005
- package/src/execution/engine/tools/messages.ts +43 -43
- package/src/execution/engine/tools/platform/acquisition/company-tools.ts +7 -7
- package/src/execution/engine/tools/platform/acquisition/contact-tools.ts +6 -6
- package/src/execution/engine/tools/platform/acquisition/list-tools.ts +6 -6
- package/src/execution/engine/tools/platform/acquisition/types.ts +280 -280
- package/src/execution/engine/tools/platform/email/types.ts +97 -97
- package/src/execution/engine/tools/registry.ts +704 -704
- package/src/execution/engine/tools/tool-maps.ts +831 -831
- package/src/execution/engine/tools/types.ts +234 -234
- package/src/execution/engine/workflow/types.ts +195 -197
- package/src/execution/external/__tests__/api-schemas.test.ts +127 -127
- package/src/execution/external/api-schemas.ts +40 -40
- package/src/execution/external/index.ts +1 -1
- package/src/index.ts +18 -18
- package/src/integrations/credentials/__tests__/api-schemas.test.ts +420 -420
- package/src/integrations/credentials/api-schemas.ts +146 -146
- package/src/integrations/credentials/schemas.ts +200 -200
- package/src/integrations/oauth/__tests__/provider-registry.test.ts +7 -7
- package/src/integrations/oauth/provider-registry.ts +74 -74
- package/src/integrations/oauth/server/credentials.ts +43 -43
- package/src/integrations/webhook-endpoints/__tests__/api-schemas.test.ts +327 -327
- package/src/integrations/webhook-endpoints/api-schemas.ts +103 -103
- package/src/integrations/webhook-endpoints/types.ts +58 -58
- package/src/knowledge/README.md +32 -32
- package/src/knowledge/__tests__/queries.test.ts +626 -535
- package/src/knowledge/format.ts +99 -99
- package/src/knowledge/index.ts +5 -5
- package/src/knowledge/published.ts +5 -5
- package/src/knowledge/queries.ts +269 -218
- package/src/operations/activities/api-schemas.ts +80 -80
- package/src/operations/activities/types.ts +64 -64
- package/src/organization-model/README.md +149 -149
- package/src/organization-model/__tests__/content-kinds-registry.test.ts +210 -210
- package/src/organization-model/__tests__/defaults.test.ts +168 -168
- package/src/organization-model/__tests__/domains/actions.test.ts +78 -56
- package/src/organization-model/__tests__/domains/customers.test.ts +299 -299
- package/src/organization-model/__tests__/domains/entities.test.ts +56 -56
- package/src/organization-model/__tests__/domains/goals.test.ts +493 -493
- package/src/organization-model/__tests__/domains/identity.test.ts +280 -280
- package/src/organization-model/__tests__/domains/navigation.test.ts +268 -268
- package/src/organization-model/__tests__/domains/offerings.test.ts +414 -414
- package/src/organization-model/__tests__/domains/policies.test.ts +323 -323
- package/src/organization-model/__tests__/domains/resource-mappings.test.ts +293 -293
- package/src/organization-model/__tests__/domains/resources.test.ts +387 -277
- package/src/organization-model/__tests__/domains/roles.test.ts +463 -463
- package/src/organization-model/__tests__/domains/statuses.test.ts +246 -246
- package/src/organization-model/__tests__/domains/systems.test.ts +209 -209
- package/src/organization-model/__tests__/domains/topology.test.ts +188 -0
- package/src/organization-model/__tests__/flatten-additive-merge.test.ts +362 -361
- package/src/organization-model/__tests__/foundation.test.ts +77 -77
- package/src/organization-model/__tests__/get-resources-for-system.test.ts +144 -144
- package/src/organization-model/__tests__/graph.test.ts +1312 -862
- package/src/organization-model/__tests__/icons.test.ts +10 -1
- package/src/organization-model/__tests__/knowledge.test.ts +251 -15
- package/src/organization-model/__tests__/lookup-helpers.test.ts +438 -438
- package/src/organization-model/__tests__/migration-helpers.test.ts +591 -591
- package/src/organization-model/__tests__/prospecting-ssot.test.ts +103 -103
- package/src/organization-model/__tests__/recursive-system-schema.test.ts +535 -506
- package/src/organization-model/__tests__/resolve.test.ts +274 -164
- package/src/organization-model/__tests__/schema.test.ts +844 -301
- package/src/organization-model/__tests__/surface-projection.test.ts +284 -284
- package/src/organization-model/catalogs/lead-gen.ts +144 -144
- package/src/organization-model/content-kinds/config.ts +36 -36
- package/src/organization-model/content-kinds/index.ts +76 -72
- package/src/organization-model/content-kinds/pipeline.ts +68 -68
- package/src/organization-model/content-kinds/registry.ts +44 -44
- package/src/organization-model/content-kinds/status.ts +71 -71
- package/src/organization-model/content-kinds/template.ts +83 -83
- package/src/organization-model/content-kinds/types.ts +117 -117
- package/src/organization-model/contracts.ts +27 -27
- package/src/organization-model/defaults.ts +42 -50
- package/src/organization-model/domains/actions.ts +333 -239
- package/src/organization-model/domains/customers.ts +78 -78
- package/src/organization-model/domains/entities.ts +144 -144
- package/src/organization-model/domains/goals.ts +83 -83
- package/src/organization-model/domains/knowledge.ts +117 -101
- package/src/organization-model/domains/navigation.ts +139 -139
- package/src/organization-model/domains/offerings.ts +71 -71
- package/src/organization-model/domains/policies.ts +102 -102
- package/src/organization-model/domains/projects.ts +14 -14
- package/src/organization-model/domains/prospecting.ts +395 -395
- package/src/organization-model/domains/resources.ts +202 -124
- package/src/organization-model/domains/roles.ts +96 -96
- package/src/organization-model/domains/sales.test.ts +218 -218
- package/src/organization-model/domains/sales.ts +380 -380
- package/src/organization-model/domains/shared.ts +63 -63
- package/src/organization-model/domains/statuses.ts +339 -339
- package/src/organization-model/domains/systems.ts +217 -172
- package/src/organization-model/domains/topology.ts +261 -0
- package/src/organization-model/foundation.ts +75 -75
- package/src/organization-model/graph/build.ts +1043 -867
- package/src/organization-model/graph/index.ts +4 -4
- package/src/organization-model/graph/link.ts +10 -10
- package/src/organization-model/graph/schema.ts +75 -68
- package/src/organization-model/graph/types.ts +71 -64
- package/src/organization-model/helpers.ts +289 -241
- package/src/organization-model/icons.ts +78 -66
- package/src/organization-model/index.ts +128 -125
- package/src/organization-model/migration-helpers.ts +247 -244
- package/src/organization-model/ontology.ts +658 -0
- package/src/organization-model/organization-graph.mdx +110 -90
- package/src/organization-model/organization-model.mdx +225 -213
- package/src/organization-model/published.ts +299 -222
- package/src/organization-model/resolve.ts +146 -91
- package/src/organization-model/schema.ts +818 -659
- package/src/organization-model/surface-projection.ts +212 -212
- package/src/organization-model/types.ts +179 -155
- package/src/platform/api/types.ts +38 -38
- package/src/platform/constants/versions.ts +3 -3
- package/src/platform/index.ts +23 -23
- package/src/platform/registry/__tests__/command-view.test.ts +10 -10
- package/src/platform/registry/__tests__/resource-link.test.ts +35 -35
- package/src/platform/registry/__tests__/resource-registry.integration.test.ts +20 -20
- package/src/platform/registry/__tests__/resource-registry.nested-systems.test.ts +245 -245
- package/src/platform/registry/__tests__/resource-registry.test.ts +2053 -2053
- package/src/platform/registry/__tests__/validation.test.ts +1444 -1259
- package/src/platform/registry/command-view.ts +10 -10
- package/src/platform/registry/index.ts +103 -103
- package/src/platform/registry/resource-link.ts +32 -32
- package/src/platform/registry/resource-registry.ts +886 -886
- package/src/platform/registry/serialization.ts +295 -295
- package/src/platform/registry/serialized-types.ts +166 -166
- package/src/platform/registry/stats-types.ts +68 -68
- package/src/platform/registry/types.ts +425 -425
- package/src/platform/registry/validation.ts +876 -684
- package/src/platform/utils/__tests__/validation.test.ts +1084 -1084
- package/src/platform/utils/validation.ts +425 -425
- package/src/projects/api-schemas.test.ts +39 -39
- package/src/projects/api-schemas.ts +291 -291
- package/src/reference/_generated/contracts.md +2136 -2093
- package/src/reference/glossary.md +76 -76
- package/src/scaffold-registry/__tests__/index.test.ts +206 -206
- package/src/scaffold-registry/__tests__/schema.test.ts +166 -166
- package/src/scaffold-registry/index.ts +392 -392
- package/src/scaffold-registry/schema.ts +243 -243
- package/src/server.ts +289 -289
- package/src/supabase/database.types.ts +3 -0
- package/src/test-utils/README.md +37 -37
- package/src/test-utils/entities.ts +108 -108
- package/src/test-utils/fixtures/memberships.ts +82 -82
- package/src/test-utils/index.ts +12 -12
- package/src/test-utils/organization-model.ts +65 -65
- package/src/test-utils/published.ts +6 -6
- package/src/test-utils/rls/RLSTestContext.ts +588 -588
- package/src/test-utils/test-utils.test.ts +44 -44
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
export const KNOWLEDGE_FEATURE_ID = 'knowledge' as const
|
|
2
|
-
export const KNOWLEDGE_SYSTEM_ID = 'knowledge' as const
|
|
3
|
-
|
|
4
|
-
export const PROJECTS_SYSTEM_ID = 'projects' as const
|
|
5
|
-
/** @deprecated Use PROJECTS_SYSTEM_ID. Scheduled for removal after one publish cycle. */
|
|
6
|
-
export const PROJECTS_FEATURE_ID = PROJECTS_SYSTEM_ID
|
|
7
|
-
export const PROJECTS_INDEX_SURFACE_ID = 'projects.index' as const
|
|
8
|
-
export const PROJECTS_VIEW_ACTION_ID = 'delivery.projects.view' as const
|
|
9
|
-
|
|
10
|
-
export const SALES_FEATURE_ID = 'crm' as const
|
|
11
|
-
export const PROSPECTING_FEATURE_ID = 'lead-gen' as const
|
|
12
|
-
export const MONITORING_FEATURE_ID = 'monitoring' as const
|
|
13
|
-
export const SETTINGS_FEATURE_ID = 'settings' as const
|
|
14
|
-
export const SEO_FEATURE_ID = 'seo' as const
|
|
15
|
-
export const SALES_SYSTEM_ID = 'sales.crm' as const
|
|
16
|
-
export const PROSPECTING_SYSTEM_ID = 'sales.lead-gen' as const
|
|
17
|
-
export const OPERATIONS_SYSTEM_ID = 'operations' as const
|
|
18
|
-
/** @deprecated Use OPERATIONS_SYSTEM_ID. Scheduled for removal after one publish cycle. */
|
|
19
|
-
export const OPERATIONS_FEATURE_ID = OPERATIONS_SYSTEM_ID
|
|
20
|
-
export const MONITORING_SYSTEM_ID = 'monitoring' as const
|
|
21
|
-
export const SETTINGS_SYSTEM_ID = 'settings' as const
|
|
22
|
-
export const SEO_SYSTEM_ID = 'seo' as const
|
|
23
|
-
|
|
24
|
-
export const SALES_PIPELINE_SURFACE_ID = 'crm.pipeline' as const
|
|
25
|
-
export const PROSPECTING_LISTS_SURFACE_ID = 'lead-gen.lists' as const
|
|
26
|
-
export const OPERATIONS_COMMAND_VIEW_SURFACE_ID = 'knowledge.command-view' as const
|
|
27
|
-
export const SETTINGS_ROLES_SURFACE_ID = 'settings.roles' as const
|
|
1
|
+
export const KNOWLEDGE_FEATURE_ID = 'knowledge' as const
|
|
2
|
+
export const KNOWLEDGE_SYSTEM_ID = 'knowledge' as const
|
|
3
|
+
|
|
4
|
+
export const PROJECTS_SYSTEM_ID = 'projects' as const
|
|
5
|
+
/** @deprecated Use PROJECTS_SYSTEM_ID. Scheduled for removal after one publish cycle. */
|
|
6
|
+
export const PROJECTS_FEATURE_ID = PROJECTS_SYSTEM_ID
|
|
7
|
+
export const PROJECTS_INDEX_SURFACE_ID = 'projects.index' as const
|
|
8
|
+
export const PROJECTS_VIEW_ACTION_ID = 'delivery.projects.view' as const
|
|
9
|
+
|
|
10
|
+
export const SALES_FEATURE_ID = 'crm' as const
|
|
11
|
+
export const PROSPECTING_FEATURE_ID = 'lead-gen' as const
|
|
12
|
+
export const MONITORING_FEATURE_ID = 'monitoring' as const
|
|
13
|
+
export const SETTINGS_FEATURE_ID = 'settings' as const
|
|
14
|
+
export const SEO_FEATURE_ID = 'seo' as const
|
|
15
|
+
export const SALES_SYSTEM_ID = 'sales.crm' as const
|
|
16
|
+
export const PROSPECTING_SYSTEM_ID = 'sales.lead-gen' as const
|
|
17
|
+
export const OPERATIONS_SYSTEM_ID = 'operations' as const
|
|
18
|
+
/** @deprecated Use OPERATIONS_SYSTEM_ID. Scheduled for removal after one publish cycle. */
|
|
19
|
+
export const OPERATIONS_FEATURE_ID = OPERATIONS_SYSTEM_ID
|
|
20
|
+
export const MONITORING_SYSTEM_ID = 'monitoring' as const
|
|
21
|
+
export const SETTINGS_SYSTEM_ID = 'settings' as const
|
|
22
|
+
export const SEO_SYSTEM_ID = 'seo' as const
|
|
23
|
+
|
|
24
|
+
export const SALES_PIPELINE_SURFACE_ID = 'crm.pipeline' as const
|
|
25
|
+
export const PROSPECTING_LISTS_SURFACE_ID = 'lead-gen.lists' as const
|
|
26
|
+
export const OPERATIONS_COMMAND_VIEW_SURFACE_ID = 'knowledge.command-view' as const
|
|
27
|
+
export const SETTINGS_ROLES_SURFACE_ID = 'settings.roles' as const
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
2
|
* Fixture-only stub for the generic OrganizationModel merge base.
|
|
3
3
|
*
|
|
4
4
|
* This constant is used by:
|
|
@@ -17,10 +17,12 @@ import { DEFAULT_ORGANIZATION_MODEL_OFFERINGS } from './domains/offerings'
|
|
|
17
17
|
import { DEFAULT_ORGANIZATION_MODEL_ROLES } from './domains/roles'
|
|
18
18
|
import { DEFAULT_ORGANIZATION_MODEL_GOALS } from './domains/goals'
|
|
19
19
|
import { DEFAULT_ORGANIZATION_MODEL_RESOURCES } from './domains/resources'
|
|
20
|
-
import {
|
|
20
|
+
import { DEFAULT_ORGANIZATION_MODEL_TOPOLOGY } from './domains/topology'
|
|
21
|
+
import { CRM_ACTION_ENTRIES, DEFAULT_ORGANIZATION_MODEL_ACTIONS, LEAD_GEN_ACTION_ENTRIES } from './domains/actions'
|
|
21
22
|
import { DEFAULT_ORGANIZATION_MODEL_ENTITIES as DEFAULT_ENTITIES } from './domains/entities'
|
|
22
23
|
import { DEFAULT_ORGANIZATION_MODEL_POLICIES } from './domains/policies'
|
|
23
24
|
import { DEFAULT_ORGANIZATION_MODEL_DOMAIN_METADATA } from './schema'
|
|
25
|
+
import { DEFAULT_ONTOLOGY_SCOPE } from './ontology'
|
|
24
26
|
import type { OrganizationModelNavigation } from './types'
|
|
25
27
|
|
|
26
28
|
// Phase 4: DEFAULT_ORGANIZATION_MODEL_KNOWLEDGE is now a flat Record<id, OrgKnowledgeNode> (D3).
|
|
@@ -37,14 +39,14 @@ const DEFAULT_ORGANIZATION_MODEL_NAVIGATION: OrganizationModelNavigation = {
|
|
|
37
39
|
label: 'Dashboard',
|
|
38
40
|
path: '/',
|
|
39
41
|
surfaceType: 'dashboard',
|
|
40
|
-
icon: '
|
|
42
|
+
icon: 'dashboard',
|
|
41
43
|
order: 10,
|
|
42
44
|
targets: { systems: ['dashboard'] }
|
|
43
45
|
},
|
|
44
46
|
business: {
|
|
45
47
|
type: 'group',
|
|
46
48
|
label: 'Business',
|
|
47
|
-
icon: '
|
|
49
|
+
icon: 'business',
|
|
48
50
|
order: 20,
|
|
49
51
|
children: {
|
|
50
52
|
sales: {
|
|
@@ -52,7 +54,7 @@ const DEFAULT_ORGANIZATION_MODEL_NAVIGATION: OrganizationModelNavigation = {
|
|
|
52
54
|
label: 'Sales',
|
|
53
55
|
path: '/sales',
|
|
54
56
|
surfaceType: 'page',
|
|
55
|
-
icon: '
|
|
57
|
+
icon: 'sales',
|
|
56
58
|
order: 10,
|
|
57
59
|
targets: { systems: ['sales'] }
|
|
58
60
|
},
|
|
@@ -61,7 +63,7 @@ const DEFAULT_ORGANIZATION_MODEL_NAVIGATION: OrganizationModelNavigation = {
|
|
|
61
63
|
label: 'Clients',
|
|
62
64
|
path: '/clients',
|
|
63
65
|
surfaceType: 'list',
|
|
64
|
-
icon: '
|
|
66
|
+
icon: 'projects',
|
|
65
67
|
order: 20,
|
|
66
68
|
targets: { systems: ['clients'] }
|
|
67
69
|
},
|
|
@@ -70,7 +72,7 @@ const DEFAULT_ORGANIZATION_MODEL_NAVIGATION: OrganizationModelNavigation = {
|
|
|
70
72
|
label: 'Projects',
|
|
71
73
|
path: '/projects',
|
|
72
74
|
surfaceType: 'page',
|
|
73
|
-
icon: '
|
|
75
|
+
icon: 'projects',
|
|
74
76
|
order: 30,
|
|
75
77
|
targets: { systems: ['projects'] }
|
|
76
78
|
}
|
|
@@ -79,7 +81,7 @@ const DEFAULT_ORGANIZATION_MODEL_NAVIGATION: OrganizationModelNavigation = {
|
|
|
79
81
|
operations: {
|
|
80
82
|
type: 'group',
|
|
81
83
|
label: 'Operations',
|
|
82
|
-
icon: '
|
|
84
|
+
icon: 'operations',
|
|
83
85
|
order: 30,
|
|
84
86
|
children: {
|
|
85
87
|
'operations-overview': {
|
|
@@ -127,7 +129,7 @@ const DEFAULT_ORGANIZATION_MODEL_NAVIGATION: OrganizationModelNavigation = {
|
|
|
127
129
|
monitoring: {
|
|
128
130
|
type: 'group',
|
|
129
131
|
label: 'Monitoring',
|
|
130
|
-
icon: '
|
|
132
|
+
icon: 'monitoring',
|
|
131
133
|
order: 40,
|
|
132
134
|
children: {
|
|
133
135
|
'monitoring-overview': {
|
|
@@ -189,36 +191,19 @@ const DEFAULT_ORGANIZATION_MODEL_NAVIGATION: OrganizationModelNavigation = {
|
|
|
189
191
|
}
|
|
190
192
|
},
|
|
191
193
|
knowledge: {
|
|
192
|
-
type: '
|
|
193
|
-
label: 'Knowledge',
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
type: 'surface',
|
|
199
|
-
label: 'Knowledge Base',
|
|
200
|
-
path: '/knowledge',
|
|
201
|
-
surfaceType: 'page',
|
|
202
|
-
order: 10,
|
|
203
|
-
targets: { systems: ['knowledge.base'] }
|
|
204
|
-
},
|
|
205
|
-
'knowledge-command-view': {
|
|
206
|
-
type: 'surface',
|
|
207
|
-
label: 'Command View',
|
|
208
|
-
path: '/knowledge/command-view',
|
|
209
|
-
surfaceType: 'graph',
|
|
210
|
-
order: 20,
|
|
211
|
-
targets: { systems: ['knowledge.command-view'] },
|
|
212
|
-
devOnly: true
|
|
213
|
-
}
|
|
214
|
-
}
|
|
194
|
+
type: 'surface',
|
|
195
|
+
label: 'Knowledge Base',
|
|
196
|
+
path: '/knowledge',
|
|
197
|
+
surfaceType: 'page',
|
|
198
|
+
icon: 'knowledge',
|
|
199
|
+
order: 50
|
|
215
200
|
}
|
|
216
201
|
},
|
|
217
202
|
bottom: {
|
|
218
203
|
settings: {
|
|
219
204
|
type: 'group',
|
|
220
205
|
label: 'Settings',
|
|
221
|
-
icon: '
|
|
206
|
+
icon: 'settings',
|
|
222
207
|
order: 10,
|
|
223
208
|
children: {
|
|
224
209
|
'settings-account': {
|
|
@@ -290,7 +275,7 @@ const DEFAULT_ORGANIZATION_MODEL_NAVIGATION: OrganizationModelNavigation = {
|
|
|
290
275
|
admin: {
|
|
291
276
|
type: 'group',
|
|
292
277
|
label: 'Admin',
|
|
293
|
-
icon: '
|
|
278
|
+
icon: 'admin',
|
|
294
279
|
order: 20,
|
|
295
280
|
children: {
|
|
296
281
|
'admin-dashboard': {
|
|
@@ -371,7 +356,7 @@ export const DEFAULT_ORGANIZATION_MODEL: OrganizationModel = {
|
|
|
371
356
|
enabled: true,
|
|
372
357
|
lifecycle: 'active',
|
|
373
358
|
path: '/',
|
|
374
|
-
icon: '
|
|
359
|
+
icon: 'dashboard'
|
|
375
360
|
},
|
|
376
361
|
platform: {
|
|
377
362
|
id: 'platform',
|
|
@@ -381,7 +366,7 @@ export const DEFAULT_ORGANIZATION_MODEL: OrganizationModel = {
|
|
|
381
366
|
enabled: true,
|
|
382
367
|
lifecycle: 'active',
|
|
383
368
|
color: 'cyan',
|
|
384
|
-
icon: '
|
|
369
|
+
icon: 'platform'
|
|
385
370
|
},
|
|
386
371
|
finance: {
|
|
387
372
|
id: 'finance',
|
|
@@ -391,7 +376,7 @@ export const DEFAULT_ORGANIZATION_MODEL: OrganizationModel = {
|
|
|
391
376
|
enabled: true,
|
|
392
377
|
lifecycle: 'active',
|
|
393
378
|
color: 'green',
|
|
394
|
-
icon: '
|
|
379
|
+
icon: 'finance'
|
|
395
380
|
},
|
|
396
381
|
sales: {
|
|
397
382
|
id: 'sales',
|
|
@@ -401,7 +386,7 @@ export const DEFAULT_ORGANIZATION_MODEL: OrganizationModel = {
|
|
|
401
386
|
enabled: true,
|
|
402
387
|
lifecycle: 'active',
|
|
403
388
|
color: 'blue',
|
|
404
|
-
icon: '
|
|
389
|
+
icon: 'sales',
|
|
405
390
|
path: '/sales'
|
|
406
391
|
},
|
|
407
392
|
'sales.crm': {
|
|
@@ -411,8 +396,12 @@ export const DEFAULT_ORGANIZATION_MODEL: OrganizationModel = {
|
|
|
411
396
|
description: 'Relationship pipeline and deal management',
|
|
412
397
|
enabled: true,
|
|
413
398
|
lifecycle: 'active',
|
|
399
|
+
actions: Object.values(CRM_ACTION_ENTRIES).map((action) => ({
|
|
400
|
+
actionId: action.id,
|
|
401
|
+
intent: 'exposes'
|
|
402
|
+
})),
|
|
414
403
|
color: 'blue',
|
|
415
|
-
icon: '
|
|
404
|
+
icon: 'crm',
|
|
416
405
|
path: '/crm'
|
|
417
406
|
},
|
|
418
407
|
'sales.lead-gen': {
|
|
@@ -422,12 +411,12 @@ export const DEFAULT_ORGANIZATION_MODEL: OrganizationModel = {
|
|
|
422
411
|
description: 'Prospecting, qualification, and outreach preparation',
|
|
423
412
|
enabled: true,
|
|
424
413
|
lifecycle: 'active',
|
|
425
|
-
actions: Object.values(
|
|
414
|
+
actions: Object.values(LEAD_GEN_ACTION_ENTRIES).map((action) => ({
|
|
426
415
|
actionId: action.id,
|
|
427
416
|
intent: 'exposes'
|
|
428
417
|
})),
|
|
429
418
|
color: 'cyan',
|
|
430
|
-
icon: '
|
|
419
|
+
icon: 'lead-gen',
|
|
431
420
|
path: '/lead-gen'
|
|
432
421
|
},
|
|
433
422
|
projects: {
|
|
@@ -438,7 +427,7 @@ export const DEFAULT_ORGANIZATION_MODEL: OrganizationModel = {
|
|
|
438
427
|
enabled: true,
|
|
439
428
|
lifecycle: 'active',
|
|
440
429
|
color: 'orange',
|
|
441
|
-
icon: '
|
|
430
|
+
icon: 'projects',
|
|
442
431
|
path: '/projects'
|
|
443
432
|
},
|
|
444
433
|
clients: {
|
|
@@ -449,7 +438,7 @@ export const DEFAULT_ORGANIZATION_MODEL: OrganizationModel = {
|
|
|
449
438
|
enabled: true,
|
|
450
439
|
lifecycle: 'active',
|
|
451
440
|
color: 'orange',
|
|
452
|
-
icon: '
|
|
441
|
+
icon: 'projects',
|
|
453
442
|
path: '/clients'
|
|
454
443
|
},
|
|
455
444
|
operations: {
|
|
@@ -460,7 +449,7 @@ export const DEFAULT_ORGANIZATION_MODEL: OrganizationModel = {
|
|
|
460
449
|
enabled: true,
|
|
461
450
|
lifecycle: 'active',
|
|
462
451
|
color: 'violet',
|
|
463
|
-
icon: '
|
|
452
|
+
icon: 'operations'
|
|
464
453
|
},
|
|
465
454
|
'knowledge.command-view': {
|
|
466
455
|
id: 'knowledge.command-view',
|
|
@@ -526,7 +515,7 @@ export const DEFAULT_ORGANIZATION_MODEL: OrganizationModel = {
|
|
|
526
515
|
enabled: true,
|
|
527
516
|
lifecycle: 'active',
|
|
528
517
|
path: '/monitoring/calendar',
|
|
529
|
-
icon: '
|
|
518
|
+
icon: 'calendar'
|
|
530
519
|
},
|
|
531
520
|
'monitoring.activity-log': {
|
|
532
521
|
id: 'monitoring.activity-log',
|
|
@@ -582,7 +571,7 @@ export const DEFAULT_ORGANIZATION_MODEL: OrganizationModel = {
|
|
|
582
571
|
label: 'Settings',
|
|
583
572
|
enabled: true,
|
|
584
573
|
lifecycle: 'active',
|
|
585
|
-
icon: '
|
|
574
|
+
icon: 'settings'
|
|
586
575
|
},
|
|
587
576
|
'settings.account': {
|
|
588
577
|
id: 'settings.account',
|
|
@@ -655,7 +644,7 @@ export const DEFAULT_ORGANIZATION_MODEL: OrganizationModel = {
|
|
|
655
644
|
enabled: true,
|
|
656
645
|
lifecycle: 'active',
|
|
657
646
|
path: '/admin',
|
|
658
|
-
icon: '
|
|
647
|
+
icon: 'admin',
|
|
659
648
|
requiresAdmin: true
|
|
660
649
|
},
|
|
661
650
|
'admin.system-health': {
|
|
@@ -705,7 +694,7 @@ export const DEFAULT_ORGANIZATION_MODEL: OrganizationModel = {
|
|
|
705
694
|
enabled: true,
|
|
706
695
|
lifecycle: 'active',
|
|
707
696
|
path: '/archive',
|
|
708
|
-
icon: '
|
|
697
|
+
icon: 'archive',
|
|
709
698
|
devOnly: true
|
|
710
699
|
},
|
|
711
700
|
'archive.agent-chat': {
|
|
@@ -740,7 +729,7 @@ export const DEFAULT_ORGANIZATION_MODEL: OrganizationModel = {
|
|
|
740
729
|
enabled: true,
|
|
741
730
|
lifecycle: 'active',
|
|
742
731
|
color: 'teal',
|
|
743
|
-
icon: '
|
|
732
|
+
icon: 'knowledge'
|
|
744
733
|
},
|
|
745
734
|
'knowledge.base': {
|
|
746
735
|
id: 'knowledge.base',
|
|
@@ -751,10 +740,13 @@ export const DEFAULT_ORGANIZATION_MODEL: OrganizationModel = {
|
|
|
751
740
|
path: '/knowledge'
|
|
752
741
|
}
|
|
753
742
|
},
|
|
743
|
+
ontology: DEFAULT_ONTOLOGY_SCOPE,
|
|
754
744
|
resources: DEFAULT_ORGANIZATION_MODEL_RESOURCES,
|
|
745
|
+
topology: DEFAULT_ORGANIZATION_MODEL_TOPOLOGY,
|
|
755
746
|
actions: DEFAULT_ORGANIZATION_MODEL_ACTIONS,
|
|
756
747
|
entities: DEFAULT_ORGANIZATION_MODEL_ENTITIES,
|
|
757
748
|
policies: DEFAULT_ORGANIZATION_MODEL_POLICIES,
|
|
758
|
-
// Phase 4 (D1): statuses top-level field removed; status
|
|
749
|
+
// Phase 4 (D1): statuses top-level field removed; bridge status mirrors may
|
|
750
|
+
// still project from System.content, but primary authoring belongs in ontology.
|
|
759
751
|
knowledge: DEFAULT_ORGANIZATION_MODEL_KNOWLEDGE
|
|
760
752
|
}
|