@elevasis/core 0.23.0 → 0.24.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 +1326 -552
- package/dist/index.js +869 -154
- package/dist/knowledge/index.d.ts +487 -209
- package/dist/knowledge/index.js +104 -1
- package/dist/organization-model/index.d.ts +1326 -552
- package/dist/organization-model/index.js +869 -154
- package/dist/test-utils/index.d.ts +357 -72
- package/dist/test-utils/index.js +795 -142
- package/package.json +5 -5
- 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 +2102 -2096
- 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 +202 -202
- 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 +382 -283
- 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__/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 +1246 -887
- 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 +834 -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 +40 -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 +167 -132
- 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/foundation.ts +75 -75
- package/src/organization-model/graph/build.ts +1016 -888
- 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 +76 -70
- package/src/organization-model/graph/types.ts +73 -67
- package/src/organization-model/helpers.ts +289 -241
- package/src/organization-model/icons.ts +78 -66
- package/src/organization-model/index.ts +130 -128
- package/src/organization-model/migration-helpers.ts +247 -244
- package/src/organization-model/ontology.ts +661 -0
- package/src/organization-model/organization-graph.mdx +110 -90
- package/src/organization-model/organization-model.mdx +226 -219
- package/src/organization-model/published.ts +289 -235
- package/src/organization-model/resolve.ts +146 -91
- package/src/organization-model/schema.ts +790 -671
- package/src/organization-model/surface-projection.ts +212 -212
- package/src/organization-model/types.ts +177 -167
- 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 +1347 -1347
- 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 +890 -890
- 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 +745 -745
- 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 +2101 -2096
- 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 +3153 -3153
- 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,11 @@ 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 { DEFAULT_ORGANIZATION_MODEL_ACTIONS } from './domains/actions'
|
|
20
|
+
import { CRM_ACTION_ENTRIES, DEFAULT_ORGANIZATION_MODEL_ACTIONS, LEAD_GEN_ACTION_ENTRIES } from './domains/actions'
|
|
21
21
|
import { DEFAULT_ORGANIZATION_MODEL_ENTITIES as DEFAULT_ENTITIES } from './domains/entities'
|
|
22
22
|
import { DEFAULT_ORGANIZATION_MODEL_POLICIES } from './domains/policies'
|
|
23
23
|
import { DEFAULT_ORGANIZATION_MODEL_DOMAIN_METADATA } from './schema'
|
|
24
|
+
import { DEFAULT_ONTOLOGY_SCOPE } from './ontology'
|
|
24
25
|
import type { OrganizationModelNavigation } from './types'
|
|
25
26
|
|
|
26
27
|
// Phase 4: DEFAULT_ORGANIZATION_MODEL_KNOWLEDGE is now a flat Record<id, OrgKnowledgeNode> (D3).
|
|
@@ -37,14 +38,14 @@ const DEFAULT_ORGANIZATION_MODEL_NAVIGATION: OrganizationModelNavigation = {
|
|
|
37
38
|
label: 'Dashboard',
|
|
38
39
|
path: '/',
|
|
39
40
|
surfaceType: 'dashboard',
|
|
40
|
-
icon: '
|
|
41
|
+
icon: 'dashboard',
|
|
41
42
|
order: 10,
|
|
42
43
|
targets: { systems: ['dashboard'] }
|
|
43
44
|
},
|
|
44
45
|
business: {
|
|
45
46
|
type: 'group',
|
|
46
47
|
label: 'Business',
|
|
47
|
-
icon: '
|
|
48
|
+
icon: 'business',
|
|
48
49
|
order: 20,
|
|
49
50
|
children: {
|
|
50
51
|
sales: {
|
|
@@ -52,7 +53,7 @@ const DEFAULT_ORGANIZATION_MODEL_NAVIGATION: OrganizationModelNavigation = {
|
|
|
52
53
|
label: 'Sales',
|
|
53
54
|
path: '/sales',
|
|
54
55
|
surfaceType: 'page',
|
|
55
|
-
icon: '
|
|
56
|
+
icon: 'sales',
|
|
56
57
|
order: 10,
|
|
57
58
|
targets: { systems: ['sales'] }
|
|
58
59
|
},
|
|
@@ -61,7 +62,7 @@ const DEFAULT_ORGANIZATION_MODEL_NAVIGATION: OrganizationModelNavigation = {
|
|
|
61
62
|
label: 'Clients',
|
|
62
63
|
path: '/clients',
|
|
63
64
|
surfaceType: 'list',
|
|
64
|
-
icon: '
|
|
65
|
+
icon: 'projects',
|
|
65
66
|
order: 20,
|
|
66
67
|
targets: { systems: ['clients'] }
|
|
67
68
|
},
|
|
@@ -70,7 +71,7 @@ const DEFAULT_ORGANIZATION_MODEL_NAVIGATION: OrganizationModelNavigation = {
|
|
|
70
71
|
label: 'Projects',
|
|
71
72
|
path: '/projects',
|
|
72
73
|
surfaceType: 'page',
|
|
73
|
-
icon: '
|
|
74
|
+
icon: 'projects',
|
|
74
75
|
order: 30,
|
|
75
76
|
targets: { systems: ['projects'] }
|
|
76
77
|
}
|
|
@@ -79,7 +80,7 @@ const DEFAULT_ORGANIZATION_MODEL_NAVIGATION: OrganizationModelNavigation = {
|
|
|
79
80
|
operations: {
|
|
80
81
|
type: 'group',
|
|
81
82
|
label: 'Operations',
|
|
82
|
-
icon: '
|
|
83
|
+
icon: 'operations',
|
|
83
84
|
order: 30,
|
|
84
85
|
children: {
|
|
85
86
|
'operations-overview': {
|
|
@@ -127,7 +128,7 @@ const DEFAULT_ORGANIZATION_MODEL_NAVIGATION: OrganizationModelNavigation = {
|
|
|
127
128
|
monitoring: {
|
|
128
129
|
type: 'group',
|
|
129
130
|
label: 'Monitoring',
|
|
130
|
-
icon: '
|
|
131
|
+
icon: 'monitoring',
|
|
131
132
|
order: 40,
|
|
132
133
|
children: {
|
|
133
134
|
'monitoring-overview': {
|
|
@@ -189,36 +190,19 @@ const DEFAULT_ORGANIZATION_MODEL_NAVIGATION: OrganizationModelNavigation = {
|
|
|
189
190
|
}
|
|
190
191
|
},
|
|
191
192
|
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
|
-
}
|
|
193
|
+
type: 'surface',
|
|
194
|
+
label: 'Knowledge Base',
|
|
195
|
+
path: '/knowledge',
|
|
196
|
+
surfaceType: 'page',
|
|
197
|
+
icon: 'knowledge',
|
|
198
|
+
order: 50
|
|
215
199
|
}
|
|
216
200
|
},
|
|
217
201
|
bottom: {
|
|
218
202
|
settings: {
|
|
219
203
|
type: 'group',
|
|
220
204
|
label: 'Settings',
|
|
221
|
-
icon: '
|
|
205
|
+
icon: 'settings',
|
|
222
206
|
order: 10,
|
|
223
207
|
children: {
|
|
224
208
|
'settings-account': {
|
|
@@ -290,7 +274,7 @@ const DEFAULT_ORGANIZATION_MODEL_NAVIGATION: OrganizationModelNavigation = {
|
|
|
290
274
|
admin: {
|
|
291
275
|
type: 'group',
|
|
292
276
|
label: 'Admin',
|
|
293
|
-
icon: '
|
|
277
|
+
icon: 'admin',
|
|
294
278
|
order: 20,
|
|
295
279
|
children: {
|
|
296
280
|
'admin-dashboard': {
|
|
@@ -371,7 +355,7 @@ export const DEFAULT_ORGANIZATION_MODEL: OrganizationModel = {
|
|
|
371
355
|
enabled: true,
|
|
372
356
|
lifecycle: 'active',
|
|
373
357
|
path: '/',
|
|
374
|
-
icon: '
|
|
358
|
+
icon: 'dashboard'
|
|
375
359
|
},
|
|
376
360
|
platform: {
|
|
377
361
|
id: 'platform',
|
|
@@ -381,7 +365,7 @@ export const DEFAULT_ORGANIZATION_MODEL: OrganizationModel = {
|
|
|
381
365
|
enabled: true,
|
|
382
366
|
lifecycle: 'active',
|
|
383
367
|
color: 'cyan',
|
|
384
|
-
icon: '
|
|
368
|
+
icon: 'platform'
|
|
385
369
|
},
|
|
386
370
|
finance: {
|
|
387
371
|
id: 'finance',
|
|
@@ -391,7 +375,7 @@ export const DEFAULT_ORGANIZATION_MODEL: OrganizationModel = {
|
|
|
391
375
|
enabled: true,
|
|
392
376
|
lifecycle: 'active',
|
|
393
377
|
color: 'green',
|
|
394
|
-
icon: '
|
|
378
|
+
icon: 'finance'
|
|
395
379
|
},
|
|
396
380
|
sales: {
|
|
397
381
|
id: 'sales',
|
|
@@ -401,7 +385,7 @@ export const DEFAULT_ORGANIZATION_MODEL: OrganizationModel = {
|
|
|
401
385
|
enabled: true,
|
|
402
386
|
lifecycle: 'active',
|
|
403
387
|
color: 'blue',
|
|
404
|
-
icon: '
|
|
388
|
+
icon: 'sales',
|
|
405
389
|
path: '/sales'
|
|
406
390
|
},
|
|
407
391
|
'sales.crm': {
|
|
@@ -411,8 +395,12 @@ export const DEFAULT_ORGANIZATION_MODEL: OrganizationModel = {
|
|
|
411
395
|
description: 'Relationship pipeline and deal management',
|
|
412
396
|
enabled: true,
|
|
413
397
|
lifecycle: 'active',
|
|
398
|
+
actions: Object.values(CRM_ACTION_ENTRIES).map((action) => ({
|
|
399
|
+
actionId: action.id,
|
|
400
|
+
intent: 'exposes'
|
|
401
|
+
})),
|
|
414
402
|
color: 'blue',
|
|
415
|
-
icon: '
|
|
403
|
+
icon: 'crm',
|
|
416
404
|
path: '/crm'
|
|
417
405
|
},
|
|
418
406
|
'sales.lead-gen': {
|
|
@@ -422,12 +410,12 @@ export const DEFAULT_ORGANIZATION_MODEL: OrganizationModel = {
|
|
|
422
410
|
description: 'Prospecting, qualification, and outreach preparation',
|
|
423
411
|
enabled: true,
|
|
424
412
|
lifecycle: 'active',
|
|
425
|
-
actions: Object.values(
|
|
413
|
+
actions: Object.values(LEAD_GEN_ACTION_ENTRIES).map((action) => ({
|
|
426
414
|
actionId: action.id,
|
|
427
415
|
intent: 'exposes'
|
|
428
416
|
})),
|
|
429
417
|
color: 'cyan',
|
|
430
|
-
icon: '
|
|
418
|
+
icon: 'lead-gen',
|
|
431
419
|
path: '/lead-gen'
|
|
432
420
|
},
|
|
433
421
|
projects: {
|
|
@@ -438,7 +426,7 @@ export const DEFAULT_ORGANIZATION_MODEL: OrganizationModel = {
|
|
|
438
426
|
enabled: true,
|
|
439
427
|
lifecycle: 'active',
|
|
440
428
|
color: 'orange',
|
|
441
|
-
icon: '
|
|
429
|
+
icon: 'projects',
|
|
442
430
|
path: '/projects'
|
|
443
431
|
},
|
|
444
432
|
clients: {
|
|
@@ -449,7 +437,7 @@ export const DEFAULT_ORGANIZATION_MODEL: OrganizationModel = {
|
|
|
449
437
|
enabled: true,
|
|
450
438
|
lifecycle: 'active',
|
|
451
439
|
color: 'orange',
|
|
452
|
-
icon: '
|
|
440
|
+
icon: 'projects',
|
|
453
441
|
path: '/clients'
|
|
454
442
|
},
|
|
455
443
|
operations: {
|
|
@@ -460,7 +448,7 @@ export const DEFAULT_ORGANIZATION_MODEL: OrganizationModel = {
|
|
|
460
448
|
enabled: true,
|
|
461
449
|
lifecycle: 'active',
|
|
462
450
|
color: 'violet',
|
|
463
|
-
icon: '
|
|
451
|
+
icon: 'operations'
|
|
464
452
|
},
|
|
465
453
|
'knowledge.command-view': {
|
|
466
454
|
id: 'knowledge.command-view',
|
|
@@ -526,7 +514,7 @@ export const DEFAULT_ORGANIZATION_MODEL: OrganizationModel = {
|
|
|
526
514
|
enabled: true,
|
|
527
515
|
lifecycle: 'active',
|
|
528
516
|
path: '/monitoring/calendar',
|
|
529
|
-
icon: '
|
|
517
|
+
icon: 'calendar'
|
|
530
518
|
},
|
|
531
519
|
'monitoring.activity-log': {
|
|
532
520
|
id: 'monitoring.activity-log',
|
|
@@ -582,7 +570,7 @@ export const DEFAULT_ORGANIZATION_MODEL: OrganizationModel = {
|
|
|
582
570
|
label: 'Settings',
|
|
583
571
|
enabled: true,
|
|
584
572
|
lifecycle: 'active',
|
|
585
|
-
icon: '
|
|
573
|
+
icon: 'settings'
|
|
586
574
|
},
|
|
587
575
|
'settings.account': {
|
|
588
576
|
id: 'settings.account',
|
|
@@ -655,7 +643,7 @@ export const DEFAULT_ORGANIZATION_MODEL: OrganizationModel = {
|
|
|
655
643
|
enabled: true,
|
|
656
644
|
lifecycle: 'active',
|
|
657
645
|
path: '/admin',
|
|
658
|
-
icon: '
|
|
646
|
+
icon: 'admin',
|
|
659
647
|
requiresAdmin: true
|
|
660
648
|
},
|
|
661
649
|
'admin.system-health': {
|
|
@@ -705,7 +693,7 @@ export const DEFAULT_ORGANIZATION_MODEL: OrganizationModel = {
|
|
|
705
693
|
enabled: true,
|
|
706
694
|
lifecycle: 'active',
|
|
707
695
|
path: '/archive',
|
|
708
|
-
icon: '
|
|
696
|
+
icon: 'archive',
|
|
709
697
|
devOnly: true
|
|
710
698
|
},
|
|
711
699
|
'archive.agent-chat': {
|
|
@@ -740,7 +728,7 @@ export const DEFAULT_ORGANIZATION_MODEL: OrganizationModel = {
|
|
|
740
728
|
enabled: true,
|
|
741
729
|
lifecycle: 'active',
|
|
742
730
|
color: 'teal',
|
|
743
|
-
icon: '
|
|
731
|
+
icon: 'knowledge'
|
|
744
732
|
},
|
|
745
733
|
'knowledge.base': {
|
|
746
734
|
id: 'knowledge.base',
|
|
@@ -751,10 +739,12 @@ export const DEFAULT_ORGANIZATION_MODEL: OrganizationModel = {
|
|
|
751
739
|
path: '/knowledge'
|
|
752
740
|
}
|
|
753
741
|
},
|
|
742
|
+
ontology: DEFAULT_ONTOLOGY_SCOPE,
|
|
754
743
|
resources: DEFAULT_ORGANIZATION_MODEL_RESOURCES,
|
|
755
744
|
actions: DEFAULT_ORGANIZATION_MODEL_ACTIONS,
|
|
756
745
|
entities: DEFAULT_ORGANIZATION_MODEL_ENTITIES,
|
|
757
746
|
policies: DEFAULT_ORGANIZATION_MODEL_POLICIES,
|
|
758
|
-
// Phase 4 (D1): statuses top-level field removed; status
|
|
747
|
+
// Phase 4 (D1): statuses top-level field removed; bridge status mirrors may
|
|
748
|
+
// still project from System.content, but primary authoring belongs in ontology.
|
|
759
749
|
knowledge: DEFAULT_ORGANIZATION_MODEL_KNOWLEDGE
|
|
760
750
|
}
|