@keystrokehq/motion 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/add-custom-field-to-project.cjs +49 -0
- package/dist/actions/add-custom-field-to-project.cjs.map +1 -0
- package/dist/actions/add-custom-field-to-project.d.cts +9 -0
- package/dist/actions/add-custom-field-to-project.d.cts.map +1 -0
- package/dist/actions/add-custom-field-to-project.d.mts +9 -0
- package/dist/actions/add-custom-field-to-project.d.mts.map +1 -0
- package/dist/actions/add-custom-field-to-project.mjs +46 -0
- package/dist/actions/add-custom-field-to-project.mjs.map +1 -0
- package/dist/actions/add-custom-field-to-task.cjs +49 -0
- package/dist/actions/add-custom-field-to-task.cjs.map +1 -0
- package/dist/actions/add-custom-field-to-task.d.cts +9 -0
- package/dist/actions/add-custom-field-to-task.d.cts.map +1 -0
- package/dist/actions/add-custom-field-to-task.d.mts +9 -0
- package/dist/actions/add-custom-field-to-task.d.mts.map +1 -0
- package/dist/actions/add-custom-field-to-task.mjs +46 -0
- package/dist/actions/add-custom-field-to-task.mjs.map +1 -0
- package/dist/actions/create-comment.cjs +30 -0
- package/dist/actions/create-comment.cjs.map +1 -0
- package/dist/actions/create-comment.d.cts +9 -0
- package/dist/actions/create-comment.d.cts.map +1 -0
- package/dist/actions/create-comment.d.mts +9 -0
- package/dist/actions/create-comment.d.mts.map +1 -0
- package/dist/actions/create-comment.mjs +29 -0
- package/dist/actions/create-comment.mjs.map +1 -0
- package/dist/actions/create-custom-field.cjs +49 -0
- package/dist/actions/create-custom-field.cjs.map +1 -0
- package/dist/actions/create-custom-field.d.cts +9 -0
- package/dist/actions/create-custom-field.d.cts.map +1 -0
- package/dist/actions/create-custom-field.d.mts +9 -0
- package/dist/actions/create-custom-field.d.mts.map +1 -0
- package/dist/actions/create-custom-field.mjs +46 -0
- package/dist/actions/create-custom-field.mjs.map +1 -0
- package/dist/actions/create-project.cjs +44 -0
- package/dist/actions/create-project.cjs.map +1 -0
- package/dist/actions/create-project.d.cts +9 -0
- package/dist/actions/create-project.d.cts.map +1 -0
- package/dist/actions/create-project.d.mts +9 -0
- package/dist/actions/create-project.d.mts.map +1 -0
- package/dist/actions/create-project.mjs +41 -0
- package/dist/actions/create-project.mjs.map +1 -0
- package/dist/actions/create-recurring-task.cjs +65 -0
- package/dist/actions/create-recurring-task.cjs.map +1 -0
- package/dist/actions/create-recurring-task.d.cts +9 -0
- package/dist/actions/create-recurring-task.d.cts.map +1 -0
- package/dist/actions/create-recurring-task.d.mts +9 -0
- package/dist/actions/create-recurring-task.d.mts.map +1 -0
- package/dist/actions/create-recurring-task.mjs +64 -0
- package/dist/actions/create-recurring-task.mjs.map +1 -0
- package/dist/actions/create-task.cjs +92 -0
- package/dist/actions/create-task.cjs.map +1 -0
- package/dist/actions/create-task.d.cts +9 -0
- package/dist/actions/create-task.d.cts.map +1 -0
- package/dist/actions/create-task.d.mts +9 -0
- package/dist/actions/create-task.d.mts.map +1 -0
- package/dist/actions/create-task.mjs +91 -0
- package/dist/actions/create-task.mjs.map +1 -0
- package/dist/actions/delete-custom-field-from-project.cjs +19 -0
- package/dist/actions/delete-custom-field-from-project.cjs.map +1 -0
- package/dist/actions/delete-custom-field-from-project.d.cts +9 -0
- package/dist/actions/delete-custom-field-from-project.d.cts.map +1 -0
- package/dist/actions/delete-custom-field-from-project.d.mts +9 -0
- package/dist/actions/delete-custom-field-from-project.d.mts.map +1 -0
- package/dist/actions/delete-custom-field-from-project.mjs +16 -0
- package/dist/actions/delete-custom-field-from-project.mjs.map +1 -0
- package/dist/actions/delete-custom-field-from-task.cjs +19 -0
- package/dist/actions/delete-custom-field-from-task.cjs.map +1 -0
- package/dist/actions/delete-custom-field-from-task.d.cts +9 -0
- package/dist/actions/delete-custom-field-from-task.d.cts.map +1 -0
- package/dist/actions/delete-custom-field-from-task.d.mts +9 -0
- package/dist/actions/delete-custom-field-from-task.d.mts.map +1 -0
- package/dist/actions/delete-custom-field-from-task.mjs +16 -0
- package/dist/actions/delete-custom-field-from-task.mjs.map +1 -0
- package/dist/actions/delete-custom-field.cjs +22 -0
- package/dist/actions/delete-custom-field.cjs.map +1 -0
- package/dist/actions/delete-custom-field.d.cts +9 -0
- package/dist/actions/delete-custom-field.d.cts.map +1 -0
- package/dist/actions/delete-custom-field.d.mts +9 -0
- package/dist/actions/delete-custom-field.d.mts.map +1 -0
- package/dist/actions/delete-custom-field.mjs +19 -0
- package/dist/actions/delete-custom-field.mjs.map +1 -0
- package/dist/actions/delete-recurring-task.cjs +16 -0
- package/dist/actions/delete-recurring-task.cjs.map +1 -0
- package/dist/actions/delete-recurring-task.d.cts +9 -0
- package/dist/actions/delete-recurring-task.d.cts.map +1 -0
- package/dist/actions/delete-recurring-task.d.mts +9 -0
- package/dist/actions/delete-recurring-task.d.mts.map +1 -0
- package/dist/actions/delete-recurring-task.mjs +13 -0
- package/dist/actions/delete-recurring-task.mjs.map +1 -0
- package/dist/actions/delete-task.cjs +16 -0
- package/dist/actions/delete-task.cjs.map +1 -0
- package/dist/actions/delete-task.d.cts +9 -0
- package/dist/actions/delete-task.d.cts.map +1 -0
- package/dist/actions/delete-task.d.mts +9 -0
- package/dist/actions/delete-task.d.mts.map +1 -0
- package/dist/actions/delete-task.mjs +13 -0
- package/dist/actions/delete-task.mjs.map +1 -0
- package/dist/actions/get-my-user.cjs +20 -0
- package/dist/actions/get-my-user.cjs.map +1 -0
- package/dist/actions/get-my-user.d.cts +9 -0
- package/dist/actions/get-my-user.d.cts.map +1 -0
- package/dist/actions/get-my-user.d.mts +9 -0
- package/dist/actions/get-my-user.d.mts.map +1 -0
- package/dist/actions/get-my-user.mjs +17 -0
- package/dist/actions/get-my-user.mjs.map +1 -0
- package/dist/actions/get-project.cjs +30 -0
- package/dist/actions/get-project.cjs.map +1 -0
- package/dist/actions/get-project.d.cts +9 -0
- package/dist/actions/get-project.d.cts.map +1 -0
- package/dist/actions/get-project.d.mts +9 -0
- package/dist/actions/get-project.d.mts.map +1 -0
- package/dist/actions/get-project.mjs +29 -0
- package/dist/actions/get-project.mjs.map +1 -0
- package/dist/actions/get-task.cjs +83 -0
- package/dist/actions/get-task.cjs.map +1 -0
- package/dist/actions/get-task.d.cts +9 -0
- package/dist/actions/get-task.d.cts.map +1 -0
- package/dist/actions/get-task.d.mts +9 -0
- package/dist/actions/get-task.d.mts.map +1 -0
- package/dist/actions/get-task.mjs +82 -0
- package/dist/actions/get-task.mjs.map +1 -0
- package/dist/actions/index.cjs +55 -0
- package/dist/actions/index.d.cts +28 -0
- package/dist/actions/index.d.mts +28 -0
- package/dist/actions/index.mjs +28 -0
- package/dist/actions/list-comments.cjs +38 -0
- package/dist/actions/list-comments.cjs.map +1 -0
- package/dist/actions/list-comments.d.cts +9 -0
- package/dist/actions/list-comments.d.cts.map +1 -0
- package/dist/actions/list-comments.d.mts +9 -0
- package/dist/actions/list-comments.d.mts.map +1 -0
- package/dist/actions/list-comments.mjs +37 -0
- package/dist/actions/list-comments.mjs.map +1 -0
- package/dist/actions/list-custom-fields.cjs +27 -0
- package/dist/actions/list-custom-fields.cjs.map +1 -0
- package/dist/actions/list-custom-fields.d.cts +9 -0
- package/dist/actions/list-custom-fields.d.cts.map +1 -0
- package/dist/actions/list-custom-fields.d.mts +9 -0
- package/dist/actions/list-custom-fields.d.mts.map +1 -0
- package/dist/actions/list-custom-fields.mjs +26 -0
- package/dist/actions/list-custom-fields.mjs.map +1 -0
- package/dist/actions/list-projects.cjs +41 -0
- package/dist/actions/list-projects.cjs.map +1 -0
- package/dist/actions/list-projects.d.cts +9 -0
- package/dist/actions/list-projects.d.cts.map +1 -0
- package/dist/actions/list-projects.d.mts +9 -0
- package/dist/actions/list-projects.d.mts.map +1 -0
- package/dist/actions/list-projects.mjs +40 -0
- package/dist/actions/list-projects.mjs.map +1 -0
- package/dist/actions/list-recurring-tasks.cjs +67 -0
- package/dist/actions/list-recurring-tasks.cjs.map +1 -0
- package/dist/actions/list-recurring-tasks.d.cts +9 -0
- package/dist/actions/list-recurring-tasks.d.cts.map +1 -0
- package/dist/actions/list-recurring-tasks.d.mts +9 -0
- package/dist/actions/list-recurring-tasks.d.mts.map +1 -0
- package/dist/actions/list-recurring-tasks.mjs +66 -0
- package/dist/actions/list-recurring-tasks.mjs.map +1 -0
- package/dist/actions/list-schedules.cjs +35 -0
- package/dist/actions/list-schedules.cjs.map +1 -0
- package/dist/actions/list-schedules.d.cts +9 -0
- package/dist/actions/list-schedules.d.cts.map +1 -0
- package/dist/actions/list-schedules.d.mts +9 -0
- package/dist/actions/list-schedules.d.mts.map +1 -0
- package/dist/actions/list-schedules.mjs +34 -0
- package/dist/actions/list-schedules.mjs.map +1 -0
- package/dist/actions/list-statuses.cjs +21 -0
- package/dist/actions/list-statuses.cjs.map +1 -0
- package/dist/actions/list-statuses.d.cts +9 -0
- package/dist/actions/list-statuses.d.cts.map +1 -0
- package/dist/actions/list-statuses.d.mts +9 -0
- package/dist/actions/list-statuses.d.mts.map +1 -0
- package/dist/actions/list-statuses.mjs +20 -0
- package/dist/actions/list-statuses.mjs.map +1 -0
- package/dist/actions/list-tasks.cjs +102 -0
- package/dist/actions/list-tasks.cjs.map +1 -0
- package/dist/actions/list-tasks.d.cts +9 -0
- package/dist/actions/list-tasks.d.cts.map +1 -0
- package/dist/actions/list-tasks.d.mts +9 -0
- package/dist/actions/list-tasks.d.mts.map +1 -0
- package/dist/actions/list-tasks.mjs +101 -0
- package/dist/actions/list-tasks.mjs.map +1 -0
- package/dist/actions/list-users.cjs +32 -0
- package/dist/actions/list-users.cjs.map +1 -0
- package/dist/actions/list-users.d.cts +9 -0
- package/dist/actions/list-users.d.cts.map +1 -0
- package/dist/actions/list-users.d.mts +9 -0
- package/dist/actions/list-users.d.mts.map +1 -0
- package/dist/actions/list-users.mjs +31 -0
- package/dist/actions/list-users.mjs.map +1 -0
- package/dist/actions/list-workspaces.cjs +40 -0
- package/dist/actions/list-workspaces.cjs.map +1 -0
- package/dist/actions/list-workspaces.d.cts +9 -0
- package/dist/actions/list-workspaces.d.cts.map +1 -0
- package/dist/actions/list-workspaces.d.mts +9 -0
- package/dist/actions/list-workspaces.d.mts.map +1 -0
- package/dist/actions/list-workspaces.mjs +39 -0
- package/dist/actions/list-workspaces.mjs.map +1 -0
- package/dist/actions/move-task.cjs +87 -0
- package/dist/actions/move-task.cjs.map +1 -0
- package/dist/actions/move-task.d.cts +9 -0
- package/dist/actions/move-task.d.cts.map +1 -0
- package/dist/actions/move-task.d.mts +9 -0
- package/dist/actions/move-task.d.mts.map +1 -0
- package/dist/actions/move-task.mjs +86 -0
- package/dist/actions/move-task.mjs.map +1 -0
- package/dist/actions/unassign-task.cjs +16 -0
- package/dist/actions/unassign-task.cjs.map +1 -0
- package/dist/actions/unassign-task.d.cts +9 -0
- package/dist/actions/unassign-task.d.cts.map +1 -0
- package/dist/actions/unassign-task.d.mts +9 -0
- package/dist/actions/unassign-task.d.mts.map +1 -0
- package/dist/actions/unassign-task.mjs +13 -0
- package/dist/actions/unassign-task.mjs.map +1 -0
- package/dist/actions/update-task.cjs +107 -0
- package/dist/actions/update-task.cjs.map +1 -0
- package/dist/actions/update-task.d.cts +9 -0
- package/dist/actions/update-task.d.cts.map +1 -0
- package/dist/actions/update-task.d.mts +9 -0
- package/dist/actions/update-task.d.mts.map +1 -0
- package/dist/actions/update-task.mjs +106 -0
- package/dist/actions/update-task.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +60 -0
- package/dist/index.d.cts +30 -0
- package/dist/index.d.mts +30 -0
- package/dist/index.mjs +31 -0
- package/package.json +49 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @keystrokehq/motion
|
|
2
|
+
|
|
3
|
+
Keystroke-managed integration.
|
|
4
|
+
|
|
5
|
+
**App:** `motion`
|
|
6
|
+
**Version:** `20260615_00`
|
|
7
|
+
**Actions:** 27
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { defineAgent } from "@keystrokehq/keystroke/agent";
|
|
11
|
+
import { motionAddCustomFieldToProject } from "@keystrokehq/motion/actions";
|
|
12
|
+
|
|
13
|
+
export default defineAgent({
|
|
14
|
+
key: "motion-agent",
|
|
15
|
+
tools: [motionAddCustomFieldToProject],
|
|
16
|
+
});
|
|
17
|
+
```
|
package/dist/action.cjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const require_app = require("./app.cjs");
|
|
2
|
+
const require_execute = require("./execute.cjs");
|
|
3
|
+
require("zod");
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return require_app.motion.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await require_execute.executeMotionTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.action = action;
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["motion","executeMotionTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { motion } from \"./app\";\nimport { executeMotionTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return motion.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeMotionTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
|
package/dist/action.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { motion } from "./app.mjs";
|
|
2
|
+
import { executeMotionTool } from "./execute.mjs";
|
|
3
|
+
import "zod";
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return motion.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await executeMotionTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { action };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { motion } from \"./app\";\nimport { executeMotionTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return motion.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeMotionTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/add-custom-field-to-project.ts
|
|
4
|
+
const MotionAddCustomFieldToProjectInput = zod.z.object({
|
|
5
|
+
value: zod.z.object({
|
|
6
|
+
type: zod.z.enum([
|
|
7
|
+
"text",
|
|
8
|
+
"url",
|
|
9
|
+
"date",
|
|
10
|
+
"person",
|
|
11
|
+
"multiPerson",
|
|
12
|
+
"phone",
|
|
13
|
+
"select",
|
|
14
|
+
"multiSelect",
|
|
15
|
+
"number",
|
|
16
|
+
"email",
|
|
17
|
+
"checkbox",
|
|
18
|
+
"relatedTo"
|
|
19
|
+
]).describe("The type of custom field. Determines how the value is interpreted and displayed."),
|
|
20
|
+
value: zod.z.union([
|
|
21
|
+
zod.z.string(),
|
|
22
|
+
zod.z.number().int(),
|
|
23
|
+
zod.z.number(),
|
|
24
|
+
zod.z.boolean()
|
|
25
|
+
])
|
|
26
|
+
}).describe("The custom field value object containing the type and actual value to set."),
|
|
27
|
+
projectId: zod.z.string().describe("The unique identifier of the project to add the custom field to. Typically starts with 'pr_'."),
|
|
28
|
+
customFieldInstanceId: zod.z.string().describe("The unique identifier of the custom field instance to add. This references the workspace custom field definition. Typically starts with 'cfi_'.")
|
|
29
|
+
}).describe("Request model for adding a custom field value to a project in Motion.");
|
|
30
|
+
const MotionAddCustomFieldToProjectOutput = zod.z.object({
|
|
31
|
+
type: zod.z.string().describe("The type of custom field that was set, matching the request type."),
|
|
32
|
+
value: zod.z.union([
|
|
33
|
+
zod.z.string(),
|
|
34
|
+
zod.z.number().int(),
|
|
35
|
+
zod.z.number(),
|
|
36
|
+
zod.z.boolean()
|
|
37
|
+
])
|
|
38
|
+
}).describe("Response model returned after adding a custom field value to a project.");
|
|
39
|
+
const motionAddCustomFieldToProject = require_action.action("MOTION_ADD_CUSTOM_FIELD_TO_PROJECT", {
|
|
40
|
+
slug: "motion-add-custom-field-to-project",
|
|
41
|
+
name: "Add Custom Field to Project",
|
|
42
|
+
description: "Tool to add a custom field value to a project in Motion. Use when you need to set or update custom field data on an existing project.",
|
|
43
|
+
input: MotionAddCustomFieldToProjectInput,
|
|
44
|
+
output: MotionAddCustomFieldToProjectOutput
|
|
45
|
+
});
|
|
46
|
+
//#endregion
|
|
47
|
+
exports.motionAddCustomFieldToProject = motionAddCustomFieldToProject;
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=add-custom-field-to-project.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-custom-field-to-project.cjs","names":["z","action"],"sources":["../../src/actions/add-custom-field-to-project.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionAddCustomFieldToProjectInput: z.ZodTypeAny = z.object({\n value: z.object({\n type: z.enum([\"text\", \"url\", \"date\", \"person\", \"multiPerson\", \"phone\", \"select\", \"multiSelect\", \"number\", \"email\", \"checkbox\", \"relatedTo\"]).describe(\"The type of custom field. Determines how the value is interpreted and displayed.\"),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]),\n}).describe(\"The custom field value object containing the type and actual value to set.\"),\n projectId: z.string().describe(\"The unique identifier of the project to add the custom field to. Typically starts with 'pr_'.\"),\n customFieldInstanceId: z.string().describe(\"The unique identifier of the custom field instance to add. This references the workspace custom field definition. Typically starts with 'cfi_'.\"),\n}).describe(\"Request model for adding a custom field value to a project in Motion.\");\nexport const MotionAddCustomFieldToProjectOutput: z.ZodTypeAny = z.object({\n type: z.string().describe(\"The type of custom field that was set, matching the request type.\"),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]),\n}).describe(\"Response model returned after adding a custom field value to a project.\");\n\nexport const motionAddCustomFieldToProject = action(\"MOTION_ADD_CUSTOM_FIELD_TO_PROJECT\", {\n slug: \"motion-add-custom-field-to-project\",\n name: \"Add Custom Field to Project\",\n description: \"Tool to add a custom field value to a project in Motion. Use when you need to set or update custom field data on an existing project.\",\n input: MotionAddCustomFieldToProjectInput,\n output: MotionAddCustomFieldToProjectOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,OAAOA,IAAAA,EAAE,OAAO;EAChB,MAAMA,IAAAA,EAAE,KAAK;GAAC;GAAQ;GAAO;GAAQ;GAAU;GAAe;GAAS;GAAU;GAAe;GAAU;GAAS;GAAY;EAAW,CAAC,CAAC,CAAC,SAAS,kFAAkF;EACxO,OAAOA,IAAAA,EAAE,MAAM;GAACA,IAAAA,EAAE,OAAO;GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;GAAGA,IAAAA,EAAE,OAAO;GAAGA,IAAAA,EAAE,QAAQ;EAAC,CAAC;CACxE,CAAC,CAAC,CAAC,SAAS,4EAA4E;CACtF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F;CAC9H,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ;AAC9L,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAa,sCAAoDA,IAAAA,EAAE,OAAO;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;CAC7F,OAAOA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;EAAGA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,QAAQ;CAAC,CAAC;AACxE,CAAC,CAAC,CAAC,SAAS,yEAAyE;AAErF,MAAa,gCAAgCC,eAAAA,OAAO,sCAAsC;CACxF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/add-custom-field-to-project.d.ts
|
|
4
|
+
declare const MotionAddCustomFieldToProjectInput: z.ZodTypeAny;
|
|
5
|
+
declare const MotionAddCustomFieldToProjectOutput: z.ZodTypeAny;
|
|
6
|
+
declare const motionAddCustomFieldToProject: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { motionAddCustomFieldToProject };
|
|
9
|
+
//# sourceMappingURL=add-custom-field-to-project.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-custom-field-to-project.d.cts","names":[],"sources":["../../src/actions/add-custom-field-to-project.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAOiC;AAAA,cACvE,mCAAA,EAAqC,CAAA,CAAE,UAGkC;AAAA,cAEzE,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/add-custom-field-to-project.d.ts
|
|
4
|
+
declare const MotionAddCustomFieldToProjectInput: z.ZodTypeAny;
|
|
5
|
+
declare const MotionAddCustomFieldToProjectOutput: z.ZodTypeAny;
|
|
6
|
+
declare const motionAddCustomFieldToProject: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { motionAddCustomFieldToProject };
|
|
9
|
+
//# sourceMappingURL=add-custom-field-to-project.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-custom-field-to-project.d.mts","names":[],"sources":["../../src/actions/add-custom-field-to-project.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAOiC;AAAA,cACvE,mCAAA,EAAqC,CAAA,CAAE,UAGkC;AAAA,cAEzE,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const motionAddCustomFieldToProject = action("MOTION_ADD_CUSTOM_FIELD_TO_PROJECT", {
|
|
4
|
+
slug: "motion-add-custom-field-to-project",
|
|
5
|
+
name: "Add Custom Field to Project",
|
|
6
|
+
description: "Tool to add a custom field value to a project in Motion. Use when you need to set or update custom field data on an existing project.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
value: z.object({
|
|
9
|
+
type: z.enum([
|
|
10
|
+
"text",
|
|
11
|
+
"url",
|
|
12
|
+
"date",
|
|
13
|
+
"person",
|
|
14
|
+
"multiPerson",
|
|
15
|
+
"phone",
|
|
16
|
+
"select",
|
|
17
|
+
"multiSelect",
|
|
18
|
+
"number",
|
|
19
|
+
"email",
|
|
20
|
+
"checkbox",
|
|
21
|
+
"relatedTo"
|
|
22
|
+
]).describe("The type of custom field. Determines how the value is interpreted and displayed."),
|
|
23
|
+
value: z.union([
|
|
24
|
+
z.string(),
|
|
25
|
+
z.number().int(),
|
|
26
|
+
z.number(),
|
|
27
|
+
z.boolean()
|
|
28
|
+
])
|
|
29
|
+
}).describe("The custom field value object containing the type and actual value to set."),
|
|
30
|
+
projectId: z.string().describe("The unique identifier of the project to add the custom field to. Typically starts with 'pr_'."),
|
|
31
|
+
customFieldInstanceId: z.string().describe("The unique identifier of the custom field instance to add. This references the workspace custom field definition. Typically starts with 'cfi_'.")
|
|
32
|
+
}).describe("Request model for adding a custom field value to a project in Motion."),
|
|
33
|
+
output: z.object({
|
|
34
|
+
type: z.string().describe("The type of custom field that was set, matching the request type."),
|
|
35
|
+
value: z.union([
|
|
36
|
+
z.string(),
|
|
37
|
+
z.number().int(),
|
|
38
|
+
z.number(),
|
|
39
|
+
z.boolean()
|
|
40
|
+
])
|
|
41
|
+
}).describe("Response model returned after adding a custom field value to a project.")
|
|
42
|
+
});
|
|
43
|
+
//#endregion
|
|
44
|
+
export { motionAddCustomFieldToProject };
|
|
45
|
+
|
|
46
|
+
//# sourceMappingURL=add-custom-field-to-project.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-custom-field-to-project.mjs","names":[],"sources":["../../src/actions/add-custom-field-to-project.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionAddCustomFieldToProjectInput: z.ZodTypeAny = z.object({\n value: z.object({\n type: z.enum([\"text\", \"url\", \"date\", \"person\", \"multiPerson\", \"phone\", \"select\", \"multiSelect\", \"number\", \"email\", \"checkbox\", \"relatedTo\"]).describe(\"The type of custom field. Determines how the value is interpreted and displayed.\"),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]),\n}).describe(\"The custom field value object containing the type and actual value to set.\"),\n projectId: z.string().describe(\"The unique identifier of the project to add the custom field to. Typically starts with 'pr_'.\"),\n customFieldInstanceId: z.string().describe(\"The unique identifier of the custom field instance to add. This references the workspace custom field definition. Typically starts with 'cfi_'.\"),\n}).describe(\"Request model for adding a custom field value to a project in Motion.\");\nexport const MotionAddCustomFieldToProjectOutput: z.ZodTypeAny = z.object({\n type: z.string().describe(\"The type of custom field that was set, matching the request type.\"),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]),\n}).describe(\"Response model returned after adding a custom field value to a project.\");\n\nexport const motionAddCustomFieldToProject = action(\"MOTION_ADD_CUSTOM_FIELD_TO_PROJECT\", {\n slug: \"motion-add-custom-field-to-project\",\n name: \"Add Custom Field to Project\",\n description: \"Tool to add a custom field value to a project in Motion. Use when you need to set or update custom field data on an existing project.\",\n input: MotionAddCustomFieldToProjectInput,\n output: MotionAddCustomFieldToProjectOutput,\n});\n"],"mappings":";;AAiBA,MAAa,gCAAgC,OAAO,sCAAsC;CACxF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjB8D,EAAE,OAAO;EACvE,OAAO,EAAE,OAAO;GAChB,MAAM,EAAE,KAAK;IAAC;IAAQ;IAAO;IAAQ;IAAU;IAAe;IAAS;IAAU;IAAe;IAAU;IAAS;IAAY;GAAW,CAAC,CAAC,CAAC,SAAS,kFAAkF;GACxO,OAAO,EAAE,MAAM;IAAC,EAAE,OAAO;IAAG,EAAE,OAAO,CAAC,CAAC,IAAI;IAAG,EAAE,OAAO;IAAG,EAAE,QAAQ;GAAC,CAAC;EACxE,CAAC,CAAC,CAAC,SAAS,4EAA4E;EACtF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F;EAC9H,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ;CAC9L,CAAC,CAAC,CAAC,SAAS,uEAUH;CACP,QAV+D,EAAE,OAAO;EACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;EAC7F,OAAO,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,OAAO,CAAC,CAAC,IAAI;GAAG,EAAE,OAAO;GAAG,EAAE,QAAQ;EAAC,CAAC;CACxE,CAAC,CAAC,CAAC,SAAS,yEAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/add-custom-field-to-task.ts
|
|
4
|
+
const MotionAddCustomFieldToTaskInput = zod.z.object({
|
|
5
|
+
value: zod.z.object({
|
|
6
|
+
type: zod.z.enum([
|
|
7
|
+
"text",
|
|
8
|
+
"url",
|
|
9
|
+
"date",
|
|
10
|
+
"person",
|
|
11
|
+
"multiPerson",
|
|
12
|
+
"phone",
|
|
13
|
+
"select",
|
|
14
|
+
"multiSelect",
|
|
15
|
+
"number",
|
|
16
|
+
"email",
|
|
17
|
+
"checkbox",
|
|
18
|
+
"relatedTo"
|
|
19
|
+
]).describe("The type of custom field. Determines how the value is interpreted and displayed."),
|
|
20
|
+
value: zod.z.union([
|
|
21
|
+
zod.z.string(),
|
|
22
|
+
zod.z.number().int(),
|
|
23
|
+
zod.z.number(),
|
|
24
|
+
zod.z.boolean()
|
|
25
|
+
])
|
|
26
|
+
}).describe("The custom field value object containing the type and actual value to set."),
|
|
27
|
+
taskId: zod.z.string().describe("The unique identifier of the task to add the custom field to. Typically starts with 'tk_'."),
|
|
28
|
+
customFieldInstanceId: zod.z.string().describe("The unique identifier of the custom field instance to add. This references the workspace custom field definition. Typically starts with 'cfi_'.")
|
|
29
|
+
}).describe("Request model for adding a custom field value to a task in Motion.");
|
|
30
|
+
const MotionAddCustomFieldToTaskOutput = zod.z.object({
|
|
31
|
+
type: zod.z.string().describe("The type of custom field that was set, matching the request type."),
|
|
32
|
+
value: zod.z.union([
|
|
33
|
+
zod.z.string(),
|
|
34
|
+
zod.z.number().int(),
|
|
35
|
+
zod.z.number(),
|
|
36
|
+
zod.z.boolean()
|
|
37
|
+
])
|
|
38
|
+
}).describe("Response model returned after adding a custom field value to a task.");
|
|
39
|
+
const motionAddCustomFieldToTask = require_action.action("MOTION_ADD_CUSTOM_FIELD_TO_TASK", {
|
|
40
|
+
slug: "motion-add-custom-field-to-task",
|
|
41
|
+
name: "Add Custom Field to Task",
|
|
42
|
+
description: "Tool to add a custom field value to a task in Motion. Use when you need to set or update custom field data on an existing task.",
|
|
43
|
+
input: MotionAddCustomFieldToTaskInput,
|
|
44
|
+
output: MotionAddCustomFieldToTaskOutput
|
|
45
|
+
});
|
|
46
|
+
//#endregion
|
|
47
|
+
exports.motionAddCustomFieldToTask = motionAddCustomFieldToTask;
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=add-custom-field-to-task.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-custom-field-to-task.cjs","names":["z","action"],"sources":["../../src/actions/add-custom-field-to-task.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionAddCustomFieldToTaskInput: z.ZodTypeAny = z.object({\n value: z.object({\n type: z.enum([\"text\", \"url\", \"date\", \"person\", \"multiPerson\", \"phone\", \"select\", \"multiSelect\", \"number\", \"email\", \"checkbox\", \"relatedTo\"]).describe(\"The type of custom field. Determines how the value is interpreted and displayed.\"),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]),\n}).describe(\"The custom field value object containing the type and actual value to set.\"),\n taskId: z.string().describe(\"The unique identifier of the task to add the custom field to. Typically starts with 'tk_'.\"),\n customFieldInstanceId: z.string().describe(\"The unique identifier of the custom field instance to add. This references the workspace custom field definition. Typically starts with 'cfi_'.\"),\n}).describe(\"Request model for adding a custom field value to a task in Motion.\");\nexport const MotionAddCustomFieldToTaskOutput: z.ZodTypeAny = z.object({\n type: z.string().describe(\"The type of custom field that was set, matching the request type.\"),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]),\n}).describe(\"Response model returned after adding a custom field value to a task.\");\n\nexport const motionAddCustomFieldToTask = action(\"MOTION_ADD_CUSTOM_FIELD_TO_TASK\", {\n slug: \"motion-add-custom-field-to-task\",\n name: \"Add Custom Field to Task\",\n description: \"Tool to add a custom field value to a task in Motion. Use when you need to set or update custom field data on an existing task.\",\n input: MotionAddCustomFieldToTaskInput,\n output: MotionAddCustomFieldToTaskOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,OAAOA,IAAAA,EAAE,OAAO;EAChB,MAAMA,IAAAA,EAAE,KAAK;GAAC;GAAQ;GAAO;GAAQ;GAAU;GAAe;GAAS;GAAU;GAAe;GAAU;GAAS;GAAY;EAAW,CAAC,CAAC,CAAC,SAAS,kFAAkF;EACxO,OAAOA,IAAAA,EAAE,MAAM;GAACA,IAAAA,EAAE,OAAO;GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;GAAGA,IAAAA,EAAE,OAAO;GAAGA,IAAAA,EAAE,QAAQ;EAAC,CAAC;CACxE,CAAC,CAAC,CAAC,SAAS,4EAA4E;CACtF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F;CACxH,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ;AAC9L,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;CAC7F,OAAOA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;EAAGA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,QAAQ;CAAC,CAAC;AACxE,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAElF,MAAa,6BAA6BC,eAAAA,OAAO,mCAAmC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/add-custom-field-to-task.d.ts
|
|
4
|
+
declare const MotionAddCustomFieldToTaskInput: z.ZodTypeAny;
|
|
5
|
+
declare const MotionAddCustomFieldToTaskOutput: z.ZodTypeAny;
|
|
6
|
+
declare const motionAddCustomFieldToTask: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { motionAddCustomFieldToTask };
|
|
9
|
+
//# sourceMappingURL=add-custom-field-to-task.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-custom-field-to-task.d.cts","names":[],"sources":["../../src/actions/add-custom-field-to-task.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAOiC;AAAA,cACpE,gCAAA,EAAkC,CAAA,CAAE,UAGkC;AAAA,cAEtE,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/add-custom-field-to-task.d.ts
|
|
4
|
+
declare const MotionAddCustomFieldToTaskInput: z.ZodTypeAny;
|
|
5
|
+
declare const MotionAddCustomFieldToTaskOutput: z.ZodTypeAny;
|
|
6
|
+
declare const motionAddCustomFieldToTask: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { motionAddCustomFieldToTask };
|
|
9
|
+
//# sourceMappingURL=add-custom-field-to-task.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-custom-field-to-task.d.mts","names":[],"sources":["../../src/actions/add-custom-field-to-task.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAOiC;AAAA,cACpE,gCAAA,EAAkC,CAAA,CAAE,UAGkC;AAAA,cAEtE,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const motionAddCustomFieldToTask = action("MOTION_ADD_CUSTOM_FIELD_TO_TASK", {
|
|
4
|
+
slug: "motion-add-custom-field-to-task",
|
|
5
|
+
name: "Add Custom Field to Task",
|
|
6
|
+
description: "Tool to add a custom field value to a task in Motion. Use when you need to set or update custom field data on an existing task.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
value: z.object({
|
|
9
|
+
type: z.enum([
|
|
10
|
+
"text",
|
|
11
|
+
"url",
|
|
12
|
+
"date",
|
|
13
|
+
"person",
|
|
14
|
+
"multiPerson",
|
|
15
|
+
"phone",
|
|
16
|
+
"select",
|
|
17
|
+
"multiSelect",
|
|
18
|
+
"number",
|
|
19
|
+
"email",
|
|
20
|
+
"checkbox",
|
|
21
|
+
"relatedTo"
|
|
22
|
+
]).describe("The type of custom field. Determines how the value is interpreted and displayed."),
|
|
23
|
+
value: z.union([
|
|
24
|
+
z.string(),
|
|
25
|
+
z.number().int(),
|
|
26
|
+
z.number(),
|
|
27
|
+
z.boolean()
|
|
28
|
+
])
|
|
29
|
+
}).describe("The custom field value object containing the type and actual value to set."),
|
|
30
|
+
taskId: z.string().describe("The unique identifier of the task to add the custom field to. Typically starts with 'tk_'."),
|
|
31
|
+
customFieldInstanceId: z.string().describe("The unique identifier of the custom field instance to add. This references the workspace custom field definition. Typically starts with 'cfi_'.")
|
|
32
|
+
}).describe("Request model for adding a custom field value to a task in Motion."),
|
|
33
|
+
output: z.object({
|
|
34
|
+
type: z.string().describe("The type of custom field that was set, matching the request type."),
|
|
35
|
+
value: z.union([
|
|
36
|
+
z.string(),
|
|
37
|
+
z.number().int(),
|
|
38
|
+
z.number(),
|
|
39
|
+
z.boolean()
|
|
40
|
+
])
|
|
41
|
+
}).describe("Response model returned after adding a custom field value to a task.")
|
|
42
|
+
});
|
|
43
|
+
//#endregion
|
|
44
|
+
export { motionAddCustomFieldToTask };
|
|
45
|
+
|
|
46
|
+
//# sourceMappingURL=add-custom-field-to-task.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-custom-field-to-task.mjs","names":[],"sources":["../../src/actions/add-custom-field-to-task.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionAddCustomFieldToTaskInput: z.ZodTypeAny = z.object({\n value: z.object({\n type: z.enum([\"text\", \"url\", \"date\", \"person\", \"multiPerson\", \"phone\", \"select\", \"multiSelect\", \"number\", \"email\", \"checkbox\", \"relatedTo\"]).describe(\"The type of custom field. Determines how the value is interpreted and displayed.\"),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]),\n}).describe(\"The custom field value object containing the type and actual value to set.\"),\n taskId: z.string().describe(\"The unique identifier of the task to add the custom field to. Typically starts with 'tk_'.\"),\n customFieldInstanceId: z.string().describe(\"The unique identifier of the custom field instance to add. This references the workspace custom field definition. Typically starts with 'cfi_'.\"),\n}).describe(\"Request model for adding a custom field value to a task in Motion.\");\nexport const MotionAddCustomFieldToTaskOutput: z.ZodTypeAny = z.object({\n type: z.string().describe(\"The type of custom field that was set, matching the request type.\"),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]),\n}).describe(\"Response model returned after adding a custom field value to a task.\");\n\nexport const motionAddCustomFieldToTask = action(\"MOTION_ADD_CUSTOM_FIELD_TO_TASK\", {\n slug: \"motion-add-custom-field-to-task\",\n name: \"Add Custom Field to Task\",\n description: \"Tool to add a custom field value to a task in Motion. Use when you need to set or update custom field data on an existing task.\",\n input: MotionAddCustomFieldToTaskInput,\n output: MotionAddCustomFieldToTaskOutput,\n});\n"],"mappings":";;AAiBA,MAAa,6BAA6B,OAAO,mCAAmC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjB2D,EAAE,OAAO;EACpE,OAAO,EAAE,OAAO;GAChB,MAAM,EAAE,KAAK;IAAC;IAAQ;IAAO;IAAQ;IAAU;IAAe;IAAS;IAAU;IAAe;IAAU;IAAS;IAAY;GAAW,CAAC,CAAC,CAAC,SAAS,kFAAkF;GACxO,OAAO,EAAE,MAAM;IAAC,EAAE,OAAO;IAAG,EAAE,OAAO,CAAC,CAAC,IAAI;IAAG,EAAE,OAAO;IAAG,EAAE,QAAQ;GAAC,CAAC;EACxE,CAAC,CAAC,CAAC,SAAS,4EAA4E;EACtF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F;EACxH,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ;CAC9L,CAAC,CAAC,CAAC,SAAS,oEAUH;CACP,QAV4D,EAAE,OAAO;EACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;EAC7F,OAAO,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,OAAO,CAAC,CAAC,IAAI;GAAG,EAAE,OAAO;GAAG,EAAE,QAAQ;EAAC,CAAC;CACxE,CAAC,CAAC,CAAC,SAAS,sEAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-comment.ts
|
|
4
|
+
const MotionCreateCommentInput = zod.z.object({
|
|
5
|
+
taskId: zod.z.string().describe("The task to comment on"),
|
|
6
|
+
content: zod.z.string().describe("Github Flavored Markdown comment").optional()
|
|
7
|
+
}).describe("Request model for creating a comment on a Motion task.");
|
|
8
|
+
const MotionCreateComment_CreatorSchema = zod.z.object({
|
|
9
|
+
id: zod.z.string().describe("The ID of the creator").nullable().optional(),
|
|
10
|
+
name: zod.z.string().describe("The name of the creator").nullable().optional(),
|
|
11
|
+
email: zod.z.string().describe("The email of the creator").nullable().optional()
|
|
12
|
+
}).describe("Creator information for a comment.");
|
|
13
|
+
const MotionCreateCommentOutput = zod.z.object({
|
|
14
|
+
id: zod.z.string().describe("The ID of the created comment"),
|
|
15
|
+
taskId: zod.z.string().describe("The ID of the task the comment belongs to"),
|
|
16
|
+
content: zod.z.string().describe("The content of the comment"),
|
|
17
|
+
creator: MotionCreateComment_CreatorSchema.nullable(),
|
|
18
|
+
createdAt: zod.z.string().describe("ISO 8601 timestamp when the comment was created")
|
|
19
|
+
}).describe("Response model after creating a comment.");
|
|
20
|
+
const motionCreateComment = require_action.action("MOTION_CREATE_COMMENT", {
|
|
21
|
+
slug: "motion-create-comment",
|
|
22
|
+
name: "Create Comment",
|
|
23
|
+
description: "Tool to create a new comment on a Motion task. Use when you need to add a comment to an existing task.",
|
|
24
|
+
input: MotionCreateCommentInput,
|
|
25
|
+
output: MotionCreateCommentOutput
|
|
26
|
+
});
|
|
27
|
+
//#endregion
|
|
28
|
+
exports.motionCreateComment = motionCreateComment;
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=create-comment.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-comment.cjs","names":["z","action"],"sources":["../../src/actions/create-comment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionCreateCommentInput: z.ZodTypeAny = z.object({\n taskId: z.string().describe(\"The task to comment on\"),\n content: z.string().describe(\"Github Flavored Markdown comment\").optional(),\n}).describe(\"Request model for creating a comment on a Motion task.\");\nconst MotionCreateComment_CreatorSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The ID of the creator\").nullable().optional(),\n name: z.string().describe(\"The name of the creator\").nullable().optional(),\n email: z.string().describe(\"The email of the creator\").nullable().optional(),\n}).describe(\"Creator information for a comment.\");\nexport const MotionCreateCommentOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The ID of the created comment\"),\n taskId: z.string().describe(\"The ID of the task the comment belongs to\"),\n content: z.string().describe(\"The content of the comment\"),\n creator: MotionCreateComment_CreatorSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the comment was created\"),\n}).describe(\"Response model after creating a comment.\");\n\nexport const motionCreateComment = action(\"MOTION_CREATE_COMMENT\", {\n slug: \"motion-create-comment\",\n name: \"Create Comment\",\n description: \"Tool to create a new comment on a Motion task. Use when you need to add a comment to an existing task.\",\n input: MotionCreateCommentInput,\n output: MotionCreateCommentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACpD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AAC5E,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,oCAAkDA,IAAAA,EAAE,OAAO;CAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACvD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACvE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACzD,SAAS,kCAAkC,SAAS;CACpD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;AAClF,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAEtD,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-comment.d.ts
|
|
4
|
+
declare const MotionCreateCommentInput: z.ZodTypeAny;
|
|
5
|
+
declare const MotionCreateCommentOutput: z.ZodTypeAny;
|
|
6
|
+
declare const motionCreateComment: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { motionCreateComment };
|
|
9
|
+
//# sourceMappingURL=create-comment.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-comment.d.cts","names":[],"sources":["../../src/actions/create-comment.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAG4B;AAAA,cAMxD,yBAAA,EAA2B,CAAA,CAAE,UAMa;AAAA,cAE1C,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-comment.d.ts
|
|
4
|
+
declare const MotionCreateCommentInput: z.ZodTypeAny;
|
|
5
|
+
declare const MotionCreateCommentOutput: z.ZodTypeAny;
|
|
6
|
+
declare const motionCreateComment: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { motionCreateComment };
|
|
9
|
+
//# sourceMappingURL=create-comment.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-comment.d.mts","names":[],"sources":["../../src/actions/create-comment.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAG4B;AAAA,cAMxD,yBAAA,EAA2B,CAAA,CAAE,UAMa;AAAA,cAE1C,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/create-comment.ts
|
|
4
|
+
const MotionCreateCommentInput = z.object({
|
|
5
|
+
taskId: z.string().describe("The task to comment on"),
|
|
6
|
+
content: z.string().describe("Github Flavored Markdown comment").optional()
|
|
7
|
+
}).describe("Request model for creating a comment on a Motion task.");
|
|
8
|
+
const MotionCreateComment_CreatorSchema = z.object({
|
|
9
|
+
id: z.string().describe("The ID of the creator").nullable().optional(),
|
|
10
|
+
name: z.string().describe("The name of the creator").nullable().optional(),
|
|
11
|
+
email: z.string().describe("The email of the creator").nullable().optional()
|
|
12
|
+
}).describe("Creator information for a comment.");
|
|
13
|
+
const motionCreateComment = action("MOTION_CREATE_COMMENT", {
|
|
14
|
+
slug: "motion-create-comment",
|
|
15
|
+
name: "Create Comment",
|
|
16
|
+
description: "Tool to create a new comment on a Motion task. Use when you need to add a comment to an existing task.",
|
|
17
|
+
input: MotionCreateCommentInput,
|
|
18
|
+
output: z.object({
|
|
19
|
+
id: z.string().describe("The ID of the created comment"),
|
|
20
|
+
taskId: z.string().describe("The ID of the task the comment belongs to"),
|
|
21
|
+
content: z.string().describe("The content of the comment"),
|
|
22
|
+
creator: MotionCreateComment_CreatorSchema.nullable(),
|
|
23
|
+
createdAt: z.string().describe("ISO 8601 timestamp when the comment was created")
|
|
24
|
+
}).describe("Response model after creating a comment.")
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
export { motionCreateComment };
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=create-comment.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-comment.mjs","names":[],"sources":["../../src/actions/create-comment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionCreateCommentInput: z.ZodTypeAny = z.object({\n taskId: z.string().describe(\"The task to comment on\"),\n content: z.string().describe(\"Github Flavored Markdown comment\").optional(),\n}).describe(\"Request model for creating a comment on a Motion task.\");\nconst MotionCreateComment_CreatorSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The ID of the creator\").nullable().optional(),\n name: z.string().describe(\"The name of the creator\").nullable().optional(),\n email: z.string().describe(\"The email of the creator\").nullable().optional(),\n}).describe(\"Creator information for a comment.\");\nexport const MotionCreateCommentOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The ID of the created comment\"),\n taskId: z.string().describe(\"The ID of the task the comment belongs to\"),\n content: z.string().describe(\"The content of the comment\"),\n creator: MotionCreateComment_CreatorSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the comment was created\"),\n}).describe(\"Response model after creating a comment.\");\n\nexport const motionCreateComment = action(\"MOTION_CREATE_COMMENT\", {\n slug: \"motion-create-comment\",\n name: \"Create Comment\",\n description: \"Tool to create a new comment on a Motion task. Use when you need to add a comment to an existing task.\",\n input: MotionCreateCommentInput,\n output: MotionCreateCommentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyC,EAAE,OAAO;CAC7D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACpD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AAC5E,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,oCAAkD,EAAE,OAAO;CAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAShD,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbqD,EAAE,OAAO;EAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;EACvD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;EACvE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;EACzD,SAAS,kCAAkC,SAAS;EACpD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAClF,CAAC,CAAC,CAAC,SAAS,0CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-custom-field.ts
|
|
4
|
+
const MotionCreateCustomFieldInput = zod.z.object({
|
|
5
|
+
name: zod.z.string().describe("Name of the custom field"),
|
|
6
|
+
type: zod.z.enum([
|
|
7
|
+
"text",
|
|
8
|
+
"url",
|
|
9
|
+
"date",
|
|
10
|
+
"person",
|
|
11
|
+
"multiPerson",
|
|
12
|
+
"phone",
|
|
13
|
+
"select",
|
|
14
|
+
"multiSelect",
|
|
15
|
+
"number",
|
|
16
|
+
"email",
|
|
17
|
+
"checkbox",
|
|
18
|
+
"relatedTo"
|
|
19
|
+
]).describe("Type of the custom field. Must be one of: text, url, date, person, multiPerson, phone, select, multiSelect, number, email, checkbox, or relatedTo"),
|
|
20
|
+
metadata: zod.z.object({
|
|
21
|
+
format: zod.z.enum([
|
|
22
|
+
"plain",
|
|
23
|
+
"formatted",
|
|
24
|
+
"percent"
|
|
25
|
+
]).describe("Format options for numeric custom fields.").optional(),
|
|
26
|
+
toggle: zod.z.boolean().describe("Toggle status for checkbox fields. Only applies to checkbox type fields").optional(),
|
|
27
|
+
options: zod.z.array(zod.z.object({
|
|
28
|
+
id: zod.z.string().describe("Unique identifier for the option"),
|
|
29
|
+
color: zod.z.string().describe("Hex color code (without alpha channel) for visual styling"),
|
|
30
|
+
value: zod.z.string().describe("Display text for user selection")
|
|
31
|
+
}).describe("Option for select and multiSelect custom fields.")).describe("List of options for select and multiSelect fields. Required for select and multiSelect types").optional()
|
|
32
|
+
}).describe("Configuration metadata for advanced custom field types.").optional(),
|
|
33
|
+
workspaceId: zod.z.string().describe("The workspace ID where the custom field will be created")
|
|
34
|
+
}).describe("Request model for creating a new custom field in a workspace.");
|
|
35
|
+
const MotionCreateCustomFieldOutput = zod.z.object({
|
|
36
|
+
id: zod.z.string().describe("The ID of the created custom field"),
|
|
37
|
+
type: zod.z.string().describe("The type of custom field that was created")
|
|
38
|
+
}).describe("Response model for creating a custom field.");
|
|
39
|
+
const motionCreateCustomField = require_action.action("MOTION_CREATE_CUSTOM_FIELD", {
|
|
40
|
+
slug: "motion-create-custom-field",
|
|
41
|
+
name: "Create Custom Field",
|
|
42
|
+
description: "Tool to create a new custom field in a Motion workspace. Use when you need to add custom fields like text, select options, dates, or other field types to customize your workspace. For select/multiSelect types, provide options in metadata.",
|
|
43
|
+
input: MotionCreateCustomFieldInput,
|
|
44
|
+
output: MotionCreateCustomFieldOutput
|
|
45
|
+
});
|
|
46
|
+
//#endregion
|
|
47
|
+
exports.motionCreateCustomField = motionCreateCustomField;
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=create-custom-field.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-custom-field.cjs","names":["z","action"],"sources":["../../src/actions/create-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionCreateCustomFieldInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the custom field\"),\n type: z.enum([\"text\", \"url\", \"date\", \"person\", \"multiPerson\", \"phone\", \"select\", \"multiSelect\", \"number\", \"email\", \"checkbox\", \"relatedTo\"]).describe(\"Type of the custom field. Must be one of: text, url, date, person, multiPerson, phone, select, multiSelect, number, email, checkbox, or relatedTo\"),\n metadata: z.object({\n format: z.enum([\"plain\", \"formatted\", \"percent\"]).describe(\"Format options for numeric custom fields.\").optional(),\n toggle: z.boolean().describe(\"Toggle status for checkbox fields. Only applies to checkbox type fields\").optional(),\n options: z.array(z.object({\n id: z.string().describe(\"Unique identifier for the option\"),\n color: z.string().describe(\"Hex color code (without alpha channel) for visual styling\"),\n value: z.string().describe(\"Display text for user selection\"),\n}).describe(\"Option for select and multiSelect custom fields.\")).describe(\"List of options for select and multiSelect fields. Required for select and multiSelect types\").optional(),\n}).describe(\"Configuration metadata for advanced custom field types.\").optional(),\n workspaceId: z.string().describe(\"The workspace ID where the custom field will be created\"),\n}).describe(\"Request model for creating a new custom field in a workspace.\");\nexport const MotionCreateCustomFieldOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The ID of the created custom field\"),\n type: z.string().describe(\"The type of custom field that was created\"),\n}).describe(\"Response model for creating a custom field.\");\n\nexport const motionCreateCustomField = action(\"MOTION_CREATE_CUSTOM_FIELD\", {\n slug: \"motion-create-custom-field\",\n name: \"Create Custom Field\",\n description: \"Tool to create a new custom field in a Motion workspace. Use when you need to add custom fields like text, select options, dates, or other field types to customize your workspace. For select/multiSelect types, provide options in metadata.\",\n input: MotionCreateCustomFieldInput,\n output: MotionCreateCustomFieldOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACpD,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAO;EAAQ;EAAU;EAAe;EAAS;EAAU;EAAe;EAAU;EAAS;EAAY;CAAW,CAAC,CAAC,CAAC,SAAS,mJAAmJ;CACzS,UAAUA,IAAAA,EAAE,OAAO;EACnB,QAAQA,IAAAA,EAAE,KAAK;GAAC;GAAS;GAAa;EAAS,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACjH,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;EACjH,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;GAC1B,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;GAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;GACtF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;EAC9D,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;CACnL,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC9E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;AAC5F,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;AACvE,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAEzD,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-custom-field.d.ts
|
|
4
|
+
declare const MotionCreateCustomFieldInput: z.ZodTypeAny;
|
|
5
|
+
declare const MotionCreateCustomFieldOutput: z.ZodTypeAny;
|
|
6
|
+
declare const motionCreateCustomField: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { motionCreateCustomField };
|
|
9
|
+
//# sourceMappingURL=create-custom-field.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-custom-field.d.cts","names":[],"sources":["../../src/actions/create-custom-field.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAa+B;AAAA,cAC/D,6BAAA,EAA+B,CAAA,CAAE,UAGY;AAAA,cAE7C,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-custom-field.d.ts
|
|
4
|
+
declare const MotionCreateCustomFieldInput: z.ZodTypeAny;
|
|
5
|
+
declare const MotionCreateCustomFieldOutput: z.ZodTypeAny;
|
|
6
|
+
declare const motionCreateCustomField: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { motionCreateCustomField };
|
|
9
|
+
//# sourceMappingURL=create-custom-field.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-custom-field.d.mts","names":[],"sources":["../../src/actions/create-custom-field.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAa+B;AAAA,cAC/D,6BAAA,EAA+B,CAAA,CAAE,UAGY;AAAA,cAE7C,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const motionCreateCustomField = action("MOTION_CREATE_CUSTOM_FIELD", {
|
|
4
|
+
slug: "motion-create-custom-field",
|
|
5
|
+
name: "Create Custom Field",
|
|
6
|
+
description: "Tool to create a new custom field in a Motion workspace. Use when you need to add custom fields like text, select options, dates, or other field types to customize your workspace. For select/multiSelect types, provide options in metadata.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
name: z.string().describe("Name of the custom field"),
|
|
9
|
+
type: z.enum([
|
|
10
|
+
"text",
|
|
11
|
+
"url",
|
|
12
|
+
"date",
|
|
13
|
+
"person",
|
|
14
|
+
"multiPerson",
|
|
15
|
+
"phone",
|
|
16
|
+
"select",
|
|
17
|
+
"multiSelect",
|
|
18
|
+
"number",
|
|
19
|
+
"email",
|
|
20
|
+
"checkbox",
|
|
21
|
+
"relatedTo"
|
|
22
|
+
]).describe("Type of the custom field. Must be one of: text, url, date, person, multiPerson, phone, select, multiSelect, number, email, checkbox, or relatedTo"),
|
|
23
|
+
metadata: z.object({
|
|
24
|
+
format: z.enum([
|
|
25
|
+
"plain",
|
|
26
|
+
"formatted",
|
|
27
|
+
"percent"
|
|
28
|
+
]).describe("Format options for numeric custom fields.").optional(),
|
|
29
|
+
toggle: z.boolean().describe("Toggle status for checkbox fields. Only applies to checkbox type fields").optional(),
|
|
30
|
+
options: z.array(z.object({
|
|
31
|
+
id: z.string().describe("Unique identifier for the option"),
|
|
32
|
+
color: z.string().describe("Hex color code (without alpha channel) for visual styling"),
|
|
33
|
+
value: z.string().describe("Display text for user selection")
|
|
34
|
+
}).describe("Option for select and multiSelect custom fields.")).describe("List of options for select and multiSelect fields. Required for select and multiSelect types").optional()
|
|
35
|
+
}).describe("Configuration metadata for advanced custom field types.").optional(),
|
|
36
|
+
workspaceId: z.string().describe("The workspace ID where the custom field will be created")
|
|
37
|
+
}).describe("Request model for creating a new custom field in a workspace."),
|
|
38
|
+
output: z.object({
|
|
39
|
+
id: z.string().describe("The ID of the created custom field"),
|
|
40
|
+
type: z.string().describe("The type of custom field that was created")
|
|
41
|
+
}).describe("Response model for creating a custom field.")
|
|
42
|
+
});
|
|
43
|
+
//#endregion
|
|
44
|
+
export { motionCreateCustomField };
|
|
45
|
+
|
|
46
|
+
//# sourceMappingURL=create-custom-field.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-custom-field.mjs","names":[],"sources":["../../src/actions/create-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionCreateCustomFieldInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the custom field\"),\n type: z.enum([\"text\", \"url\", \"date\", \"person\", \"multiPerson\", \"phone\", \"select\", \"multiSelect\", \"number\", \"email\", \"checkbox\", \"relatedTo\"]).describe(\"Type of the custom field. Must be one of: text, url, date, person, multiPerson, phone, select, multiSelect, number, email, checkbox, or relatedTo\"),\n metadata: z.object({\n format: z.enum([\"plain\", \"formatted\", \"percent\"]).describe(\"Format options for numeric custom fields.\").optional(),\n toggle: z.boolean().describe(\"Toggle status for checkbox fields. Only applies to checkbox type fields\").optional(),\n options: z.array(z.object({\n id: z.string().describe(\"Unique identifier for the option\"),\n color: z.string().describe(\"Hex color code (without alpha channel) for visual styling\"),\n value: z.string().describe(\"Display text for user selection\"),\n}).describe(\"Option for select and multiSelect custom fields.\")).describe(\"List of options for select and multiSelect fields. Required for select and multiSelect types\").optional(),\n}).describe(\"Configuration metadata for advanced custom field types.\").optional(),\n workspaceId: z.string().describe(\"The workspace ID where the custom field will be created\"),\n}).describe(\"Request model for creating a new custom field in a workspace.\");\nexport const MotionCreateCustomFieldOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The ID of the created custom field\"),\n type: z.string().describe(\"The type of custom field that was created\"),\n}).describe(\"Response model for creating a custom field.\");\n\nexport const motionCreateCustomField = action(\"MOTION_CREATE_CUSTOM_FIELD\", {\n slug: \"motion-create-custom-field\",\n name: \"Create Custom Field\",\n description: \"Tool to create a new custom field in a Motion workspace. Use when you need to add custom fields like text, select options, dates, or other field types to customize your workspace. For select/multiSelect types, provide options in metadata.\",\n input: MotionCreateCustomFieldInput,\n output: MotionCreateCustomFieldOutput,\n});\n"],"mappings":";;AAuBA,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvBwD,EAAE,OAAO;EACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;EACpD,MAAM,EAAE,KAAK;GAAC;GAAQ;GAAO;GAAQ;GAAU;GAAe;GAAS;GAAU;GAAe;GAAU;GAAS;GAAY;EAAW,CAAC,CAAC,CAAC,SAAS,mJAAmJ;EACzS,UAAU,EAAE,OAAO;GACnB,QAAQ,EAAE,KAAK;IAAC;IAAS;IAAa;GAAS,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;GACjH,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;GACjH,SAAS,EAAE,MAAM,EAAE,OAAO;IAC1B,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;IAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;IACtF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;GAC9D,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;EACnL,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EAC9E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CAC5F,CAAC,CAAC,CAAC,SAAS,+DAUH;CACP,QAVyD,EAAE,OAAO;EAClE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACvE,CAAC,CAAC,CAAC,SAAS,6CAOF;AACV,CAAC"}
|