@elevasis/sdk 1.13.2 → 1.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.cjs +1 -1
- package/dist/index.d.ts +961 -1059
- package/dist/index.js +1 -1
- package/dist/test-utils/index.d.ts +899 -997
- package/dist/test-utils/index.js +6 -3
- package/dist/worker/index.js +1 -2
- package/package.json +2 -2
- package/reference/claude-config/rules/ui.md +8 -8
- package/reference/claude-config/rules/vibe.md +11 -11
- package/reference/scaffold/index.mdx +8 -8
- package/reference/scaffold/recipes/customize-crm-actions.md +408 -408
- package/reference/scaffold/recipes/extend-crm.md +252 -252
- package/reference/scaffold/recipes/index.md +20 -20
- package/reference/scaffold/reference/contracts.md +1478 -1561
package/dist/test-utils/index.js
CHANGED
|
@@ -6716,6 +6716,7 @@ createAdapter("acqDb", [
|
|
|
6716
6716
|
"updateList",
|
|
6717
6717
|
"deleteList",
|
|
6718
6718
|
"addContactsToList",
|
|
6719
|
+
"addCompaniesToList",
|
|
6719
6720
|
"updateCompanyStage",
|
|
6720
6721
|
"updateContactStage",
|
|
6721
6722
|
// Company operations
|
|
@@ -6758,11 +6759,9 @@ createAdapter("acqDb", [
|
|
|
6758
6759
|
"clearDealFields",
|
|
6759
6760
|
"deleteDeal",
|
|
6760
6761
|
"recordDealActivity",
|
|
6761
|
-
"recordTouchpoint",
|
|
6762
6762
|
"setDealStateKey",
|
|
6763
6763
|
"transitionDeal",
|
|
6764
6764
|
"loadDeal",
|
|
6765
|
-
"listDealTouchpoints",
|
|
6766
6765
|
// Deal note operations
|
|
6767
6766
|
"createDealNote",
|
|
6768
6767
|
"listDealNotes",
|
|
@@ -24276,7 +24275,11 @@ var mockAcqDb = (overrides) => createMockAdapter(
|
|
|
24276
24275
|
"listDealTasksDue",
|
|
24277
24276
|
"completeDealTask",
|
|
24278
24277
|
"mergeEnrichmentData",
|
|
24279
|
-
"upsertSocialPosts"
|
|
24278
|
+
"upsertSocialPosts",
|
|
24279
|
+
// Stateful trait methods added with the lead-gen substrate (touchpoint methods removed)
|
|
24280
|
+
"setDealStateKey",
|
|
24281
|
+
"transitionDeal",
|
|
24282
|
+
"loadDeal"
|
|
24280
24283
|
],
|
|
24281
24284
|
overrides
|
|
24282
24285
|
);
|
package/dist/worker/index.js
CHANGED
|
@@ -4962,6 +4962,7 @@ var acqDb = createAdapter("acqDb", [
|
|
|
4962
4962
|
"updateList",
|
|
4963
4963
|
"deleteList",
|
|
4964
4964
|
"addContactsToList",
|
|
4965
|
+
"addCompaniesToList",
|
|
4965
4966
|
"updateCompanyStage",
|
|
4966
4967
|
"updateContactStage",
|
|
4967
4968
|
// Company operations
|
|
@@ -5004,11 +5005,9 @@ var acqDb = createAdapter("acqDb", [
|
|
|
5004
5005
|
"clearDealFields",
|
|
5005
5006
|
"deleteDeal",
|
|
5006
5007
|
"recordDealActivity",
|
|
5007
|
-
"recordTouchpoint",
|
|
5008
5008
|
"setDealStateKey",
|
|
5009
5009
|
"transitionDeal",
|
|
5010
5010
|
"loadDeal",
|
|
5011
|
-
"listDealTouchpoints",
|
|
5012
5011
|
// Deal note operations
|
|
5013
5012
|
"createDealNote",
|
|
5014
5013
|
"listDealNotes",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elevasis/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.1",
|
|
4
4
|
"description": "SDK for building Elevasis organization resources",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"tsup": "^8.0.0",
|
|
51
51
|
"typescript": "5.9.2",
|
|
52
52
|
"zod": "^4.1.0",
|
|
53
|
-
"@repo/core": "0.
|
|
53
|
+
"@repo/core": "0.14.0",
|
|
54
54
|
"@repo/typescript-config": "0.0.0"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
@@ -119,7 +119,7 @@ The API URL is centralized in `ui/src/lib/constants/api.ts`. In the current temp
|
|
|
119
119
|
Current top-level app sections:
|
|
120
120
|
|
|
121
121
|
- `/` -- host-local dashboard entrypoint with quick links derived from `organizationModel.navigation.quickAccessSurfaceIds`
|
|
122
|
-
- `/lead-gen/*` -- lead generation pages (`lists`, `companies`, `contacts`)
|
|
122
|
+
- `/lead-gen/*` -- lead generation pages (`lists`, `companies`, `contacts`)
|
|
123
123
|
- `/crm/*` -- CRM overview, pipeline, and deals
|
|
124
124
|
- `/projects/*` -- delivery feature pages (projects, milestones, tasks, notes)
|
|
125
125
|
- `/operations/*` -- operations overview, resources, command queue, command view, sessions, task scheduler
|
|
@@ -193,12 +193,12 @@ Two customization layers are available for every shared feature sidebar:
|
|
|
193
193
|
|
|
194
194
|
`manifest.sidebar` accepts any component, so arbitrary customization is always available. The `items` prop is an abstraction barrier for the common case, not a limit.
|
|
195
195
|
|
|
196
|
-
See `node_modules/@elevasis/sdk/reference/scaffold/ui/customization.md` for the decision tree, page-wrapping pattern, and delivery's three-section variant. For broader CRM extension work across pages, hooks, actions, workflows, and org-model boundaries, start with `node_modules/@elevasis/sdk/reference/scaffold/recipes/extend-crm.md`. For broader lead-gen extension work across pages, hooks, list/member state, artifacts, touchpoints, workflows, and org-model boundaries, start with `node_modules/@elevasis/sdk/reference/scaffold/recipes/extend-lead-gen.md`. See `node_modules/@elevasis/sdk/reference/scaffold/reference/contracts.md` for `NavItem`, `FeatureModule`, CRM platform primitives, Lead Gen platform primitives, and related TypeScript shapes.
|
|
197
|
-
|
|
198
|
-
For CRM deal action buttons, read `node_modules/@elevasis/sdk/reference/scaffold/recipes/customize-crm-actions.md` before changing `crmActions`, `DealDetailPage`, `DealDrawer`, or custom workflow buttons. Start with the shared `crmActions` provider path for action visibility, labels, ordering, and render-time configuration. In v1, platform-known/default action endpoint behavior is server-constrained; use project-owned UI that calls the workflow directly when a custom key sits outside that server-dispatched set.
|
|
199
|
-
|
|
200
|
-
## Notes
|
|
201
|
-
|
|
202
|
-
- `ui/src/routeTree.gen.ts` is generated by TanStack Router tooling. Do not hand-edit it.
|
|
196
|
+
See `node_modules/@elevasis/sdk/reference/scaffold/ui/customization.md` for the decision tree, page-wrapping pattern, and delivery's three-section variant. For broader CRM extension work across pages, hooks, actions, workflows, and org-model boundaries, start with `node_modules/@elevasis/sdk/reference/scaffold/recipes/extend-crm.md`. For broader lead-gen extension work across pages, hooks, list/member state, artifacts, touchpoints, workflows, and org-model boundaries, start with `node_modules/@elevasis/sdk/reference/scaffold/recipes/extend-lead-gen.md`. See `node_modules/@elevasis/sdk/reference/scaffold/reference/contracts.md` for `NavItem`, `FeatureModule`, CRM platform primitives, Lead Gen platform primitives, and related TypeScript shapes.
|
|
197
|
+
|
|
198
|
+
For CRM deal action buttons, read `node_modules/@elevasis/sdk/reference/scaffold/recipes/customize-crm-actions.md` before changing `crmActions`, `DealDetailPage`, `DealDrawer`, or custom workflow buttons. Start with the shared `crmActions` provider path for action visibility, labels, ordering, and render-time configuration. In v1, platform-known/default action endpoint behavior is server-constrained; use project-owned UI that calls the workflow directly when a custom key sits outside that server-dispatched set.
|
|
199
|
+
|
|
200
|
+
## Notes
|
|
201
|
+
|
|
202
|
+
- `ui/src/routeTree.gen.ts` is generated by TanStack Router tooling. Do not hand-edit it.
|
|
203
203
|
- The template ships a broad route surface so downstream projects can trim or reshape features without having to re-derive the shared shell contract from scratch.
|
|
204
204
|
- For package-export discovery, glob `node_modules/@elevasis/sdk/reference/` or `node_modules/@repo/ui/dist/` for the current SDK/UI package surface.
|
|
@@ -119,17 +119,17 @@ This routing applies to both codify levels (decision #21 -- Codify ceremony dele
|
|
|
119
119
|
- **Level A** (config-only edits to `organization-model.ts`, feature toggles, label renames): delegate to `/configure <domain>` immediately.
|
|
120
120
|
- **Level B** (new Zod extension files in `foundations/config/extensions/`): also delegate to `/configure <domain>`; `/configure` gates Level B to explicit user asks before scaffolding a new TS file.
|
|
121
121
|
|
|
122
|
-
Vibe detects the intent and delegates in both cases. It does not run either pipeline itself.
|
|
123
|
-
|
|
124
|
-
For "build/extend the CRM" asks, classify the structural org-model portion as Codify, then read `node_modules/@elevasis/sdk/reference/scaffold/recipes/extend-crm.md` before editing. CRM work often spans org-model sales semantics, shared UI routes, hooks, workflow adapters, and deal actions; do not reduce it to only `sales` config or only UI.
|
|
125
|
-
|
|
126
|
-
For "build/extend lead gen" / "campaign creator" / "outbound list state" asks, classify the structural org-model portion as Codify, then read `node_modules/@elevasis/sdk/reference/scaffold/recipes/extend-lead-gen.md` before editing. Lead-gen work often spans org-model prospecting semantics, shared UI routes, hooks, list/member state, artifacts, touchpoints, and workflow adapters; do not reduce it to only `prospecting` config or only UI.
|
|
127
|
-
|
|
128
|
-
For "add a custom CRM action" / "Send Quote button" asks, classify as Codify, then read `node_modules/@elevasis/sdk/reference/scaffold/recipes/customize-crm-actions.md` before editing. Start with the shared `crmActions` provider path for action visibility, labels, ordering, and render-time configuration. In v1, platform-known/default action endpoint behavior is server-constrained; use project-owned UI that calls the workflow directly when a custom key sits outside that server-dispatched set.
|
|
129
|
-
|
|
130
|
-
Heuristics for when to propose codification (passed to `/configure` as context):
|
|
131
|
-
|
|
132
|
-
- First mention of a new attribute: note to `resume_context`, do not propose yet
|
|
122
|
+
Vibe detects the intent and delegates in both cases. It does not run either pipeline itself.
|
|
123
|
+
|
|
124
|
+
For "build/extend the CRM" asks, classify the structural org-model portion as Codify, then read `node_modules/@elevasis/sdk/reference/scaffold/recipes/extend-crm.md` before editing. CRM work often spans org-model sales semantics, shared UI routes, hooks, workflow adapters, and deal actions; do not reduce it to only `sales` config or only UI.
|
|
125
|
+
|
|
126
|
+
For "build/extend lead gen" / "campaign creator" / "outbound list state" asks, classify the structural org-model portion as Codify, then read `node_modules/@elevasis/sdk/reference/scaffold/recipes/extend-lead-gen.md` before editing. Lead-gen work often spans org-model prospecting semantics, shared UI routes, hooks, list/member state, artifacts, touchpoints, and workflow adapters; do not reduce it to only `prospecting` config or only UI.
|
|
127
|
+
|
|
128
|
+
For "add a custom CRM action" / "Send Quote button" asks, classify as Codify, then read `node_modules/@elevasis/sdk/reference/scaffold/recipes/customize-crm-actions.md` before editing. Start with the shared `crmActions` provider path for action visibility, labels, ordering, and render-time configuration. In v1, platform-known/default action endpoint behavior is server-constrained; use project-owned UI that calls the workflow directly when a custom key sits outside that server-dispatched set.
|
|
129
|
+
|
|
130
|
+
Heuristics for when to propose codification (passed to `/configure` as context):
|
|
131
|
+
|
|
132
|
+
- First mention of a new attribute: note to `resume_context`, do not propose yet
|
|
133
133
|
- Second mention OR explicit declaration ("we're ecom"): propose extension
|
|
134
134
|
- Explicit ask ("track ecom deals separately"): propose immediately with fuller scope
|
|
135
135
|
- Attribute appearing across 3+ tasks: propose adding field to existing extension
|
|
@@ -21,14 +21,14 @@ This scaffold reference contains universal documentation that applies to all Ele
|
|
|
21
21
|
### Pathway Recipes
|
|
22
22
|
|
|
23
23
|
- [Add a Feature](./recipes/add-a-feature.md) -- end-to-end from org model key through manifest, routes, gating
|
|
24
|
-
- [Add a Resource](./recipes/add-a-resource.md) -- author and deploy a workflow or agent
|
|
25
|
-
- [Extend a Base Entity](./recipes/extend-a-base-entity.md) -- add project-specific metadata to canonical entity shapes via the TMeta slot
|
|
26
|
-
- [Gate by Feature or Admin](./recipes/gate-by-feature-or-admin.md) -- decision table for access control patterns
|
|
27
|
-
- [Build and Extend CRM](./recipes/extend-crm.md) -- map CRM UI pages, hooks, actions, workflow adapters, contracts, and org-model boundaries
|
|
28
|
-
- [Build and Extend Lead Gen](./recipes/extend-lead-gen.md) -- map lead-gen UI pages, hooks, list/member state, artifacts, touchpoints, workflow adapters, contracts, and org-model boundaries
|
|
29
|
-
- [Customize CRM Actions](./recipes/customize-crm-actions.md) -- add, hide, or replace CRM deal actions, use the shared `crmActions` provider path, and understand workflow dispatch constraints
|
|
30
|
-
|
|
31
|
-
### UI Patterns
|
|
24
|
+
- [Add a Resource](./recipes/add-a-resource.md) -- author and deploy a workflow or agent
|
|
25
|
+
- [Extend a Base Entity](./recipes/extend-a-base-entity.md) -- add project-specific metadata to canonical entity shapes via the TMeta slot
|
|
26
|
+
- [Gate by Feature or Admin](./recipes/gate-by-feature-or-admin.md) -- decision table for access control patterns
|
|
27
|
+
- [Build and Extend CRM](./recipes/extend-crm.md) -- map CRM UI pages, hooks, actions, workflow adapters, contracts, and org-model boundaries
|
|
28
|
+
- [Build and Extend Lead Gen](./recipes/extend-lead-gen.md) -- map lead-gen UI pages, hooks, list/member state, artifacts, touchpoints, workflow adapters, contracts, and org-model boundaries
|
|
29
|
+
- [Customize CRM Actions](./recipes/customize-crm-actions.md) -- add, hide, or replace CRM deal actions, use the shared `crmActions` provider path, and understand workflow dispatch constraints
|
|
30
|
+
|
|
31
|
+
### UI Patterns
|
|
32
32
|
|
|
33
33
|
- [UI Recipes](./ui/recipes.md) -- copy-paste recipes for pages, nav items, components, theme tokens
|
|
34
34
|
- [Feature Flags & Gating](./ui/feature-flags-and-gating.md) -- three-concept model for feature access
|