@elevasis/core 0.18.0 → 0.19.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 +82 -1
- package/dist/index.js +291 -171
- package/dist/knowledge/index.d.ts +43 -0
- package/dist/organization-model/index.d.ts +82 -1
- package/dist/organization-model/index.js +291 -171
- package/dist/test-utils/index.d.ts +41 -12
- package/dist/test-utils/index.js +291 -171
- package/package.json +2 -1
- package/src/_gen/__tests__/__snapshots__/contracts.md.snap +78 -65
- package/src/auth/multi-tenancy/organizations/__tests__/api-schemas.test.ts +194 -0
- package/src/auth/multi-tenancy/organizations/api-schemas.ts +136 -128
- package/src/business/acquisition/api-schemas.test.ts +100 -2
- package/src/business/acquisition/api-schemas.ts +81 -43
- package/src/business/acquisition/build-templates.test.ts +212 -0
- package/src/business/acquisition/types.ts +21 -38
- package/src/execution/engine/index.ts +436 -434
- package/src/execution/engine/tools/integration/server/adapters/google-calendar/google-calendar-adapter.ts +428 -0
- package/src/execution/engine/tools/integration/server/adapters/google-calendar/index.ts +2 -0
- package/src/execution/engine/tools/lead-service-types.ts +51 -9
- package/src/execution/engine/tools/platform/acquisition/company-tools.ts +7 -6
- package/src/execution/engine/tools/platform/acquisition/contact-tools.ts +6 -5
- package/src/execution/engine/tools/platform/acquisition/types.ts +20 -9
- package/src/execution/engine/tools/registry.ts +700 -698
- package/src/execution/engine/tools/tool-maps.ts +10 -0
- package/src/execution/external/__tests__/api-schemas.test.ts +127 -0
- package/src/integrations/oauth/__tests__/provider-registry.test.ts +7 -6
- package/src/integrations/oauth/provider-registry.ts +74 -61
- package/src/integrations/oauth/server/credentials.ts +43 -39
- package/src/knowledge/__tests__/queries.test.ts +89 -0
- package/src/organization-model/__tests__/icons.test.ts +61 -0
- package/src/organization-model/__tests__/knowledge.test.ts +118 -1
- package/src/organization-model/__tests__/prospecting-ssot.test.ts +94 -0
- package/src/organization-model/defaults.ts +8 -0
- package/src/organization-model/domains/knowledge.ts +9 -0
- package/src/organization-model/domains/prospecting.ts +272 -226
- package/src/organization-model/domains/sales.ts +32 -25
- package/src/organization-model/icons.ts +3 -0
- package/src/organization-model/types.ts +9 -1
- package/src/platform/constants/versions.ts +1 -1
- package/src/platform/utils/__tests__/validation.test.ts +1084 -1083
- package/src/platform/utils/validation.ts +425 -425
- package/src/reference/_generated/contracts.md +78 -65
- package/src/server.ts +6 -0
- package/src/supabase/database.types.ts +6 -12
|
@@ -2,6 +2,7 @@ import { z } from 'zod'
|
|
|
2
2
|
|
|
3
3
|
export const ORGANIZATION_MODEL_ICON_TOKENS = [
|
|
4
4
|
'nav.dashboard',
|
|
5
|
+
'nav.calendar',
|
|
5
6
|
'nav.sales',
|
|
6
7
|
'nav.crm',
|
|
7
8
|
'nav.lead-gen',
|
|
@@ -16,6 +17,7 @@ export const ORGANIZATION_MODEL_ICON_TOKENS = [
|
|
|
16
17
|
'knowledge.strategy',
|
|
17
18
|
'knowledge.reference',
|
|
18
19
|
'feature.dashboard',
|
|
20
|
+
'feature.calendar',
|
|
19
21
|
'feature.sales',
|
|
20
22
|
'feature.crm',
|
|
21
23
|
'feature.finance',
|
|
@@ -39,6 +41,7 @@ export const ORGANIZATION_MODEL_ICON_TOKENS = [
|
|
|
39
41
|
'integration.google-sheets',
|
|
40
42
|
'integration.attio',
|
|
41
43
|
'surface.dashboard',
|
|
44
|
+
'surface.calendar',
|
|
42
45
|
'surface.overview',
|
|
43
46
|
'surface.command-view',
|
|
44
47
|
'surface.command-queue',
|
|
@@ -12,7 +12,13 @@ import { CustomersDomainSchema, CustomerSegmentSchema, FirmographicsSchema } fro
|
|
|
12
12
|
import { OfferingsDomainSchema, ProductSchema, PricingModelSchema } from './domains/offerings'
|
|
13
13
|
import { RolesDomainSchema, RoleSchema } from './domains/roles'
|
|
14
14
|
import { GoalsDomainSchema, ObjectiveSchema, KeyResultSchema } from './domains/goals'
|
|
15
|
-
import {
|
|
15
|
+
import {
|
|
16
|
+
KnowledgeDomainBindingSchema,
|
|
17
|
+
KnowledgeDomainSchema,
|
|
18
|
+
KnowledgeSkillBindingSchema,
|
|
19
|
+
OrgKnowledgeKindSchema,
|
|
20
|
+
OrgKnowledgeNodeSchema
|
|
21
|
+
} from './domains/knowledge'
|
|
16
22
|
import { OrganizationModelIconTokenSchema, OrganizationModelBuiltinIconTokenSchema } from './icons'
|
|
17
23
|
import { OrganizationModelSchema } from './schema'
|
|
18
24
|
|
|
@@ -47,6 +53,8 @@ export type OrganizationModelKeyResult = z.infer<typeof KeyResultSchema>
|
|
|
47
53
|
export type OrganizationModelKnowledge = z.infer<typeof KnowledgeDomainSchema>
|
|
48
54
|
export type OrgKnowledgeNode = z.infer<typeof OrgKnowledgeNodeSchema>
|
|
49
55
|
export type OrgKnowledgeKind = z.infer<typeof OrgKnowledgeKindSchema>
|
|
56
|
+
export type KnowledgeSkillBinding = z.infer<typeof KnowledgeSkillBindingSchema>
|
|
57
|
+
export type KnowledgeDomainBinding = z.infer<typeof KnowledgeDomainBindingSchema>
|
|
50
58
|
export type OrganizationModelIconToken = z.infer<typeof OrganizationModelIconTokenSchema>
|
|
51
59
|
export type OrganizationModelBuiltinIconToken = z.infer<typeof OrganizationModelBuiltinIconTokenSchema>
|
|
52
60
|
|