@elevasis/sdk 1.21.0 → 1.22.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/cli.cjs +951 -171
- package/dist/index.d.ts +632 -341
- package/dist/index.js +3102 -142
- package/dist/node/index.d.ts +1 -0
- package/dist/node/index.js +19 -1
- package/dist/test-utils/index.d.ts +313 -4
- package/dist/test-utils/index.js +3246 -281
- package/dist/worker/index.js +3041 -80
- package/package.json +3 -3
- package/reference/claude-config/hooks/post-edit-validate.mjs +98 -98
- package/reference/claude-config/hooks/scaffold-registry-reminder.mjs +188 -188
- package/reference/claude-config/hooks/tool-failure-recovery.mjs +73 -73
- package/reference/claude-config/registries/graph-skills.json +4 -4
- package/reference/claude-config/registries/knowledge-flags.json +0 -2
- package/reference/claude-config/rules/active-change-index.md +80 -80
- package/reference/claude-config/rules/agent-start-here.md +277 -277
- package/reference/claude-config/rules/deployment.md +57 -57
- package/reference/claude-config/rules/error-handling.md +56 -56
- package/reference/claude-config/rules/execution.md +40 -40
- package/reference/claude-config/rules/frontend.md +4 -4
- package/reference/claude-config/rules/observability.md +31 -31
- package/reference/claude-config/rules/operations.md +29 -17
- package/reference/claude-config/rules/organization-model.md +110 -84
- package/reference/claude-config/rules/organization-os.md +115 -113
- package/reference/claude-config/rules/package-taxonomy.md +33 -33
- package/reference/claude-config/rules/platform.md +42 -42
- package/reference/claude-config/rules/shared-types.md +49 -46
- package/reference/claude-config/rules/task-tracking.md +47 -47
- package/reference/claude-config/rules/ui.md +200 -200
- package/reference/claude-config/rules/vibe.md +235 -235
- package/reference/claude-config/scripts/statusline-command.js +18 -18
- package/reference/claude-config/settings.json +34 -34
- package/reference/claude-config/skills/deploy/{SKILL.md → skill.md} +156 -156
- package/reference/claude-config/skills/dsp/SKILL.md +66 -66
- package/reference/claude-config/skills/elevasis/SKILL.md +235 -235
- package/reference/claude-config/skills/explore/SKILL.md +6 -6
- package/reference/claude-config/skills/git-sync/SKILL.md +126 -126
- package/reference/claude-config/skills/knowledge/SKILL.md +314 -299
- package/reference/claude-config/skills/knowledge/operations/codify-level-a.md +100 -100
- package/reference/claude-config/skills/knowledge/operations/codify-level-b.md +159 -159
- package/reference/claude-config/skills/knowledge/operations/customers.md +109 -109
- package/reference/claude-config/skills/knowledge/operations/features.md +76 -76
- package/reference/claude-config/skills/knowledge/operations/goals.md +118 -118
- package/reference/claude-config/skills/knowledge/operations/identity.md +93 -93
- package/reference/claude-config/skills/knowledge/operations/labels.md +94 -94
- package/reference/claude-config/skills/knowledge/operations/offerings.md +109 -109
- package/reference/claude-config/skills/knowledge/operations/roles.md +99 -99
- package/reference/claude-config/skills/knowledge/operations/techStack.md +30 -30
- package/reference/claude-config/skills/project/SKILL.md +1088 -1088
- package/reference/claude-config/skills/run-ui/SKILL.md +73 -73
- package/reference/claude-config/skills/save/SKILL.md +3 -3
- package/reference/claude-config/skills/setup/SKILL.md +275 -275
- package/reference/claude-config/skills/status/SKILL.md +59 -59
- package/reference/claude-config/skills/submit-request/SKILL.md +180 -180
- package/reference/claude-config/skills/sync/SKILL.md +47 -47
- package/reference/claude-config/skills/tutorial/SKILL.md +259 -259
- package/reference/claude-config/skills/tutorial/progress-template.md +74 -74
- package/reference/claude-config/skills/tutorial/technical.md +1303 -1303
- package/reference/claude-config/skills/tutorial/vibe-coder.md +890 -890
- package/reference/claude-config/sync-notes/2026-04-22-git-sync-and-sync-notes.md +27 -27
- package/reference/claude-config/sync-notes/2026-04-22-lead-gen-deliverability-removal.md +30 -30
- package/reference/claude-config/sync-notes/2026-04-24-test-utils-and-template-tests.md +73 -73
- package/reference/claude-config/sync-notes/2026-04-24-ui-consolidation-and-sdk-cli-train.md +86 -86
- package/reference/claude-config/sync-notes/2026-04-25-auth-role-system-and-settings-roles.md +55 -55
- package/reference/claude-config/sync-notes/2026-04-27-crm-hitl-action-layer-cutover.md +97 -97
- package/reference/claude-config/sync-notes/2026-04-27-lead-gen-substrate-train.md +112 -112
- package/reference/claude-config/sync-notes/2026-04-29-crm-state-and-lead-gen-processing-status.md +93 -93
- package/reference/claude-config/sync-notes/2026-05-02-crm-ownership-next-action.md +58 -58
- package/reference/claude-config/sync-notes/2026-05-02-template-hardcode-workos-config.md +56 -56
- package/reference/claude-config/sync-notes/2026-05-04-elevasis-workspace.md +71 -71
- package/reference/claude-config/sync-notes/2026-05-04-knowledge-bundle.md +83 -83
- package/reference/claude-config/sync-notes/2026-05-04-template-skills-run-ui-and-tutorial.md +59 -59
- package/reference/claude-config/sync-notes/2026-05-05-list-builder.md +42 -42
- package/reference/claude-config/sync-notes/2026-05-06-crm-spine.md +60 -60
- package/reference/claude-config/sync-notes/2026-05-06-sdk-changes-release-train.md +37 -37
- package/reference/claude-config/sync-notes/2026-05-07-sdk-changes-release-train.md +34 -34
- package/reference/claude-config/sync-notes/2026-05-08-resource-governance-scaffold-guidance.md +38 -38
- package/reference/claude-config/sync-notes/2026-05-09-clients-domain.md +32 -32
- package/reference/claude-config/sync-notes/2026-05-09-command-system.md +33 -33
- package/reference/claude-config/sync-notes/2026-05-09-resource-governance-and-misc.md +69 -69
- package/reference/claude-config/sync-notes/2026-05-12-sdk-ready-release-train.md +30 -30
- package/reference/claude-config/sync-notes/2026-05-14-organization-model-ontology-refactor.md +42 -0
- package/reference/claude-config/sync-notes/README.md +43 -43
- package/reference/cli.mdx +808 -808
- package/reference/concepts.mdx +146 -146
- package/reference/deployment/api.mdx +297 -297
- package/reference/deployment/command-center.mdx +209 -209
- package/reference/deployment/index.mdx +195 -195
- package/reference/deployment/provided-features.mdx +107 -107
- package/reference/deployment/ui-execution.mdx +250 -250
- package/reference/examples/organization-model.ts +146 -83
- package/reference/framework/agent.mdx +156 -156
- package/reference/framework/index.mdx +195 -195
- package/reference/framework/interaction-guidance.mdx +182 -182
- package/reference/framework/memory.mdx +326 -326
- package/reference/framework/project-structure.mdx +282 -282
- package/reference/framework/tutorial-system.mdx +135 -135
- package/reference/getting-started.mdx +142 -142
- package/reference/index.mdx +106 -106
- package/reference/packages/core/src/README.md +14 -14
- package/reference/packages/core/src/business/README.md +2 -2
- package/reference/packages/core/src/knowledge/README.md +32 -32
- package/reference/packages/core/src/organization-model/README.md +149 -149
- package/reference/packages/core/src/test-utils/README.md +37 -37
- package/reference/packages/ui/src/api/README.md +18 -18
- package/reference/packages/ui/src/app/README.md +24 -24
- package/reference/packages/ui/src/auth/README.md +18 -18
- package/reference/packages/ui/src/components/README.md +24 -24
- package/reference/packages/ui/src/execution/README.md +16 -16
- package/reference/packages/ui/src/features/README.md +28 -28
- package/reference/packages/ui/src/graph/README.md +16 -16
- package/reference/packages/ui/src/hooks/README.md +23 -23
- package/reference/packages/ui/src/initialization/README.md +19 -19
- package/reference/packages/ui/src/knowledge/README.md +31 -31
- package/reference/packages/ui/src/organization/README.md +18 -18
- package/reference/packages/ui/src/profile/README.md +19 -19
- package/reference/packages/ui/src/provider/README.md +32 -32
- package/reference/packages/ui/src/router/README.md +18 -18
- package/reference/packages/ui/src/sse/README.md +13 -13
- package/reference/packages/ui/src/test-utils/README.md +7 -7
- package/reference/packages/ui/src/theme/README.md +23 -23
- package/reference/packages/ui/src/theme/presets/README.md +19 -19
- package/reference/packages/ui/src/types/README.md +16 -16
- package/reference/packages/ui/src/utils/README.md +18 -18
- package/reference/packages/ui/src/zustand/README.md +18 -18
- package/reference/platform-tools/adapters-integration.mdx +301 -301
- package/reference/platform-tools/adapters-platform.mdx +553 -553
- package/reference/platform-tools/index.mdx +217 -217
- package/reference/platform-tools/type-safety.mdx +82 -82
- package/reference/resources/index.mdx +349 -349
- package/reference/resources/patterns.mdx +449 -449
- package/reference/resources/types.mdx +116 -116
- package/reference/roadmap.mdx +165 -165
- package/reference/runtime.mdx +173 -173
- package/reference/scaffold/core/organization-graph.mdx +110 -90
- package/reference/scaffold/core/organization-model.mdx +226 -219
- package/reference/scaffold/index.mdx +67 -67
- package/reference/scaffold/operations/propagation-pipeline.md +77 -77
- package/reference/scaffold/operations/scaffold-maintenance.md +12 -12
- package/reference/scaffold/operations/workflow-recipes.md +138 -138
- package/reference/scaffold/recipes/add-a-feature.md +308 -88
- package/reference/scaffold/recipes/add-a-resource.md +134 -110
- package/reference/scaffold/recipes/customize-knowledge-browser.md +5 -5
- package/reference/scaffold/recipes/customize-organization-model.md +273 -138
- package/reference/scaffold/recipes/extend-a-base-entity.md +8 -8
- package/reference/scaffold/recipes/extend-crm.md +3 -3
- package/reference/scaffold/recipes/extend-lead-gen.md +400 -400
- package/reference/scaffold/recipes/gate-by-feature-or-admin.md +118 -118
- package/reference/scaffold/recipes/index.md +46 -46
- package/reference/scaffold/recipes/query-the-knowledge-graph.md +197 -170
- package/reference/scaffold/reference/contracts.md +2101 -2096
- package/reference/scaffold/reference/glossary.md +76 -76
- package/reference/scaffold/ui/composition-extensibility.mdx +233 -233
- package/reference/scaffold/ui/customization.md +243 -243
- package/reference/scaffold/ui/feature-flags-and-gating.md +46 -46
- package/reference/scaffold/ui/feature-shell.mdx +72 -72
- package/reference/scaffold/ui/recipes.md +221 -214
- package/reference/spine/spine-primer.md +96 -96
- package/reference/templates/index.mdx +47 -47
- package/reference/troubleshooting.mdx +223 -223
package/dist/index.d.ts
CHANGED
|
@@ -517,6 +517,26 @@ declare const WorkflowResourceEntrySchema: z.ZodObject<{
|
|
|
517
517
|
active: "active";
|
|
518
518
|
archived: "archived";
|
|
519
519
|
}>;
|
|
520
|
+
ontology: z.ZodOptional<z.ZodObject<{
|
|
521
|
+
implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
522
|
+
reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
523
|
+
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
524
|
+
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
525
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
526
|
+
}, z.core.$strip>>;
|
|
527
|
+
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
528
|
+
path: z.ZodString;
|
|
529
|
+
role: z.ZodEnum<{
|
|
530
|
+
schema: "schema";
|
|
531
|
+
config: "config";
|
|
532
|
+
entrypoint: "entrypoint";
|
|
533
|
+
handler: "handler";
|
|
534
|
+
test: "test";
|
|
535
|
+
docs: "docs";
|
|
536
|
+
}>;
|
|
537
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
538
|
+
description: z.ZodOptional<z.ZodString>;
|
|
539
|
+
}, z.core.$strip>>>;
|
|
520
540
|
kind: z.ZodLiteral<"workflow">;
|
|
521
541
|
actionKey: z.ZodOptional<z.ZodString>;
|
|
522
542
|
emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -542,6 +562,26 @@ declare const AgentResourceEntrySchema: z.ZodObject<{
|
|
|
542
562
|
active: "active";
|
|
543
563
|
archived: "archived";
|
|
544
564
|
}>;
|
|
565
|
+
ontology: z.ZodOptional<z.ZodObject<{
|
|
566
|
+
implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
567
|
+
reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
568
|
+
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
569
|
+
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
570
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
571
|
+
}, z.core.$strip>>;
|
|
572
|
+
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
573
|
+
path: z.ZodString;
|
|
574
|
+
role: z.ZodEnum<{
|
|
575
|
+
schema: "schema";
|
|
576
|
+
config: "config";
|
|
577
|
+
entrypoint: "entrypoint";
|
|
578
|
+
handler: "handler";
|
|
579
|
+
test: "test";
|
|
580
|
+
docs: "docs";
|
|
581
|
+
}>;
|
|
582
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
583
|
+
description: z.ZodOptional<z.ZodString>;
|
|
584
|
+
}, z.core.$strip>>>;
|
|
545
585
|
kind: z.ZodLiteral<"agent">;
|
|
546
586
|
agentKind: z.ZodEnum<{
|
|
547
587
|
platform: "platform";
|
|
@@ -597,6 +637,26 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
597
637
|
active: "active";
|
|
598
638
|
archived: "archived";
|
|
599
639
|
}>;
|
|
640
|
+
ontology: z.ZodOptional<z.ZodObject<{
|
|
641
|
+
implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
642
|
+
reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
643
|
+
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
644
|
+
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
645
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
646
|
+
}, z.core.$strip>>;
|
|
647
|
+
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
648
|
+
path: z.ZodString;
|
|
649
|
+
role: z.ZodEnum<{
|
|
650
|
+
schema: "schema";
|
|
651
|
+
config: "config";
|
|
652
|
+
entrypoint: "entrypoint";
|
|
653
|
+
handler: "handler";
|
|
654
|
+
test: "test";
|
|
655
|
+
docs: "docs";
|
|
656
|
+
}>;
|
|
657
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
658
|
+
description: z.ZodOptional<z.ZodString>;
|
|
659
|
+
}, z.core.$strip>>>;
|
|
600
660
|
kind: z.ZodLiteral<"workflow">;
|
|
601
661
|
actionKey: z.ZodOptional<z.ZodString>;
|
|
602
662
|
emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -621,6 +681,26 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
621
681
|
active: "active";
|
|
622
682
|
archived: "archived";
|
|
623
683
|
}>;
|
|
684
|
+
ontology: z.ZodOptional<z.ZodObject<{
|
|
685
|
+
implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
686
|
+
reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
687
|
+
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
688
|
+
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
689
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
690
|
+
}, z.core.$strip>>;
|
|
691
|
+
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
692
|
+
path: z.ZodString;
|
|
693
|
+
role: z.ZodEnum<{
|
|
694
|
+
schema: "schema";
|
|
695
|
+
config: "config";
|
|
696
|
+
entrypoint: "entrypoint";
|
|
697
|
+
handler: "handler";
|
|
698
|
+
test: "test";
|
|
699
|
+
docs: "docs";
|
|
700
|
+
}>;
|
|
701
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
702
|
+
description: z.ZodOptional<z.ZodString>;
|
|
703
|
+
}, z.core.$strip>>>;
|
|
624
704
|
kind: z.ZodLiteral<"agent">;
|
|
625
705
|
agentKind: z.ZodEnum<{
|
|
626
706
|
platform: "platform";
|
|
@@ -675,6 +755,26 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
675
755
|
active: "active";
|
|
676
756
|
archived: "archived";
|
|
677
757
|
}>;
|
|
758
|
+
ontology: z.ZodOptional<z.ZodObject<{
|
|
759
|
+
implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
760
|
+
reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
761
|
+
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
762
|
+
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
763
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
764
|
+
}, z.core.$strip>>;
|
|
765
|
+
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
766
|
+
path: z.ZodString;
|
|
767
|
+
role: z.ZodEnum<{
|
|
768
|
+
schema: "schema";
|
|
769
|
+
config: "config";
|
|
770
|
+
entrypoint: "entrypoint";
|
|
771
|
+
handler: "handler";
|
|
772
|
+
test: "test";
|
|
773
|
+
docs: "docs";
|
|
774
|
+
}>;
|
|
775
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
776
|
+
description: z.ZodOptional<z.ZodString>;
|
|
777
|
+
}, z.core.$strip>>>;
|
|
678
778
|
kind: z.ZodLiteral<"integration">;
|
|
679
779
|
provider: z.ZodString;
|
|
680
780
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -687,6 +787,26 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
687
787
|
active: "active";
|
|
688
788
|
archived: "archived";
|
|
689
789
|
}>;
|
|
790
|
+
ontology: z.ZodOptional<z.ZodObject<{
|
|
791
|
+
implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
792
|
+
reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
793
|
+
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
794
|
+
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
795
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
796
|
+
}, z.core.$strip>>;
|
|
797
|
+
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
798
|
+
path: z.ZodString;
|
|
799
|
+
role: z.ZodEnum<{
|
|
800
|
+
schema: "schema";
|
|
801
|
+
config: "config";
|
|
802
|
+
entrypoint: "entrypoint";
|
|
803
|
+
handler: "handler";
|
|
804
|
+
test: "test";
|
|
805
|
+
docs: "docs";
|
|
806
|
+
}>;
|
|
807
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
808
|
+
description: z.ZodOptional<z.ZodString>;
|
|
809
|
+
}, z.core.$strip>>>;
|
|
690
810
|
kind: z.ZodLiteral<"script">;
|
|
691
811
|
language: z.ZodEnum<{
|
|
692
812
|
shell: "shell";
|
|
@@ -708,6 +828,26 @@ declare const ResourcesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
|
|
|
708
828
|
active: "active";
|
|
709
829
|
archived: "archived";
|
|
710
830
|
}>;
|
|
831
|
+
ontology: z.ZodOptional<z.ZodObject<{
|
|
832
|
+
implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
833
|
+
reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
834
|
+
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
835
|
+
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
836
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
837
|
+
}, z.core.$strip>>;
|
|
838
|
+
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
839
|
+
path: z.ZodString;
|
|
840
|
+
role: z.ZodEnum<{
|
|
841
|
+
schema: "schema";
|
|
842
|
+
config: "config";
|
|
843
|
+
entrypoint: "entrypoint";
|
|
844
|
+
handler: "handler";
|
|
845
|
+
test: "test";
|
|
846
|
+
docs: "docs";
|
|
847
|
+
}>;
|
|
848
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
849
|
+
description: z.ZodOptional<z.ZodString>;
|
|
850
|
+
}, z.core.$strip>>>;
|
|
711
851
|
kind: z.ZodLiteral<"workflow">;
|
|
712
852
|
actionKey: z.ZodOptional<z.ZodString>;
|
|
713
853
|
emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -732,6 +872,26 @@ declare const ResourcesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
|
|
|
732
872
|
active: "active";
|
|
733
873
|
archived: "archived";
|
|
734
874
|
}>;
|
|
875
|
+
ontology: z.ZodOptional<z.ZodObject<{
|
|
876
|
+
implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
877
|
+
reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
878
|
+
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
879
|
+
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
880
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
881
|
+
}, z.core.$strip>>;
|
|
882
|
+
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
883
|
+
path: z.ZodString;
|
|
884
|
+
role: z.ZodEnum<{
|
|
885
|
+
schema: "schema";
|
|
886
|
+
config: "config";
|
|
887
|
+
entrypoint: "entrypoint";
|
|
888
|
+
handler: "handler";
|
|
889
|
+
test: "test";
|
|
890
|
+
docs: "docs";
|
|
891
|
+
}>;
|
|
892
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
893
|
+
description: z.ZodOptional<z.ZodString>;
|
|
894
|
+
}, z.core.$strip>>>;
|
|
735
895
|
kind: z.ZodLiteral<"agent">;
|
|
736
896
|
agentKind: z.ZodEnum<{
|
|
737
897
|
platform: "platform";
|
|
@@ -786,6 +946,26 @@ declare const ResourcesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
|
|
|
786
946
|
active: "active";
|
|
787
947
|
archived: "archived";
|
|
788
948
|
}>;
|
|
949
|
+
ontology: z.ZodOptional<z.ZodObject<{
|
|
950
|
+
implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
951
|
+
reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
952
|
+
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
953
|
+
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
954
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
955
|
+
}, z.core.$strip>>;
|
|
956
|
+
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
957
|
+
path: z.ZodString;
|
|
958
|
+
role: z.ZodEnum<{
|
|
959
|
+
schema: "schema";
|
|
960
|
+
config: "config";
|
|
961
|
+
entrypoint: "entrypoint";
|
|
962
|
+
handler: "handler";
|
|
963
|
+
test: "test";
|
|
964
|
+
docs: "docs";
|
|
965
|
+
}>;
|
|
966
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
967
|
+
description: z.ZodOptional<z.ZodString>;
|
|
968
|
+
}, z.core.$strip>>>;
|
|
789
969
|
kind: z.ZodLiteral<"integration">;
|
|
790
970
|
provider: z.ZodString;
|
|
791
971
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -798,6 +978,26 @@ declare const ResourcesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
|
|
|
798
978
|
active: "active";
|
|
799
979
|
archived: "archived";
|
|
800
980
|
}>;
|
|
981
|
+
ontology: z.ZodOptional<z.ZodObject<{
|
|
982
|
+
implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
983
|
+
reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
984
|
+
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
985
|
+
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
986
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
987
|
+
}, z.core.$strip>>;
|
|
988
|
+
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
989
|
+
path: z.ZodString;
|
|
990
|
+
role: z.ZodEnum<{
|
|
991
|
+
schema: "schema";
|
|
992
|
+
config: "config";
|
|
993
|
+
entrypoint: "entrypoint";
|
|
994
|
+
handler: "handler";
|
|
995
|
+
test: "test";
|
|
996
|
+
docs: "docs";
|
|
997
|
+
}>;
|
|
998
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
999
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1000
|
+
}, z.core.$strip>>>;
|
|
801
1001
|
kind: z.ZodLiteral<"script">;
|
|
802
1002
|
language: z.ZodEnum<{
|
|
803
1003
|
shell: "shell";
|
|
@@ -4496,71 +4696,65 @@ declare const ProspectingBuildTemplateStepSchema: z.ZodObject<{
|
|
|
4496
4696
|
description: z.ZodOptional<z.ZodString>;
|
|
4497
4697
|
color: z.ZodOptional<z.ZodString>;
|
|
4498
4698
|
icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
"
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
"
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
"
|
|
4531
|
-
"
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
"
|
|
4557
|
-
|
|
4558
|
-
"action.launch": "action.launch";
|
|
4559
|
-
"action.message": "action.message";
|
|
4560
|
-
"action.escalate": "action.escalate";
|
|
4561
|
-
"action.promote": "action.promote";
|
|
4562
|
-
"action.submit": "action.submit";
|
|
4563
|
-
"action.email": "action.email";
|
|
4699
|
+
message: "message";
|
|
4700
|
+
error: "error";
|
|
4701
|
+
agent: "agent";
|
|
4702
|
+
workflow: "workflow";
|
|
4703
|
+
"google-sheets": "google-sheets";
|
|
4704
|
+
dashboard: "dashboard";
|
|
4705
|
+
calendar: "calendar";
|
|
4706
|
+
sales: "sales";
|
|
4707
|
+
crm: "crm";
|
|
4708
|
+
"lead-gen": "lead-gen";
|
|
4709
|
+
projects: "projects";
|
|
4710
|
+
operations: "operations";
|
|
4711
|
+
monitoring: "monitoring";
|
|
4712
|
+
knowledge: "knowledge";
|
|
4713
|
+
settings: "settings";
|
|
4714
|
+
admin: "admin";
|
|
4715
|
+
archive: "archive";
|
|
4716
|
+
business: "business";
|
|
4717
|
+
finance: "finance";
|
|
4718
|
+
platform: "platform";
|
|
4719
|
+
seo: "seo";
|
|
4720
|
+
playbook: "playbook";
|
|
4721
|
+
strategy: "strategy";
|
|
4722
|
+
reference: "reference";
|
|
4723
|
+
integration: "integration";
|
|
4724
|
+
database: "database";
|
|
4725
|
+
user: "user";
|
|
4726
|
+
team: "team";
|
|
4727
|
+
gmail: "gmail";
|
|
4728
|
+
attio: "attio";
|
|
4729
|
+
overview: "overview";
|
|
4730
|
+
"command-view": "command-view";
|
|
4731
|
+
"command-queue": "command-queue";
|
|
4732
|
+
pipeline: "pipeline";
|
|
4733
|
+
lists: "lists";
|
|
4734
|
+
resources: "resources";
|
|
4735
|
+
approve: "approve";
|
|
4736
|
+
reject: "reject";
|
|
4737
|
+
retry: "retry";
|
|
4738
|
+
edit: "edit";
|
|
4739
|
+
view: "view";
|
|
4740
|
+
launch: "launch";
|
|
4741
|
+
escalate: "escalate";
|
|
4742
|
+
promote: "promote";
|
|
4743
|
+
submit: "submit";
|
|
4744
|
+
email: "email";
|
|
4745
|
+
success: "success";
|
|
4746
|
+
warning: "warning";
|
|
4747
|
+
info: "info";
|
|
4748
|
+
pending: "pending";
|
|
4749
|
+
bolt: "bolt";
|
|
4750
|
+
building: "building";
|
|
4751
|
+
briefcase: "briefcase";
|
|
4752
|
+
apps: "apps";
|
|
4753
|
+
graph: "graph";
|
|
4754
|
+
shield: "shield";
|
|
4755
|
+
users: "users";
|
|
4756
|
+
"chart-bar": "chart-bar";
|
|
4757
|
+
search: "search";
|
|
4564
4758
|
}>, z.ZodString]>>;
|
|
4565
4759
|
id: z.ZodString;
|
|
4566
4760
|
primaryEntity: z.ZodEnum<{
|
|
@@ -4638,71 +4832,65 @@ declare const ProspectingBuildTemplateSchema: z.ZodObject<{
|
|
|
4638
4832
|
description: z.ZodOptional<z.ZodString>;
|
|
4639
4833
|
color: z.ZodOptional<z.ZodString>;
|
|
4640
4834
|
icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
"
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
"
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
"
|
|
4673
|
-
"
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
"
|
|
4699
|
-
|
|
4700
|
-
"action.launch": "action.launch";
|
|
4701
|
-
"action.message": "action.message";
|
|
4702
|
-
"action.escalate": "action.escalate";
|
|
4703
|
-
"action.promote": "action.promote";
|
|
4704
|
-
"action.submit": "action.submit";
|
|
4705
|
-
"action.email": "action.email";
|
|
4835
|
+
message: "message";
|
|
4836
|
+
error: "error";
|
|
4837
|
+
agent: "agent";
|
|
4838
|
+
workflow: "workflow";
|
|
4839
|
+
"google-sheets": "google-sheets";
|
|
4840
|
+
dashboard: "dashboard";
|
|
4841
|
+
calendar: "calendar";
|
|
4842
|
+
sales: "sales";
|
|
4843
|
+
crm: "crm";
|
|
4844
|
+
"lead-gen": "lead-gen";
|
|
4845
|
+
projects: "projects";
|
|
4846
|
+
operations: "operations";
|
|
4847
|
+
monitoring: "monitoring";
|
|
4848
|
+
knowledge: "knowledge";
|
|
4849
|
+
settings: "settings";
|
|
4850
|
+
admin: "admin";
|
|
4851
|
+
archive: "archive";
|
|
4852
|
+
business: "business";
|
|
4853
|
+
finance: "finance";
|
|
4854
|
+
platform: "platform";
|
|
4855
|
+
seo: "seo";
|
|
4856
|
+
playbook: "playbook";
|
|
4857
|
+
strategy: "strategy";
|
|
4858
|
+
reference: "reference";
|
|
4859
|
+
integration: "integration";
|
|
4860
|
+
database: "database";
|
|
4861
|
+
user: "user";
|
|
4862
|
+
team: "team";
|
|
4863
|
+
gmail: "gmail";
|
|
4864
|
+
attio: "attio";
|
|
4865
|
+
overview: "overview";
|
|
4866
|
+
"command-view": "command-view";
|
|
4867
|
+
"command-queue": "command-queue";
|
|
4868
|
+
pipeline: "pipeline";
|
|
4869
|
+
lists: "lists";
|
|
4870
|
+
resources: "resources";
|
|
4871
|
+
approve: "approve";
|
|
4872
|
+
reject: "reject";
|
|
4873
|
+
retry: "retry";
|
|
4874
|
+
edit: "edit";
|
|
4875
|
+
view: "view";
|
|
4876
|
+
launch: "launch";
|
|
4877
|
+
escalate: "escalate";
|
|
4878
|
+
promote: "promote";
|
|
4879
|
+
submit: "submit";
|
|
4880
|
+
email: "email";
|
|
4881
|
+
success: "success";
|
|
4882
|
+
warning: "warning";
|
|
4883
|
+
info: "info";
|
|
4884
|
+
pending: "pending";
|
|
4885
|
+
bolt: "bolt";
|
|
4886
|
+
building: "building";
|
|
4887
|
+
briefcase: "briefcase";
|
|
4888
|
+
apps: "apps";
|
|
4889
|
+
graph: "graph";
|
|
4890
|
+
shield: "shield";
|
|
4891
|
+
users: "users";
|
|
4892
|
+
"chart-bar": "chart-bar";
|
|
4893
|
+
search: "search";
|
|
4706
4894
|
}>, z.ZodString]>>;
|
|
4707
4895
|
id: z.ZodString;
|
|
4708
4896
|
steps: z.ZodArray<z.ZodObject<{
|
|
@@ -4710,71 +4898,65 @@ declare const ProspectingBuildTemplateSchema: z.ZodObject<{
|
|
|
4710
4898
|
description: z.ZodOptional<z.ZodString>;
|
|
4711
4899
|
color: z.ZodOptional<z.ZodString>;
|
|
4712
4900
|
icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
"
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
"
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
"
|
|
4745
|
-
"
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
"
|
|
4771
|
-
|
|
4772
|
-
"action.launch": "action.launch";
|
|
4773
|
-
"action.message": "action.message";
|
|
4774
|
-
"action.escalate": "action.escalate";
|
|
4775
|
-
"action.promote": "action.promote";
|
|
4776
|
-
"action.submit": "action.submit";
|
|
4777
|
-
"action.email": "action.email";
|
|
4901
|
+
message: "message";
|
|
4902
|
+
error: "error";
|
|
4903
|
+
agent: "agent";
|
|
4904
|
+
workflow: "workflow";
|
|
4905
|
+
"google-sheets": "google-sheets";
|
|
4906
|
+
dashboard: "dashboard";
|
|
4907
|
+
calendar: "calendar";
|
|
4908
|
+
sales: "sales";
|
|
4909
|
+
crm: "crm";
|
|
4910
|
+
"lead-gen": "lead-gen";
|
|
4911
|
+
projects: "projects";
|
|
4912
|
+
operations: "operations";
|
|
4913
|
+
monitoring: "monitoring";
|
|
4914
|
+
knowledge: "knowledge";
|
|
4915
|
+
settings: "settings";
|
|
4916
|
+
admin: "admin";
|
|
4917
|
+
archive: "archive";
|
|
4918
|
+
business: "business";
|
|
4919
|
+
finance: "finance";
|
|
4920
|
+
platform: "platform";
|
|
4921
|
+
seo: "seo";
|
|
4922
|
+
playbook: "playbook";
|
|
4923
|
+
strategy: "strategy";
|
|
4924
|
+
reference: "reference";
|
|
4925
|
+
integration: "integration";
|
|
4926
|
+
database: "database";
|
|
4927
|
+
user: "user";
|
|
4928
|
+
team: "team";
|
|
4929
|
+
gmail: "gmail";
|
|
4930
|
+
attio: "attio";
|
|
4931
|
+
overview: "overview";
|
|
4932
|
+
"command-view": "command-view";
|
|
4933
|
+
"command-queue": "command-queue";
|
|
4934
|
+
pipeline: "pipeline";
|
|
4935
|
+
lists: "lists";
|
|
4936
|
+
resources: "resources";
|
|
4937
|
+
approve: "approve";
|
|
4938
|
+
reject: "reject";
|
|
4939
|
+
retry: "retry";
|
|
4940
|
+
edit: "edit";
|
|
4941
|
+
view: "view";
|
|
4942
|
+
launch: "launch";
|
|
4943
|
+
escalate: "escalate";
|
|
4944
|
+
promote: "promote";
|
|
4945
|
+
submit: "submit";
|
|
4946
|
+
email: "email";
|
|
4947
|
+
success: "success";
|
|
4948
|
+
warning: "warning";
|
|
4949
|
+
info: "info";
|
|
4950
|
+
pending: "pending";
|
|
4951
|
+
bolt: "bolt";
|
|
4952
|
+
building: "building";
|
|
4953
|
+
briefcase: "briefcase";
|
|
4954
|
+
apps: "apps";
|
|
4955
|
+
graph: "graph";
|
|
4956
|
+
shield: "shield";
|
|
4957
|
+
users: "users";
|
|
4958
|
+
"chart-bar": "chart-bar";
|
|
4959
|
+
search: "search";
|
|
4778
4960
|
}>, z.ZodString]>>;
|
|
4779
4961
|
id: z.ZodString;
|
|
4780
4962
|
primaryEntity: z.ZodEnum<{
|
|
@@ -4936,8 +5118,8 @@ declare const DealSchemas: {
|
|
|
4936
5118
|
title: z.ZodString;
|
|
4937
5119
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4938
5120
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
4939
|
-
other: "other";
|
|
4940
5121
|
email: "email";
|
|
5122
|
+
other: "other";
|
|
4941
5123
|
call: "call";
|
|
4942
5124
|
meeting: "meeting";
|
|
4943
5125
|
}>>;
|
|
@@ -5277,8 +5459,8 @@ declare const DealSchemas: {
|
|
|
5277
5459
|
title: z.ZodString;
|
|
5278
5460
|
description: z.ZodNullable<z.ZodString>;
|
|
5279
5461
|
kind: z.ZodEnum<{
|
|
5280
|
-
other: "other";
|
|
5281
5462
|
email: "email";
|
|
5463
|
+
other: "other";
|
|
5282
5464
|
call: "call";
|
|
5283
5465
|
meeting: "meeting";
|
|
5284
5466
|
}>;
|
|
@@ -5297,8 +5479,8 @@ declare const DealSchemas: {
|
|
|
5297
5479
|
title: z.ZodString;
|
|
5298
5480
|
description: z.ZodNullable<z.ZodString>;
|
|
5299
5481
|
kind: z.ZodEnum<{
|
|
5300
|
-
other: "other";
|
|
5301
5482
|
email: "email";
|
|
5483
|
+
other: "other";
|
|
5302
5484
|
call: "call";
|
|
5303
5485
|
meeting: "meeting";
|
|
5304
5486
|
}>;
|
|
@@ -6337,6 +6519,100 @@ type DealActionInput = AcqDealRow & {
|
|
|
6337
6519
|
declare const DEFAULT_CRM_ACTIONS: ActionDef[];
|
|
6338
6520
|
declare function deriveActions(deal: DealActionInput, actions?: ActionDef[]): Action[];
|
|
6339
6521
|
|
|
6522
|
+
declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
6523
|
+
objectTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
6524
|
+
id: z.ZodString;
|
|
6525
|
+
label: z.ZodOptional<z.ZodString>;
|
|
6526
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6527
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
6528
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6529
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6530
|
+
storage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6531
|
+
}, z.core.$loose>>>>;
|
|
6532
|
+
linkTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
6533
|
+
id: z.ZodString;
|
|
6534
|
+
label: z.ZodOptional<z.ZodString>;
|
|
6535
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6536
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
6537
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6538
|
+
from: z.ZodString;
|
|
6539
|
+
to: z.ZodString;
|
|
6540
|
+
cardinality: z.ZodOptional<z.ZodString>;
|
|
6541
|
+
via: z.ZodOptional<z.ZodString>;
|
|
6542
|
+
}, z.core.$loose>>>>;
|
|
6543
|
+
actionTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
6544
|
+
id: z.ZodString;
|
|
6545
|
+
label: z.ZodOptional<z.ZodString>;
|
|
6546
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6547
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
6548
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6549
|
+
actsOn: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
6550
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6551
|
+
effects: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
6552
|
+
}, z.core.$loose>>>>;
|
|
6553
|
+
catalogTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
6554
|
+
id: z.ZodString;
|
|
6555
|
+
label: z.ZodOptional<z.ZodString>;
|
|
6556
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6557
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
6558
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6559
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
6560
|
+
appliesTo: z.ZodOptional<z.ZodString>;
|
|
6561
|
+
entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6562
|
+
}, z.core.$loose>>>>;
|
|
6563
|
+
eventTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
6564
|
+
id: z.ZodString;
|
|
6565
|
+
label: z.ZodOptional<z.ZodString>;
|
|
6566
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6567
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
6568
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6569
|
+
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6570
|
+
}, z.core.$loose>>>>;
|
|
6571
|
+
interfaceTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
6572
|
+
id: z.ZodString;
|
|
6573
|
+
label: z.ZodOptional<z.ZodString>;
|
|
6574
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6575
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
6576
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6577
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6578
|
+
}, z.core.$loose>>>>;
|
|
6579
|
+
valueTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
6580
|
+
id: z.ZodString;
|
|
6581
|
+
label: z.ZodOptional<z.ZodString>;
|
|
6582
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6583
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
6584
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6585
|
+
primitive: z.ZodOptional<z.ZodString>;
|
|
6586
|
+
}, z.core.$loose>>>>;
|
|
6587
|
+
sharedProperties: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
6588
|
+
id: z.ZodString;
|
|
6589
|
+
label: z.ZodOptional<z.ZodString>;
|
|
6590
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6591
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
6592
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6593
|
+
valueType: z.ZodOptional<z.ZodString>;
|
|
6594
|
+
searchable: z.ZodOptional<z.ZodBoolean>;
|
|
6595
|
+
pii: z.ZodOptional<z.ZodBoolean>;
|
|
6596
|
+
}, z.core.$loose>>>>;
|
|
6597
|
+
groups: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
6598
|
+
id: z.ZodString;
|
|
6599
|
+
label: z.ZodOptional<z.ZodString>;
|
|
6600
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6601
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
6602
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6603
|
+
members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
6604
|
+
}, z.core.$loose>>>>;
|
|
6605
|
+
surfaces: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
6606
|
+
id: z.ZodString;
|
|
6607
|
+
label: z.ZodOptional<z.ZodString>;
|
|
6608
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6609
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
6610
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6611
|
+
route: z.ZodOptional<z.ZodString>;
|
|
6612
|
+
}, z.core.$loose>>>>;
|
|
6613
|
+
}, z.core.$strip>>;
|
|
6614
|
+
type OntologyScope = z.infer<typeof OntologyScopeSchema>;
|
|
6615
|
+
|
|
6340
6616
|
/**
|
|
6341
6617
|
* A single CRM activity entry (note, stage change, or deal creation).
|
|
6342
6618
|
* Matches the CrmActivityEntry interface from useRecentCrmActivity.ts.
|
|
@@ -9614,6 +9890,10 @@ declare const ContentNodeSchema: z.ZodObject<{
|
|
|
9614
9890
|
}, z.core.$strip>;
|
|
9615
9891
|
type ContentNode = z.infer<typeof ContentNodeSchema>;
|
|
9616
9892
|
|
|
9893
|
+
type JsonPrimitive = string | number | boolean | null;
|
|
9894
|
+
type JsonValue = JsonPrimitive | JsonValue[] | {
|
|
9895
|
+
[key: string]: JsonValue;
|
|
9896
|
+
};
|
|
9617
9897
|
/** Explicit interface needed to annotate the recursive SystemEntrySchema. */
|
|
9618
9898
|
interface SystemEntry {
|
|
9619
9899
|
id: string;
|
|
@@ -9648,6 +9928,13 @@ interface SystemEntry {
|
|
|
9648
9928
|
devOnly?: boolean;
|
|
9649
9929
|
requiresAdmin?: boolean;
|
|
9650
9930
|
order: number;
|
|
9931
|
+
config?: Record<string, JsonValue>;
|
|
9932
|
+
ontology?: OntologyScope;
|
|
9933
|
+
systems?: Record<string, SystemEntry>;
|
|
9934
|
+
/**
|
|
9935
|
+
* @deprecated Compatibility-only bridge for old tenant data and migration readers.
|
|
9936
|
+
* Author new semantic catalogs in `ontology` and local settings in `config`.
|
|
9937
|
+
*/
|
|
9651
9938
|
content?: Record<string, ContentNode>;
|
|
9652
9939
|
subsystems?: Record<string, SystemEntry>;
|
|
9653
9940
|
}
|
|
@@ -10038,6 +10325,10 @@ declare const LinkSchema: z.ZodObject<{
|
|
|
10038
10325
|
kind: z.ZodEnum<{
|
|
10039
10326
|
links: "links";
|
|
10040
10327
|
affects: "affects";
|
|
10328
|
+
effects: "effects";
|
|
10329
|
+
implements: "implements";
|
|
10330
|
+
reads: "reads";
|
|
10331
|
+
writes: "writes";
|
|
10041
10332
|
emits: "emits";
|
|
10042
10333
|
contains: "contains";
|
|
10043
10334
|
references: "references";
|
|
@@ -10047,7 +10338,7 @@ declare const LinkSchema: z.ZodObject<{
|
|
|
10047
10338
|
originates_from: "originates_from";
|
|
10048
10339
|
triggers: "triggers";
|
|
10049
10340
|
applies_to: "applies_to";
|
|
10050
|
-
|
|
10341
|
+
uses_catalog: "uses_catalog";
|
|
10051
10342
|
}>;
|
|
10052
10343
|
}, z.core.$strip>;
|
|
10053
10344
|
type Link = z.infer<typeof LinkSchema>;
|
|
@@ -10520,150 +10811,150 @@ declare class ToolingError extends ExecutionError {
|
|
|
10520
10811
|
constructor(errorType: string, message: string, details?: unknown);
|
|
10521
10812
|
}
|
|
10522
10813
|
|
|
10523
|
-
// ============================================================================
|
|
10524
|
-
// Lead-Gen Stateful Pipeline Definitions (Decision N8, Wave 4)
|
|
10525
|
-
//
|
|
10526
|
-
// Defines the (pipeline_key, stage_key, state_key) vocabulary for the three
|
|
10527
|
-
// entities that carry the Stateful trait via Track B:
|
|
10528
|
-
// - acq_lists (pipeline_key='lead-gen', stage_key='lifecycle')
|
|
10529
|
-
// - acq_list_members (pipeline_key='lead-gen', stages: outreach / prospecting / qualification)
|
|
10530
|
-
// - acq_list_companies (pipeline_key='lead-gen', stages: outreach / prospecting / qualification)
|
|
10531
|
-
//
|
|
10532
|
-
// DB columns (pipeline_key, stage_key, state_key) remain free-form text with no
|
|
10533
|
-
// CHECK constraint — new states can be introduced without a migration (Decision N8).
|
|
10534
|
-
// These definitions are the org-specific source of truth consumed by UI and tooling.
|
|
10535
|
-
//
|
|
10536
|
-
// State vocabularies sourced from the post-restructure sales tree (W3 canonical):
|
|
10537
|
-
// outreach/:
|
|
10538
|
-
// - personalized (instantly-personalization.ts → contacts)
|
|
10539
|
-
// - uploaded (instantly-upload.ts → contacts)
|
|
10540
|
-
// - interested (instantly-reply-handler.ts → contacts, initial reply transition)
|
|
10541
|
-
// prospecting/:
|
|
10542
|
-
// - populated (apify-acquire.ts, apify-scrape.ts → companies)
|
|
10543
|
-
// - crawled (apify-website-crawl.ts → companies)
|
|
10544
|
-
// - extracted (website-extract.ts → companies)
|
|
10545
|
-
// - discovered (email-discovery.ts, anymailfinder-enrich.ts → contacts)
|
|
10546
|
-
// - verified (email-verification.ts → contacts)
|
|
10547
|
-
// qualification/:
|
|
10548
|
-
// - qualified (company-qualification.ts → companies)
|
|
10549
|
-
//
|
|
10550
|
-
// The 'pending' state is the W2 backfill default (coalesce(stage, 'pending')).
|
|
10551
|
-
// It is valid in any stage and represents "not yet processed by a workflow step".
|
|
10552
|
-
// ============================================================================
|
|
10553
|
-
|
|
10554
|
-
/** One state within a stage — minimal shape: key + display label. */
|
|
10555
|
-
interface StatefulStateDefinition {
|
|
10556
|
-
/** Matches state_key values written by workflow steps. */
|
|
10557
|
-
stateKey: string
|
|
10558
|
-
label: string
|
|
10559
|
-
}
|
|
10560
|
-
|
|
10561
|
-
/** One stage within a pipeline — has a stage_key and an ordered list of valid states. */
|
|
10562
|
-
interface StatefulStageDefinition {
|
|
10563
|
-
/** Matches stage_key values written by workflow steps. */
|
|
10564
|
-
stageKey: string
|
|
10565
|
-
label: string
|
|
10566
|
-
/** UI color token. Consumers may map this to their design system. */
|
|
10567
|
-
color?: string
|
|
10568
|
-
states: StatefulStateDefinition[]
|
|
10569
|
-
}
|
|
10570
|
-
|
|
10571
|
-
/**
|
|
10572
|
-
* Pipeline definition for a single entity participating in the Stateful trait.
|
|
10573
|
-
* Parallel to acq_deals' pipeline_key concept but structured for lead-gen entities.
|
|
10574
|
-
*/
|
|
10575
|
-
interface StatefulPipelineDefinition {
|
|
10576
|
-
/** Matches pipeline_key values in the database (e.g. 'lead-gen'). */
|
|
10577
|
-
pipelineKey: string
|
|
10578
|
-
label: string
|
|
10579
|
-
/** Entity this pipeline applies to (e.g. 'acq.list', 'acq.list-member', 'acq.list-company'). */
|
|
10580
|
-
entityKey: string
|
|
10581
|
-
stages: StatefulStageDefinition[]
|
|
10582
|
-
}
|
|
10583
|
-
|
|
10584
|
-
// ============================================================================
|
|
10585
|
-
// CRM Stateful Pipeline Definition
|
|
10586
|
-
//
|
|
10587
|
-
// Defines the (pipeline_key, stage_key, state_key) vocabulary for crm.deal
|
|
10588
|
-
// entities. Stage keys match DEFAULT_ORGANIZATION_MODEL_SALES.pipelines[0].stages.
|
|
10589
|
-
//
|
|
10590
|
-
// State vocabularies sourced from the CRM action/handler tree:
|
|
10591
|
-
// interested/:
|
|
10592
|
-
// - discovery_replied (instantly-reply-handler.ts → first/subsequent reply)
|
|
10593
|
-
// - discovery_link_sent (crm-send-booking-link.ts, crm-rebook.ts → booking link sent)
|
|
10594
|
-
// - discovery_nudging (crm-send-nudge.ts → nudge sent after link)
|
|
10595
|
-
// - discovery_booking_cancelled (booking-revert.ts → Cal cancellation webhook)
|
|
10596
|
-
// - reply_sent (crm-send-reply.ts → operator reply sent)
|
|
10597
|
-
// - followup_1_sent (crm-reply-followup.ts day=3)
|
|
10598
|
-
// - followup_2_sent (crm-reply-followup.ts day=5)
|
|
10599
|
-
// - followup_3_sent (crm-reply-followup.ts day=7)
|
|
10600
|
-
// proposal, closing, closed_won, closed_lost, nurturing: no observed sub-states
|
|
10601
|
-
// ============================================================================
|
|
10602
|
-
|
|
10603
|
-
declare const CRM_DISCOVERY_REPLIED_STATE: StatefulStateDefinition = {
|
|
10604
|
-
stateKey: 'discovery_replied',
|
|
10605
|
-
label: 'Discovery Replied'
|
|
10606
|
-
}
|
|
10607
|
-
declare const CRM_DISCOVERY_LINK_SENT_STATE: StatefulStateDefinition = {
|
|
10608
|
-
stateKey: 'discovery_link_sent',
|
|
10609
|
-
label: 'Discovery Link Sent'
|
|
10610
|
-
}
|
|
10611
|
-
declare const CRM_DISCOVERY_NUDGING_STATE: StatefulStateDefinition = {
|
|
10612
|
-
stateKey: 'discovery_nudging',
|
|
10613
|
-
label: 'Discovery Nudging'
|
|
10614
|
-
}
|
|
10615
|
-
declare const CRM_DISCOVERY_BOOKING_CANCELLED_STATE: StatefulStateDefinition = {
|
|
10616
|
-
stateKey: 'discovery_booking_cancelled',
|
|
10617
|
-
label: 'Discovery Booking Cancelled'
|
|
10618
|
-
}
|
|
10619
|
-
declare const CRM_REPLY_SENT_STATE: StatefulStateDefinition = {
|
|
10620
|
-
stateKey: 'reply_sent',
|
|
10621
|
-
label: 'Reply Sent'
|
|
10622
|
-
}
|
|
10623
|
-
declare const CRM_FOLLOWUP_1_SENT_STATE: StatefulStateDefinition = {
|
|
10624
|
-
stateKey: 'followup_1_sent',
|
|
10625
|
-
label: 'Follow-up 1 Sent'
|
|
10626
|
-
}
|
|
10627
|
-
declare const CRM_FOLLOWUP_2_SENT_STATE: StatefulStateDefinition = {
|
|
10628
|
-
stateKey: 'followup_2_sent',
|
|
10629
|
-
label: 'Follow-up 2 Sent'
|
|
10630
|
-
}
|
|
10631
|
-
declare const CRM_FOLLOWUP_3_SENT_STATE: StatefulStateDefinition = {
|
|
10632
|
-
stateKey: 'followup_3_sent',
|
|
10633
|
-
label: 'Follow-up 3 Sent'
|
|
10634
|
-
}
|
|
10635
|
-
|
|
10636
|
-
declare const CRM_PIPELINE_DEFINITION: StatefulPipelineDefinition = {
|
|
10637
|
-
pipelineKey: 'crm',
|
|
10638
|
-
label: 'CRM',
|
|
10639
|
-
entityKey: 'crm.deal',
|
|
10640
|
-
stages: [
|
|
10641
|
-
{
|
|
10642
|
-
stageKey: 'interested',
|
|
10643
|
-
label: 'Interested',
|
|
10644
|
-
color: 'blue',
|
|
10645
|
-
states: [
|
|
10646
|
-
CRM_DISCOVERY_REPLIED_STATE,
|
|
10647
|
-
CRM_DISCOVERY_LINK_SENT_STATE,
|
|
10648
|
-
CRM_DISCOVERY_NUDGING_STATE,
|
|
10649
|
-
CRM_DISCOVERY_BOOKING_CANCELLED_STATE,
|
|
10650
|
-
CRM_REPLY_SENT_STATE,
|
|
10651
|
-
CRM_FOLLOWUP_1_SENT_STATE,
|
|
10652
|
-
CRM_FOLLOWUP_2_SENT_STATE,
|
|
10653
|
-
CRM_FOLLOWUP_3_SENT_STATE
|
|
10654
|
-
]
|
|
10655
|
-
},
|
|
10656
|
-
{ stageKey: 'proposal', label: 'Proposal', color: 'yellow', states: [] },
|
|
10657
|
-
{ stageKey: 'closing', label: 'Closing', color: 'orange', states: [] },
|
|
10658
|
-
{ stageKey: 'closed_won', label: 'Closed Won', color: 'green', states: [] },
|
|
10659
|
-
{ stageKey: 'closed_lost', label: 'Closed Lost', color: 'red', states: [] },
|
|
10660
|
-
{ stageKey: 'nurturing', label: 'Nurturing', color: 'grape', states: [] }
|
|
10661
|
-
]
|
|
10814
|
+
// ============================================================================
|
|
10815
|
+
// Lead-Gen Stateful Pipeline Definitions (Decision N8, Wave 4)
|
|
10816
|
+
//
|
|
10817
|
+
// Defines the (pipeline_key, stage_key, state_key) vocabulary for the three
|
|
10818
|
+
// entities that carry the Stateful trait via Track B:
|
|
10819
|
+
// - acq_lists (pipeline_key='lead-gen', stage_key='lifecycle')
|
|
10820
|
+
// - acq_list_members (pipeline_key='lead-gen', stages: outreach / prospecting / qualification)
|
|
10821
|
+
// - acq_list_companies (pipeline_key='lead-gen', stages: outreach / prospecting / qualification)
|
|
10822
|
+
//
|
|
10823
|
+
// DB columns (pipeline_key, stage_key, state_key) remain free-form text with no
|
|
10824
|
+
// CHECK constraint — new states can be introduced without a migration (Decision N8).
|
|
10825
|
+
// These definitions are the org-specific source of truth consumed by UI and tooling.
|
|
10826
|
+
//
|
|
10827
|
+
// State vocabularies sourced from the post-restructure sales tree (W3 canonical):
|
|
10828
|
+
// outreach/:
|
|
10829
|
+
// - personalized (instantly-personalization.ts → contacts)
|
|
10830
|
+
// - uploaded (instantly-upload.ts → contacts)
|
|
10831
|
+
// - interested (instantly-reply-handler.ts → contacts, initial reply transition)
|
|
10832
|
+
// prospecting/:
|
|
10833
|
+
// - populated (apify-acquire.ts, apify-scrape.ts → companies)
|
|
10834
|
+
// - crawled (apify-website-crawl.ts → companies)
|
|
10835
|
+
// - extracted (website-extract.ts → companies)
|
|
10836
|
+
// - discovered (email-discovery.ts, anymailfinder-enrich.ts → contacts)
|
|
10837
|
+
// - verified (email-verification.ts → contacts)
|
|
10838
|
+
// qualification/:
|
|
10839
|
+
// - qualified (company-qualification.ts → companies)
|
|
10840
|
+
//
|
|
10841
|
+
// The 'pending' state is the W2 backfill default (coalesce(stage, 'pending')).
|
|
10842
|
+
// It is valid in any stage and represents "not yet processed by a workflow step".
|
|
10843
|
+
// ============================================================================
|
|
10844
|
+
|
|
10845
|
+
/** One state within a stage — minimal shape: key + display label. */
|
|
10846
|
+
interface StatefulStateDefinition {
|
|
10847
|
+
/** Matches state_key values written by workflow steps. */
|
|
10848
|
+
stateKey: string
|
|
10849
|
+
label: string
|
|
10850
|
+
}
|
|
10851
|
+
|
|
10852
|
+
/** One stage within a pipeline — has a stage_key and an ordered list of valid states. */
|
|
10853
|
+
interface StatefulStageDefinition {
|
|
10854
|
+
/** Matches stage_key values written by workflow steps. */
|
|
10855
|
+
stageKey: string
|
|
10856
|
+
label: string
|
|
10857
|
+
/** UI color token. Consumers may map this to their design system. */
|
|
10858
|
+
color?: string
|
|
10859
|
+
states: StatefulStateDefinition[]
|
|
10860
|
+
}
|
|
10861
|
+
|
|
10862
|
+
/**
|
|
10863
|
+
* Pipeline definition for a single entity participating in the Stateful trait.
|
|
10864
|
+
* Parallel to acq_deals' pipeline_key concept but structured for lead-gen entities.
|
|
10865
|
+
*/
|
|
10866
|
+
interface StatefulPipelineDefinition {
|
|
10867
|
+
/** Matches pipeline_key values in the database (e.g. 'lead-gen'). */
|
|
10868
|
+
pipelineKey: string
|
|
10869
|
+
label: string
|
|
10870
|
+
/** Entity this pipeline applies to (e.g. 'acq.list', 'acq.list-member', 'acq.list-company'). */
|
|
10871
|
+
entityKey: string
|
|
10872
|
+
stages: StatefulStageDefinition[]
|
|
10873
|
+
}
|
|
10874
|
+
|
|
10875
|
+
// ============================================================================
|
|
10876
|
+
// CRM Stateful Pipeline Definition
|
|
10877
|
+
//
|
|
10878
|
+
// Defines the (pipeline_key, stage_key, state_key) vocabulary for crm.deal
|
|
10879
|
+
// entities. Stage keys match DEFAULT_ORGANIZATION_MODEL_SALES.pipelines[0].stages.
|
|
10880
|
+
//
|
|
10881
|
+
// State vocabularies sourced from the CRM action/handler tree:
|
|
10882
|
+
// interested/:
|
|
10883
|
+
// - discovery_replied (instantly-reply-handler.ts → first/subsequent reply)
|
|
10884
|
+
// - discovery_link_sent (crm-send-booking-link.ts, crm-rebook.ts → booking link sent)
|
|
10885
|
+
// - discovery_nudging (crm-send-nudge.ts → nudge sent after link)
|
|
10886
|
+
// - discovery_booking_cancelled (booking-revert.ts → Cal cancellation webhook)
|
|
10887
|
+
// - reply_sent (crm-send-reply.ts → operator reply sent)
|
|
10888
|
+
// - followup_1_sent (crm-reply-followup.ts day=3)
|
|
10889
|
+
// - followup_2_sent (crm-reply-followup.ts day=5)
|
|
10890
|
+
// - followup_3_sent (crm-reply-followup.ts day=7)
|
|
10891
|
+
// proposal, closing, closed_won, closed_lost, nurturing: no observed sub-states
|
|
10892
|
+
// ============================================================================
|
|
10893
|
+
|
|
10894
|
+
declare const CRM_DISCOVERY_REPLIED_STATE: StatefulStateDefinition = {
|
|
10895
|
+
stateKey: 'discovery_replied',
|
|
10896
|
+
label: 'Discovery Replied'
|
|
10897
|
+
}
|
|
10898
|
+
declare const CRM_DISCOVERY_LINK_SENT_STATE: StatefulStateDefinition = {
|
|
10899
|
+
stateKey: 'discovery_link_sent',
|
|
10900
|
+
label: 'Discovery Link Sent'
|
|
10901
|
+
}
|
|
10902
|
+
declare const CRM_DISCOVERY_NUDGING_STATE: StatefulStateDefinition = {
|
|
10903
|
+
stateKey: 'discovery_nudging',
|
|
10904
|
+
label: 'Discovery Nudging'
|
|
10905
|
+
}
|
|
10906
|
+
declare const CRM_DISCOVERY_BOOKING_CANCELLED_STATE: StatefulStateDefinition = {
|
|
10907
|
+
stateKey: 'discovery_booking_cancelled',
|
|
10908
|
+
label: 'Discovery Booking Cancelled'
|
|
10909
|
+
}
|
|
10910
|
+
declare const CRM_REPLY_SENT_STATE: StatefulStateDefinition = {
|
|
10911
|
+
stateKey: 'reply_sent',
|
|
10912
|
+
label: 'Reply Sent'
|
|
10913
|
+
}
|
|
10914
|
+
declare const CRM_FOLLOWUP_1_SENT_STATE: StatefulStateDefinition = {
|
|
10915
|
+
stateKey: 'followup_1_sent',
|
|
10916
|
+
label: 'Follow-up 1 Sent'
|
|
10917
|
+
}
|
|
10918
|
+
declare const CRM_FOLLOWUP_2_SENT_STATE: StatefulStateDefinition = {
|
|
10919
|
+
stateKey: 'followup_2_sent',
|
|
10920
|
+
label: 'Follow-up 2 Sent'
|
|
10921
|
+
}
|
|
10922
|
+
declare const CRM_FOLLOWUP_3_SENT_STATE: StatefulStateDefinition = {
|
|
10923
|
+
stateKey: 'followup_3_sent',
|
|
10924
|
+
label: 'Follow-up 3 Sent'
|
|
10925
|
+
}
|
|
10926
|
+
|
|
10927
|
+
declare const CRM_PIPELINE_DEFINITION: StatefulPipelineDefinition = {
|
|
10928
|
+
pipelineKey: 'crm',
|
|
10929
|
+
label: 'CRM',
|
|
10930
|
+
entityKey: 'crm.deal',
|
|
10931
|
+
stages: [
|
|
10932
|
+
{
|
|
10933
|
+
stageKey: 'interested',
|
|
10934
|
+
label: 'Interested',
|
|
10935
|
+
color: 'blue',
|
|
10936
|
+
states: [
|
|
10937
|
+
CRM_DISCOVERY_REPLIED_STATE,
|
|
10938
|
+
CRM_DISCOVERY_LINK_SENT_STATE,
|
|
10939
|
+
CRM_DISCOVERY_NUDGING_STATE,
|
|
10940
|
+
CRM_DISCOVERY_BOOKING_CANCELLED_STATE,
|
|
10941
|
+
CRM_REPLY_SENT_STATE,
|
|
10942
|
+
CRM_FOLLOWUP_1_SENT_STATE,
|
|
10943
|
+
CRM_FOLLOWUP_2_SENT_STATE,
|
|
10944
|
+
CRM_FOLLOWUP_3_SENT_STATE
|
|
10945
|
+
]
|
|
10946
|
+
},
|
|
10947
|
+
{ stageKey: 'proposal', label: 'Proposal', color: 'yellow', states: [] },
|
|
10948
|
+
{ stageKey: 'closing', label: 'Closing', color: 'orange', states: [] },
|
|
10949
|
+
{ stageKey: 'closed_won', label: 'Closed Won', color: 'green', states: [] },
|
|
10950
|
+
{ stageKey: 'closed_lost', label: 'Closed Lost', color: 'red', states: [] },
|
|
10951
|
+
{ stageKey: 'nurturing', label: 'Nurturing', color: 'grape', states: [] }
|
|
10952
|
+
]
|
|
10662
10953
|
}
|
|
10663
10954
|
|
|
10664
|
-
declare const CrmStageKeySchema = z.enum(crmStageKeys)
|
|
10665
|
-
declare const CrmStateKeySchema = z.enum(crmStateKeys)
|
|
10666
|
-
type CrmStageKey = z.infer<typeof CrmStageKeySchema>
|
|
10955
|
+
declare const CrmStageKeySchema = z.enum(crmStageKeys)
|
|
10956
|
+
declare const CrmStateKeySchema = z.enum(crmStateKeys)
|
|
10957
|
+
type CrmStageKey = z.infer<typeof CrmStageKeySchema>
|
|
10667
10958
|
type CrmStateKey = z.infer<typeof CrmStateKeySchema>
|
|
10668
10959
|
|
|
10669
10960
|
/**
|