@keystrokehq/salesforce 0.0.15 → 0.0.16-integration-id-canonicalization.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/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-_SBGMBl0.d.mts +35 -0
- package/dist/salesforce.credential-set-hRl34hu0.mjs +41 -0
- package/dist/schemas/index.d.mts +1 -39
- package/dist/schemas/index.mjs +1 -1
- package/dist/update_task.operation-CQpUzvoi.d.mts +1784 -0
- package/dist/update_task.operation-D45Pu3An.mjs +1311 -0
- package/package.json +11 -95
- package/dist/_official/index.d.mts +0 -38
- 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 -81
- package/dist/accounts.mjs +0 -30
- package/dist/associations.d.mts +0 -33
- package/dist/associations.mjs +0 -70
- package/dist/campaign-members.d.mts +0 -81
- package/dist/campaign-members.mjs +0 -27
- package/dist/campaigns.d.mts +0 -81
- package/dist/campaigns.mjs +0 -28
- package/dist/cases.d.mts +0 -81
- 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 -81
- package/dist/contacts.mjs +0 -29
- package/dist/dashboards.d.mts +0 -22
- package/dist/dashboards.mjs +0 -44
- package/dist/factory-BGHapzgT.mjs +0 -8
- package/dist/integration-BDDBjdNG.d.mts +0 -30
- package/dist/integration-BzLQsPf-.mjs +0 -60
- package/dist/leads.d.mts +0 -81
- 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 -81
- package/dist/notes.mjs +0 -26
- package/dist/objects.d.mts +0 -16
- package/dist/objects.mjs +0 -31
- package/dist/opportunities.d.mts +0 -81
- package/dist/opportunities.mjs +0 -29
- package/dist/opportunity-line-items.d.mts +0 -81
- package/dist/opportunity-line-items.mjs +0 -29
- package/dist/ownership.d.mts +0 -21
- package/dist/ownership.mjs +0 -49
- package/dist/reports.d.mts +0 -27
- package/dist/reports.mjs +0 -59
- package/dist/shared-CM1r3Nii.mjs +0 -196
- package/dist/soql.d.mts +0 -40
- package/dist/soql.mjs +0 -30
- package/dist/tasks.d.mts +0 -81
- package/dist/tasks.mjs +0 -29
- package/dist/triggers.d.mts +0 -83
- package/dist/triggers.mjs +0 -309
- package/dist/users.d.mts +0 -10
- package/dist/users.mjs +0 -20
- /package/dist/{common-BUAhHMqn.mjs → common-wiFkMAq5.mjs} +0 -0
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-_SBGMBl0.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-_SBGMBl0.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-CQpUzvoi.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-hRl34hu0.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-D45Pu3An.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-CQpUzvoi.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-D45Pu3An.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,35 @@
|
|
|
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
|
+
id: string;
|
|
22
|
+
}[]>;
|
|
23
|
+
type SalesforceCredentials = InferCredentialSetAuth<typeof salesforceCredentialSet>;
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/credential-sets/salesforce-app.credential-set.d.ts
|
|
26
|
+
declare const salesforceAppCredentialSet: CredentialSet<"salesforce-app", z.ZodObject<{
|
|
27
|
+
clientId: z.ZodString;
|
|
28
|
+
clientSecret: z.ZodString;
|
|
29
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
30
|
+
clientId: z.ZodString;
|
|
31
|
+
clientSecret: z.ZodString;
|
|
32
|
+
}, z.core.$strip>>[] | undefined>;
|
|
33
|
+
type SalesforceAppCredentials = InferCredentialSetAuth<typeof salesforceAppCredentialSet>;
|
|
34
|
+
//#endregion
|
|
35
|
+
export { salesforceCredentialSet as i, salesforceAppCredentialSet as n, SalesforceCredentials as r, SalesforceAppCredentials as t };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { CredentialSet } from "@keystrokehq/core";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
4
|
+
//#region src/utils/oauth-connection.ts
|
|
5
|
+
const salesforceOAuthConnection = {
|
|
6
|
+
kind: "oauth",
|
|
7
|
+
tokenType: "refreshable",
|
|
8
|
+
authUrl: "https://login.salesforce.com/services/oauth2/authorize",
|
|
9
|
+
tokenUrl: "https://login.salesforce.com/services/oauth2/token",
|
|
10
|
+
revokeUrl: null,
|
|
11
|
+
scopes: [
|
|
12
|
+
"api",
|
|
13
|
+
"refresh_token",
|
|
14
|
+
"offline_access"
|
|
15
|
+
],
|
|
16
|
+
vault: {
|
|
17
|
+
accessToken: "SALESFORCE_ACCESS_TOKEN",
|
|
18
|
+
instanceUrl: "SALESFORCE_INSTANCE_URL"
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/credential-sets/salesforce.credential-set.ts
|
|
24
|
+
const salesforceAuthSchema = z.object({
|
|
25
|
+
SALESFORCE_ACCESS_TOKEN: z.string().min(1),
|
|
26
|
+
SALESFORCE_INSTANCE_URL: z.url()
|
|
27
|
+
});
|
|
28
|
+
const salesforceCredentialSet = new CredentialSet({
|
|
29
|
+
id: "salesforce",
|
|
30
|
+
name: "Salesforce",
|
|
31
|
+
description: "Salesforce CRM and platform automation",
|
|
32
|
+
auth: salesforceAuthSchema,
|
|
33
|
+
proxy: { hosts: ["*.salesforce.com", "*.force.com"] },
|
|
34
|
+
connections: [{
|
|
35
|
+
id: "oauth",
|
|
36
|
+
...salesforceOAuthConnection
|
|
37
|
+
}]
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
//#endregion
|
|
41
|
+
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 };
|
package/dist/schemas/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as salesforceMutationResultSchema, i as salesforceIdSchema, n as salesforceGenericObjectArraySchema, o as salesforceQueryResultSchema, r as salesforceGenericObjectSchema, s as salesforceRecordSchema, t as salesforceAttributesSchema } from "../common-
|
|
1
|
+
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";
|
|
2
2
|
|
|
3
3
|
export { salesforceAttributesSchema, salesforceGenericObjectArraySchema, salesforceGenericObjectSchema, salesforceIdSchema, salesforceMutationResultSchema, salesforceQueryResultSchema, salesforceRecordSchema };
|