@keystrokehq/salesforce 0.0.1 → 0.0.4
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/LICENSE +21 -0
- package/dist/_official/index.d.mts +2 -2
- package/dist/_official/index.mjs +1 -1
- package/dist/accounts.d.mts +5 -5
- package/dist/accounts.mjs +1 -1
- package/dist/associations.d.mts +2 -2
- package/dist/associations.mjs +2 -2
- package/dist/campaign-members.d.mts +5 -5
- package/dist/campaign-members.mjs +1 -1
- package/dist/campaigns.d.mts +5 -5
- package/dist/campaigns.mjs +1 -1
- package/dist/cases.d.mts +5 -5
- package/dist/cases.mjs +1 -1
- package/dist/client.d.mts +1 -1
- package/dist/client.mjs +1 -1
- package/dist/connection.d.mts +1 -1
- package/dist/connection.mjs +1 -1
- package/dist/contacts.d.mts +5 -5
- package/dist/contacts.mjs +1 -1
- package/dist/dashboards.d.mts +3 -3
- package/dist/dashboards.mjs +1 -1
- package/dist/{factory-BBQAdBIT.mjs → factory-D7Bp3wjE.mjs} +1 -1
- package/dist/{integration-CGYEE2Ge.d.mts → integration-B4z5pRJ7.d.mts} +1 -1
- package/dist/{integration-C_hbWu9t.mjs → integration-BkcjeomH.mjs} +2 -2
- package/dist/leads.d.mts +5 -5
- package/dist/leads.mjs +1 -1
- package/dist/notes.d.mts +5 -5
- package/dist/notes.mjs +1 -1
- package/dist/objects.d.mts +2 -2
- package/dist/objects.mjs +1 -1
- package/dist/opportunities.d.mts +5 -5
- package/dist/opportunities.mjs +1 -1
- package/dist/opportunity-line-items.d.mts +5 -5
- package/dist/opportunity-line-items.mjs +1 -1
- package/dist/ownership.d.mts +1 -1
- package/dist/ownership.mjs +2 -2
- package/dist/reports.d.mts +4 -4
- package/dist/reports.mjs +1 -1
- package/dist/{shared-B8YQavkg.mjs → shared-qOTD64y5.mjs} +1 -1
- package/dist/soql.d.mts +2 -2
- package/dist/soql.mjs +2 -2
- package/dist/tasks.d.mts +5 -5
- package/dist/tasks.mjs +1 -1
- package/dist/triggers.d.mts +1 -1
- package/dist/triggers.mjs +19 -28
- package/dist/users.d.mts +1 -1
- package/dist/users.mjs +1 -1
- package/package.json +19 -20
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Buster
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { i as salesforceOfficialIntegration, r as salesforceBundle } from "../integration-
|
|
1
|
+
import { i as salesforceOfficialIntegration, r as salesforceBundle } from "../integration-B4z5pRJ7.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { CredentialSet } from "@keystrokehq/core";
|
|
4
4
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
5
5
|
import { InferCredentialSetAuth } from "@keystrokehq/core/credential-set";
|
|
6
6
|
|
|
7
7
|
//#region src/_official/provider-app.d.ts
|
|
8
|
-
declare const salesforceAppCredentialSet: CredentialSet<"salesforce-app", z.ZodObject<{
|
|
8
|
+
declare const salesforceAppCredentialSet: CredentialSet<"keystroke:salesforce-app", z.ZodObject<{
|
|
9
9
|
clientId: z.ZodString;
|
|
10
10
|
clientSecret: z.ZodString;
|
|
11
11
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
package/dist/_official/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as salesforcePlatformProviderSeed, i as salesforceAppCredentialSet, n as salesforceBundle, r as salesforceOfficialIntegration } from "../integration-
|
|
1
|
+
import { a as salesforcePlatformProviderSeed, i as salesforceAppCredentialSet, n as salesforceBundle, r as salesforceOfficialIntegration } from "../integration-BkcjeomH.mjs";
|
|
2
2
|
|
|
3
3
|
export { salesforceAppCredentialSet, salesforceBundle, salesforceOfficialIntegration, salesforcePlatformProviderSeed };
|
package/dist/accounts.d.mts
CHANGED
|
@@ -13,7 +13,7 @@ declare const getAccount: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
13
13
|
type: zod.ZodString;
|
|
14
14
|
url: zod.ZodString;
|
|
15
15
|
}, zod_v4_core0.$strip>>;
|
|
16
|
-
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
16
|
+
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
17
17
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
18
18
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
19
19
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
@@ -40,7 +40,7 @@ declare const listAccounts: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
40
40
|
url: zod.ZodString;
|
|
41
41
|
}, zod_v4_core0.$strip>>;
|
|
42
42
|
}, zod_v4_core0.$catchall<zod.ZodUnknown>>>;
|
|
43
|
-
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
43
|
+
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
44
44
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
45
45
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
46
46
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
@@ -56,7 +56,7 @@ declare const createAccount: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
56
56
|
type: zod.ZodString;
|
|
57
57
|
url: zod.ZodString;
|
|
58
58
|
}, zod_v4_core0.$strip>>;
|
|
59
|
-
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
59
|
+
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
60
60
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
61
61
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
62
62
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
@@ -73,7 +73,7 @@ declare const updateAccount: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
73
73
|
type: zod.ZodString;
|
|
74
74
|
url: zod.ZodString;
|
|
75
75
|
}, zod_v4_core0.$strip>>;
|
|
76
|
-
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
76
|
+
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
77
77
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
78
78
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
79
79
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
@@ -86,7 +86,7 @@ declare const deleteAccount: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
86
86
|
success: zod.ZodBoolean;
|
|
87
87
|
id: zod.ZodOptional<zod.ZodString>;
|
|
88
88
|
errors: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
89
|
-
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
89
|
+
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
90
90
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
91
91
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
92
92
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
package/dist/accounts.mjs
CHANGED
package/dist/associations.d.mts
CHANGED
|
@@ -13,7 +13,7 @@ declare const associateContactToAccount: _keystrokehq_core0.Operation<z.ZodObjec
|
|
|
13
13
|
type: z.ZodString;
|
|
14
14
|
url: z.ZodString;
|
|
15
15
|
}, z.core.$strip>>;
|
|
16
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", z.ZodObject<{
|
|
16
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", z.ZodObject<{
|
|
17
17
|
SALESFORCE_ACCESS_TOKEN: z.ZodString;
|
|
18
18
|
SALESFORCE_INSTANCE_URL: z.ZodURL;
|
|
19
19
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -29,7 +29,7 @@ declare const dissociateContactFromAccount: _keystrokehq_core0.Operation<z.ZodOb
|
|
|
29
29
|
type: z.ZodString;
|
|
30
30
|
url: z.ZodString;
|
|
31
31
|
}, z.core.$strip>>;
|
|
32
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", z.ZodObject<{
|
|
32
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", z.ZodObject<{
|
|
33
33
|
SALESFORCE_ACCESS_TOKEN: z.ZodString;
|
|
34
34
|
SALESFORCE_INSTANCE_URL: z.ZodURL;
|
|
35
35
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
package/dist/associations.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createSalesforceClient } from "./client.mjs";
|
|
2
2
|
import { i as salesforceIdSchema, s as salesforceRecordSchema } from "./common-BUAhHMqn.mjs";
|
|
3
|
-
import { t as salesforceOperation } from "./factory-
|
|
4
|
-
import { a as normalizeSalesforceQueryResult, i as getSelectFields, o as salesforceFieldListSchema, r as ensureMutationSuccess, t as buildSelectQuery } from "./shared-
|
|
3
|
+
import { t as salesforceOperation } from "./factory-D7Bp3wjE.mjs";
|
|
4
|
+
import { a as normalizeSalesforceQueryResult, i as getSelectFields, o as salesforceFieldListSchema, r as ensureMutationSuccess, t as buildSelectQuery } from "./shared-qOTD64y5.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
7
7
|
//#region src/associations.ts
|
|
@@ -13,7 +13,7 @@ declare const getCampaignMember: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
13
13
|
type: zod.ZodString;
|
|
14
14
|
url: zod.ZodString;
|
|
15
15
|
}, zod_v4_core0.$strip>>;
|
|
16
|
-
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
16
|
+
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
17
17
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
18
18
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
19
19
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
@@ -40,7 +40,7 @@ declare const listCampaignMembers: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
40
40
|
url: zod.ZodString;
|
|
41
41
|
}, zod_v4_core0.$strip>>;
|
|
42
42
|
}, zod_v4_core0.$catchall<zod.ZodUnknown>>>;
|
|
43
|
-
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
43
|
+
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
44
44
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
45
45
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
46
46
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
@@ -56,7 +56,7 @@ declare const createCampaignMember: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
56
56
|
type: zod.ZodString;
|
|
57
57
|
url: zod.ZodString;
|
|
58
58
|
}, zod_v4_core0.$strip>>;
|
|
59
|
-
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
59
|
+
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
60
60
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
61
61
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
62
62
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
@@ -73,7 +73,7 @@ declare const updateCampaignMember: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
73
73
|
type: zod.ZodString;
|
|
74
74
|
url: zod.ZodString;
|
|
75
75
|
}, zod_v4_core0.$strip>>;
|
|
76
|
-
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
76
|
+
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
77
77
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
78
78
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
79
79
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
@@ -86,7 +86,7 @@ declare const deleteCampaignMember: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
86
86
|
success: zod.ZodBoolean;
|
|
87
87
|
id: zod.ZodOptional<zod.ZodString>;
|
|
88
88
|
errors: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
89
|
-
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
89
|
+
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
90
90
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
91
91
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
92
92
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
package/dist/campaigns.d.mts
CHANGED
|
@@ -13,7 +13,7 @@ declare const getCampaign: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
13
13
|
type: zod.ZodString;
|
|
14
14
|
url: zod.ZodString;
|
|
15
15
|
}, zod_v4_core0.$strip>>;
|
|
16
|
-
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
16
|
+
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
17
17
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
18
18
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
19
19
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
@@ -40,7 +40,7 @@ declare const listCampaigns: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
40
40
|
url: zod.ZodString;
|
|
41
41
|
}, zod_v4_core0.$strip>>;
|
|
42
42
|
}, zod_v4_core0.$catchall<zod.ZodUnknown>>>;
|
|
43
|
-
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
43
|
+
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
44
44
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
45
45
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
46
46
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
@@ -56,7 +56,7 @@ declare const createCampaign: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
56
56
|
type: zod.ZodString;
|
|
57
57
|
url: zod.ZodString;
|
|
58
58
|
}, zod_v4_core0.$strip>>;
|
|
59
|
-
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
59
|
+
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
60
60
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
61
61
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
62
62
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
@@ -73,7 +73,7 @@ declare const updateCampaign: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
73
73
|
type: zod.ZodString;
|
|
74
74
|
url: zod.ZodString;
|
|
75
75
|
}, zod_v4_core0.$strip>>;
|
|
76
|
-
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
76
|
+
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
77
77
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
78
78
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
79
79
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
@@ -86,7 +86,7 @@ declare const deleteCampaign: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
86
86
|
success: zod.ZodBoolean;
|
|
87
87
|
id: zod.ZodOptional<zod.ZodString>;
|
|
88
88
|
errors: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
89
|
-
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
89
|
+
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
90
90
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
91
91
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
92
92
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
package/dist/campaigns.mjs
CHANGED
package/dist/cases.d.mts
CHANGED
|
@@ -13,7 +13,7 @@ declare const getCase: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
13
13
|
type: zod.ZodString;
|
|
14
14
|
url: zod.ZodString;
|
|
15
15
|
}, zod_v4_core0.$strip>>;
|
|
16
|
-
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
16
|
+
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
17
17
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
18
18
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
19
19
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
@@ -40,7 +40,7 @@ declare const listCases: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
40
40
|
url: zod.ZodString;
|
|
41
41
|
}, zod_v4_core0.$strip>>;
|
|
42
42
|
}, zod_v4_core0.$catchall<zod.ZodUnknown>>>;
|
|
43
|
-
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
43
|
+
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
44
44
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
45
45
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
46
46
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
@@ -56,7 +56,7 @@ declare const createCase: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
56
56
|
type: zod.ZodString;
|
|
57
57
|
url: zod.ZodString;
|
|
58
58
|
}, zod_v4_core0.$strip>>;
|
|
59
|
-
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
59
|
+
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
60
60
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
61
61
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
62
62
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
@@ -73,7 +73,7 @@ declare const updateCase: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
73
73
|
type: zod.ZodString;
|
|
74
74
|
url: zod.ZodString;
|
|
75
75
|
}, zod_v4_core0.$strip>>;
|
|
76
|
-
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
76
|
+
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
77
77
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
78
78
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
79
79
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
@@ -86,7 +86,7 @@ declare const deleteCase: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
86
86
|
success: zod.ZodBoolean;
|
|
87
87
|
id: zod.ZodOptional<zod.ZodString>;
|
|
88
88
|
errors: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
89
|
-
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
89
|
+
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
90
90
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
91
91
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
92
92
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
package/dist/cases.mjs
CHANGED
package/dist/client.d.mts
CHANGED
package/dist/client.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as salesforce } from "./integration-
|
|
1
|
+
import { t as salesforce } from "./integration-BkcjeomH.mjs";
|
|
2
2
|
import * as jsforce from "@jsforce/jsforce-node";
|
|
3
3
|
import { CredentialRevokedError } from "@keystrokehq/core/errors";
|
|
4
4
|
import { createErrorNormalizingProxy } from "@keystrokehq/integration-authoring";
|
package/dist/connection.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as salesforce, t as SalesforceCredentials } from "./integration-
|
|
1
|
+
import { n as salesforce, t as SalesforceCredentials } from "./integration-B4z5pRJ7.mjs";
|
|
2
2
|
export { type SalesforceCredentials, salesforce };
|
package/dist/connection.mjs
CHANGED
package/dist/contacts.d.mts
CHANGED
|
@@ -13,7 +13,7 @@ declare const getContact: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
13
13
|
type: zod.ZodString;
|
|
14
14
|
url: zod.ZodString;
|
|
15
15
|
}, zod_v4_core0.$strip>>;
|
|
16
|
-
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
16
|
+
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
17
17
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
18
18
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
19
19
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
@@ -40,7 +40,7 @@ declare const listContacts: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
40
40
|
url: zod.ZodString;
|
|
41
41
|
}, zod_v4_core0.$strip>>;
|
|
42
42
|
}, zod_v4_core0.$catchall<zod.ZodUnknown>>>;
|
|
43
|
-
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
43
|
+
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
44
44
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
45
45
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
46
46
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
@@ -56,7 +56,7 @@ declare const createContact: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
56
56
|
type: zod.ZodString;
|
|
57
57
|
url: zod.ZodString;
|
|
58
58
|
}, zod_v4_core0.$strip>>;
|
|
59
|
-
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
59
|
+
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
60
60
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
61
61
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
62
62
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
@@ -73,7 +73,7 @@ declare const updateContact: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
73
73
|
type: zod.ZodString;
|
|
74
74
|
url: zod.ZodString;
|
|
75
75
|
}, zod_v4_core0.$strip>>;
|
|
76
|
-
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
76
|
+
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
77
77
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
78
78
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
79
79
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
@@ -86,7 +86,7 @@ declare const deleteContact: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
86
86
|
success: zod.ZodBoolean;
|
|
87
87
|
id: zod.ZodOptional<zod.ZodString>;
|
|
88
88
|
errors: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
89
|
-
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
89
|
+
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
90
90
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
91
91
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
92
92
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
package/dist/contacts.mjs
CHANGED
package/dist/dashboards.d.mts
CHANGED
|
@@ -3,7 +3,7 @@ import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
|
3
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
4
|
|
|
5
5
|
//#region src/dashboards.d.ts
|
|
6
|
-
declare const listDashboards: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", z.ZodObject<{
|
|
6
|
+
declare const listDashboards: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", z.ZodObject<{
|
|
7
7
|
SALESFORCE_ACCESS_TOKEN: z.ZodString;
|
|
8
8
|
SALESFORCE_INSTANCE_URL: z.ZodURL;
|
|
9
9
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -12,7 +12,7 @@ declare const listDashboards: _keystrokehq_core0.Operation<z.ZodObject<{}, z.cor
|
|
|
12
12
|
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
13
13
|
declare const getDashboard: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
14
14
|
dashboardId: z.ZodString;
|
|
15
|
-
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", z.ZodObject<{
|
|
15
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", z.ZodObject<{
|
|
16
16
|
SALESFORCE_ACCESS_TOKEN: z.ZodString;
|
|
17
17
|
SALESFORCE_INSTANCE_URL: z.ZodURL;
|
|
18
18
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -21,7 +21,7 @@ declare const getDashboard: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
21
21
|
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
22
22
|
declare const refreshDashboard: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
23
23
|
dashboardId: z.ZodString;
|
|
24
|
-
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", z.ZodObject<{
|
|
24
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", z.ZodObject<{
|
|
25
25
|
SALESFORCE_ACCESS_TOKEN: z.ZodString;
|
|
26
26
|
SALESFORCE_INSTANCE_URL: z.ZodURL;
|
|
27
27
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
package/dist/dashboards.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createSalesforceClient } from "./client.mjs";
|
|
2
2
|
import { r as salesforceGenericObjectSchema } from "./common-BUAhHMqn.mjs";
|
|
3
|
-
import { t as salesforceOperation } from "./factory-
|
|
3
|
+
import { t as salesforceOperation } from "./factory-D7Bp3wjE.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/dashboards.ts
|
|
@@ -50,7 +50,7 @@ declare const salesforceBundle: _keystrokehq_integration_authoring_official0.Off
|
|
|
50
50
|
SALESFORCE_ACCESS_TOKEN: z.ZodString;
|
|
51
51
|
SALESFORCE_INSTANCE_URL: z.ZodURL;
|
|
52
52
|
}, z.core.$strip>>;
|
|
53
|
-
declare const salesforce: _keystrokehq_core0.CredentialSet<"salesforce", z.ZodObject<{
|
|
53
|
+
declare const salesforce: _keystrokehq_core0.CredentialSet<"keystroke:salesforce", z.ZodObject<{
|
|
54
54
|
SALESFORCE_ACCESS_TOKEN: z.ZodString;
|
|
55
55
|
SALESFORCE_INSTANCE_URL: z.ZodURL;
|
|
56
56
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineOfficialIntegration } from "@keystrokehq/integration-authoring/official";
|
|
1
|
+
import { defineOfficialIntegration, officialCredentialSetId } from "@keystrokehq/integration-authoring/official";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { CredentialSet } from "@keystrokehq/core";
|
|
4
4
|
import { oauthDefaults } from "@keystrokehq/credential-connection";
|
|
5
5
|
|
|
6
6
|
//#region src/_official/provider-app.ts
|
|
7
7
|
const salesforceAppCredentialSet = new CredentialSet({
|
|
8
|
-
id: "salesforce-app",
|
|
8
|
+
id: officialCredentialSetId("salesforce-app"),
|
|
9
9
|
exposure: "platform-only",
|
|
10
10
|
name: "Salesforce Connected App",
|
|
11
11
|
auth: z.object({
|
package/dist/leads.d.mts
CHANGED
|
@@ -13,7 +13,7 @@ declare const getLead: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
13
13
|
type: zod.ZodString;
|
|
14
14
|
url: zod.ZodString;
|
|
15
15
|
}, zod_v4_core0.$strip>>;
|
|
16
|
-
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
16
|
+
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
17
17
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
18
18
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
19
19
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
@@ -40,7 +40,7 @@ declare const listLeads: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
40
40
|
url: zod.ZodString;
|
|
41
41
|
}, zod_v4_core0.$strip>>;
|
|
42
42
|
}, zod_v4_core0.$catchall<zod.ZodUnknown>>>;
|
|
43
|
-
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
43
|
+
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
44
44
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
45
45
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
46
46
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
@@ -56,7 +56,7 @@ declare const createLead: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
56
56
|
type: zod.ZodString;
|
|
57
57
|
url: zod.ZodString;
|
|
58
58
|
}, zod_v4_core0.$strip>>;
|
|
59
|
-
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
59
|
+
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
60
60
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
61
61
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
62
62
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
@@ -73,7 +73,7 @@ declare const updateLead: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
73
73
|
type: zod.ZodString;
|
|
74
74
|
url: zod.ZodString;
|
|
75
75
|
}, zod_v4_core0.$strip>>;
|
|
76
|
-
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
76
|
+
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
77
77
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
78
78
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
79
79
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
@@ -86,7 +86,7 @@ declare const deleteLead: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
86
86
|
success: zod.ZodBoolean;
|
|
87
87
|
id: zod.ZodOptional<zod.ZodString>;
|
|
88
88
|
errors: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
89
|
-
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
89
|
+
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
90
90
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
91
91
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
92
92
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
package/dist/leads.mjs
CHANGED
package/dist/notes.d.mts
CHANGED
|
@@ -13,7 +13,7 @@ declare const getNote: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
13
13
|
type: zod.ZodString;
|
|
14
14
|
url: zod.ZodString;
|
|
15
15
|
}, zod_v4_core0.$strip>>;
|
|
16
|
-
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
16
|
+
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
17
17
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
18
18
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
19
19
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
@@ -40,7 +40,7 @@ declare const listNotes: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
40
40
|
url: zod.ZodString;
|
|
41
41
|
}, zod_v4_core0.$strip>>;
|
|
42
42
|
}, zod_v4_core0.$catchall<zod.ZodUnknown>>>;
|
|
43
|
-
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
43
|
+
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
44
44
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
45
45
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
46
46
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
@@ -56,7 +56,7 @@ declare const createNote: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
56
56
|
type: zod.ZodString;
|
|
57
57
|
url: zod.ZodString;
|
|
58
58
|
}, zod_v4_core0.$strip>>;
|
|
59
|
-
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
59
|
+
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
60
60
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
61
61
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
62
62
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
@@ -73,7 +73,7 @@ declare const updateNote: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
73
73
|
type: zod.ZodString;
|
|
74
74
|
url: zod.ZodString;
|
|
75
75
|
}, zod_v4_core0.$strip>>;
|
|
76
|
-
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
76
|
+
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
77
77
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
78
78
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
79
79
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
@@ -86,7 +86,7 @@ declare const deleteNote: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
86
86
|
success: zod.ZodBoolean;
|
|
87
87
|
id: zod.ZodOptional<zod.ZodString>;
|
|
88
88
|
errors: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
89
|
-
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
89
|
+
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
90
90
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
91
91
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
92
92
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
package/dist/notes.mjs
CHANGED
package/dist/objects.d.mts
CHANGED
|
@@ -3,7 +3,7 @@ import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
|
3
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
4
|
|
|
5
5
|
//#region src/objects.d.ts
|
|
6
|
-
declare const listObjects: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", z.ZodObject<{
|
|
6
|
+
declare const listObjects: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", z.ZodObject<{
|
|
7
7
|
SALESFORCE_ACCESS_TOKEN: z.ZodString;
|
|
8
8
|
SALESFORCE_INSTANCE_URL: z.ZodURL;
|
|
9
9
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -12,7 +12,7 @@ declare const listObjects: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$
|
|
|
12
12
|
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
13
13
|
declare const describeObject: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
14
14
|
objectName: z.ZodString;
|
|
15
|
-
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", z.ZodObject<{
|
|
15
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", z.ZodObject<{
|
|
16
16
|
SALESFORCE_ACCESS_TOKEN: z.ZodString;
|
|
17
17
|
SALESFORCE_INSTANCE_URL: z.ZodURL;
|
|
18
18
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
package/dist/objects.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createSalesforceClient } from "./client.mjs";
|
|
2
2
|
import { r as salesforceGenericObjectSchema } from "./common-BUAhHMqn.mjs";
|
|
3
|
-
import { t as salesforceOperation } from "./factory-
|
|
3
|
+
import { t as salesforceOperation } from "./factory-D7Bp3wjE.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/objects.ts
|
package/dist/opportunities.d.mts
CHANGED
|
@@ -13,7 +13,7 @@ declare const getOpportunity: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
13
13
|
type: zod.ZodString;
|
|
14
14
|
url: zod.ZodString;
|
|
15
15
|
}, zod_v4_core0.$strip>>;
|
|
16
|
-
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
16
|
+
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
17
17
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
18
18
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
19
19
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
@@ -40,7 +40,7 @@ declare const listOpportunities: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
40
40
|
url: zod.ZodString;
|
|
41
41
|
}, zod_v4_core0.$strip>>;
|
|
42
42
|
}, zod_v4_core0.$catchall<zod.ZodUnknown>>>;
|
|
43
|
-
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
43
|
+
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
44
44
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
45
45
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
46
46
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
@@ -56,7 +56,7 @@ declare const createOpportunity: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
56
56
|
type: zod.ZodString;
|
|
57
57
|
url: zod.ZodString;
|
|
58
58
|
}, zod_v4_core0.$strip>>;
|
|
59
|
-
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
59
|
+
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
60
60
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
61
61
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
62
62
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
@@ -73,7 +73,7 @@ declare const updateOpportunity: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
73
73
|
type: zod.ZodString;
|
|
74
74
|
url: zod.ZodString;
|
|
75
75
|
}, zod_v4_core0.$strip>>;
|
|
76
|
-
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
76
|
+
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
77
77
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
78
78
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
79
79
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
@@ -86,7 +86,7 @@ declare const deleteOpportunity: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
86
86
|
success: zod.ZodBoolean;
|
|
87
87
|
id: zod.ZodOptional<zod.ZodString>;
|
|
88
88
|
errors: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
89
|
-
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
89
|
+
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
90
90
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
91
91
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
92
92
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
package/dist/opportunities.mjs
CHANGED
|
@@ -13,7 +13,7 @@ declare const getOpportunityLineItem: _keystrokehq_core0.Operation<zod.ZodObject
|
|
|
13
13
|
type: zod.ZodString;
|
|
14
14
|
url: zod.ZodString;
|
|
15
15
|
}, zod_v4_core0.$strip>>;
|
|
16
|
-
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
16
|
+
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
17
17
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
18
18
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
19
19
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
@@ -40,7 +40,7 @@ declare const listOpportunityLineItems: _keystrokehq_core0.Operation<zod.ZodObje
|
|
|
40
40
|
url: zod.ZodString;
|
|
41
41
|
}, zod_v4_core0.$strip>>;
|
|
42
42
|
}, zod_v4_core0.$catchall<zod.ZodUnknown>>>;
|
|
43
|
-
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
43
|
+
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
44
44
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
45
45
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
46
46
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
@@ -56,7 +56,7 @@ declare const createOpportunityLineItem: _keystrokehq_core0.Operation<zod.ZodObj
|
|
|
56
56
|
type: zod.ZodString;
|
|
57
57
|
url: zod.ZodString;
|
|
58
58
|
}, zod_v4_core0.$strip>>;
|
|
59
|
-
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
59
|
+
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
60
60
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
61
61
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
62
62
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
@@ -73,7 +73,7 @@ declare const updateOpportunityLineItem: _keystrokehq_core0.Operation<zod.ZodObj
|
|
|
73
73
|
type: zod.ZodString;
|
|
74
74
|
url: zod.ZodString;
|
|
75
75
|
}, zod_v4_core0.$strip>>;
|
|
76
|
-
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
76
|
+
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
77
77
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
78
78
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
79
79
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
@@ -86,7 +86,7 @@ declare const deleteOpportunityLineItem: _keystrokehq_core0.Operation<zod.ZodObj
|
|
|
86
86
|
success: zod.ZodBoolean;
|
|
87
87
|
id: zod.ZodOptional<zod.ZodString>;
|
|
88
88
|
errors: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
89
|
-
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
89
|
+
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
90
90
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
91
91
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
92
92
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
package/dist/ownership.d.mts
CHANGED
|
@@ -14,7 +14,7 @@ declare const transferRecordOwnership: _keystrokehq_core0.Operation<z.ZodObject<
|
|
|
14
14
|
type: z.ZodString;
|
|
15
15
|
url: z.ZodString;
|
|
16
16
|
}, z.core.$strip>>;
|
|
17
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", z.ZodObject<{
|
|
17
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", z.ZodObject<{
|
|
18
18
|
SALESFORCE_ACCESS_TOKEN: z.ZodString;
|
|
19
19
|
SALESFORCE_INSTANCE_URL: z.ZodURL;
|
|
20
20
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
package/dist/ownership.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createSalesforceClient } from "./client.mjs";
|
|
2
2
|
import { i as salesforceIdSchema, s as salesforceRecordSchema } from "./common-BUAhHMqn.mjs";
|
|
3
|
-
import { t as salesforceOperation } from "./factory-
|
|
4
|
-
import { a as normalizeSalesforceQueryResult, i as getSelectFields, o as salesforceFieldListSchema, r as ensureMutationSuccess, t as buildSelectQuery } from "./shared-
|
|
3
|
+
import { t as salesforceOperation } from "./factory-D7Bp3wjE.mjs";
|
|
4
|
+
import { a as normalizeSalesforceQueryResult, i as getSelectFields, o as salesforceFieldListSchema, r as ensureMutationSuccess, t as buildSelectQuery } from "./shared-qOTD64y5.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
7
7
|
//#region src/ownership.ts
|
package/dist/reports.d.mts
CHANGED
|
@@ -3,14 +3,14 @@ import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
|
3
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
4
|
|
|
5
5
|
//#region src/reports.d.ts
|
|
6
|
-
declare const listReports: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", z.ZodObject<{
|
|
6
|
+
declare const listReports: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", z.ZodObject<{
|
|
7
7
|
SALESFORCE_ACCESS_TOKEN: z.ZodString;
|
|
8
8
|
SALESFORCE_INSTANCE_URL: z.ZodURL;
|
|
9
9
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
10
10
|
SALESFORCE_ACCESS_TOKEN: z.ZodString;
|
|
11
11
|
SALESFORCE_INSTANCE_URL: z.ZodURL;
|
|
12
12
|
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
13
|
-
declare const listReportTypes: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", z.ZodObject<{
|
|
13
|
+
declare const listReportTypes: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", z.ZodObject<{
|
|
14
14
|
SALESFORCE_ACCESS_TOKEN: z.ZodString;
|
|
15
15
|
SALESFORCE_INSTANCE_URL: z.ZodURL;
|
|
16
16
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -19,7 +19,7 @@ declare const listReportTypes: _keystrokehq_core0.Operation<z.ZodObject<{}, z.co
|
|
|
19
19
|
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
20
20
|
declare const getReportMetadata: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
21
21
|
reportId: z.ZodString;
|
|
22
|
-
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", z.ZodObject<{
|
|
22
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", z.ZodObject<{
|
|
23
23
|
SALESFORCE_ACCESS_TOKEN: z.ZodString;
|
|
24
24
|
SALESFORCE_INSTANCE_URL: z.ZodURL;
|
|
25
25
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -29,7 +29,7 @@ declare const getReportMetadata: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
29
29
|
declare const runReport: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
30
30
|
reportId: z.ZodString;
|
|
31
31
|
includeDetails: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
-
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", z.ZodObject<{
|
|
32
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", z.ZodObject<{
|
|
33
33
|
SALESFORCE_ACCESS_TOKEN: z.ZodString;
|
|
34
34
|
SALESFORCE_INSTANCE_URL: z.ZodURL;
|
|
35
35
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
package/dist/reports.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createSalesforceClient } from "./client.mjs";
|
|
2
2
|
import { n as salesforceGenericObjectArraySchema, r as salesforceGenericObjectSchema } from "./common-BUAhHMqn.mjs";
|
|
3
|
-
import { t as salesforceOperation } from "./factory-
|
|
3
|
+
import { t as salesforceOperation } from "./factory-D7Bp3wjE.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/reports.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createSalesforceClient } from "./client.mjs";
|
|
2
2
|
import { a as salesforceMutationResultSchema, i as salesforceIdSchema, o as salesforceQueryResultSchema, s as salesforceRecordSchema } from "./common-BUAhHMqn.mjs";
|
|
3
|
-
import { t as salesforceOperation } from "./factory-
|
|
3
|
+
import { t as salesforceOperation } from "./factory-D7Bp3wjE.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/shared.ts
|
package/dist/soql.d.mts
CHANGED
|
@@ -16,7 +16,7 @@ declare const runSoqlQuery: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
16
16
|
url: z.ZodString;
|
|
17
17
|
}, z.core.$strip>>;
|
|
18
18
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
19
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", z.ZodObject<{
|
|
19
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", z.ZodObject<{
|
|
20
20
|
SALESFORCE_ACCESS_TOKEN: z.ZodString;
|
|
21
21
|
SALESFORCE_INSTANCE_URL: z.ZodURL;
|
|
22
22
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -36,7 +36,7 @@ declare const queryMore: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
36
36
|
url: z.ZodString;
|
|
37
37
|
}, z.core.$strip>>;
|
|
38
38
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
39
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", z.ZodObject<{
|
|
39
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", z.ZodObject<{
|
|
40
40
|
SALESFORCE_ACCESS_TOKEN: z.ZodString;
|
|
41
41
|
SALESFORCE_INSTANCE_URL: z.ZodURL;
|
|
42
42
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
package/dist/soql.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createSalesforceClient } from "./client.mjs";
|
|
2
2
|
import { o as salesforceQueryResultSchema } from "./common-BUAhHMqn.mjs";
|
|
3
|
-
import { t as salesforceOperation } from "./factory-
|
|
4
|
-
import { a as normalizeSalesforceQueryResult } from "./shared-
|
|
3
|
+
import { t as salesforceOperation } from "./factory-D7Bp3wjE.mjs";
|
|
4
|
+
import { a as normalizeSalesforceQueryResult } from "./shared-qOTD64y5.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
7
7
|
//#region src/soql.ts
|
package/dist/tasks.d.mts
CHANGED
|
@@ -13,7 +13,7 @@ declare const getTask: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
13
13
|
type: zod.ZodString;
|
|
14
14
|
url: zod.ZodString;
|
|
15
15
|
}, zod_v4_core0.$strip>>;
|
|
16
|
-
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
16
|
+
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
17
17
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
18
18
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
19
19
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
@@ -40,7 +40,7 @@ declare const listTasks: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
40
40
|
url: zod.ZodString;
|
|
41
41
|
}, zod_v4_core0.$strip>>;
|
|
42
42
|
}, zod_v4_core0.$catchall<zod.ZodUnknown>>>;
|
|
43
|
-
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
43
|
+
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
44
44
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
45
45
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
46
46
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
@@ -56,7 +56,7 @@ declare const createTask: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
56
56
|
type: zod.ZodString;
|
|
57
57
|
url: zod.ZodString;
|
|
58
58
|
}, zod_v4_core0.$strip>>;
|
|
59
|
-
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
59
|
+
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
60
60
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
61
61
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
62
62
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
@@ -73,7 +73,7 @@ declare const updateTask: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
73
73
|
type: zod.ZodString;
|
|
74
74
|
url: zod.ZodString;
|
|
75
75
|
}, zod_v4_core0.$strip>>;
|
|
76
|
-
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
76
|
+
}, zod_v4_core0.$catchall<zod.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
77
77
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
78
78
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
79
79
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
@@ -86,7 +86,7 @@ declare const deleteTask: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
86
86
|
success: zod.ZodBoolean;
|
|
87
87
|
id: zod.ZodOptional<zod.ZodString>;
|
|
88
88
|
errors: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
89
|
-
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", zod.ZodObject<{
|
|
89
|
+
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", zod.ZodObject<{
|
|
90
90
|
SALESFORCE_ACCESS_TOKEN: zod.ZodString;
|
|
91
91
|
SALESFORCE_INSTANCE_URL: zod.ZodURL;
|
|
92
92
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
package/dist/tasks.mjs
CHANGED
package/dist/triggers.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as salesforce } from "./integration-
|
|
1
|
+
import { n as salesforce } from "./integration-B4z5pRJ7.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { BoundTrigger } from "@keystrokehq/core";
|
|
4
4
|
import { IntegrationTriggerBindingOptions, createPollingTriggerBindingFactory } from "@keystrokehq/integration-authoring";
|
package/dist/triggers.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as salesforce } from "./integration-
|
|
1
|
+
import { t as salesforce } from "./integration-BkcjeomH.mjs";
|
|
2
2
|
import { createSalesforceClient } from "./client.mjs";
|
|
3
3
|
import { s as salesforceRecordSchema } from "./common-BUAhHMqn.mjs";
|
|
4
|
-
import { a as normalizeSalesforceQueryResult } from "./shared-
|
|
4
|
+
import { a as normalizeSalesforceQueryResult } from "./shared-qOTD64y5.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
import { createPollingTriggerBindingFactory } from "@keystrokehq/integration-authoring";
|
|
7
7
|
|
|
@@ -66,34 +66,28 @@ function buildSalesforcePollingQuery(params) {
|
|
|
66
66
|
function createPollingClient(credentials) {
|
|
67
67
|
return createSalesforceClient(credentials);
|
|
68
68
|
}
|
|
69
|
-
function buildIdempotencyKey(payload, eventType) {
|
|
70
|
-
const firstRecord = payload.records[0];
|
|
71
|
-
if (!firstRecord) return;
|
|
72
|
-
const id = typeof firstRecord.Id === "string" ? firstRecord.Id : "unknown";
|
|
73
|
-
const watermark = firstRecord[payload.watermarkField];
|
|
74
|
-
return `${eventType ?? payload.objectName}:${id}:${typeof watermark === "string" ? watermark : "unknown"}`;
|
|
75
|
-
}
|
|
76
69
|
function splitPollingOptions(options) {
|
|
77
70
|
return {
|
|
78
71
|
schedule: options?.schedule,
|
|
79
72
|
limit: options?.limit,
|
|
80
73
|
bindOptions: {
|
|
81
|
-
...options?.
|
|
74
|
+
...options?.id ? { id: options.id } : {},
|
|
82
75
|
...options?.description ? { description: options.description } : {},
|
|
83
|
-
...options?.filter ? { filter: options.filter } : {},
|
|
84
76
|
...options?.transform ? { transform: options.transform } : {}
|
|
85
77
|
}
|
|
86
78
|
};
|
|
87
79
|
}
|
|
80
|
+
const nonEmptyRecordsFilterSchema = z.object({ records: z.array(salesforceRecordSchema).min(1) });
|
|
88
81
|
function createSalesforcePollingBindingFactory(config) {
|
|
89
82
|
return createPollingTriggerBindingFactory({
|
|
90
|
-
|
|
83
|
+
defaultId: config.defaultId,
|
|
91
84
|
defaultDescription: config.defaultDescription,
|
|
92
85
|
schedule: withDefaultSchedule(config.schedule),
|
|
93
86
|
credentialSets: [salesforce],
|
|
94
87
|
response: salesforcePollingResponseSchema,
|
|
88
|
+
filter: nonEmptyRecordsFilterSchema,
|
|
95
89
|
poll: async (ctx) => {
|
|
96
|
-
const credentials = ctx.credentials
|
|
90
|
+
const credentials = ctx.credentials["keystroke:salesforce"];
|
|
97
91
|
const client = createPollingClient(credentials);
|
|
98
92
|
const query = buildSalesforcePollingQuery({
|
|
99
93
|
objectName: config.objectName,
|
|
@@ -112,20 +106,18 @@ function createSalesforcePollingBindingFactory(config) {
|
|
|
112
106
|
records: result.records
|
|
113
107
|
};
|
|
114
108
|
},
|
|
115
|
-
definitionFilter: (payload) => payload.records.length > 0,
|
|
116
109
|
mapPayload: (payload) => ({
|
|
117
110
|
eventType: config.eventType,
|
|
118
111
|
objectName: payload.objectName,
|
|
119
112
|
records: payload.records,
|
|
120
113
|
...config.taskEventType ? { taskEventType: config.taskEventType } : {}
|
|
121
|
-
})
|
|
122
|
-
idempotencyKey: (payload, mappedPayload) => buildIdempotencyKey(payload, mappedPayload?.eventType)
|
|
114
|
+
})
|
|
123
115
|
});
|
|
124
116
|
}
|
|
125
117
|
function bindSalesforcePollingTrigger(definition, options) {
|
|
126
118
|
const { schedule, limit, bindOptions } = splitPollingOptions(options);
|
|
127
119
|
return createSalesforcePollingBindingFactory({
|
|
128
|
-
|
|
120
|
+
defaultId: definition.defaultId,
|
|
129
121
|
defaultDescription: definition.defaultDescription,
|
|
130
122
|
objectName: definition.objectName,
|
|
131
123
|
defaultFields: definition.defaultFields,
|
|
@@ -139,7 +131,7 @@ function bindSalesforcePollingTrigger(definition, options) {
|
|
|
139
131
|
})(bindOptions);
|
|
140
132
|
}
|
|
141
133
|
const accountCreatedOrUpdatedDefinition = {
|
|
142
|
-
|
|
134
|
+
defaultId: "salesforce.account-created-or-updated",
|
|
143
135
|
defaultDescription: "Poll Salesforce accounts created or updated since the last trigger run",
|
|
144
136
|
objectName: "Account",
|
|
145
137
|
defaultFields: [
|
|
@@ -153,7 +145,7 @@ const accountCreatedOrUpdatedDefinition = {
|
|
|
153
145
|
eventType: "account.created_or_updated"
|
|
154
146
|
};
|
|
155
147
|
const contactUpdatedDefinition = {
|
|
156
|
-
|
|
148
|
+
defaultId: "salesforce.contact-updated",
|
|
157
149
|
defaultDescription: "Poll Salesforce contacts updated since the last trigger run",
|
|
158
150
|
objectName: "Contact",
|
|
159
151
|
defaultFields: [
|
|
@@ -167,7 +159,7 @@ const contactUpdatedDefinition = {
|
|
|
167
159
|
eventType: "contact.updated"
|
|
168
160
|
};
|
|
169
161
|
const newContactDefinition = {
|
|
170
|
-
|
|
162
|
+
defaultId: "salesforce.new-contact",
|
|
171
163
|
defaultDescription: "Poll new Salesforce contacts since the last trigger run",
|
|
172
164
|
objectName: "Contact",
|
|
173
165
|
defaultFields: [
|
|
@@ -181,7 +173,7 @@ const newContactDefinition = {
|
|
|
181
173
|
eventType: "contact.created"
|
|
182
174
|
};
|
|
183
175
|
const newLeadDefinition = {
|
|
184
|
-
|
|
176
|
+
defaultId: "salesforce.new-lead",
|
|
185
177
|
defaultDescription: "Poll new Salesforce leads since the last trigger run",
|
|
186
178
|
objectName: "Lead",
|
|
187
179
|
defaultFields: [
|
|
@@ -196,7 +188,7 @@ const newLeadDefinition = {
|
|
|
196
188
|
eventType: "lead.created"
|
|
197
189
|
};
|
|
198
190
|
const opportunityCreatedOrUpdatedDefinition = {
|
|
199
|
-
|
|
191
|
+
defaultId: "salesforce.opportunity-created-or-updated",
|
|
200
192
|
defaultDescription: "Poll Salesforce opportunities created or updated since the last trigger run",
|
|
201
193
|
objectName: "Opportunity",
|
|
202
194
|
defaultFields: [
|
|
@@ -211,7 +203,7 @@ const opportunityCreatedOrUpdatedDefinition = {
|
|
|
211
203
|
eventType: "opportunity.created_or_updated"
|
|
212
204
|
};
|
|
213
205
|
const taskCreatedDefinition = {
|
|
214
|
-
|
|
206
|
+
defaultId: "salesforce.task-created",
|
|
215
207
|
defaultDescription: "Poll Salesforce tasks created since the last trigger run",
|
|
216
208
|
objectName: "Task",
|
|
217
209
|
defaultFields: [
|
|
@@ -226,7 +218,7 @@ const taskCreatedDefinition = {
|
|
|
226
218
|
taskEventType: "task_created"
|
|
227
219
|
};
|
|
228
220
|
const taskCompletedDefinition = {
|
|
229
|
-
|
|
221
|
+
defaultId: "salesforce.task-completed",
|
|
230
222
|
defaultDescription: "Poll Salesforce tasks marked completed since the last trigger run",
|
|
231
223
|
objectName: "Task",
|
|
232
224
|
defaultFields: [
|
|
@@ -259,9 +251,8 @@ function splitOpportunityPollingOptions(options) {
|
|
|
259
251
|
schedule: options?.schedule,
|
|
260
252
|
limit: options?.limit,
|
|
261
253
|
bindOptions: {
|
|
262
|
-
...options?.
|
|
254
|
+
...options?.id ? { id: options.id } : {},
|
|
263
255
|
...options?.description ? { description: options.description } : {},
|
|
264
|
-
...options?.filter ? { filter: options.filter } : {},
|
|
265
256
|
...options?.transform ? { transform: options.transform } : {}
|
|
266
257
|
}
|
|
267
258
|
};
|
|
@@ -270,7 +261,7 @@ function opportunityCreatedOrUpdated(options) {
|
|
|
270
261
|
const { stages, schedule, limit, bindOptions } = splitOpportunityPollingOptions(options);
|
|
271
262
|
const stageFilter = stages ? buildInClause("StageName", stages) : void 0;
|
|
272
263
|
return createSalesforcePollingBindingFactory({
|
|
273
|
-
|
|
264
|
+
defaultId: opportunityCreatedOrUpdatedDefinition.defaultId,
|
|
274
265
|
defaultDescription: opportunityCreatedOrUpdatedDefinition.defaultDescription,
|
|
275
266
|
objectName: opportunityCreatedOrUpdatedDefinition.objectName,
|
|
276
267
|
defaultFields: opportunityCreatedOrUpdatedDefinition.defaultFields,
|
|
@@ -290,7 +281,7 @@ function taskCompleted(options) {
|
|
|
290
281
|
}
|
|
291
282
|
function sObjectRecordUpdated(config) {
|
|
292
283
|
return bindSalesforcePollingTrigger({
|
|
293
|
-
|
|
284
|
+
defaultId: config.id ?? `salesforce.${config.objectName.toLowerCase().replace(/[^a-z0-9]+/g, "-")}-updated`,
|
|
294
285
|
defaultDescription: config.description ?? `Poll ${config.objectName} records updated since the last Salesforce trigger run`,
|
|
295
286
|
objectName: config.objectName,
|
|
296
287
|
defaultFields: config.fields ?? [
|
package/dist/users.d.mts
CHANGED
|
@@ -3,7 +3,7 @@ import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
|
3
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
4
|
|
|
5
5
|
//#region src/users.d.ts
|
|
6
|
-
declare const getCurrentUserInfo: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"salesforce", z.ZodObject<{
|
|
6
|
+
declare const getCurrentUserInfo: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:salesforce", z.ZodObject<{
|
|
7
7
|
SALESFORCE_ACCESS_TOKEN: z.ZodString;
|
|
8
8
|
SALESFORCE_INSTANCE_URL: z.ZodURL;
|
|
9
9
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
package/dist/users.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createSalesforceClient } from "./client.mjs";
|
|
2
2
|
import { r as salesforceGenericObjectSchema } from "./common-BUAhHMqn.mjs";
|
|
3
|
-
import { t as salesforceOperation } from "./factory-
|
|
3
|
+
import { t as salesforceOperation } from "./factory-D7Bp3wjE.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/users.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/salesforce",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -110,29 +110,20 @@
|
|
|
110
110
|
"dist",
|
|
111
111
|
"README.md"
|
|
112
112
|
],
|
|
113
|
-
"scripts": {
|
|
114
|
-
"typecheck": "tsgo --build",
|
|
115
|
-
"build": "tsdown",
|
|
116
|
-
"lint": "biome check .",
|
|
117
|
-
"test:unit": "vitest run --passWithNoTests --project unit",
|
|
118
|
-
"test:int": "vitest run --passWithNoTests --project int",
|
|
119
|
-
"prepublishOnly": "pnpm build && pnpm test:unit",
|
|
120
|
-
"lint:fix": "biome check --write ."
|
|
121
|
-
},
|
|
122
113
|
"dependencies": {
|
|
123
114
|
"@jsforce/jsforce-node": "^3.10.14",
|
|
124
|
-
"@keystrokehq/
|
|
125
|
-
"@keystrokehq/
|
|
126
|
-
"@keystrokehq/
|
|
115
|
+
"@keystrokehq/core": "^0.0.7",
|
|
116
|
+
"@keystrokehq/credential-connection": "^0.0.3",
|
|
117
|
+
"@keystrokehq/integration-authoring": "^0.0.4",
|
|
127
118
|
"zod": "^4.3.6"
|
|
128
119
|
},
|
|
129
120
|
"devDependencies": {
|
|
130
|
-
"@types/node": "
|
|
131
|
-
"
|
|
132
|
-
"
|
|
133
|
-
"
|
|
134
|
-
"
|
|
135
|
-
"
|
|
121
|
+
"@types/node": "^22.19.11",
|
|
122
|
+
"tsdown": "^0.20.3",
|
|
123
|
+
"typescript": "^5.9.3",
|
|
124
|
+
"vitest": "^4.0.18",
|
|
125
|
+
"@keystrokehq/test-utils": "0.0.0",
|
|
126
|
+
"@keystrokehq/typescript-config": "0.0.0"
|
|
136
127
|
},
|
|
137
128
|
"keywords": [
|
|
138
129
|
"salesforce",
|
|
@@ -149,5 +140,13 @@
|
|
|
149
140
|
"publishConfig": {
|
|
150
141
|
"access": "public",
|
|
151
142
|
"registry": "https://registry.npmjs.org/"
|
|
143
|
+
},
|
|
144
|
+
"scripts": {
|
|
145
|
+
"typecheck": "tsgo --build",
|
|
146
|
+
"build": "tsdown",
|
|
147
|
+
"lint": "biome check .",
|
|
148
|
+
"test:unit": "vitest run --passWithNoTests --project unit",
|
|
149
|
+
"test:int": "vitest run --passWithNoTests --project int",
|
|
150
|
+
"lint:fix": "biome check --write ."
|
|
152
151
|
}
|
|
153
|
-
}
|
|
152
|
+
}
|