@elevasis/sdk 0.7.7 → 0.7.8

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 CHANGED
@@ -43883,7 +43883,7 @@ function wrapAction(commandName, fn) {
43883
43883
  // package.json
43884
43884
  var package_default = {
43885
43885
  name: "@elevasis/sdk",
43886
- version: "0.7.7",
43886
+ version: "0.7.8",
43887
43887
  description: "SDK for building Elevasis organization resources",
43888
43888
  type: "module",
43889
43889
  bin: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elevasis/sdk",
3
- "version": "0.7.7",
3
+ "version": "0.7.8",
4
4
  "description": "SDK for building Elevasis organization resources",
5
5
  "type": "module",
6
6
  "bin": {
@@ -52,7 +52,7 @@ All adapters are imported from `@elevasis/sdk/worker` -- the same subpath as `pl
52
52
 
53
53
  | Import | Methods |
54
54
  | --------------- | ------- |
55
- | `lead` | 35 |
55
+ | `acqDb` | 35 |
56
56
  | `scheduler` | 9 |
57
57
  | `storage` | 5 |
58
58
  | `pdf` | 2 |
@@ -77,7 +77,7 @@ import {
77
77
  createApifyAdapter, createGmailAdapter, createMailsoAdapter,
78
78
  createTombaAdapter,
79
79
  // Platform adapters
80
- lead, scheduler, storage, pdf, approval, notifications, llm, execution, email,
80
+ acqDb, scheduler, storage, pdf, approval, notifications, llm, execution, email,
81
81
  // Generic factory
82
82
  createAdapter,
83
83
  } from '@elevasis/sdk/worker'
@@ -601,12 +601,12 @@ const { category, confidence, summary } = response.output
601
601
 
602
602
  ---
603
603
 
604
- ## Lead Adapter
604
+ ## AcqDb Adapter
605
605
 
606
- Singleton -- 35 methods for acquisition lead management (lists, companies, contacts, deals, deal-sync). `organizationId` is injected server-side -- never pass it.
606
+ Singleton -- 35 methods for acquisition database management (lists, companies, contacts, deals, deal-sync). `organizationId` is injected server-side -- never pass it.
607
607
 
608
608
  ```typescript
609
- import { lead } from '@elevasis/sdk/worker'
609
+ import { acqDb } from '@elevasis/sdk/worker'
610
610
  ```
611
611
 
612
612
  ### Methods
@@ -674,16 +674,16 @@ import { lead } from '@elevasis/sdk/worker'
674
674
  ### Example
675
675
 
676
676
  ```typescript
677
- const deal = await lead.getDealByEmail({ email: 'jane@acme.com' })
677
+ const deal = await acqDb.getDealByEmail({ email: 'jane@acme.com' })
678
678
  if (!deal) {
679
- await lead.upsertDeal({
679
+ await acqDb.upsertDeal({
680
680
  attioDealId: 'deal-123',
681
681
  contactEmail: 'jane@acme.com',
682
682
  })
683
683
  }
684
684
 
685
685
  // Bulk import contacts
686
- await lead.bulkImportContacts({
686
+ await acqDb.bulkImportContacts({
687
687
  listId: 'list-abc',
688
688
  contacts: [
689
689
  { email: 'a@example.com', firstName: 'Alice' },
@@ -30,7 +30,7 @@ const result = await llm.generate({ messages: [...] })
30
30
  import { platform } from '@elevasis/sdk/worker'
31
31
 
32
32
  const result = await platform.call({
33
- tool: 'lead', // tool name
33
+ tool: 'acqDb', // tool name
34
34
  method: 'upsertDeal', // method exposed by that tool
35
35
  params: { ... }, // method-specific parameters
36
36
  })
@@ -137,7 +137,7 @@ Nine built-in platform services are available without a `credential` field. All
137
137
 
138
138
  | Tool Key | Methods | Purpose |
139
139
  | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- |
140
- | `lead` | 35 methods (CRUD + sync) | Lead management -- `lead` singleton adapter |
140
+ | `acqDb` | 35 methods (CRUD + sync) | Acquisition database -- `acqDb` singleton adapter |
141
141
  | `email` | `send` | Send platform email to org members -- `email` singleton adapter |
142
142
  | `storage` | `upload`, `download`, `createSignedUrl`, `delete`, `list` | File storage -- `storage` singleton adapter |
143
143
  | `pdf` | `render`, `renderToBuffer` | PDF rendering -- `pdf` singleton adapter |