@zapier/zapier-sdk 0.14.0 → 0.15.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/CHANGELOG.md +12 -0
- package/README.md +28 -0
- package/dist/api/client.d.ts.map +1 -1
- package/dist/api/client.js +45 -22
- package/dist/api/schemas.d.ts +3 -0
- package/dist/api/schemas.d.ts.map +1 -1
- package/dist/api/schemas.js +1 -0
- package/dist/index.cjs +181 -87
- package/dist/index.d.mts +47 -2
- package/dist/index.mjs +181 -87
- package/dist/plugins/getAuthentication/index.js +1 -1
- package/dist/plugins/getAuthentication/index.test.js +1 -1
- package/dist/plugins/getInputFieldsSchema/index.d.ts +22 -0
- package/dist/plugins/getInputFieldsSchema/index.d.ts.map +1 -0
- package/dist/plugins/getInputFieldsSchema/index.js +51 -0
- package/dist/plugins/getInputFieldsSchema/index.test.d.ts +2 -0
- package/dist/plugins/getInputFieldsSchema/index.test.d.ts.map +1 -0
- package/dist/plugins/getInputFieldsSchema/index.test.js +288 -0
- package/dist/plugins/getInputFieldsSchema/schemas.d.ts +31 -0
- package/dist/plugins/getInputFieldsSchema/schemas.d.ts.map +1 -0
- package/dist/plugins/getInputFieldsSchema/schemas.js +13 -0
- package/dist/plugins/getProfile/index.d.ts.map +1 -1
- package/dist/plugins/getProfile/index.js +1 -1
- package/dist/plugins/listActions/index.js +1 -1
- package/dist/plugins/listActions/index.test.js +1 -1
- package/dist/plugins/listApps/index.js +2 -2
- package/dist/plugins/listApps/index.test.js +1 -1
- package/dist/plugins/listAuthentications/index.js +1 -1
- package/dist/plugins/listAuthentications/index.test.js +13 -13
- package/dist/plugins/listInputFieldChoices/index.test.js +19 -19
- package/dist/plugins/listInputFields/index.d.ts.map +1 -1
- package/dist/plugins/listInputFields/index.js +2 -0
- package/dist/plugins/listInputFields/index.test.js +4 -4
- package/dist/plugins/manifest/index.js +2 -2
- package/dist/plugins/manifest/index.test.js +3 -3
- package/dist/plugins/runAction/index.js +2 -2
- package/dist/plugins/runAction/index.test.js +4 -4
- package/dist/sdk.d.ts +7 -1
- package/dist/sdk.d.ts.map +1 -1
- package/dist/sdk.js +2 -0
- package/dist/sdk.test.js +1 -1
- package/dist/services/implementations.js +2 -2
- package/dist/temporary-internal-core/index.d.ts +14 -0
- package/dist/temporary-internal-core/index.d.ts.map +1 -0
- package/dist/temporary-internal-core/index.js +14 -0
- package/dist/types/sdk.d.ts +2 -1
- package/dist/types/sdk.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -91,10 +91,10 @@ describe("listInputFieldChoices plugin", () => {
|
|
|
91
91
|
vi.clearAllMocks();
|
|
92
92
|
// Mock api.post to handle both endpoints
|
|
93
93
|
const mockPost = vi.fn().mockImplementation((path) => {
|
|
94
|
-
if (path === "/api/v4/implementations/needs/") {
|
|
94
|
+
if (path === "/zapier/api/v4/implementations/needs/") {
|
|
95
95
|
return Promise.resolve(mockNeedsResponse);
|
|
96
96
|
}
|
|
97
|
-
else if (path === "/api/v4/implementations/choices/") {
|
|
97
|
+
else if (path === "/zapier/api/v4/implementations/choices/") {
|
|
98
98
|
return Promise.resolve(mockChoicesResponse);
|
|
99
99
|
}
|
|
100
100
|
return Promise.reject(new Error(`Unexpected endpoint: ${path}`));
|
|
@@ -219,10 +219,10 @@ describe("listInputFieldChoices plugin", () => {
|
|
|
219
219
|
it("should return static choices when field has them", async () => {
|
|
220
220
|
// Mock api.post to return needs with static choices
|
|
221
221
|
const mockPost = vi.fn().mockImplementation((path) => {
|
|
222
|
-
if (path === "/api/v4/implementations/needs/") {
|
|
222
|
+
if (path === "/zapier/api/v4/implementations/needs/") {
|
|
223
223
|
return Promise.resolve(mockNeedsResponseWithStaticChoices);
|
|
224
224
|
}
|
|
225
|
-
else if (path === "/api/v4/implementations/choices/") {
|
|
225
|
+
else if (path === "/zapier/api/v4/implementations/choices/") {
|
|
226
226
|
return Promise.resolve(mockChoicesResponse);
|
|
227
227
|
}
|
|
228
228
|
return Promise.reject(new Error(`Unexpected endpoint: ${path}`));
|
|
@@ -250,22 +250,22 @@ describe("listInputFieldChoices plugin", () => {
|
|
|
250
250
|
value: "medium",
|
|
251
251
|
});
|
|
252
252
|
// Should have called needs endpoint to check for static choices
|
|
253
|
-
expect(mockApiClient.post).toHaveBeenCalledWith("/api/v4/implementations/needs/", {
|
|
253
|
+
expect(mockApiClient.post).toHaveBeenCalledWith("/zapier/api/v4/implementations/needs/", {
|
|
254
254
|
selected_api: "SlackCLIAPI@1.21.1",
|
|
255
255
|
action: "send_message",
|
|
256
256
|
type_of: "read",
|
|
257
257
|
params: {},
|
|
258
258
|
});
|
|
259
259
|
// Should not call choices endpoint since static choices were found
|
|
260
|
-
expect(mockApiClient.post).not.toHaveBeenCalledWith("/api/v4/implementations/choices/", expect.anything());
|
|
260
|
+
expect(mockApiClient.post).not.toHaveBeenCalledWith("/zapier/api/v4/implementations/choices/", expect.anything());
|
|
261
261
|
});
|
|
262
262
|
it("should fall back to dynamic choices when field has empty choices array", async () => {
|
|
263
263
|
// Mock api.post - needs endpoint returns field with empty choices
|
|
264
264
|
const mockPost = vi.fn().mockImplementation((path) => {
|
|
265
|
-
if (path === "/api/v4/implementations/needs/") {
|
|
265
|
+
if (path === "/zapier/api/v4/implementations/needs/") {
|
|
266
266
|
return Promise.resolve(mockNeedsResponse); // Has empty choices
|
|
267
267
|
}
|
|
268
|
-
else if (path === "/api/v4/implementations/choices/") {
|
|
268
|
+
else if (path === "/zapier/api/v4/implementations/choices/") {
|
|
269
269
|
return Promise.resolve(mockChoicesResponse);
|
|
270
270
|
}
|
|
271
271
|
return Promise.reject(new Error(`Unexpected endpoint: ${path}`));
|
|
@@ -279,14 +279,14 @@ describe("listInputFieldChoices plugin", () => {
|
|
|
279
279
|
inputFieldKey: "channel",
|
|
280
280
|
});
|
|
281
281
|
// Should first call needs endpoint
|
|
282
|
-
expect(mockApiClient.post).toHaveBeenCalledWith("/api/v4/implementations/needs/", {
|
|
282
|
+
expect(mockApiClient.post).toHaveBeenCalledWith("/zapier/api/v4/implementations/needs/", {
|
|
283
283
|
selected_api: "SlackCLIAPI@1.21.1",
|
|
284
284
|
action: "send_message",
|
|
285
285
|
type_of: "read",
|
|
286
286
|
params: {},
|
|
287
287
|
});
|
|
288
288
|
// Should then call choices endpoint for dynamic choices
|
|
289
|
-
expect(mockApiClient.post).toHaveBeenCalledWith("/api/v4/implementations/choices/", expect.objectContaining({
|
|
289
|
+
expect(mockApiClient.post).toHaveBeenCalledWith("/zapier/api/v4/implementations/choices/", expect.objectContaining({
|
|
290
290
|
action_id: "core:123",
|
|
291
291
|
input_field_id: "channel",
|
|
292
292
|
}));
|
|
@@ -309,10 +309,10 @@ describe("listInputFieldChoices plugin", () => {
|
|
|
309
309
|
],
|
|
310
310
|
};
|
|
311
311
|
const mockPost = vi.fn().mockImplementation((path) => {
|
|
312
|
-
if (path === "/api/v4/implementations/needs/") {
|
|
312
|
+
if (path === "/zapier/api/v4/implementations/needs/") {
|
|
313
313
|
return Promise.resolve(mockNeedsWithOtherField);
|
|
314
314
|
}
|
|
315
|
-
else if (path === "/api/v4/implementations/choices/") {
|
|
315
|
+
else if (path === "/zapier/api/v4/implementations/choices/") {
|
|
316
316
|
return Promise.resolve(mockChoicesResponse);
|
|
317
317
|
}
|
|
318
318
|
return Promise.reject(new Error(`Unexpected endpoint: ${path}`));
|
|
@@ -326,9 +326,9 @@ describe("listInputFieldChoices plugin", () => {
|
|
|
326
326
|
inputFieldKey: "channel",
|
|
327
327
|
});
|
|
328
328
|
// Should call needs endpoint first
|
|
329
|
-
expect(mockApiClient.post).toHaveBeenCalledWith("/api/v4/implementations/needs/", expect.anything());
|
|
329
|
+
expect(mockApiClient.post).toHaveBeenCalledWith("/zapier/api/v4/implementations/needs/", expect.anything());
|
|
330
330
|
// Should call choices endpoint since field was not found in needs
|
|
331
|
-
expect(mockApiClient.post).toHaveBeenCalledWith("/api/v4/implementations/choices/", expect.anything());
|
|
331
|
+
expect(mockApiClient.post).toHaveBeenCalledWith("/zapier/api/v4/implementations/choices/", expect.anything());
|
|
332
332
|
});
|
|
333
333
|
});
|
|
334
334
|
describe("API integration - action method", () => {
|
|
@@ -345,7 +345,7 @@ describe("listInputFieldChoices plugin", () => {
|
|
|
345
345
|
actionType: "read",
|
|
346
346
|
actionKey: "send_message",
|
|
347
347
|
});
|
|
348
|
-
expect(mockApiClient.post).toHaveBeenCalledWith("/api/v4/implementations/choices/", {
|
|
348
|
+
expect(mockApiClient.post).toHaveBeenCalledWith("/zapier/api/v4/implementations/choices/", {
|
|
349
349
|
action_id: "core:123",
|
|
350
350
|
input_field_id: "channel",
|
|
351
351
|
page: 0,
|
|
@@ -361,7 +361,7 @@ describe("listInputFieldChoices plugin", () => {
|
|
|
361
361
|
inputFieldKey: "channel",
|
|
362
362
|
authenticationId: 456,
|
|
363
363
|
});
|
|
364
|
-
expect(mockApiClient.post).toHaveBeenCalledWith("/api/v4/implementations/choices/", {
|
|
364
|
+
expect(mockApiClient.post).toHaveBeenCalledWith("/zapier/api/v4/implementations/choices/", {
|
|
365
365
|
action_id: "core:123",
|
|
366
366
|
input_field_id: "channel",
|
|
367
367
|
authentication_id: 456,
|
|
@@ -378,7 +378,7 @@ describe("listInputFieldChoices plugin", () => {
|
|
|
378
378
|
inputFieldKey: "channel",
|
|
379
379
|
authenticationId: null,
|
|
380
380
|
});
|
|
381
|
-
expect(mockApiClient.post).toHaveBeenCalledWith("/api/v4/implementations/choices/", {
|
|
381
|
+
expect(mockApiClient.post).toHaveBeenCalledWith("/zapier/api/v4/implementations/choices/", {
|
|
382
382
|
action_id: "core:123",
|
|
383
383
|
input_field_id: "channel",
|
|
384
384
|
page: 0,
|
|
@@ -396,7 +396,7 @@ describe("listInputFieldChoices plugin", () => {
|
|
|
396
396
|
inputFieldKey: "channel",
|
|
397
397
|
inputs,
|
|
398
398
|
});
|
|
399
|
-
expect(mockApiClient.post).toHaveBeenCalledWith("/api/v4/implementations/choices/", {
|
|
399
|
+
expect(mockApiClient.post).toHaveBeenCalledWith("/zapier/api/v4/implementations/choices/", {
|
|
400
400
|
action_id: "core:123",
|
|
401
401
|
input_field_id: "channel",
|
|
402
402
|
page: 0,
|
|
@@ -412,7 +412,7 @@ describe("listInputFieldChoices plugin", () => {
|
|
|
412
412
|
inputFieldKey: "channel",
|
|
413
413
|
page: 2,
|
|
414
414
|
});
|
|
415
|
-
expect(mockApiClient.post).toHaveBeenCalledWith("/api/v4/implementations/choices/", {
|
|
415
|
+
expect(mockApiClient.post).toHaveBeenCalledWith("/zapier/api/v4/implementations/choices/", {
|
|
416
416
|
action_id: "core:123",
|
|
417
417
|
input_field_id: "channel",
|
|
418
418
|
page: 2,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/listInputFields/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EACb,YAAY,EACZ,aAAa,EACd,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,qBAAqB,EACrB,KAAK,sBAAsB,EAE5B,MAAM,WAAW,CAAC;AAGnB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AACtD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AAoKxE,MAAM,WAAW,6BAA6B;IAC5C,eAAe,EAAE,CAAC,OAAO,CAAC,EAAE,sBAAsB,KAAK,OAAO,CAAC;QAC7D,IAAI,EAAE,aAAa,EAAE,CAAC;QACtB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC,GACA,aAAa,CAAC;QAAE,IAAI,EAAE,aAAa,EAAE,CAAC;QAAC,UAAU,CAAC,E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E,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,GAAG;QAC9D,KAAK,IAAI,aAAa,CAAC,cAAc,GAAG,aAAa,GAAG,YAAY,CAAC,CAAC;KACvE,CAAC;IACJ,OAAO,EAAE;QACP,IAAI,EAAE;YACJ,eAAe,EAAE;gBACf,WAAW,EAAE,OAAO,qBAAqB,CAAC;aAC3C,CAAC;SACH,CAAC;KACH,CAAC;CACH;AAED,eAAO,MAAM,qBAAqB,EAAE,MAAM,CACxC,UAAU,CAAC,oBAAoB,GAAG,uBAAuB,CAAC,EAAE,uCAAuC;AACnG;IACE,GAAG,EAAE,SAAS,CAAC;IACf,4BAA4B,EAAE,4BAA4B,CAAC;CAC5D,EAAE,2DAA2D;AAC9D,6BAA6B,CAgF9B,CAAC"}
|
|
@@ -154,6 +154,8 @@ export const listInputFieldsPlugin = ({ sdk, context }) => {
|
|
|
154
154
|
if (!selectedApi) {
|
|
155
155
|
throw new ZapierConfigurationError("No current_implementation_id found for app", { configType: "current_implementation_id" });
|
|
156
156
|
}
|
|
157
|
+
// Need to call getAction here because it resolves both action.key AND action.id
|
|
158
|
+
// eg: `create_report` or `core:39487493`
|
|
157
159
|
const { data: action } = await sdk.getAction({
|
|
158
160
|
appKey,
|
|
159
161
|
actionType,
|
|
@@ -133,7 +133,7 @@ describe("listInputFields plugin", () => {
|
|
|
133
133
|
actionType: "write",
|
|
134
134
|
actionKey: "send_message",
|
|
135
135
|
});
|
|
136
|
-
expect(mockApiClient.post).toHaveBeenCalledWith("/api/v4/implementations/needs/", {
|
|
136
|
+
expect(mockApiClient.post).toHaveBeenCalledWith("/zapier/api/v4/implementations/needs/", {
|
|
137
137
|
selected_api: "SlackCLIAPI@1.21.1",
|
|
138
138
|
action: "send_message",
|
|
139
139
|
type_of: "write",
|
|
@@ -148,7 +148,7 @@ describe("listInputFields plugin", () => {
|
|
|
148
148
|
actionKey: "send_message",
|
|
149
149
|
authenticationId: 123,
|
|
150
150
|
});
|
|
151
|
-
expect(mockApiClient.post).toHaveBeenCalledWith("/api/v4/implementations/needs/", {
|
|
151
|
+
expect(mockApiClient.post).toHaveBeenCalledWith("/zapier/api/v4/implementations/needs/", {
|
|
152
152
|
selected_api: "SlackCLIAPI@1.21.1",
|
|
153
153
|
action: "send_message",
|
|
154
154
|
type_of: "write",
|
|
@@ -164,7 +164,7 @@ describe("listInputFields plugin", () => {
|
|
|
164
164
|
actionKey: "send_message",
|
|
165
165
|
authenticationId: null,
|
|
166
166
|
});
|
|
167
|
-
expect(mockApiClient.post).toHaveBeenCalledWith("/api/v4/implementations/needs/", {
|
|
167
|
+
expect(mockApiClient.post).toHaveBeenCalledWith("/zapier/api/v4/implementations/needs/", {
|
|
168
168
|
selected_api: "SlackCLIAPI@1.21.1",
|
|
169
169
|
action: "send_message",
|
|
170
170
|
type_of: "write",
|
|
@@ -181,7 +181,7 @@ describe("listInputFields plugin", () => {
|
|
|
181
181
|
actionKey: "send_message",
|
|
182
182
|
inputs,
|
|
183
183
|
});
|
|
184
|
-
expect(mockApiClient.post).toHaveBeenCalledWith("/api/v4/implementations/needs/", {
|
|
184
|
+
expect(mockApiClient.post).toHaveBeenCalledWith("/zapier/api/v4/implementations/needs/", {
|
|
185
185
|
selected_api: "SlackCLIAPI@1.21.1",
|
|
186
186
|
action: "send_message",
|
|
187
187
|
type_of: "write",
|
|
@@ -62,7 +62,7 @@ export async function getPreferredManifestEntryKey({ appKey, api, }) {
|
|
|
62
62
|
if (locator.implementationName) {
|
|
63
63
|
try {
|
|
64
64
|
// API call to get app metadata by implementation name using selected_apis parameter
|
|
65
|
-
const implementationsEnvelope = await api.get(`/api/v4/implementations-meta/lookup/`, {
|
|
65
|
+
const implementationsEnvelope = await api.get(`/zapier/api/v4/implementations-meta/lookup/`, {
|
|
66
66
|
searchParams: {
|
|
67
67
|
selected_apis: locator.implementationName,
|
|
68
68
|
},
|
|
@@ -88,7 +88,7 @@ async function listAppsForSlugsPage({ slugs, cursor, api, }) {
|
|
|
88
88
|
if (cursor) {
|
|
89
89
|
searchParams.offset = cursor;
|
|
90
90
|
}
|
|
91
|
-
const implementationsEnvelope = await api.get("/api/v4/implementations-meta/lookup/", {
|
|
91
|
+
const implementationsEnvelope = await api.get("/zapier/api/v4/implementations-meta/lookup/", {
|
|
92
92
|
searchParams,
|
|
93
93
|
});
|
|
94
94
|
return {
|
|
@@ -32,7 +32,7 @@ describe("manifestPlugin", () => {
|
|
|
32
32
|
vi.spyOn(console, "warn").mockImplementation(() => { });
|
|
33
33
|
mockApiClient = {
|
|
34
34
|
get: vi.fn().mockImplementation((url, options) => {
|
|
35
|
-
if (url === "/api/v4/implementations/") {
|
|
35
|
+
if (url === "/zapier/api/v4/implementations/") {
|
|
36
36
|
// Mock for manifest entries (versioned)
|
|
37
37
|
return Promise.resolve({
|
|
38
38
|
count: 1,
|
|
@@ -87,7 +87,7 @@ describe("manifestPlugin", () => {
|
|
|
87
87
|
],
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
|
-
else if (url === "/api/v4/implementations-meta/lookup/") {
|
|
90
|
+
else if (url === "/zapier/api/v4/implementations-meta/lookup/") {
|
|
91
91
|
// Mock for implementations-meta/lookup fallback
|
|
92
92
|
const searchParams = options?.searchParams || {};
|
|
93
93
|
// Check if we're looking for a nonexistent app
|
|
@@ -591,7 +591,7 @@ describe("readManifestFromFile", () => {
|
|
|
591
591
|
api: mockApi,
|
|
592
592
|
});
|
|
593
593
|
expect(result).toBe("slack");
|
|
594
|
-
expect(mockApi.get).toHaveBeenCalledWith("/api/v4/implementations-meta/lookup/", {
|
|
594
|
+
expect(mockApi.get).toHaveBeenCalledWith("/zapier/api/v4/implementations-meta/lookup/", {
|
|
595
595
|
searchParams: { selected_apis: "SlackCLIAPI" },
|
|
596
596
|
});
|
|
597
597
|
});
|
|
@@ -25,10 +25,10 @@ async function executeAction(actionOptions) {
|
|
|
25
25
|
const runRequest = {
|
|
26
26
|
data: runRequestData,
|
|
27
27
|
};
|
|
28
|
-
const runData = await api.post("/api/actions/v1/runs", runRequest);
|
|
28
|
+
const runData = await api.post("/zapier/api/actions/v1/runs", runRequest);
|
|
29
29
|
const runId = runData.data.id;
|
|
30
30
|
// Step 2: Poll GET /actions/v1/runs/{run_id} for results
|
|
31
|
-
return await api.poll(`/api/actions/v1/runs/${runId}`, {
|
|
31
|
+
return await api.poll(`/zapier/api/actions/v1/runs/${runId}`, {
|
|
32
32
|
successStatus: 200,
|
|
33
33
|
pendingStatus: 202,
|
|
34
34
|
resultExtractor: (result) => result.data,
|
|
@@ -125,7 +125,7 @@ describe("runAction plugin", () => {
|
|
|
125
125
|
inputs: { message: "Hello", channel: "#general" },
|
|
126
126
|
authenticationId: 12345,
|
|
127
127
|
});
|
|
128
|
-
expect(mockApiClient.post).toHaveBeenCalledWith("/api/actions/v1/runs", {
|
|
128
|
+
expect(mockApiClient.post).toHaveBeenCalledWith("/zapier/api/actions/v1/runs", {
|
|
129
129
|
data: {
|
|
130
130
|
selected_api: "SlackCLIAPI@1.21.1",
|
|
131
131
|
action_key: "send_message",
|
|
@@ -134,7 +134,7 @@ describe("runAction plugin", () => {
|
|
|
134
134
|
authentication_id: 12345,
|
|
135
135
|
},
|
|
136
136
|
});
|
|
137
|
-
expect(mockApiClient.poll).toHaveBeenCalledWith("/api/actions/v1/runs/run_123", {
|
|
137
|
+
expect(mockApiClient.poll).toHaveBeenCalledWith("/zapier/api/actions/v1/runs/run_123", {
|
|
138
138
|
successStatus: 200,
|
|
139
139
|
pendingStatus: 202,
|
|
140
140
|
resultExtractor: expect.any(Function),
|
|
@@ -148,7 +148,7 @@ describe("runAction plugin", () => {
|
|
|
148
148
|
actionKey: "send_message",
|
|
149
149
|
inputs: { message: "Hello" },
|
|
150
150
|
});
|
|
151
|
-
expect(mockApiClient.post).toHaveBeenCalledWith("/api/actions/v1/runs", {
|
|
151
|
+
expect(mockApiClient.post).toHaveBeenCalledWith("/zapier/api/actions/v1/runs", {
|
|
152
152
|
data: {
|
|
153
153
|
selected_api: "SlackCLIAPI@1.21.1",
|
|
154
154
|
action_key: "send_message",
|
|
@@ -168,7 +168,7 @@ describe("runAction plugin", () => {
|
|
|
168
168
|
// Simulate pagination by getting an iterator
|
|
169
169
|
const iterator = runActionResult[Symbol.asyncIterator]();
|
|
170
170
|
await iterator.next();
|
|
171
|
-
expect(mockApiClient.post).toHaveBeenCalledWith("/api/actions/v1/runs", expect.objectContaining({
|
|
171
|
+
expect(mockApiClient.post).toHaveBeenCalledWith("/zapier/api/actions/v1/runs", expect.objectContaining({
|
|
172
172
|
data: expect.objectContaining({
|
|
173
173
|
inputs: { message: "Hello" },
|
|
174
174
|
selected_api: "SlackCLIAPI@1.21.1",
|
package/dist/sdk.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare function createSdk<TCurrentSdk = {}, TCurrentContext extends {
|
|
|
13
13
|
getContext(): TCurrentContext;
|
|
14
14
|
}, TRequiresContext, TProvides>, addPluginOptions?: Record<string, unknown>): Sdk<TCurrentSdk & ExtractSdkProperties<TProvides>, TCurrentContext & NonNullable<ExtractContextProperties<TProvides>>>;
|
|
15
15
|
};
|
|
16
|
-
export declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Sdk<ExtractSdkProperties<import("./plugins/eventEmission").EventEmissionProvides> & ExtractSdkProperties<import(".").ApiPluginProvides> & ExtractSdkProperties<import(".").ManifestPluginProvides> & ExtractSdkProperties<import(".").ListAppsPluginProvides> & ExtractSdkProperties<import(".").GetAppPluginProvides> & ExtractSdkProperties<import(".").ListActionsPluginProvides> & ExtractSdkProperties<import(".").GetActionPluginProvides> & ExtractSdkProperties<import(".").ListInputFieldsPluginProvides> & ExtractSdkProperties<import("./plugins/listInputFieldChoices").ListInputFieldChoicesPluginProvides> & ExtractSdkProperties<import(".").RunActionPluginProvides> & ExtractSdkProperties<import(".").ListAuthenticationsPluginProvides> & ExtractSdkProperties<import(".").GetAuthenticationPluginProvides> & ExtractSdkProperties<import(".").FindFirstAuthenticationPluginProvides> & ExtractSdkProperties<import(".").FindUniqueAuthenticationPluginProvides> & ExtractSdkProperties<import(".").RequestPluginProvides> & ExtractSdkProperties<import(".").FetchPluginProvides> & ExtractSdkProperties<import(".").AppsPluginProvides> & ExtractSdkProperties<import(".").GetProfilePluginProvides>, {
|
|
16
|
+
export declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Sdk<ExtractSdkProperties<import("./plugins/eventEmission").EventEmissionProvides> & ExtractSdkProperties<import(".").ApiPluginProvides> & ExtractSdkProperties<import(".").ManifestPluginProvides> & ExtractSdkProperties<import(".").ListAppsPluginProvides> & ExtractSdkProperties<import(".").GetAppPluginProvides> & ExtractSdkProperties<import(".").ListActionsPluginProvides> & ExtractSdkProperties<import(".").GetActionPluginProvides> & ExtractSdkProperties<import(".").ListInputFieldsPluginProvides> & ExtractSdkProperties<import("./plugins/getInputFieldsSchema").GetInputFieldsSchemaPluginProvides> & ExtractSdkProperties<import("./plugins/listInputFieldChoices").ListInputFieldChoicesPluginProvides> & ExtractSdkProperties<import(".").RunActionPluginProvides> & ExtractSdkProperties<import(".").ListAuthenticationsPluginProvides> & ExtractSdkProperties<import(".").GetAuthenticationPluginProvides> & ExtractSdkProperties<import(".").FindFirstAuthenticationPluginProvides> & ExtractSdkProperties<import(".").FindUniqueAuthenticationPluginProvides> & ExtractSdkProperties<import(".").RequestPluginProvides> & ExtractSdkProperties<import(".").FetchPluginProvides> & ExtractSdkProperties<import(".").AppsPluginProvides> & ExtractSdkProperties<import(".").GetProfilePluginProvides>, {
|
|
17
17
|
meta: Record<string, PluginMeta>;
|
|
18
18
|
} & import(".").EventEmissionContext & {
|
|
19
19
|
api: import("./api").ApiClient;
|
|
@@ -51,6 +51,12 @@ export declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOption
|
|
|
51
51
|
inputSchema: typeof import("./plugins/listInputFields/schemas").ListInputFieldsSchema;
|
|
52
52
|
};
|
|
53
53
|
};
|
|
54
|
+
} & {
|
|
55
|
+
meta: {
|
|
56
|
+
getInputFieldsSchema: {
|
|
57
|
+
inputSchema: typeof import("./plugins/getInputFieldsSchema/schemas").GetInputFieldsSchemaSchema;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
54
60
|
} & {
|
|
55
61
|
meta: {
|
|
56
62
|
listInputFieldChoices: {
|
package/dist/sdk.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../src/sdk.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAMlD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EACV,GAAG,EACH,MAAM,EACN,wBAAwB,EACxB,oBAAoB,EACpB,cAAc,EACd,UAAU,EACX,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../src/sdk.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAMlD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EACV,GAAG,EACH,MAAM,EACN,wBAAwB,EACxB,oBAAoB,EACpB,cAAc,EACd,UAAU,EACX,MAAM,gBAAgB,CAAC;AA2BxB,MAAM,WAAW,gBAAiB,SAAQ,cAAc;CAAG;AAG3D,wBAAgB,SAAS,CACvB,WAAW,GAAG,EAAE,EAChB,eAAe,SAAS;IAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;CAAE,GAAG;IAC7D,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;CAClC,EAED,OAAO,GAAE,gBAAqB,EAC9B,UAAU,GAAE,WAA+B,EAC3C,cAAc,GAAE,eAAiD;;cAKrD,gBAAgB,EAAE,SAAS,SAAS,cAAc,UAClD,MAAM,CACZ,WAAW,GAAG;QAAE,UAAU,IAAI,eAAe,CAAA;KAAE,EAC/C,gBAAgB,EAChB,SAAS,CACV,qBACiB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACxC,GAAG,CACJ,WAAW,GAAG,oBAAoB,CAAC,SAAS,CAAC,EAC7C,eAAe,GAAG,WAAW,CAAC,wBAAwB,CAAC,SAAS,CAAC,CAAC,CACnE;EA8DJ;AAED,wBAAgB,8BAA8B,CAAC,OAAO,GAAE,gBAAqB;UApFnE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4HnC;AAED,wBAAgB,eAAe,CAAC,OAAO,GAAE,gBAAqB,GAAG,SAAS,CAMzE"}
|
package/dist/sdk.js
CHANGED
|
@@ -14,6 +14,7 @@ import { getAuthenticationPlugin } from "./plugins/getAuthentication";
|
|
|
14
14
|
import { findFirstAuthenticationPlugin } from "./plugins/findFirstAuthentication";
|
|
15
15
|
import { findUniqueAuthenticationPlugin } from "./plugins/findUniqueAuthentication";
|
|
16
16
|
import { listInputFieldsPlugin } from "./plugins/listInputFields";
|
|
17
|
+
import { getInputFieldsSchemaPlugin } from "./plugins/getInputFieldsSchema";
|
|
17
18
|
import { listInputFieldChoicesPlugin } from "./plugins/listInputFieldChoices";
|
|
18
19
|
import { requestPlugin } from "./plugins/request";
|
|
19
20
|
import { manifestPlugin } from "./plugins/manifest";
|
|
@@ -87,6 +88,7 @@ export function createZapierSdkWithoutRegistry(options = {}) {
|
|
|
87
88
|
.addPlugin(listActionsPlugin)
|
|
88
89
|
.addPlugin(getActionPlugin)
|
|
89
90
|
.addPlugin(listInputFieldsPlugin)
|
|
91
|
+
.addPlugin(getInputFieldsSchemaPlugin)
|
|
90
92
|
.addPlugin(listInputFieldChoicesPlugin)
|
|
91
93
|
// Run action
|
|
92
94
|
.addPlugin(runActionPlugin)
|
package/dist/sdk.test.js
CHANGED
|
@@ -206,7 +206,7 @@ describe("Environment Variable Support", () => {
|
|
|
206
206
|
// Verify that the request was made to the default base URL
|
|
207
207
|
expect(mockFetch).toHaveBeenCalledTimes(1);
|
|
208
208
|
const [actualUrl] = mockFetch.mock.calls[0];
|
|
209
|
-
expect(actualUrl).toMatch(/^https:\/\/zapier\.com/);
|
|
209
|
+
expect(actualUrl).toMatch(/^https:\/\/sdkapi\.zapier\.com/);
|
|
210
210
|
expect(actualUrl).toContain("/api/v4/");
|
|
211
211
|
});
|
|
212
212
|
it("should use explicit baseUrl option for SDK API requests", async () => {
|
|
@@ -37,7 +37,7 @@ export async function fetchImplementationNeeds({ api, selectedApi, action, actio
|
|
|
37
37
|
if (authenticationId !== null) {
|
|
38
38
|
request.authentication_id = authenticationId;
|
|
39
39
|
}
|
|
40
|
-
const response = await api.post("/api/v4/implementations/needs/", request);
|
|
40
|
+
const response = await api.post("/zapier/api/v4/implementations/needs/", request);
|
|
41
41
|
if (!response.success) {
|
|
42
42
|
throw new ZapierApiError(`Failed to get input fields: ${response.errors?.join(", ") || "Unknown error"}`);
|
|
43
43
|
}
|
|
@@ -71,7 +71,7 @@ export async function fetchImplementationChoices({ api, actionId, inputFieldId,
|
|
|
71
71
|
if (authenticationId !== null) {
|
|
72
72
|
request.authentication_id = authenticationId;
|
|
73
73
|
}
|
|
74
|
-
const response = await api.post("/api/v4/implementations/choices/", request);
|
|
74
|
+
const response = await api.post("/zapier/api/v4/implementations/choices/", request);
|
|
75
75
|
if (!response.success) {
|
|
76
76
|
throw new ZapierApiError(`Failed to get input field choices: ${response.errors?.join(", ") || "Unknown error"}`);
|
|
77
77
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* temporary-internal-core
|
|
3
|
+
*
|
|
4
|
+
* Temporary internal directory for SDK core API extraction.
|
|
5
|
+
* This will be extracted and moved to @sdkapi/ as @zapier/zapier-sdk-core.
|
|
6
|
+
*
|
|
7
|
+
* Purpose:
|
|
8
|
+
* - Single source of truth for SDK API schemas
|
|
9
|
+
* - Zod schemas for request/response shapes
|
|
10
|
+
* - API endpoint contracts
|
|
11
|
+
* - Lives inside zapier-sdk during extraction/migration (bundles when published)
|
|
12
|
+
* - Will be extracted to separate package
|
|
13
|
+
*/
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/temporary-internal-core/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* temporary-internal-core
|
|
4
|
+
*
|
|
5
|
+
* Temporary internal directory for SDK core API extraction.
|
|
6
|
+
* This will be extracted and moved to @sdkapi/ as @zapier/zapier-sdk-core.
|
|
7
|
+
*
|
|
8
|
+
* Purpose:
|
|
9
|
+
* - Single source of truth for SDK API schemas
|
|
10
|
+
* - Zod schemas for request/response shapes
|
|
11
|
+
* - API endpoint contracts
|
|
12
|
+
* - Lives inside zapier-sdk during extraction/migration (bundles when published)
|
|
13
|
+
* - Will be extracted to separate package
|
|
14
|
+
*/
|
package/dist/types/sdk.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ import type { GetAuthenticationPluginProvides } from "../plugins/getAuthenticati
|
|
|
41
41
|
import type { FindFirstAuthenticationPluginProvides } from "../plugins/findFirstAuthentication";
|
|
42
42
|
import type { FindUniqueAuthenticationPluginProvides } from "../plugins/findUniqueAuthentication";
|
|
43
43
|
import type { ListInputFieldsPluginProvides } from "../plugins/listInputFields";
|
|
44
|
+
import type { GetInputFieldsSchemaPluginProvides } from "../plugins/getInputFieldsSchema";
|
|
44
45
|
import type { ListInputFieldChoicesPluginProvides } from "../plugins/listInputFieldChoices";
|
|
45
46
|
import type { RequestPluginProvides } from "../plugins/request";
|
|
46
47
|
import type { GetSdkType } from "./plugin";
|
|
@@ -62,7 +63,7 @@ export interface FunctionRegistryEntry {
|
|
|
62
63
|
}
|
|
63
64
|
export interface ZapierSdkFunctions extends ListInputFieldsSdkFunction, GetAuthenticationSdkFunction, FindFirstAuthenticationSdkFunction, FindUniqueAuthenticationSdkFunction, RelayRequestSdkFunction {
|
|
64
65
|
}
|
|
65
|
-
export interface ZapierSdk extends GetSdkType<RegistryPluginProvides & FetchPluginProvides & AppsPluginProvides & ListAppsPluginProvides & ManifestPluginProvides & GetAppPluginProvides & ListActionsPluginProvides & GetActionPluginProvides & RunActionPluginProvides & ListAuthenticationsPluginProvides & GetAuthenticationPluginProvides & FindFirstAuthenticationPluginProvides & FindUniqueAuthenticationPluginProvides & ListInputFieldsPluginProvides & ListInputFieldChoicesPluginProvides & RequestPluginProvides & GetProfilePluginProvides & EventEmissionProvides & ApiPluginProvides> {
|
|
66
|
+
export interface ZapierSdk extends GetSdkType<RegistryPluginProvides & FetchPluginProvides & AppsPluginProvides & ListAppsPluginProvides & ManifestPluginProvides & GetAppPluginProvides & ListActionsPluginProvides & GetActionPluginProvides & RunActionPluginProvides & ListAuthenticationsPluginProvides & GetAuthenticationPluginProvides & FindFirstAuthenticationPluginProvides & FindUniqueAuthenticationPluginProvides & ListInputFieldsPluginProvides & GetInputFieldsSchemaPluginProvides & ListInputFieldChoicesPluginProvides & RequestPluginProvides & GetProfilePluginProvides & EventEmissionProvides & ApiPluginProvides> {
|
|
66
67
|
apps: ActionProxy & ZapierSdkApps;
|
|
67
68
|
}
|
|
68
69
|
//# sourceMappingURL=sdk.d.ts.map
|
package/dist/types/sdk.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../src/types/sdk.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,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