@keystrokehq/salesforce 0.0.11 → 0.0.16-integration-id-canonicalization.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/README.md +31 -130
- package/dist/common-DkQhdp5I.d.mts +40 -0
- package/dist/credential-sets/index.d.mts +2 -0
- package/dist/credential-sets/index.mjs +4 -0
- package/dist/index.d.mts +4 -1
- package/dist/index.mjs +6 -1
- package/dist/operations/index.d.mts +2 -0
- package/dist/operations/index.mjs +3 -0
- package/dist/salesforce-app.credential-set-BvN8tzVf.mjs +16 -0
- package/dist/salesforce-app.credential-set-RWN3Wimi.d.mts +51 -0
- package/dist/{integration-B9QIZuPh.mjs → salesforce.credential-set-CiJcvT3l.mjs} +5 -137
- package/dist/schemas/index.d.mts +1 -39
- package/dist/update_task.operation-DLJMTduq.d.mts +2825 -0
- package/dist/update_task.operation-KNAsLHv7.mjs +1311 -0
- package/package.json +8 -92
- package/dist/_official/index.d.mts +0 -42
- package/dist/_official/index.mjs +0 -3
- package/dist/_runtime/index.d.mts +0 -6
- package/dist/_runtime/index.mjs +0 -89
- package/dist/accounts.d.mts +0 -97
- package/dist/accounts.mjs +0 -30
- package/dist/associations.d.mts +0 -40
- package/dist/associations.mjs +0 -70
- package/dist/campaign-members.d.mts +0 -97
- package/dist/campaign-members.mjs +0 -27
- package/dist/campaigns.d.mts +0 -97
- package/dist/campaigns.mjs +0 -28
- package/dist/cases.d.mts +0 -97
- package/dist/cases.mjs +0 -30
- package/dist/client.d.mts +0 -8
- package/dist/client.mjs +0 -26
- package/dist/connection.d.mts +0 -2
- package/dist/connection.mjs +0 -3
- package/dist/contacts.d.mts +0 -97
- package/dist/contacts.mjs +0 -29
- package/dist/dashboards.d.mts +0 -32
- package/dist/dashboards.mjs +0 -44
- package/dist/dist-Bbp6t-WQ.mjs +0 -74
- package/dist/factory-CxfYmb6l.mjs +0 -7
- package/dist/integration-CN_7-2E5.d.mts +0 -61
- package/dist/leads.d.mts +0 -97
- package/dist/leads.mjs +0 -30
- package/dist/messaging.d.mts +0 -1
- package/dist/messaging.mjs +0 -1
- package/dist/notes.d.mts +0 -97
- package/dist/notes.mjs +0 -26
- package/dist/objects.d.mts +0 -23
- package/dist/objects.mjs +0 -31
- package/dist/opportunities.d.mts +0 -97
- package/dist/opportunities.mjs +0 -29
- package/dist/opportunity-line-items.d.mts +0 -97
- package/dist/opportunity-line-items.mjs +0 -29
- package/dist/ownership.d.mts +0 -25
- package/dist/ownership.mjs +0 -49
- package/dist/reports.d.mts +0 -40
- package/dist/reports.mjs +0 -59
- package/dist/shared-P5lushwa.mjs +0 -196
- package/dist/soql.d.mts +0 -47
- package/dist/soql.mjs +0 -30
- package/dist/tasks.d.mts +0 -97
- package/dist/tasks.mjs +0 -29
- package/dist/triggers.d.mts +0 -138
- package/dist/triggers.mjs +0 -309
- package/dist/users.d.mts +0 -14
- package/dist/users.mjs +0 -20
package/README.md
CHANGED
|
@@ -4,15 +4,13 @@ Salesforce CRM and platform integration for Keystroke workflows.
|
|
|
4
4
|
|
|
5
5
|
## Overview
|
|
6
6
|
|
|
7
|
-
This package provides:
|
|
7
|
+
This package provides Playbook 17 primitives for Salesforce automation:
|
|
8
8
|
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
- Direct-binding polling triggers for common Salesforce record activity with stable `eventType` payloads
|
|
13
|
-
- A thin JSforce client wrapper for resolved OAuth credentials
|
|
9
|
+
- `@keystrokehq/salesforce/credential-sets` — user OAuth and platform Connected App credential sets
|
|
10
|
+
- `@keystrokehq/salesforce/operations` — 65 manifest-typed operations (CRUD, SOQL, analytics, associations)
|
|
11
|
+
- `@keystrokehq/salesforce/schemas` — shared Zod schemas for records, queries, and analytics payloads
|
|
14
12
|
|
|
15
|
-
|
|
13
|
+
Polling triggers and the JSforce client wrapper live under `src/triggers/` and `src/utils/` for package-local tests and advanced authoring.
|
|
16
14
|
|
|
17
15
|
## Installation
|
|
18
16
|
|
|
@@ -22,33 +20,31 @@ pnpm add @keystrokehq/salesforce
|
|
|
22
20
|
|
|
23
21
|
## Credentials
|
|
24
22
|
|
|
25
|
-
The public Salesforce
|
|
23
|
+
The public Salesforce credential set exposes OAuth with:
|
|
26
24
|
|
|
27
25
|
- `SALESFORCE_ACCESS_TOKEN`
|
|
28
26
|
- `SALESFORCE_INSTANCE_URL`
|
|
29
27
|
|
|
30
28
|
```ts
|
|
31
|
-
import {
|
|
29
|
+
import { salesforceCredentialSet } from '@keystrokehq/salesforce/credential-sets';
|
|
32
30
|
```
|
|
33
31
|
|
|
34
|
-
The
|
|
35
|
-
|
|
36
|
-
For sandbox tenants, the provider app metadata can set either:
|
|
37
|
-
|
|
38
|
-
- `environment: "sandbox"`
|
|
39
|
-
- `loginBaseUrl: "https://test.salesforce.com"`
|
|
32
|
+
The platform Connected App credential set (`salesforceAppCredentialSet`, `salesforce-app`) stores `clientId` and `clientSecret` separately. Sandbox installs can set provider metadata via `KEYSTROKE_OFFICIAL_SALESFORCE_ENVIRONMENT` or `KEYSTROKE_OFFICIAL_SALESFORCE_LOGIN_BASE_URL`.
|
|
40
33
|
|
|
41
34
|
## Operations
|
|
42
35
|
|
|
43
|
-
Operations are regular Keystroke steps
|
|
36
|
+
Operations are regular Keystroke steps. Import from the operations barrel and call `.run(...)` inside workflow code.
|
|
44
37
|
|
|
45
38
|
```ts
|
|
46
39
|
import { Workflow } from '@keystrokehq/core';
|
|
47
40
|
import { z } from 'zod';
|
|
48
|
-
import {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
41
|
+
import {
|
|
42
|
+
associateContactToAccountOperation,
|
|
43
|
+
createLeadOperation,
|
|
44
|
+
getAccountOperation,
|
|
45
|
+
queryMoreOperation,
|
|
46
|
+
runSoqlQueryOperation,
|
|
47
|
+
} from '@keystrokehq/salesforce/operations';
|
|
52
48
|
|
|
53
49
|
export const salesforceFollowUpWorkflow = new Workflow({
|
|
54
50
|
id: 'salesforce-follow-up',
|
|
@@ -56,12 +52,12 @@ export const salesforceFollowUpWorkflow = new Workflow({
|
|
|
56
52
|
input: z.object({ accountId: z.string() }),
|
|
57
53
|
output: z.object({ success: z.boolean() }),
|
|
58
54
|
run: async (input) => {
|
|
59
|
-
const account = await
|
|
55
|
+
const account = await getAccountOperation.run({
|
|
60
56
|
id: input.accountId,
|
|
61
57
|
fields: ['Id', 'Name', 'Industry', 'LastModifiedDate'],
|
|
62
58
|
});
|
|
63
59
|
|
|
64
|
-
await
|
|
60
|
+
await createLeadOperation.run({
|
|
65
61
|
fields: {
|
|
66
62
|
FirstName: 'Avery',
|
|
67
63
|
LastName: 'Stone',
|
|
@@ -71,20 +67,20 @@ export const salesforceFollowUpWorkflow = new Workflow({
|
|
|
71
67
|
returnFields: ['Id', 'FirstName', 'LastName', 'Company', 'Status'],
|
|
72
68
|
});
|
|
73
69
|
|
|
74
|
-
const recentContacts = await
|
|
70
|
+
const recentContacts = await runSoqlQueryOperation.run({
|
|
75
71
|
query:
|
|
76
72
|
"SELECT Id, FirstName, LastName, Email FROM Contact WHERE AccountId != NULL ORDER BY LastModifiedDate DESC LIMIT 10",
|
|
77
73
|
});
|
|
78
74
|
|
|
79
75
|
if (recentContacts.records[0]?.Id) {
|
|
80
|
-
await
|
|
76
|
+
await associateContactToAccountOperation.run({
|
|
81
77
|
contactId: recentContacts.records[0].Id,
|
|
82
78
|
accountId: input.accountId,
|
|
83
79
|
});
|
|
84
80
|
}
|
|
85
81
|
|
|
86
82
|
if (recentContacts.nextRecordsUrl) {
|
|
87
|
-
await
|
|
83
|
+
await queryMoreOperation.run({ nextRecordsUrl: recentContacts.nextRecordsUrl });
|
|
88
84
|
}
|
|
89
85
|
|
|
90
86
|
return { success: recentContacts.records.length >= 0 };
|
|
@@ -92,114 +88,19 @@ export const salesforceFollowUpWorkflow = new Workflow({
|
|
|
92
88
|
});
|
|
93
89
|
```
|
|
94
90
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
- `@keystrokehq/salesforce/associations`
|
|
98
|
-
- `@keystrokehq/salesforce/campaign-members`
|
|
99
|
-
- `@keystrokehq/salesforce/opportunity-line-items`
|
|
100
|
-
- `@keystrokehq/salesforce/ownership`
|
|
101
|
-
- `@keystrokehq/salesforce/users`
|
|
102
|
-
|
|
103
|
-
## Triggers
|
|
104
|
-
|
|
105
|
-
Salesforce trigger helpers are direct-binding only. Call the helper once with optional `name`, `description`, `schedule`, `filter`, or `transform` fields and use the returned bound trigger in your workflow.
|
|
106
|
-
|
|
107
|
-
Every mapped trigger payload includes:
|
|
108
|
-
|
|
109
|
-
- `eventType`: a stable event identifier such as `lead.created` or `task.completed`
|
|
110
|
-
- `objectName`: the Salesforce object being polled
|
|
111
|
-
- `records`: normalized Salesforce records
|
|
112
|
-
- `taskEventType`: present for task triggers so created vs. completed is explicit in filters and transforms
|
|
113
|
-
|
|
114
|
-
```ts
|
|
115
|
-
import { polling } from '@keystrokehq/salesforce/triggers';
|
|
116
|
-
|
|
117
|
-
const newLeadTrigger = polling.newLead({
|
|
118
|
-
name: 'Salesforce New Lead',
|
|
119
|
-
schedule: '*/10 * * * *',
|
|
120
|
-
transform: (payload) => ({
|
|
121
|
-
eventType: payload.eventType,
|
|
122
|
-
leadIds: payload.records
|
|
123
|
-
.map((record) => (typeof record.Id === 'string' ? record.Id : undefined))
|
|
124
|
-
.filter((value): value is string => value !== undefined),
|
|
125
|
-
count: payload.records.length,
|
|
126
|
-
}),
|
|
127
|
-
});
|
|
128
|
-
|
|
129
|
-
const opportunityTrigger = polling.opportunityCreatedOrUpdated({
|
|
130
|
-
stages: ['Prospecting', 'Closed Won'],
|
|
131
|
-
schedule: '15m',
|
|
132
|
-
});
|
|
133
|
-
|
|
134
|
-
void newLeadTrigger;
|
|
135
|
-
void opportunityTrigger;
|
|
136
|
-
```
|
|
137
|
-
|
|
138
|
-
Use `polling.sObjectRecordUpdated(...)` when you need a generic object poller with custom `fields`, `watermarkField`, and `where` filters.
|
|
139
|
-
|
|
140
|
-
## Analytics
|
|
141
|
-
|
|
142
|
-
Analytics helpers expose low-risk report and dashboard endpoints:
|
|
91
|
+
## Canonical imports
|
|
143
92
|
|
|
144
|
-
- `
|
|
145
|
-
- `
|
|
146
|
-
|
|
147
|
-
|
|
93
|
+
- `@keystrokehq/salesforce`
|
|
94
|
+
- `@keystrokehq/salesforce/credential-sets`
|
|
95
|
+
- `@keystrokehq/salesforce/operations`
|
|
96
|
+
- `@keystrokehq/salesforce/schemas`
|
|
97
|
+
- `catalog discovery via `src/provider-apps/`` (provider seed descriptor only)
|
|
148
98
|
|
|
149
99
|
## Testing
|
|
150
100
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
- `pnpm test:unit` for deterministic unit tests
|
|
154
|
-
- `pnpm test:int` for deterministic integration tests and env-gated live Salesforce smoke tests
|
|
155
|
-
|
|
156
|
-
The package coverage inventory lives in `TEST_MATRIX.md`.
|
|
157
|
-
|
|
158
|
-
Deterministic integration coverage does not require live Salesforce credentials. It uses package-local `*.int.test.ts` files to exercise:
|
|
159
|
-
|
|
160
|
-
- every exported operation in `src/operations.ts`
|
|
161
|
-
- trigger polling behavior with realistic mapped payloads
|
|
162
|
-
- client error normalization and auth failure handling
|
|
163
|
-
- schema and shared query/mutation helpers
|
|
164
|
-
|
|
165
|
-
Live Salesforce tests are opt-in and stay skipped unless all required env values exist in `.env.test`:
|
|
166
|
-
|
|
167
|
-
- `RUN_LIVE_INT="true"`
|
|
168
|
-
- `SALESFORCE_ACCESS_TOKEN`
|
|
169
|
-
- `SALESFORCE_INSTANCE_URL`
|
|
170
|
-
|
|
171
|
-
Optional live analytics and line-item smoke tests also use:
|
|
172
|
-
|
|
173
|
-
- `SALESFORCE_TEST_REPORT_ID`
|
|
174
|
-
- `SALESFORCE_TEST_DASHBOARD_ID`
|
|
175
|
-
- `SALESFORCE_TEST_PRICEBOOK_ENTRY_ID`
|
|
101
|
+
- `pnpm test:unit` — deterministic unit tests
|
|
102
|
+
- `pnpm test:int` — integration harness and opt-in live Salesforce smoke tests
|
|
176
103
|
|
|
177
|
-
Use a
|
|
104
|
+
Live tests require `RUN_LIVE_INT="true"`, `SALESFORCE_ACCESS_TOKEN`, and `SALESFORCE_INSTANCE_URL` in `.env.test`. Use a sandbox or scratch org only.
|
|
178
105
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
The initial package intentionally leaves a few Salesforce-specific behaviors as separately scoped follow-up work. See `HIGH_RISK_BEHAVIORS.md` for the current decision notes around assignment rules, cloning, outbound email, and richer trigger semantics.
|
|
182
|
-
|
|
183
|
-
## Canonical Imports
|
|
184
|
-
|
|
185
|
-
- `@keystrokehq/salesforce/connection`
|
|
186
|
-
- `@keystrokehq/salesforce/client`
|
|
187
|
-
- `@keystrokehq/salesforce/schemas`
|
|
188
|
-
- `@keystrokehq/salesforce/triggers`
|
|
189
|
-
- `@keystrokehq/salesforce/accounts`
|
|
190
|
-
- `@keystrokehq/salesforce/associations`
|
|
191
|
-
- `@keystrokehq/salesforce/campaign-members`
|
|
192
|
-
- `@keystrokehq/salesforce/contacts`
|
|
193
|
-
- `@keystrokehq/salesforce/leads`
|
|
194
|
-
- `@keystrokehq/salesforce/opportunities`
|
|
195
|
-
- `@keystrokehq/salesforce/opportunity-line-items`
|
|
196
|
-
- `@keystrokehq/salesforce/ownership`
|
|
197
|
-
- `@keystrokehq/salesforce/cases`
|
|
198
|
-
- `@keystrokehq/salesforce/tasks`
|
|
199
|
-
- `@keystrokehq/salesforce/campaigns`
|
|
200
|
-
- `@keystrokehq/salesforce/notes`
|
|
201
|
-
- `@keystrokehq/salesforce/users`
|
|
202
|
-
- `@keystrokehq/salesforce/soql`
|
|
203
|
-
- `@keystrokehq/salesforce/objects`
|
|
204
|
-
- `@keystrokehq/salesforce/reports`
|
|
205
|
-
- `@keystrokehq/salesforce/dashboards`
|
|
106
|
+
See `TEST_MATRIX.md` for coverage inventory and `HIGH_RISK_BEHAVIORS.md` for scoped follow-up work.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/schemas/common.d.ts
|
|
4
|
+
declare const salesforceIdSchema: z.ZodString;
|
|
5
|
+
declare const salesforceAttributesSchema: z.ZodObject<{
|
|
6
|
+
type: z.ZodString;
|
|
7
|
+
url: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const salesforceRecordSchema: z.ZodObject<{
|
|
10
|
+
Id: z.ZodOptional<z.ZodString>;
|
|
11
|
+
attributes: z.ZodOptional<z.ZodObject<{
|
|
12
|
+
type: z.ZodString;
|
|
13
|
+
url: z.ZodString;
|
|
14
|
+
}, z.core.$strip>>;
|
|
15
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
16
|
+
declare const salesforceQueryResultSchema: z.ZodObject<{
|
|
17
|
+
totalSize: z.ZodNumber;
|
|
18
|
+
done: z.ZodBoolean;
|
|
19
|
+
nextRecordsUrl: z.ZodOptional<z.ZodString>;
|
|
20
|
+
records: z.ZodArray<z.ZodObject<{
|
|
21
|
+
Id: z.ZodOptional<z.ZodString>;
|
|
22
|
+
attributes: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
type: z.ZodString;
|
|
24
|
+
url: z.ZodString;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
declare const salesforceMutationResultSchema: z.ZodObject<{
|
|
29
|
+
success: z.ZodBoolean;
|
|
30
|
+
id: z.ZodOptional<z.ZodString>;
|
|
31
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
declare const salesforceGenericObjectSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
34
|
+
declare const salesforceGenericObjectArraySchema: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
35
|
+
type SalesforceRecord = z.infer<typeof salesforceRecordSchema>;
|
|
36
|
+
type SalesforceQueryResult = z.infer<typeof salesforceQueryResultSchema>;
|
|
37
|
+
type SalesforceMutationResult = z.infer<typeof salesforceMutationResultSchema>;
|
|
38
|
+
type SalesforceGenericObject = z.infer<typeof salesforceGenericObjectSchema>;
|
|
39
|
+
//#endregion
|
|
40
|
+
export { salesforceAttributesSchema as a, salesforceIdSchema as c, salesforceRecordSchema as d, SalesforceRecord as i, salesforceMutationResultSchema as l, SalesforceMutationResult as n, salesforceGenericObjectArraySchema as o, SalesforceQueryResult as r, salesforceGenericObjectSchema as s, SalesforceGenericObject as t, salesforceQueryResultSchema as u };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { i as salesforceCredentialSet, n as salesforceAppCredentialSet, r as SalesforceCredentials, t as SalesforceAppCredentials } from "../salesforce-app.credential-set-RWN3Wimi.mjs";
|
|
2
|
+
export { type SalesforceAppCredentials, type SalesforceCredentials, salesforceAppCredentialSet, salesforceCredentialSet };
|
package/dist/index.d.mts
CHANGED
|
@@ -1 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { i as salesforceCredentialSet, n as salesforceAppCredentialSet, r as SalesforceCredentials, t as SalesforceAppCredentials } from "./salesforce-app.credential-set-RWN3Wimi.mjs";
|
|
2
|
+
import { $ as deleteCampaignOperation, A as getReportMetadataOperation, B as getCampaignMemberOperation, C as listNoteOperation, D as listCampaignOperation, E as listCaseOperation, F as getOpportunityOperation, G as deleteTaskOperation, H as getAccountOperation, I as getNoteOperation, J as deleteNoteOperation, K as deleteOpportunityLineItemOperation, L as getLeadOperation, M as getCurrentUserInfoOperation, N as getTaskOperation, O as listCampaignMemberOperation, P as getOpportunityLineItemOperation, Q as deleteCampaignMemberOperation, R as getContactOperation, S as listOpportunityLineItemOperation, T as listContactOperation, U as dissociateContactFromAccountOperation, V as getCampaignOperation, W as describeObjectOperation, X as deleteContactOperation, Y as deleteLeadOperation, Z as deleteCaseOperation, _ as listReportTypesOperation, a as updateLeadOperation, at as createLeadOperation, b as listTaskOperation, c as updateCampaignMemberOperation, ct as createCampaignMemberOperation, d as transferRecordOwnershipOperation, dt as associateContactToAccountOperation, et as deleteAccountOperation, f as runSoqlQueryOperation, g as listReportsOperation, h as queryMoreOperation, i as updateNoteOperation, it as createNoteOperation, j as getDashboardOperation, k as listAccountOperation, l as updateCampaignOperation, lt as createCampaignOperation, m as refreshDashboardOperation, n as updateOpportunityLineItemOperation, nt as createOpportunityLineItemOperation, o as updateContactOperation, ot as createContactOperation, p as runReportOperation, q as deleteOpportunityOperation, r as updateOpportunityOperation, rt as createOpportunityOperation, s as updateCaseOperation, st as createCaseOperation, t as updateTaskOperation, tt as createTaskOperation, u as updateAccountOperation, ut as createAccountOperation, v as listObjectsOperation, w as listLeadOperation, x as listOpportunityOperation, y as listDashboardsOperation, z as getCaseOperation } from "./update_task.operation-DLJMTduq.mjs";
|
|
3
|
+
import { a as salesforceAttributesSchema, c as salesforceIdSchema, d as salesforceRecordSchema, i as SalesforceRecord, l as salesforceMutationResultSchema, n as SalesforceMutationResult, o as salesforceGenericObjectArraySchema, r as SalesforceQueryResult, s as salesforceGenericObjectSchema, t as SalesforceGenericObject, u as salesforceQueryResultSchema } from "./common-DkQhdp5I.mjs";
|
|
4
|
+
export { SalesforceAppCredentials, SalesforceCredentials, SalesforceGenericObject, SalesforceMutationResult, SalesforceQueryResult, SalesforceRecord, associateContactToAccountOperation, associateContactToAccountOperation as associateContactToAccountTool, createAccountOperation, createAccountOperation as createAccountTool, createCampaignMemberOperation, createCampaignMemberOperation as createCampaignMemberTool, createCampaignOperation, createCampaignOperation as createCampaignTool, createCaseOperation, createCaseOperation as createCaseTool, createContactOperation, createContactOperation as createContactTool, createLeadOperation, createLeadOperation as createLeadTool, createNoteOperation, createNoteOperation as createNoteTool, createOpportunityLineItemOperation, createOpportunityLineItemOperation as createOpportunityLineItemTool, createOpportunityOperation, createOpportunityOperation as createOpportunityTool, createTaskOperation, createTaskOperation as createTaskTool, deleteAccountOperation, deleteAccountOperation as deleteAccountTool, deleteCampaignMemberOperation, deleteCampaignMemberOperation as deleteCampaignMemberTool, deleteCampaignOperation, deleteCampaignOperation as deleteCampaignTool, deleteCaseOperation, deleteCaseOperation as deleteCaseTool, deleteContactOperation, deleteContactOperation as deleteContactTool, deleteLeadOperation, deleteLeadOperation as deleteLeadTool, deleteNoteOperation, deleteNoteOperation as deleteNoteTool, deleteOpportunityLineItemOperation, deleteOpportunityLineItemOperation as deleteOpportunityLineItemTool, deleteOpportunityOperation, deleteOpportunityOperation as deleteOpportunityTool, deleteTaskOperation, deleteTaskOperation as deleteTaskTool, describeObjectOperation, describeObjectOperation as describeObjectTool, dissociateContactFromAccountOperation, dissociateContactFromAccountOperation as dissociateContactFromAccountTool, getAccountOperation, getAccountOperation as getAccountTool, getCampaignMemberOperation, getCampaignMemberOperation as getCampaignMemberTool, getCampaignOperation, getCampaignOperation as getCampaignTool, getCaseOperation, getCaseOperation as getCaseTool, getContactOperation, getContactOperation as getContactTool, getCurrentUserInfoOperation, getCurrentUserInfoOperation as getCurrentUserInfoTool, getDashboardOperation, getDashboardOperation as getDashboardTool, getLeadOperation, getLeadOperation as getLeadTool, getNoteOperation, getNoteOperation as getNoteTool, getOpportunityLineItemOperation, getOpportunityLineItemOperation as getOpportunityLineItemTool, getOpportunityOperation, getOpportunityOperation as getOpportunityTool, getReportMetadataOperation, getReportMetadataOperation as getReportMetadataTool, getTaskOperation, getTaskOperation as getTaskTool, listAccountOperation, listAccountOperation as listAccountTool, listCampaignMemberOperation, listCampaignMemberOperation as listCampaignMemberTool, listCampaignOperation, listCampaignOperation as listCampaignTool, listCaseOperation, listCaseOperation as listCaseTool, listContactOperation, listContactOperation as listContactTool, listDashboardsOperation, listDashboardsOperation as listDashboardsTool, listLeadOperation, listLeadOperation as listLeadTool, listNoteOperation, listNoteOperation as listNoteTool, listObjectsOperation, listObjectsOperation as listObjectsTool, listOpportunityLineItemOperation, listOpportunityLineItemOperation as listOpportunityLineItemTool, listOpportunityOperation, listOpportunityOperation as listOpportunityTool, listReportTypesOperation, listReportTypesOperation as listReportTypesTool, listReportsOperation, listReportsOperation as listReportsTool, listTaskOperation, listTaskOperation as listTaskTool, queryMoreOperation, queryMoreOperation as queryMoreTool, refreshDashboardOperation, refreshDashboardOperation as refreshDashboardTool, runReportOperation, runReportOperation as runReportTool, runSoqlQueryOperation, runSoqlQueryOperation as runSoqlQueryTool, salesforceAppCredentialSet, salesforceAttributesSchema, salesforceCredentialSet, salesforceGenericObjectArraySchema, salesforceGenericObjectSchema, salesforceIdSchema, salesforceMutationResultSchema, salesforceQueryResultSchema, salesforceRecordSchema, transferRecordOwnershipOperation, transferRecordOwnershipOperation as transferRecordOwnershipTool, updateAccountOperation, updateAccountOperation as updateAccountTool, updateCampaignMemberOperation, updateCampaignMemberOperation as updateCampaignMemberTool, updateCampaignOperation, updateCampaignOperation as updateCampaignTool, updateCaseOperation, updateCaseOperation as updateCaseTool, updateContactOperation, updateContactOperation as updateContactTool, updateLeadOperation, updateLeadOperation as updateLeadTool, updateNoteOperation, updateNoteOperation as updateNoteTool, updateOpportunityLineItemOperation, updateOpportunityLineItemOperation as updateOpportunityLineItemTool, updateOpportunityOperation, updateOpportunityOperation as updateOpportunityTool, updateTaskOperation, updateTaskOperation as updateTaskTool };
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { t as salesforceCredentialSet } from "./salesforce.credential-set-CiJcvT3l.mjs";
|
|
2
|
+
import { t as salesforceAppCredentialSet } from "./salesforce-app.credential-set-BvN8tzVf.mjs";
|
|
3
|
+
import { a as salesforceMutationResultSchema, i as salesforceIdSchema, n as salesforceGenericObjectArraySchema, o as salesforceQueryResultSchema, r as salesforceGenericObjectSchema, s as salesforceRecordSchema, t as salesforceAttributesSchema } from "./common-wiFkMAq5.mjs";
|
|
4
|
+
import { $ as deleteCampaignOperation, A as getReportMetadataOperation, B as getCampaignMemberOperation, C as listNoteOperation, D as listCampaignOperation, E as listCaseOperation, F as getOpportunityOperation, G as deleteTaskOperation, H as getAccountOperation, I as getNoteOperation, J as deleteNoteOperation, K as deleteOpportunityLineItemOperation, L as getLeadOperation, M as getCurrentUserInfoOperation, N as getTaskOperation, O as listCampaignMemberOperation, P as getOpportunityLineItemOperation, Q as deleteCampaignMemberOperation, R as getContactOperation, S as listOpportunityLineItemOperation, T as listContactOperation, U as dissociateContactFromAccountOperation, V as getCampaignOperation, W as describeObjectOperation, X as deleteContactOperation, Y as deleteLeadOperation, Z as deleteCaseOperation, _ as listReportTypesOperation, a as updateLeadOperation, at as createLeadOperation, b as listTaskOperation, c as updateCampaignMemberOperation, ct as createCampaignMemberOperation, d as transferRecordOwnershipOperation, dt as associateContactToAccountOperation, et as deleteAccountOperation, f as runSoqlQueryOperation, g as listReportsOperation, h as queryMoreOperation, i as updateNoteOperation, it as createNoteOperation, j as getDashboardOperation, k as listAccountOperation, l as updateCampaignOperation, lt as createCampaignOperation, m as refreshDashboardOperation, n as updateOpportunityLineItemOperation, nt as createOpportunityLineItemOperation, o as updateContactOperation, ot as createContactOperation, p as runReportOperation, q as deleteOpportunityOperation, r as updateOpportunityOperation, rt as createOpportunityOperation, s as updateCaseOperation, st as createCaseOperation, t as updateTaskOperation, tt as createTaskOperation, u as updateAccountOperation, ut as createAccountOperation, v as listObjectsOperation, w as listLeadOperation, x as listOpportunityOperation, y as listDashboardsOperation, z as getCaseOperation } from "./update_task.operation-KNAsLHv7.mjs";
|
|
5
|
+
|
|
6
|
+
export { associateContactToAccountOperation, associateContactToAccountOperation as associateContactToAccountTool, createAccountOperation, createAccountOperation as createAccountTool, createCampaignMemberOperation, createCampaignMemberOperation as createCampaignMemberTool, createCampaignOperation, createCampaignOperation as createCampaignTool, createCaseOperation, createCaseOperation as createCaseTool, createContactOperation, createContactOperation as createContactTool, createLeadOperation, createLeadOperation as createLeadTool, createNoteOperation, createNoteOperation as createNoteTool, createOpportunityLineItemOperation, createOpportunityLineItemOperation as createOpportunityLineItemTool, createOpportunityOperation, createOpportunityOperation as createOpportunityTool, createTaskOperation, createTaskOperation as createTaskTool, deleteAccountOperation, deleteAccountOperation as deleteAccountTool, deleteCampaignMemberOperation, deleteCampaignMemberOperation as deleteCampaignMemberTool, deleteCampaignOperation, deleteCampaignOperation as deleteCampaignTool, deleteCaseOperation, deleteCaseOperation as deleteCaseTool, deleteContactOperation, deleteContactOperation as deleteContactTool, deleteLeadOperation, deleteLeadOperation as deleteLeadTool, deleteNoteOperation, deleteNoteOperation as deleteNoteTool, deleteOpportunityLineItemOperation, deleteOpportunityLineItemOperation as deleteOpportunityLineItemTool, deleteOpportunityOperation, deleteOpportunityOperation as deleteOpportunityTool, deleteTaskOperation, deleteTaskOperation as deleteTaskTool, describeObjectOperation, describeObjectOperation as describeObjectTool, dissociateContactFromAccountOperation, dissociateContactFromAccountOperation as dissociateContactFromAccountTool, getAccountOperation, getAccountOperation as getAccountTool, getCampaignMemberOperation, getCampaignMemberOperation as getCampaignMemberTool, getCampaignOperation, getCampaignOperation as getCampaignTool, getCaseOperation, getCaseOperation as getCaseTool, getContactOperation, getContactOperation as getContactTool, getCurrentUserInfoOperation, getCurrentUserInfoOperation as getCurrentUserInfoTool, getDashboardOperation, getDashboardOperation as getDashboardTool, getLeadOperation, getLeadOperation as getLeadTool, getNoteOperation, getNoteOperation as getNoteTool, getOpportunityLineItemOperation, getOpportunityLineItemOperation as getOpportunityLineItemTool, getOpportunityOperation, getOpportunityOperation as getOpportunityTool, getReportMetadataOperation, getReportMetadataOperation as getReportMetadataTool, getTaskOperation, getTaskOperation as getTaskTool, listAccountOperation, listAccountOperation as listAccountTool, listCampaignMemberOperation, listCampaignMemberOperation as listCampaignMemberTool, listCampaignOperation, listCampaignOperation as listCampaignTool, listCaseOperation, listCaseOperation as listCaseTool, listContactOperation, listContactOperation as listContactTool, listDashboardsOperation, listDashboardsOperation as listDashboardsTool, listLeadOperation, listLeadOperation as listLeadTool, listNoteOperation, listNoteOperation as listNoteTool, listObjectsOperation, listObjectsOperation as listObjectsTool, listOpportunityLineItemOperation, listOpportunityLineItemOperation as listOpportunityLineItemTool, listOpportunityOperation, listOpportunityOperation as listOpportunityTool, listReportTypesOperation, listReportTypesOperation as listReportTypesTool, listReportsOperation, listReportsOperation as listReportsTool, listTaskOperation, listTaskOperation as listTaskTool, queryMoreOperation, queryMoreOperation as queryMoreTool, refreshDashboardOperation, refreshDashboardOperation as refreshDashboardTool, runReportOperation, runReportOperation as runReportTool, runSoqlQueryOperation, runSoqlQueryOperation as runSoqlQueryTool, salesforceAppCredentialSet, salesforceAttributesSchema, salesforceCredentialSet, salesforceGenericObjectArraySchema, salesforceGenericObjectSchema, salesforceIdSchema, salesforceMutationResultSchema, salesforceQueryResultSchema, salesforceRecordSchema, transferRecordOwnershipOperation, transferRecordOwnershipOperation as transferRecordOwnershipTool, updateAccountOperation, updateAccountOperation as updateAccountTool, updateCampaignMemberOperation, updateCampaignMemberOperation as updateCampaignMemberTool, updateCampaignOperation, updateCampaignOperation as updateCampaignTool, updateCaseOperation, updateCaseOperation as updateCaseTool, updateContactOperation, updateContactOperation as updateContactTool, updateLeadOperation, updateLeadOperation as updateLeadTool, updateNoteOperation, updateNoteOperation as updateNoteTool, updateOpportunityLineItemOperation, updateOpportunityLineItemOperation as updateOpportunityLineItemTool, updateOpportunityOperation, updateOpportunityOperation as updateOpportunityTool, updateTaskOperation, updateTaskOperation as updateTaskTool };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { $ as deleteCampaignOperation, A as getReportMetadataOperation, B as getCampaignMemberOperation, C as listNoteOperation, D as listCampaignOperation, E as listCaseOperation, F as getOpportunityOperation, G as deleteTaskOperation, H as getAccountOperation, I as getNoteOperation, J as deleteNoteOperation, K as deleteOpportunityLineItemOperation, L as getLeadOperation, M as getCurrentUserInfoOperation, N as getTaskOperation, O as listCampaignMemberOperation, P as getOpportunityLineItemOperation, Q as deleteCampaignMemberOperation, R as getContactOperation, S as listOpportunityLineItemOperation, T as listContactOperation, U as dissociateContactFromAccountOperation, V as getCampaignOperation, W as describeObjectOperation, X as deleteContactOperation, Y as deleteLeadOperation, Z as deleteCaseOperation, _ as listReportTypesOperation, a as updateLeadOperation, at as createLeadOperation, b as listTaskOperation, c as updateCampaignMemberOperation, ct as createCampaignMemberOperation, d as transferRecordOwnershipOperation, dt as associateContactToAccountOperation, et as deleteAccountOperation, f as runSoqlQueryOperation, g as listReportsOperation, h as queryMoreOperation, i as updateNoteOperation, it as createNoteOperation, j as getDashboardOperation, k as listAccountOperation, l as updateCampaignOperation, lt as createCampaignOperation, m as refreshDashboardOperation, n as updateOpportunityLineItemOperation, nt as createOpportunityLineItemOperation, o as updateContactOperation, ot as createContactOperation, p as runReportOperation, q as deleteOpportunityOperation, r as updateOpportunityOperation, rt as createOpportunityOperation, s as updateCaseOperation, st as createCaseOperation, t as updateTaskOperation, tt as createTaskOperation, u as updateAccountOperation, ut as createAccountOperation, v as listObjectsOperation, w as listLeadOperation, x as listOpportunityOperation, y as listDashboardsOperation, z as getCaseOperation } from "../update_task.operation-DLJMTduq.mjs";
|
|
2
|
+
export { associateContactToAccountOperation, associateContactToAccountOperation as associateContactToAccountTool, createAccountOperation, createAccountOperation as createAccountTool, createCampaignMemberOperation, createCampaignMemberOperation as createCampaignMemberTool, createCampaignOperation, createCampaignOperation as createCampaignTool, createCaseOperation, createCaseOperation as createCaseTool, createContactOperation, createContactOperation as createContactTool, createLeadOperation, createLeadOperation as createLeadTool, createNoteOperation, createNoteOperation as createNoteTool, createOpportunityLineItemOperation, createOpportunityLineItemOperation as createOpportunityLineItemTool, createOpportunityOperation, createOpportunityOperation as createOpportunityTool, createTaskOperation, createTaskOperation as createTaskTool, deleteAccountOperation, deleteAccountOperation as deleteAccountTool, deleteCampaignMemberOperation, deleteCampaignMemberOperation as deleteCampaignMemberTool, deleteCampaignOperation, deleteCampaignOperation as deleteCampaignTool, deleteCaseOperation, deleteCaseOperation as deleteCaseTool, deleteContactOperation, deleteContactOperation as deleteContactTool, deleteLeadOperation, deleteLeadOperation as deleteLeadTool, deleteNoteOperation, deleteNoteOperation as deleteNoteTool, deleteOpportunityLineItemOperation, deleteOpportunityLineItemOperation as deleteOpportunityLineItemTool, deleteOpportunityOperation, deleteOpportunityOperation as deleteOpportunityTool, deleteTaskOperation, deleteTaskOperation as deleteTaskTool, describeObjectOperation, describeObjectOperation as describeObjectTool, dissociateContactFromAccountOperation, dissociateContactFromAccountOperation as dissociateContactFromAccountTool, getAccountOperation, getAccountOperation as getAccountTool, getCampaignMemberOperation, getCampaignMemberOperation as getCampaignMemberTool, getCampaignOperation, getCampaignOperation as getCampaignTool, getCaseOperation, getCaseOperation as getCaseTool, getContactOperation, getContactOperation as getContactTool, getCurrentUserInfoOperation, getCurrentUserInfoOperation as getCurrentUserInfoTool, getDashboardOperation, getDashboardOperation as getDashboardTool, getLeadOperation, getLeadOperation as getLeadTool, getNoteOperation, getNoteOperation as getNoteTool, getOpportunityLineItemOperation, getOpportunityLineItemOperation as getOpportunityLineItemTool, getOpportunityOperation, getOpportunityOperation as getOpportunityTool, getReportMetadataOperation, getReportMetadataOperation as getReportMetadataTool, getTaskOperation, getTaskOperation as getTaskTool, listAccountOperation, listAccountOperation as listAccountTool, listCampaignMemberOperation, listCampaignMemberOperation as listCampaignMemberTool, listCampaignOperation, listCampaignOperation as listCampaignTool, listCaseOperation, listCaseOperation as listCaseTool, listContactOperation, listContactOperation as listContactTool, listDashboardsOperation, listDashboardsOperation as listDashboardsTool, listLeadOperation, listLeadOperation as listLeadTool, listNoteOperation, listNoteOperation as listNoteTool, listObjectsOperation, listObjectsOperation as listObjectsTool, listOpportunityLineItemOperation, listOpportunityLineItemOperation as listOpportunityLineItemTool, listOpportunityOperation, listOpportunityOperation as listOpportunityTool, listReportTypesOperation, listReportTypesOperation as listReportTypesTool, listReportsOperation, listReportsOperation as listReportsTool, listTaskOperation, listTaskOperation as listTaskTool, queryMoreOperation, queryMoreOperation as queryMoreTool, refreshDashboardOperation, refreshDashboardOperation as refreshDashboardTool, runReportOperation, runReportOperation as runReportTool, runSoqlQueryOperation, runSoqlQueryOperation as runSoqlQueryTool, transferRecordOwnershipOperation, transferRecordOwnershipOperation as transferRecordOwnershipTool, updateAccountOperation, updateAccountOperation as updateAccountTool, updateCampaignMemberOperation, updateCampaignMemberOperation as updateCampaignMemberTool, updateCampaignOperation, updateCampaignOperation as updateCampaignTool, updateCaseOperation, updateCaseOperation as updateCaseTool, updateContactOperation, updateContactOperation as updateContactTool, updateLeadOperation, updateLeadOperation as updateLeadTool, updateNoteOperation, updateNoteOperation as updateNoteTool, updateOpportunityLineItemOperation, updateOpportunityLineItemOperation as updateOpportunityLineItemTool, updateOpportunityOperation, updateOpportunityOperation as updateOpportunityTool, updateTaskOperation, updateTaskOperation as updateTaskTool };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { $ as deleteCampaignOperation, A as getReportMetadataOperation, B as getCampaignMemberOperation, C as listNoteOperation, D as listCampaignOperation, E as listCaseOperation, F as getOpportunityOperation, G as deleteTaskOperation, H as getAccountOperation, I as getNoteOperation, J as deleteNoteOperation, K as deleteOpportunityLineItemOperation, L as getLeadOperation, M as getCurrentUserInfoOperation, N as getTaskOperation, O as listCampaignMemberOperation, P as getOpportunityLineItemOperation, Q as deleteCampaignMemberOperation, R as getContactOperation, S as listOpportunityLineItemOperation, T as listContactOperation, U as dissociateContactFromAccountOperation, V as getCampaignOperation, W as describeObjectOperation, X as deleteContactOperation, Y as deleteLeadOperation, Z as deleteCaseOperation, _ as listReportTypesOperation, a as updateLeadOperation, at as createLeadOperation, b as listTaskOperation, c as updateCampaignMemberOperation, ct as createCampaignMemberOperation, d as transferRecordOwnershipOperation, dt as associateContactToAccountOperation, et as deleteAccountOperation, f as runSoqlQueryOperation, g as listReportsOperation, h as queryMoreOperation, i as updateNoteOperation, it as createNoteOperation, j as getDashboardOperation, k as listAccountOperation, l as updateCampaignOperation, lt as createCampaignOperation, m as refreshDashboardOperation, n as updateOpportunityLineItemOperation, nt as createOpportunityLineItemOperation, o as updateContactOperation, ot as createContactOperation, p as runReportOperation, q as deleteOpportunityOperation, r as updateOpportunityOperation, rt as createOpportunityOperation, s as updateCaseOperation, st as createCaseOperation, t as updateTaskOperation, tt as createTaskOperation, u as updateAccountOperation, ut as createAccountOperation, v as listObjectsOperation, w as listLeadOperation, x as listOpportunityOperation, y as listDashboardsOperation, z as getCaseOperation } from "../update_task.operation-KNAsLHv7.mjs";
|
|
2
|
+
|
|
3
|
+
export { associateContactToAccountOperation, associateContactToAccountOperation as associateContactToAccountTool, createAccountOperation, createAccountOperation as createAccountTool, createCampaignMemberOperation, createCampaignMemberOperation as createCampaignMemberTool, createCampaignOperation, createCampaignOperation as createCampaignTool, createCaseOperation, createCaseOperation as createCaseTool, createContactOperation, createContactOperation as createContactTool, createLeadOperation, createLeadOperation as createLeadTool, createNoteOperation, createNoteOperation as createNoteTool, createOpportunityLineItemOperation, createOpportunityLineItemOperation as createOpportunityLineItemTool, createOpportunityOperation, createOpportunityOperation as createOpportunityTool, createTaskOperation, createTaskOperation as createTaskTool, deleteAccountOperation, deleteAccountOperation as deleteAccountTool, deleteCampaignMemberOperation, deleteCampaignMemberOperation as deleteCampaignMemberTool, deleteCampaignOperation, deleteCampaignOperation as deleteCampaignTool, deleteCaseOperation, deleteCaseOperation as deleteCaseTool, deleteContactOperation, deleteContactOperation as deleteContactTool, deleteLeadOperation, deleteLeadOperation as deleteLeadTool, deleteNoteOperation, deleteNoteOperation as deleteNoteTool, deleteOpportunityLineItemOperation, deleteOpportunityLineItemOperation as deleteOpportunityLineItemTool, deleteOpportunityOperation, deleteOpportunityOperation as deleteOpportunityTool, deleteTaskOperation, deleteTaskOperation as deleteTaskTool, describeObjectOperation, describeObjectOperation as describeObjectTool, dissociateContactFromAccountOperation, dissociateContactFromAccountOperation as dissociateContactFromAccountTool, getAccountOperation, getAccountOperation as getAccountTool, getCampaignMemberOperation, getCampaignMemberOperation as getCampaignMemberTool, getCampaignOperation, getCampaignOperation as getCampaignTool, getCaseOperation, getCaseOperation as getCaseTool, getContactOperation, getContactOperation as getContactTool, getCurrentUserInfoOperation, getCurrentUserInfoOperation as getCurrentUserInfoTool, getDashboardOperation, getDashboardOperation as getDashboardTool, getLeadOperation, getLeadOperation as getLeadTool, getNoteOperation, getNoteOperation as getNoteTool, getOpportunityLineItemOperation, getOpportunityLineItemOperation as getOpportunityLineItemTool, getOpportunityOperation, getOpportunityOperation as getOpportunityTool, getReportMetadataOperation, getReportMetadataOperation as getReportMetadataTool, getTaskOperation, getTaskOperation as getTaskTool, listAccountOperation, listAccountOperation as listAccountTool, listCampaignMemberOperation, listCampaignMemberOperation as listCampaignMemberTool, listCampaignOperation, listCampaignOperation as listCampaignTool, listCaseOperation, listCaseOperation as listCaseTool, listContactOperation, listContactOperation as listContactTool, listDashboardsOperation, listDashboardsOperation as listDashboardsTool, listLeadOperation, listLeadOperation as listLeadTool, listNoteOperation, listNoteOperation as listNoteTool, listObjectsOperation, listObjectsOperation as listObjectsTool, listOpportunityLineItemOperation, listOpportunityLineItemOperation as listOpportunityLineItemTool, listOpportunityOperation, listOpportunityOperation as listOpportunityTool, listReportTypesOperation, listReportTypesOperation as listReportTypesTool, listReportsOperation, listReportsOperation as listReportsTool, listTaskOperation, listTaskOperation as listTaskTool, queryMoreOperation, queryMoreOperation as queryMoreTool, refreshDashboardOperation, refreshDashboardOperation as refreshDashboardTool, runReportOperation, runReportOperation as runReportTool, runSoqlQueryOperation, runSoqlQueryOperation as runSoqlQueryTool, transferRecordOwnershipOperation, transferRecordOwnershipOperation as transferRecordOwnershipTool, updateAccountOperation, updateAccountOperation as updateAccountTool, updateCampaignMemberOperation, updateCampaignMemberOperation as updateCampaignMemberTool, updateCampaignOperation, updateCampaignOperation as updateCampaignTool, updateCaseOperation, updateCaseOperation as updateCaseTool, updateContactOperation, updateContactOperation as updateContactTool, updateLeadOperation, updateLeadOperation as updateLeadTool, updateNoteOperation, updateNoteOperation as updateNoteTool, updateOpportunityLineItemOperation, updateOpportunityLineItemOperation as updateOpportunityLineItemTool, updateOpportunityOperation, updateOpportunityOperation as updateOpportunityTool, updateTaskOperation, updateTaskOperation as updateTaskTool };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CredentialSet } from "@keystrokehq/core";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
4
|
+
//#region src/credential-sets/salesforce-app.credential-set.ts
|
|
5
|
+
const salesforceAppCredentialSet = new CredentialSet({
|
|
6
|
+
id: "salesforce-app",
|
|
7
|
+
exposure: "platform-only",
|
|
8
|
+
name: "Salesforce Connected App",
|
|
9
|
+
auth: z.object({
|
|
10
|
+
clientId: z.string().min(1),
|
|
11
|
+
clientSecret: z.string().min(1)
|
|
12
|
+
})
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
export { salesforceAppCredentialSet as t };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { CredentialSet } from "@keystrokehq/core";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
|
+
import { InferCredentialSetAuth } from "@keystrokehq/core/credential-set";
|
|
5
|
+
|
|
6
|
+
//#region src/credential-sets/salesforce.credential-set.d.ts
|
|
7
|
+
declare const salesforceCredentialSet: CredentialSet<"salesforce", z.ZodObject<{
|
|
8
|
+
SALESFORCE_ACCESS_TOKEN: z.ZodString;
|
|
9
|
+
SALESFORCE_INSTANCE_URL: z.ZodURL;
|
|
10
|
+
}, z.core.$strip>, {
|
|
11
|
+
kind: "oauth";
|
|
12
|
+
tokenType: "refreshable";
|
|
13
|
+
authUrl: "https://login.salesforce.com/services/oauth2/authorize";
|
|
14
|
+
tokenUrl: "https://login.salesforce.com/services/oauth2/token";
|
|
15
|
+
revokeUrl: null;
|
|
16
|
+
scopes: readonly ["api", "refresh_token", "offline_access"];
|
|
17
|
+
vault: {
|
|
18
|
+
readonly accessToken: "SALESFORCE_ACCESS_TOKEN";
|
|
19
|
+
readonly instanceUrl: "SALESFORCE_INSTANCE_URL";
|
|
20
|
+
};
|
|
21
|
+
buildAuthUrl: ({
|
|
22
|
+
oauthClient,
|
|
23
|
+
redirectUri,
|
|
24
|
+
state,
|
|
25
|
+
connection,
|
|
26
|
+
requestedScopes
|
|
27
|
+
}: _keystrokehq_core_credential_set0.BuildAuthUrlContext) => string;
|
|
28
|
+
exchangeCode: ({
|
|
29
|
+
oauthClient,
|
|
30
|
+
code,
|
|
31
|
+
redirectUri
|
|
32
|
+
}: _keystrokehq_core_credential_set0.ExchangeCodeContext) => Promise<_keystrokehq_core_credential_set0.TokenResult>;
|
|
33
|
+
refreshToken: ({
|
|
34
|
+
oauthClient,
|
|
35
|
+
refreshToken
|
|
36
|
+
}: _keystrokehq_core_credential_set0.RefreshTokenContext) => Promise<_keystrokehq_core_credential_set0.TokenResult>;
|
|
37
|
+
id: string;
|
|
38
|
+
}[]>;
|
|
39
|
+
type SalesforceCredentials = InferCredentialSetAuth<typeof salesforceCredentialSet>;
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region src/credential-sets/salesforce-app.credential-set.d.ts
|
|
42
|
+
declare const salesforceAppCredentialSet: CredentialSet<"salesforce-app", z.ZodObject<{
|
|
43
|
+
clientId: z.ZodString;
|
|
44
|
+
clientSecret: z.ZodString;
|
|
45
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
46
|
+
clientId: z.ZodString;
|
|
47
|
+
clientSecret: z.ZodString;
|
|
48
|
+
}, z.core.$strip>>[] | undefined>;
|
|
49
|
+
type SalesforceAppCredentials = InferCredentialSetAuth<typeof salesforceAppCredentialSet>;
|
|
50
|
+
//#endregion
|
|
51
|
+
export { salesforceCredentialSet as i, salesforceAppCredentialSet as n, SalesforceCredentials as r, SalesforceAppCredentials as t };
|
|
@@ -1,133 +1,6 @@
|
|
|
1
|
-
import { CredentialSet
|
|
1
|
+
import { CredentialSet } from "@keystrokehq/core";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
|
|
4
|
-
//#region ../../packages/integration-authoring/dist/official/runtime.mjs
|
|
5
|
-
const REGISTRY_KEY = "__ks_official_integration_metadata_registry";
|
|
6
|
-
function getRegistry() {
|
|
7
|
-
const globalStore = globalThis;
|
|
8
|
-
if (!globalStore[REGISTRY_KEY]) globalStore[REGISTRY_KEY] = /* @__PURE__ */ new WeakMap();
|
|
9
|
-
return globalStore[REGISTRY_KEY];
|
|
10
|
-
}
|
|
11
|
-
function registerOfficialOperation(operation, metadata) {
|
|
12
|
-
getRegistry().set(operation, Object.freeze({ ...metadata }));
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
//#endregion
|
|
16
|
-
//#region ../../packages/integration-authoring/dist/official/index.mjs
|
|
17
|
-
const OFFICIAL_CREDENTIAL_SET_ID_PREFIX = "keystroke:";
|
|
18
|
-
function officialCredentialSetId(id) {
|
|
19
|
-
return `${OFFICIAL_CREDENTIAL_SET_ID_PREFIX}${id}`;
|
|
20
|
-
}
|
|
21
|
-
function stripOfficialCredentialSetIdPrefix(id) {
|
|
22
|
-
return id.startsWith(OFFICIAL_CREDENTIAL_SET_ID_PREFIX) ? id.slice(10) : id;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Creates a factory for Keystroke-official integration operations.
|
|
26
|
-
*
|
|
27
|
-
* It keeps the same flat `run(input, credentials)` ergonomics as the generic
|
|
28
|
-
* operation factory, while registering official metadata for builder/runtime
|
|
29
|
-
* operation metadata.
|
|
30
|
-
*/
|
|
31
|
-
function createOfficialOperationFactory(credentialSet) {
|
|
32
|
-
const integrationId = stripOfficialCredentialSetIdPrefix(credentialSet.id);
|
|
33
|
-
return (config) => {
|
|
34
|
-
const wrappedRun = async (input, ctx) => {
|
|
35
|
-
const creds = ctx.credentials[credentialSet.id];
|
|
36
|
-
return config.run(input, creds);
|
|
37
|
-
};
|
|
38
|
-
const operation = new Operation({
|
|
39
|
-
id: config.id,
|
|
40
|
-
name: config.name,
|
|
41
|
-
description: config.description,
|
|
42
|
-
input: config.input,
|
|
43
|
-
output: config.output,
|
|
44
|
-
credentialSets: [credentialSet],
|
|
45
|
-
...config.tags !== void 0 ? { tags: config.tags } : {},
|
|
46
|
-
...config.needsApproval !== void 0 ? { needsApproval: config.needsApproval } : {},
|
|
47
|
-
...config.requiredOAuthScopes !== void 0 ? { requiredOAuthScopes: config.requiredOAuthScopes } : {},
|
|
48
|
-
...config.retries !== void 0 ? { retries: config.retries } : {},
|
|
49
|
-
...config.timeout !== void 0 ? { timeout: config.timeout } : {},
|
|
50
|
-
...config.maxDurationMs !== void 0 ? { maxDurationMs: config.maxDurationMs } : {},
|
|
51
|
-
run: wrappedRun
|
|
52
|
-
});
|
|
53
|
-
registerOfficialOperation(operation, { integrationId });
|
|
54
|
-
return operation;
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Creates an official integration bundle from a single config object.
|
|
59
|
-
*
|
|
60
|
-
* - Creates the public `CredentialSet` internally.
|
|
61
|
-
* - Accepts optional `internal` fields for Keystroke-owned platform credentials.
|
|
62
|
-
*/
|
|
63
|
-
function defineOfficialIntegration(config) {
|
|
64
|
-
const internalCredentialSets = config.internal ?? {};
|
|
65
|
-
const allInternalCredentialSets = [
|
|
66
|
-
...internalCredentialSets.providerApp ? [internalCredentialSets.providerApp] : [],
|
|
67
|
-
...internalCredentialSets.providerAppVariants ?? [],
|
|
68
|
-
...internalCredentialSets.webhookVerification ? [internalCredentialSets.webhookVerification] : [],
|
|
69
|
-
...internalCredentialSets.other ?? []
|
|
70
|
-
];
|
|
71
|
-
const credentialSet = new CredentialSet({
|
|
72
|
-
id: config.id,
|
|
73
|
-
name: config.name,
|
|
74
|
-
description: config.description,
|
|
75
|
-
auth: config.auth,
|
|
76
|
-
...config.connections ? { connections: config.connections } : {},
|
|
77
|
-
...config.proxy ? { proxy: config.proxy } : {},
|
|
78
|
-
...config.needsRawSecret === true ? { needsRawSecret: true } : {}
|
|
79
|
-
});
|
|
80
|
-
return Object.freeze({
|
|
81
|
-
integration: {
|
|
82
|
-
id: config.id,
|
|
83
|
-
name: config.name,
|
|
84
|
-
...config.description !== void 0 ? { description: config.description } : {},
|
|
85
|
-
auth: config.auth,
|
|
86
|
-
...config.proxy ? { proxy: config.proxy } : {},
|
|
87
|
-
...config.needsRawSecret === true ? { needsRawSecret: true } : {},
|
|
88
|
-
...config.connections ? { connections: config.connections } : {}
|
|
89
|
-
},
|
|
90
|
-
credentialSet,
|
|
91
|
-
internalCredentialSets,
|
|
92
|
-
allInternalCredentialSets
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
//#endregion
|
|
97
|
-
//#region src/_official/provider-app.ts
|
|
98
|
-
const salesforceAppCredentialSet = new CredentialSet({
|
|
99
|
-
id: officialCredentialSetId("salesforce-app"),
|
|
100
|
-
exposure: "platform-only",
|
|
101
|
-
name: "Salesforce Connected App",
|
|
102
|
-
auth: z.object({
|
|
103
|
-
clientId: z.string().min(1),
|
|
104
|
-
clientSecret: z.string().min(1)
|
|
105
|
-
})
|
|
106
|
-
});
|
|
107
|
-
const salesforceOfficialProviderSeed = {
|
|
108
|
-
provider: "salesforce",
|
|
109
|
-
appRef: "salesforce-platform",
|
|
110
|
-
displayName: "Salesforce Platform",
|
|
111
|
-
credentialSetName: "Keystroke Salesforce Platform App",
|
|
112
|
-
envShape: {
|
|
113
|
-
KEYSTROKE_OFFICIAL_SALESFORCE_CLIENT_ID: z.string().optional(),
|
|
114
|
-
KEYSTROKE_OFFICIAL_SALESFORCE_CLIENT_SECRET: z.string().optional(),
|
|
115
|
-
KEYSTROKE_OFFICIAL_SALESFORCE_ENVIRONMENT: z.enum(["production", "sandbox"]).optional(),
|
|
116
|
-
KEYSTROKE_OFFICIAL_SALESFORCE_LOGIN_BASE_URL: z.string().url().optional()
|
|
117
|
-
},
|
|
118
|
-
requiredEnvKeys: ["KEYSTROKE_OFFICIAL_SALESFORCE_CLIENT_ID", "KEYSTROKE_OFFICIAL_SALESFORCE_CLIENT_SECRET"],
|
|
119
|
-
externalAppIdEnvKey: "KEYSTROKE_OFFICIAL_SALESFORCE_CLIENT_ID",
|
|
120
|
-
buildCredentials: (env) => ({
|
|
121
|
-
clientId: env.KEYSTROKE_OFFICIAL_SALESFORCE_CLIENT_ID,
|
|
122
|
-
clientSecret: env.KEYSTROKE_OFFICIAL_SALESFORCE_CLIENT_SECRET
|
|
123
|
-
}),
|
|
124
|
-
buildMetadata: (env) => env.KEYSTROKE_OFFICIAL_SALESFORCE_ENVIRONMENT || env.KEYSTROKE_OFFICIAL_SALESFORCE_LOGIN_BASE_URL ? {
|
|
125
|
-
...env.KEYSTROKE_OFFICIAL_SALESFORCE_ENVIRONMENT ? { environment: env.KEYSTROKE_OFFICIAL_SALESFORCE_ENVIRONMENT } : {},
|
|
126
|
-
...env.KEYSTROKE_OFFICIAL_SALESFORCE_LOGIN_BASE_URL ? { loginBaseUrl: env.KEYSTROKE_OFFICIAL_SALESFORCE_LOGIN_BASE_URL } : {}
|
|
127
|
-
} : void 0
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
//#endregion
|
|
131
4
|
//#region ../../packages/credential-connection/dist/defaults-YE9AvLIc.mjs
|
|
132
5
|
/**
|
|
133
6
|
* Shared OAuth 2.0 token-response plumbing.
|
|
@@ -237,7 +110,7 @@ const oauthDefaults = {
|
|
|
237
110
|
};
|
|
238
111
|
|
|
239
112
|
//#endregion
|
|
240
|
-
//#region src/oauth-connection.ts
|
|
113
|
+
//#region src/utils/oauth-connection.ts
|
|
241
114
|
function getMetadataValue(metadata, key) {
|
|
242
115
|
if (!metadata || typeof metadata !== "object" || !(key in metadata)) return;
|
|
243
116
|
const value = metadata[key];
|
|
@@ -305,12 +178,12 @@ const salesforceOAuthConnection = {
|
|
|
305
178
|
};
|
|
306
179
|
|
|
307
180
|
//#endregion
|
|
308
|
-
//#region src/
|
|
181
|
+
//#region src/credential-sets/salesforce.credential-set.ts
|
|
309
182
|
const salesforceAuthSchema = z.object({
|
|
310
183
|
SALESFORCE_ACCESS_TOKEN: z.string().min(1),
|
|
311
184
|
SALESFORCE_INSTANCE_URL: z.url()
|
|
312
185
|
});
|
|
313
|
-
const
|
|
186
|
+
const salesforceCredentialSet = new CredentialSet({
|
|
314
187
|
id: "salesforce",
|
|
315
188
|
name: "Salesforce",
|
|
316
189
|
description: "Salesforce CRM and platform automation",
|
|
@@ -320,12 +193,7 @@ const salesforceOfficialIntegration = {
|
|
|
320
193
|
id: "oauth",
|
|
321
194
|
...salesforceOAuthConnection
|
|
322
195
|
}]
|
|
323
|
-
};
|
|
324
|
-
const salesforceBundle = defineOfficialIntegration({
|
|
325
|
-
...salesforceOfficialIntegration,
|
|
326
|
-
internal: { providerApp: salesforceAppCredentialSet }
|
|
327
196
|
});
|
|
328
|
-
const salesforce = salesforceBundle.credentialSet;
|
|
329
197
|
|
|
330
198
|
//#endregion
|
|
331
|
-
export {
|
|
199
|
+
export { salesforceCredentialSet as t };
|
package/dist/schemas/index.d.mts
CHANGED
|
@@ -1,40 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/schemas/common.d.ts
|
|
4
|
-
declare const salesforceIdSchema: z.ZodString;
|
|
5
|
-
declare const salesforceAttributesSchema: z.ZodObject<{
|
|
6
|
-
type: z.ZodString;
|
|
7
|
-
url: z.ZodString;
|
|
8
|
-
}, z.core.$strip>;
|
|
9
|
-
declare const salesforceRecordSchema: z.ZodObject<{
|
|
10
|
-
Id: z.ZodOptional<z.ZodString>;
|
|
11
|
-
attributes: z.ZodOptional<z.ZodObject<{
|
|
12
|
-
type: z.ZodString;
|
|
13
|
-
url: z.ZodString;
|
|
14
|
-
}, z.core.$strip>>;
|
|
15
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
16
|
-
declare const salesforceQueryResultSchema: z.ZodObject<{
|
|
17
|
-
totalSize: z.ZodNumber;
|
|
18
|
-
done: z.ZodBoolean;
|
|
19
|
-
nextRecordsUrl: z.ZodOptional<z.ZodString>;
|
|
20
|
-
records: z.ZodArray<z.ZodObject<{
|
|
21
|
-
Id: z.ZodOptional<z.ZodString>;
|
|
22
|
-
attributes: z.ZodOptional<z.ZodObject<{
|
|
23
|
-
type: z.ZodString;
|
|
24
|
-
url: z.ZodString;
|
|
25
|
-
}, z.core.$strip>>;
|
|
26
|
-
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
27
|
-
}, z.core.$strip>;
|
|
28
|
-
declare const salesforceMutationResultSchema: z.ZodObject<{
|
|
29
|
-
success: z.ZodBoolean;
|
|
30
|
-
id: z.ZodOptional<z.ZodString>;
|
|
31
|
-
errors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
32
|
-
}, z.core.$strip>;
|
|
33
|
-
declare const salesforceGenericObjectSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
34
|
-
declare const salesforceGenericObjectArraySchema: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
35
|
-
type SalesforceRecord = z.infer<typeof salesforceRecordSchema>;
|
|
36
|
-
type SalesforceQueryResult = z.infer<typeof salesforceQueryResultSchema>;
|
|
37
|
-
type SalesforceMutationResult = z.infer<typeof salesforceMutationResultSchema>;
|
|
38
|
-
type SalesforceGenericObject = z.infer<typeof salesforceGenericObjectSchema>;
|
|
39
|
-
//#endregion
|
|
1
|
+
import { a as salesforceAttributesSchema, c as salesforceIdSchema, d as salesforceRecordSchema, i as SalesforceRecord, l as salesforceMutationResultSchema, n as SalesforceMutationResult, o as salesforceGenericObjectArraySchema, r as SalesforceQueryResult, s as salesforceGenericObjectSchema, t as SalesforceGenericObject, u as salesforceQueryResultSchema } from "../common-DkQhdp5I.mjs";
|
|
40
2
|
export { type SalesforceGenericObject, type SalesforceMutationResult, type SalesforceQueryResult, type SalesforceRecord, salesforceAttributesSchema, salesforceGenericObjectArraySchema, salesforceGenericObjectSchema, salesforceIdSchema, salesforceMutationResultSchema, salesforceQueryResultSchema, salesforceRecordSchema };
|