@zapier/zapier-sdk 0.70.0 → 0.70.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 +6 -0
- package/README.md +11 -0
- package/dist/experimental.cjs +36 -17
- package/dist/experimental.d.mts +12 -12
- package/dist/experimental.d.ts +10 -10
- package/dist/experimental.mjs +36 -17
- package/dist/{index-C0bQ5snd.d.mts → index-DjLMJ3w8.d.mts} +3 -3
- package/dist/{index-C0bQ5snd.d.ts → index-DjLMJ3w8.d.ts} +3 -3
- package/dist/index.cjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/plugins/codeSubstrate/cancelDurableRun/index.d.ts +1 -1
- package/dist/plugins/codeSubstrate/cancelDurableRun/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/cancelDurableRun/index.js +2 -1
- package/dist/plugins/codeSubstrate/createWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/createWorkflow/index.js +2 -1
- package/dist/plugins/codeSubstrate/deleteWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/deleteWorkflow/index.js +2 -1
- package/dist/plugins/codeSubstrate/deleteWorkflow/schemas.d.ts +4 -0
- package/dist/plugins/codeSubstrate/deleteWorkflow/schemas.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/deleteWorkflow/schemas.js +7 -0
- package/dist/plugins/codeSubstrate/disableWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/disableWorkflow/index.js +2 -1
- package/dist/plugins/codeSubstrate/enableWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/enableWorkflow/index.js +2 -1
- package/dist/plugins/codeSubstrate/getDurableRun/index.d.ts +5 -5
- package/dist/plugins/codeSubstrate/getDurableRun/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/getDurableRun/index.js +2 -1
- package/dist/plugins/codeSubstrate/getDurableRun/schemas.d.ts +24 -24
- package/dist/plugins/codeSubstrate/getDurableRun/schemas.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/getDurableRun/schemas.js +4 -9
- package/dist/plugins/codeSubstrate/listDurableRuns/index.d.ts +1 -1
- package/dist/plugins/codeSubstrate/listDurableRuns/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/listDurableRuns/index.js +6 -2
- package/dist/plugins/codeSubstrate/listDurableRuns/schemas.d.ts +6 -6
- package/dist/plugins/codeSubstrate/listDurableRuns/schemas.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/listDurableRuns/schemas.js +2 -3
- package/dist/plugins/codeSubstrate/runDurable/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/runDurable/index.js +3 -2
- package/dist/plugins/codeSubstrate/updateWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/updateWorkflow/index.js +2 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { definePlugin, createPluginMethod } from "kitcore";
|
|
2
2
|
import { codeSubstrateDefaults } from "../shared";
|
|
3
|
-
import { RunDurableOptionsSchema, RunDurableResponseSchema
|
|
3
|
+
import { RunDurableOptionsSchema, RunDurableResponseSchema } from "./schemas";
|
|
4
4
|
export const runDurablePlugin = definePlugin((sdk) => createPluginMethod(sdk, {
|
|
5
5
|
...codeSubstrateDefaults,
|
|
6
6
|
name: "runDurable",
|
|
@@ -30,7 +30,8 @@ export const runDurablePlugin = definePlugin((sdk) => createPluginMethod(sdk, {
|
|
|
30
30
|
if (options.private !== undefined) {
|
|
31
31
|
body.is_private = options.private;
|
|
32
32
|
}
|
|
33
|
-
const
|
|
33
|
+
const raw = await sdk.context.api.post("/sdkdurableapi/api/v0/runs", body, { authRequired: true });
|
|
34
|
+
const data = RunDurableResponseSchema.parse(raw);
|
|
34
35
|
return { data };
|
|
35
36
|
},
|
|
36
37
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/updateWorkflow/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/updateWorkflow/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkChC,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,UAAU,CACnD,OAAO,oBAAoB,CAC5B,CAAC"}
|
|
@@ -18,10 +18,11 @@ export const updateWorkflowPlugin = definePlugin((sdk) => createPluginMethod(sdk
|
|
|
18
18
|
if (options.description !== undefined) {
|
|
19
19
|
body.description = options.description;
|
|
20
20
|
}
|
|
21
|
-
const
|
|
21
|
+
const raw = await sdk.context.api.patch(`/durableworkflowzaps/api/v0/workflows/${encodeURIComponent(options.workflow)}`, body, {
|
|
22
22
|
authRequired: true,
|
|
23
23
|
resource: { type: "workflow", id: options.workflow },
|
|
24
24
|
});
|
|
25
|
+
const data = UpdateWorkflowResponseSchema.parse(raw);
|
|
25
26
|
return { data };
|
|
26
27
|
},
|
|
27
28
|
}));
|