@keystrokehq/motion 0.1.2 → 0.1.3
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/dist/actions/add-custom-field-to-project.cjs +1 -1
- package/dist/actions/add-custom-field-to-project.cjs.map +1 -1
- package/dist/actions/add-custom-field-to-project.d.cts +4 -4
- package/dist/actions/add-custom-field-to-project.d.mts +4 -4
- package/dist/actions/add-custom-field-to-project.mjs +1 -1
- package/dist/actions/add-custom-field-to-project.mjs.map +1 -1
- package/dist/actions/add-custom-field-to-task.cjs +1 -1
- package/dist/actions/add-custom-field-to-task.cjs.map +1 -1
- package/dist/actions/add-custom-field-to-task.d.cts +4 -4
- package/dist/actions/add-custom-field-to-task.d.mts +4 -4
- package/dist/actions/add-custom-field-to-task.mjs +1 -1
- package/dist/actions/add-custom-field-to-task.mjs.map +1 -1
- package/dist/actions/create-comment.cjs +2 -2
- package/dist/actions/create-comment.cjs.map +1 -1
- package/dist/actions/create-comment.d.cts +2 -2
- package/dist/actions/create-comment.d.mts +2 -2
- package/dist/actions/create-comment.mjs +2 -2
- package/dist/actions/create-comment.mjs.map +1 -1
- package/dist/actions/create-custom-field.cjs +2 -2
- package/dist/actions/create-custom-field.cjs.map +1 -1
- package/dist/actions/create-custom-field.d.cts +6 -5
- package/dist/actions/create-custom-field.d.mts +6 -5
- package/dist/actions/create-custom-field.mjs +2 -2
- package/dist/actions/create-custom-field.mjs.map +1 -1
- package/dist/actions/create-project.cjs +3 -3
- package/dist/actions/create-project.cjs.map +1 -1
- package/dist/actions/create-project.d.cts +5 -3
- package/dist/actions/create-project.d.mts +5 -3
- package/dist/actions/create-project.mjs +3 -3
- package/dist/actions/create-project.mjs.map +1 -1
- package/dist/actions/create-recurring-task.cjs +7 -7
- package/dist/actions/create-recurring-task.cjs.map +1 -1
- package/dist/actions/create-recurring-task.d.cts +10 -10
- package/dist/actions/create-recurring-task.d.mts +10 -10
- package/dist/actions/create-recurring-task.mjs +7 -7
- package/dist/actions/create-recurring-task.mjs.map +1 -1
- package/dist/actions/create-task.cjs +8 -8
- package/dist/actions/create-task.cjs.map +1 -1
- package/dist/actions/create-task.d.cts +11 -11
- package/dist/actions/create-task.d.mts +11 -11
- package/dist/actions/create-task.mjs +8 -8
- package/dist/actions/create-task.mjs.map +1 -1
- package/dist/actions/delete-custom-field-from-project.cjs +1 -1
- package/dist/actions/delete-custom-field-from-project.cjs.map +1 -1
- package/dist/actions/delete-custom-field-from-project.d.cts +1 -1
- package/dist/actions/delete-custom-field-from-project.d.mts +1 -1
- package/dist/actions/delete-custom-field-from-project.mjs +1 -1
- package/dist/actions/delete-custom-field-from-project.mjs.map +1 -1
- package/dist/actions/delete-custom-field.cjs +1 -1
- package/dist/actions/delete-custom-field.cjs.map +1 -1
- package/dist/actions/delete-custom-field.d.cts +1 -1
- package/dist/actions/delete-custom-field.d.mts +1 -1
- package/dist/actions/delete-custom-field.mjs +1 -1
- package/dist/actions/delete-custom-field.mjs.map +1 -1
- package/dist/actions/delete-recurring-task.cjs +1 -1
- package/dist/actions/delete-recurring-task.cjs.map +1 -1
- package/dist/actions/delete-recurring-task.d.cts +1 -1
- package/dist/actions/delete-recurring-task.d.mts +1 -1
- package/dist/actions/delete-recurring-task.mjs +1 -1
- package/dist/actions/delete-recurring-task.mjs.map +1 -1
- package/dist/actions/delete-task.cjs +1 -1
- package/dist/actions/delete-task.cjs.map +1 -1
- package/dist/actions/delete-task.d.cts +1 -1
- package/dist/actions/delete-task.d.mts +1 -1
- package/dist/actions/delete-task.mjs +1 -1
- package/dist/actions/delete-task.mjs.map +1 -1
- package/dist/actions/get-my-user.cjs +1 -1
- package/dist/actions/get-my-user.cjs.map +1 -1
- package/dist/actions/get-my-user.d.cts +1 -1
- package/dist/actions/get-my-user.d.mts +1 -1
- package/dist/actions/get-my-user.mjs +1 -1
- package/dist/actions/get-my-user.mjs.map +1 -1
- package/dist/actions/get-project.cjs +3 -3
- package/dist/actions/get-project.cjs.map +1 -1
- package/dist/actions/get-project.d.cts +3 -3
- package/dist/actions/get-project.d.mts +3 -3
- package/dist/actions/get-project.mjs +3 -3
- package/dist/actions/get-project.mjs.map +1 -1
- package/dist/actions/get-task.cjs +9 -9
- package/dist/actions/get-task.cjs.map +1 -1
- package/dist/actions/get-task.d.cts +12 -12
- package/dist/actions/get-task.d.mts +12 -12
- package/dist/actions/get-task.mjs +9 -9
- package/dist/actions/get-task.mjs.map +1 -1
- package/dist/actions/list-comments.cjs +4 -4
- package/dist/actions/list-comments.cjs.map +1 -1
- package/dist/actions/list-comments.d.cts +4 -4
- package/dist/actions/list-comments.d.mts +4 -4
- package/dist/actions/list-comments.mjs +4 -4
- package/dist/actions/list-comments.mjs.map +1 -1
- package/dist/actions/list-custom-fields.cjs +4 -4
- package/dist/actions/list-custom-fields.cjs.map +1 -1
- package/dist/actions/list-custom-fields.d.cts +4 -4
- package/dist/actions/list-custom-fields.d.mts +4 -4
- package/dist/actions/list-custom-fields.mjs +4 -4
- package/dist/actions/list-custom-fields.mjs.map +1 -1
- package/dist/actions/list-projects.cjs +5 -5
- package/dist/actions/list-projects.cjs.map +1 -1
- package/dist/actions/list-projects.d.cts +5 -5
- package/dist/actions/list-projects.d.mts +5 -5
- package/dist/actions/list-projects.mjs +5 -5
- package/dist/actions/list-projects.mjs.map +1 -1
- package/dist/actions/list-recurring-tasks.cjs +10 -10
- package/dist/actions/list-recurring-tasks.cjs.map +1 -1
- package/dist/actions/list-recurring-tasks.d.cts +14 -14
- package/dist/actions/list-recurring-tasks.d.mts +14 -14
- package/dist/actions/list-recurring-tasks.mjs +10 -10
- package/dist/actions/list-recurring-tasks.mjs.map +1 -1
- package/dist/actions/list-schedules.cjs +4 -4
- package/dist/actions/list-schedules.cjs.map +1 -1
- package/dist/actions/list-schedules.d.cts +10 -10
- package/dist/actions/list-schedules.d.mts +10 -10
- package/dist/actions/list-schedules.mjs +4 -4
- package/dist/actions/list-schedules.mjs.map +1 -1
- package/dist/actions/list-statuses.cjs +2 -2
- package/dist/actions/list-statuses.cjs.map +1 -1
- package/dist/actions/list-statuses.d.cts +2 -2
- package/dist/actions/list-statuses.d.mts +2 -2
- package/dist/actions/list-statuses.mjs +2 -2
- package/dist/actions/list-statuses.mjs.map +1 -1
- package/dist/actions/list-tasks.cjs +13 -13
- package/dist/actions/list-tasks.cjs.map +1 -1
- package/dist/actions/list-tasks.d.cts +13 -13
- package/dist/actions/list-tasks.d.mts +13 -13
- package/dist/actions/list-tasks.mjs +13 -13
- package/dist/actions/list-tasks.mjs.map +1 -1
- package/dist/actions/list-users.cjs +3 -3
- package/dist/actions/list-users.cjs.map +1 -1
- package/dist/actions/list-users.d.cts +3 -3
- package/dist/actions/list-users.d.mts +3 -3
- package/dist/actions/list-users.mjs +3 -3
- package/dist/actions/list-users.mjs.map +1 -1
- package/dist/actions/list-workspaces.cjs +5 -5
- package/dist/actions/list-workspaces.cjs.map +1 -1
- package/dist/actions/list-workspaces.d.cts +5 -5
- package/dist/actions/list-workspaces.d.mts +5 -5
- package/dist/actions/list-workspaces.mjs +5 -5
- package/dist/actions/list-workspaces.mjs.map +1 -1
- package/dist/actions/move-task.cjs +9 -9
- package/dist/actions/move-task.cjs.map +1 -1
- package/dist/actions/move-task.d.cts +13 -13
- package/dist/actions/move-task.d.mts +13 -13
- package/dist/actions/move-task.mjs +9 -9
- package/dist/actions/move-task.mjs.map +1 -1
- package/dist/actions/unassign-task.cjs +1 -1
- package/dist/actions/unassign-task.cjs.map +1 -1
- package/dist/actions/unassign-task.d.cts +1 -1
- package/dist/actions/unassign-task.d.mts +1 -1
- package/dist/actions/unassign-task.mjs +1 -1
- package/dist/actions/unassign-task.mjs.map +1 -1
- package/dist/actions/update-task.cjs +8 -8
- package/dist/actions/update-task.cjs.map +1 -1
- package/dist/actions/update-task.d.cts +12 -12
- package/dist/actions/update-task.d.mts +12 -12
- package/dist/actions/update-task.mjs +8 -8
- package/dist/actions/update-task.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -35,7 +35,7 @@ const MotionAddCustomFieldToProjectOutput = zod.z.object({
|
|
|
35
35
|
zod.z.number(),
|
|
36
36
|
zod.z.boolean()
|
|
37
37
|
])
|
|
38
|
-
}).describe("Response model returned after adding a custom field value to a project.");
|
|
38
|
+
}).passthrough().describe("Response model returned after adding a custom field value to a project.");
|
|
39
39
|
const motionAddCustomFieldToProject = require_action.action("MOTION_ADD_CUSTOM_FIELD_TO_PROJECT", {
|
|
40
40
|
slug: "motion-add-custom-field-to-project",
|
|
41
41
|
name: "Add Custom Field to Project",
|
|
@@ -1 +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.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.object({\n type: z.string().describe(\"The type of custom field that was set, matching the request type.\").nullable(),\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,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,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,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CACxG,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;
|
|
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.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.object({\n type: z.string().describe(\"The type of custom field that was set, matching the request type.\").nullable(),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]),\n}).passthrough().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,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,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,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CACxG,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,YAAY,CAAC,CAAC,SAAS,yEAAyE;AAEnG,MAAa,gCAAgCC,eAAAA,OAAO,sCAAsC;CACxF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -5,15 +5,15 @@ declare const MotionAddCustomFieldToProjectInput: z.ZodObject<{
|
|
|
5
5
|
value: z.ZodObject<{
|
|
6
6
|
type: z.ZodEnum<{
|
|
7
7
|
number: "number";
|
|
8
|
-
email: "email";
|
|
9
|
-
date: "date";
|
|
10
8
|
text: "text";
|
|
11
9
|
url: "url";
|
|
10
|
+
date: "date";
|
|
12
11
|
person: "person";
|
|
13
12
|
multiPerson: "multiPerson";
|
|
14
13
|
phone: "phone";
|
|
15
14
|
select: "select";
|
|
16
15
|
multiSelect: "multiSelect";
|
|
16
|
+
email: "email";
|
|
17
17
|
checkbox: "checkbox";
|
|
18
18
|
relatedTo: "relatedTo";
|
|
19
19
|
}>;
|
|
@@ -25,10 +25,10 @@ declare const MotionAddCustomFieldToProjectInput: z.ZodObject<{
|
|
|
25
25
|
declare const MotionAddCustomFieldToProjectOutput: z.ZodObject<{
|
|
26
26
|
type: z.ZodNullable<z.ZodString>;
|
|
27
27
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>;
|
|
28
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>;
|
|
29
29
|
declare const motionAddCustomFieldToProject: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
30
30
|
value: {
|
|
31
|
-
type: "number" | "
|
|
31
|
+
type: "number" | "text" | "url" | "date" | "person" | "multiPerson" | "phone" | "select" | "multiSelect" | "email" | "checkbox" | "relatedTo";
|
|
32
32
|
value: string | number | boolean;
|
|
33
33
|
};
|
|
34
34
|
projectId: string;
|
|
@@ -5,15 +5,15 @@ declare const MotionAddCustomFieldToProjectInput: z.ZodObject<{
|
|
|
5
5
|
value: z.ZodObject<{
|
|
6
6
|
type: z.ZodEnum<{
|
|
7
7
|
number: "number";
|
|
8
|
-
email: "email";
|
|
9
|
-
date: "date";
|
|
10
8
|
text: "text";
|
|
11
9
|
url: "url";
|
|
10
|
+
date: "date";
|
|
12
11
|
person: "person";
|
|
13
12
|
multiPerson: "multiPerson";
|
|
14
13
|
phone: "phone";
|
|
15
14
|
select: "select";
|
|
16
15
|
multiSelect: "multiSelect";
|
|
16
|
+
email: "email";
|
|
17
17
|
checkbox: "checkbox";
|
|
18
18
|
relatedTo: "relatedTo";
|
|
19
19
|
}>;
|
|
@@ -25,10 +25,10 @@ declare const MotionAddCustomFieldToProjectInput: z.ZodObject<{
|
|
|
25
25
|
declare const MotionAddCustomFieldToProjectOutput: z.ZodObject<{
|
|
26
26
|
type: z.ZodNullable<z.ZodString>;
|
|
27
27
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>;
|
|
28
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>;
|
|
29
29
|
declare const motionAddCustomFieldToProject: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
30
30
|
value: {
|
|
31
|
-
type: "number" | "
|
|
31
|
+
type: "number" | "text" | "url" | "date" | "person" | "multiPerson" | "phone" | "select" | "multiSelect" | "email" | "checkbox" | "relatedTo";
|
|
32
32
|
value: string | number | boolean;
|
|
33
33
|
};
|
|
34
34
|
projectId: string;
|
|
@@ -38,7 +38,7 @@ const motionAddCustomFieldToProject = action("MOTION_ADD_CUSTOM_FIELD_TO_PROJECT
|
|
|
38
38
|
z.number(),
|
|
39
39
|
z.boolean()
|
|
40
40
|
])
|
|
41
|
-
}).describe("Response model returned after adding a custom field value to a project.")
|
|
41
|
+
}).passthrough().describe("Response model returned after adding a custom field value to a project.")
|
|
42
42
|
});
|
|
43
43
|
//#endregion
|
|
44
44
|
export { motionAddCustomFieldToProject };
|
|
@@ -1 +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.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.object({\n type: z.string().describe(\"The type of custom field that was set, matching the request type.\").nullable(),\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,OAjBgD,EAAE,OAAO;EACzD,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,QAViD,EAAE,OAAO;EAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;EACxG,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,
|
|
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.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.object({\n type: z.string().describe(\"The type of custom field that was set, matching the request type.\").nullable(),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]),\n}).passthrough().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,OAjBgD,EAAE,OAAO;EACzD,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,QAViD,EAAE,OAAO;EAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;EACxG,OAAO,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,OAAO,CAAC,CAAC,IAAI;GAAG,EAAE,OAAO;GAAG,EAAE,QAAQ;EAAC,CAAC;CACxE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yEAOhB;AACV,CAAC"}
|
|
@@ -35,7 +35,7 @@ const MotionAddCustomFieldToTaskOutput = zod.z.object({
|
|
|
35
35
|
zod.z.number(),
|
|
36
36
|
zod.z.boolean()
|
|
37
37
|
])
|
|
38
|
-
}).describe("Response model returned after adding a custom field value to a task.");
|
|
38
|
+
}).passthrough().describe("Response model returned after adding a custom field value to a task.");
|
|
39
39
|
const motionAddCustomFieldToTask = require_action.action("MOTION_ADD_CUSTOM_FIELD_TO_TASK", {
|
|
40
40
|
slug: "motion-add-custom-field-to-task",
|
|
41
41
|
name: "Add Custom Field to Task",
|
|
@@ -1 +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.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.object({\n type: z.string().describe(\"The type of custom field that was set, matching the request type.\").nullable(),\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,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,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,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CACxG,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;
|
|
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.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.object({\n type: z.string().describe(\"The type of custom field that was set, matching the request type.\").nullable(),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]),\n}).passthrough().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,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,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,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CACxG,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,YAAY,CAAC,CAAC,SAAS,sEAAsE;AAEhG,MAAa,6BAA6BC,eAAAA,OAAO,mCAAmC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -5,15 +5,15 @@ declare const MotionAddCustomFieldToTaskInput: z.ZodObject<{
|
|
|
5
5
|
value: z.ZodObject<{
|
|
6
6
|
type: z.ZodEnum<{
|
|
7
7
|
number: "number";
|
|
8
|
-
email: "email";
|
|
9
|
-
date: "date";
|
|
10
8
|
text: "text";
|
|
11
9
|
url: "url";
|
|
10
|
+
date: "date";
|
|
12
11
|
person: "person";
|
|
13
12
|
multiPerson: "multiPerson";
|
|
14
13
|
phone: "phone";
|
|
15
14
|
select: "select";
|
|
16
15
|
multiSelect: "multiSelect";
|
|
16
|
+
email: "email";
|
|
17
17
|
checkbox: "checkbox";
|
|
18
18
|
relatedTo: "relatedTo";
|
|
19
19
|
}>;
|
|
@@ -25,10 +25,10 @@ declare const MotionAddCustomFieldToTaskInput: z.ZodObject<{
|
|
|
25
25
|
declare const MotionAddCustomFieldToTaskOutput: z.ZodObject<{
|
|
26
26
|
type: z.ZodNullable<z.ZodString>;
|
|
27
27
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>;
|
|
28
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>;
|
|
29
29
|
declare const motionAddCustomFieldToTask: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
30
30
|
value: {
|
|
31
|
-
type: "number" | "
|
|
31
|
+
type: "number" | "text" | "url" | "date" | "person" | "multiPerson" | "phone" | "select" | "multiSelect" | "email" | "checkbox" | "relatedTo";
|
|
32
32
|
value: string | number | boolean;
|
|
33
33
|
};
|
|
34
34
|
taskId: string;
|
|
@@ -5,15 +5,15 @@ declare const MotionAddCustomFieldToTaskInput: z.ZodObject<{
|
|
|
5
5
|
value: z.ZodObject<{
|
|
6
6
|
type: z.ZodEnum<{
|
|
7
7
|
number: "number";
|
|
8
|
-
email: "email";
|
|
9
|
-
date: "date";
|
|
10
8
|
text: "text";
|
|
11
9
|
url: "url";
|
|
10
|
+
date: "date";
|
|
12
11
|
person: "person";
|
|
13
12
|
multiPerson: "multiPerson";
|
|
14
13
|
phone: "phone";
|
|
15
14
|
select: "select";
|
|
16
15
|
multiSelect: "multiSelect";
|
|
16
|
+
email: "email";
|
|
17
17
|
checkbox: "checkbox";
|
|
18
18
|
relatedTo: "relatedTo";
|
|
19
19
|
}>;
|
|
@@ -25,10 +25,10 @@ declare const MotionAddCustomFieldToTaskInput: z.ZodObject<{
|
|
|
25
25
|
declare const MotionAddCustomFieldToTaskOutput: z.ZodObject<{
|
|
26
26
|
type: z.ZodNullable<z.ZodString>;
|
|
27
27
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>;
|
|
28
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>;
|
|
29
29
|
declare const motionAddCustomFieldToTask: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
30
30
|
value: {
|
|
31
|
-
type: "number" | "
|
|
31
|
+
type: "number" | "text" | "url" | "date" | "person" | "multiPerson" | "phone" | "select" | "multiSelect" | "email" | "checkbox" | "relatedTo";
|
|
32
32
|
value: string | number | boolean;
|
|
33
33
|
};
|
|
34
34
|
taskId: string;
|
|
@@ -38,7 +38,7 @@ const motionAddCustomFieldToTask = action("MOTION_ADD_CUSTOM_FIELD_TO_TASK", {
|
|
|
38
38
|
z.number(),
|
|
39
39
|
z.boolean()
|
|
40
40
|
])
|
|
41
|
-
}).describe("Response model returned after adding a custom field value to a task.")
|
|
41
|
+
}).passthrough().describe("Response model returned after adding a custom field value to a task.")
|
|
42
42
|
});
|
|
43
43
|
//#endregion
|
|
44
44
|
export { motionAddCustomFieldToTask };
|
|
@@ -1 +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.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.object({\n type: z.string().describe(\"The type of custom field that was set, matching the request type.\").nullable(),\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,OAjB6C,EAAE,OAAO;EACtD,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,QAV8C,EAAE,OAAO;EACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;EACxG,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,
|
|
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.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.object({\n type: z.string().describe(\"The type of custom field that was set, matching the request type.\").nullable(),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]),\n}).passthrough().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,OAjB6C,EAAE,OAAO;EACtD,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,QAV8C,EAAE,OAAO;EACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;EACxG,OAAO,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,OAAO,CAAC,CAAC,IAAI;GAAG,EAAE,OAAO;GAAG,EAAE,QAAQ;EAAC,CAAC;CACxE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sEAOhB;AACV,CAAC"}
|
|
@@ -9,14 +9,14 @@ const MotionCreateComment_CreatorSchema = zod.z.object({
|
|
|
9
9
|
id: zod.z.string().describe("The ID of the creator").nullable().optional(),
|
|
10
10
|
name: zod.z.string().describe("The name of the creator").nullable().optional(),
|
|
11
11
|
email: zod.z.string().describe("The email of the creator").nullable().optional()
|
|
12
|
-
}).describe("Creator information for a comment.");
|
|
12
|
+
}).passthrough().describe("Creator information for a comment.");
|
|
13
13
|
const MotionCreateCommentOutput = zod.z.object({
|
|
14
14
|
id: zod.z.string().describe("The ID of the created comment").nullable(),
|
|
15
15
|
taskId: zod.z.string().describe("The ID of the task the comment belongs to").nullable(),
|
|
16
16
|
content: zod.z.string().describe("The content of the comment").nullable(),
|
|
17
17
|
creator: MotionCreateComment_CreatorSchema.nullable(),
|
|
18
18
|
createdAt: zod.z.string().describe("ISO 8601 timestamp when the comment was created").nullable()
|
|
19
|
-
}).describe("Response model after creating a comment.");
|
|
19
|
+
}).passthrough().describe("Response model after creating a comment.");
|
|
20
20
|
const motionCreateComment = require_action.action("MOTION_CREATE_COMMENT", {
|
|
21
21
|
slug: "motion-create-comment",
|
|
22
22
|
name: "Create Comment",
|
|
@@ -1 +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.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.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.object({\n id: z.string().describe(\"The ID of the created comment\").nullable(),\n taskId: z.string().describe(\"The ID of the task the comment belongs to\").nullable(),\n content: z.string().describe(\"The content of the comment\").nullable(),\n creator: MotionCreateComment_CreatorSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the comment was created\").nullable(),\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,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,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,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,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;
|
|
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.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.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}).passthrough().describe(\"Creator information for a comment.\");\nexport const MotionCreateCommentOutput = z.object({\n id: z.string().describe(\"The ID of the created comment\").nullable(),\n taskId: z.string().describe(\"The ID of the task the comment belongs to\").nullable(),\n content: z.string().describe(\"The content of the comment\").nullable(),\n creator: MotionCreateComment_CreatorSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the comment was created\").nullable(),\n}).passthrough().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,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,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,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,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,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAC9D,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAClE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACpE,SAAS,kCAAkC,SAAS;CACpD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAEpE,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -13,9 +13,9 @@ declare const MotionCreateCommentOutput: z.ZodObject<{
|
|
|
13
13
|
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
14
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
15
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
-
}, z.core.$
|
|
16
|
+
}, z.core.$loose>>;
|
|
17
17
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>;
|
|
19
19
|
declare const motionCreateComment: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
20
|
taskId: string;
|
|
21
21
|
content?: string | undefined;
|
|
@@ -13,9 +13,9 @@ declare const MotionCreateCommentOutput: z.ZodObject<{
|
|
|
13
13
|
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
14
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
15
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
-
}, z.core.$
|
|
16
|
+
}, z.core.$loose>>;
|
|
17
17
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>;
|
|
19
19
|
declare const motionCreateComment: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
20
|
taskId: string;
|
|
21
21
|
content?: string | undefined;
|
|
@@ -9,7 +9,7 @@ const MotionCreateComment_CreatorSchema = z.object({
|
|
|
9
9
|
id: z.string().describe("The ID of the creator").nullable().optional(),
|
|
10
10
|
name: z.string().describe("The name of the creator").nullable().optional(),
|
|
11
11
|
email: z.string().describe("The email of the creator").nullable().optional()
|
|
12
|
-
}).describe("Creator information for a comment.");
|
|
12
|
+
}).passthrough().describe("Creator information for a comment.");
|
|
13
13
|
const motionCreateComment = action("MOTION_CREATE_COMMENT", {
|
|
14
14
|
slug: "motion-create-comment",
|
|
15
15
|
name: "Create Comment",
|
|
@@ -21,7 +21,7 @@ const motionCreateComment = action("MOTION_CREATE_COMMENT", {
|
|
|
21
21
|
content: z.string().describe("The content of the comment").nullable(),
|
|
22
22
|
creator: MotionCreateComment_CreatorSchema.nullable(),
|
|
23
23
|
createdAt: z.string().describe("ISO 8601 timestamp when the comment was created").nullable()
|
|
24
|
-
}).describe("Response model after creating a comment.")
|
|
24
|
+
}).passthrough().describe("Response model after creating a comment.")
|
|
25
25
|
});
|
|
26
26
|
//#endregion
|
|
27
27
|
export { motionCreateComment };
|
|
@@ -1 +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.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.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.object({\n id: z.string().describe(\"The ID of the created comment\").nullable(),\n taskId: z.string().describe(\"The ID of the task the comment belongs to\").nullable(),\n content: z.string().describe(\"The content of the comment\").nullable(),\n creator: MotionCreateComment_CreatorSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the comment was created\").nullable(),\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,2BAA2B,EAAE,OAAO;CAC/C,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,oCAAoC,EAAE,OAAO;CACjD,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;
|
|
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.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.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}).passthrough().describe(\"Creator information for a comment.\");\nexport const MotionCreateCommentOutput = z.object({\n id: z.string().describe(\"The ID of the created comment\").nullable(),\n taskId: z.string().describe(\"The ID of the task the comment belongs to\").nullable(),\n content: z.string().describe(\"The content of the comment\").nullable(),\n creator: MotionCreateComment_CreatorSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the comment was created\").nullable(),\n}).passthrough().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,2BAA2B,EAAE,OAAO;CAC/C,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,oCAAoC,EAAE,OAAO;CACjD,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,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAS9D,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbuC,EAAE,OAAO;EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAClE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAClF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACpE,SAAS,kCAAkC,SAAS;EACpD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAOhB;AACV,CAAC"}
|
|
@@ -28,14 +28,14 @@ const MotionCreateCustomFieldInput = zod.z.object({
|
|
|
28
28
|
id: zod.z.string().describe("Unique identifier for the option"),
|
|
29
29
|
color: zod.z.string().describe("Hex color code (without alpha channel) for visual styling"),
|
|
30
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()
|
|
31
|
+
}).passthrough().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
32
|
}).describe("Configuration metadata for advanced custom field types.").optional(),
|
|
33
33
|
workspaceId: zod.z.string().describe("The workspace ID where the custom field will be created")
|
|
34
34
|
}).describe("Request model for creating a new custom field in a workspace.");
|
|
35
35
|
const MotionCreateCustomFieldOutput = zod.z.object({
|
|
36
36
|
id: zod.z.string().describe("The ID of the created custom field").nullable(),
|
|
37
37
|
type: zod.z.string().describe("The type of custom field that was created").nullable()
|
|
38
|
-
}).describe("Response model for creating a custom field.");
|
|
38
|
+
}).passthrough().describe("Response model for creating a custom field.");
|
|
39
39
|
const motionCreateCustomField = require_action.action("MOTION_CREATE_CUSTOM_FIELD", {
|
|
40
40
|
slug: "motion-create-custom-field",
|
|
41
41
|
name: "Create Custom Field",
|
|
@@ -1 +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.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.object({\n id: z.string().describe(\"The ID of the created custom field\").nullable(),\n type: z.string().describe(\"The type of custom field that was created\").nullable(),\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,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,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;
|
|
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.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}).passthrough().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.object({\n id: z.string().describe(\"The ID of the created custom field\").nullable(),\n type: z.string().describe(\"The type of custom field that was created\").nullable(),\n}).passthrough().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,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,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,YAAY,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;CACjM,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,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -5,15 +5,15 @@ declare const MotionCreateCustomFieldInput: z.ZodObject<{
|
|
|
5
5
|
name: z.ZodString;
|
|
6
6
|
type: z.ZodEnum<{
|
|
7
7
|
number: "number";
|
|
8
|
-
email: "email";
|
|
9
|
-
date: "date";
|
|
10
8
|
text: "text";
|
|
11
9
|
url: "url";
|
|
10
|
+
date: "date";
|
|
12
11
|
person: "person";
|
|
13
12
|
multiPerson: "multiPerson";
|
|
14
13
|
phone: "phone";
|
|
15
14
|
select: "select";
|
|
16
15
|
multiSelect: "multiSelect";
|
|
16
|
+
email: "email";
|
|
17
17
|
checkbox: "checkbox";
|
|
18
18
|
relatedTo: "relatedTo";
|
|
19
19
|
}>;
|
|
@@ -28,22 +28,23 @@ declare const MotionCreateCustomFieldInput: z.ZodObject<{
|
|
|
28
28
|
id: z.ZodString;
|
|
29
29
|
color: z.ZodString;
|
|
30
30
|
value: z.ZodString;
|
|
31
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>>>;
|
|
32
32
|
}, z.core.$strip>>;
|
|
33
33
|
workspaceId: z.ZodString;
|
|
34
34
|
}, z.core.$strip>;
|
|
35
35
|
declare const MotionCreateCustomFieldOutput: z.ZodObject<{
|
|
36
36
|
id: z.ZodNullable<z.ZodString>;
|
|
37
37
|
type: z.ZodNullable<z.ZodString>;
|
|
38
|
-
}, z.core.$
|
|
38
|
+
}, z.core.$loose>;
|
|
39
39
|
declare const motionCreateCustomField: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
40
40
|
name: string;
|
|
41
|
-
type: "number" | "
|
|
41
|
+
type: "number" | "text" | "url" | "date" | "person" | "multiPerson" | "phone" | "select" | "multiSelect" | "email" | "checkbox" | "relatedTo";
|
|
42
42
|
workspaceId: string;
|
|
43
43
|
metadata?: {
|
|
44
44
|
format?: "plain" | "formatted" | "percent" | undefined;
|
|
45
45
|
toggle?: boolean | undefined;
|
|
46
46
|
options?: {
|
|
47
|
+
[x: string]: unknown;
|
|
47
48
|
id: string;
|
|
48
49
|
color: string;
|
|
49
50
|
value: string;
|
|
@@ -5,15 +5,15 @@ declare const MotionCreateCustomFieldInput: z.ZodObject<{
|
|
|
5
5
|
name: z.ZodString;
|
|
6
6
|
type: z.ZodEnum<{
|
|
7
7
|
number: "number";
|
|
8
|
-
email: "email";
|
|
9
|
-
date: "date";
|
|
10
8
|
text: "text";
|
|
11
9
|
url: "url";
|
|
10
|
+
date: "date";
|
|
12
11
|
person: "person";
|
|
13
12
|
multiPerson: "multiPerson";
|
|
14
13
|
phone: "phone";
|
|
15
14
|
select: "select";
|
|
16
15
|
multiSelect: "multiSelect";
|
|
16
|
+
email: "email";
|
|
17
17
|
checkbox: "checkbox";
|
|
18
18
|
relatedTo: "relatedTo";
|
|
19
19
|
}>;
|
|
@@ -28,22 +28,23 @@ declare const MotionCreateCustomFieldInput: z.ZodObject<{
|
|
|
28
28
|
id: z.ZodString;
|
|
29
29
|
color: z.ZodString;
|
|
30
30
|
value: z.ZodString;
|
|
31
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>>>;
|
|
32
32
|
}, z.core.$strip>>;
|
|
33
33
|
workspaceId: z.ZodString;
|
|
34
34
|
}, z.core.$strip>;
|
|
35
35
|
declare const MotionCreateCustomFieldOutput: z.ZodObject<{
|
|
36
36
|
id: z.ZodNullable<z.ZodString>;
|
|
37
37
|
type: z.ZodNullable<z.ZodString>;
|
|
38
|
-
}, z.core.$
|
|
38
|
+
}, z.core.$loose>;
|
|
39
39
|
declare const motionCreateCustomField: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
40
40
|
name: string;
|
|
41
|
-
type: "number" | "
|
|
41
|
+
type: "number" | "text" | "url" | "date" | "person" | "multiPerson" | "phone" | "select" | "multiSelect" | "email" | "checkbox" | "relatedTo";
|
|
42
42
|
workspaceId: string;
|
|
43
43
|
metadata?: {
|
|
44
44
|
format?: "plain" | "formatted" | "percent" | undefined;
|
|
45
45
|
toggle?: boolean | undefined;
|
|
46
46
|
options?: {
|
|
47
|
+
[x: string]: unknown;
|
|
47
48
|
id: string;
|
|
48
49
|
color: string;
|
|
49
50
|
value: string;
|
|
@@ -31,14 +31,14 @@ const motionCreateCustomField = action("MOTION_CREATE_CUSTOM_FIELD", {
|
|
|
31
31
|
id: z.string().describe("Unique identifier for the option"),
|
|
32
32
|
color: z.string().describe("Hex color code (without alpha channel) for visual styling"),
|
|
33
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()
|
|
34
|
+
}).passthrough().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
35
|
}).describe("Configuration metadata for advanced custom field types.").optional(),
|
|
36
36
|
workspaceId: z.string().describe("The workspace ID where the custom field will be created")
|
|
37
37
|
}).describe("Request model for creating a new custom field in a workspace."),
|
|
38
38
|
output: z.object({
|
|
39
39
|
id: z.string().describe("The ID of the created custom field").nullable(),
|
|
40
40
|
type: z.string().describe("The type of custom field that was created").nullable()
|
|
41
|
-
}).describe("Response model for creating a custom field.")
|
|
41
|
+
}).passthrough().describe("Response model for creating a custom field.")
|
|
42
42
|
});
|
|
43
43
|
//#endregion
|
|
44
44
|
export { motionCreateCustomField };
|
|
@@ -1 +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.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.object({\n id: z.string().describe(\"The ID of the created custom field\").nullable(),\n type: z.string().describe(\"The type of custom field that was created\").nullable(),\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,OAvB0C,EAAE,OAAO;EACnD,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;
|
|
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.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}).passthrough().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.object({\n id: z.string().describe(\"The ID of the created custom field\").nullable(),\n type: z.string().describe(\"The type of custom field that was created\").nullable(),\n}).passthrough().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,OAvB0C,EAAE,OAAO;EACnD,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,YAAY,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;EACjM,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EAC9E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CAC5F,CAAC,CAAC,CAAC,SAAS,+DAUH;CACP,QAV2C,EAAE,OAAO;EACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAOhB;AACV,CAAC"}
|
|
@@ -7,8 +7,8 @@ const MotionCreateProjectInput = zod.z.object({
|
|
|
7
7
|
stages: zod.z.array(zod.z.object({
|
|
8
8
|
dueDate: zod.z.string().describe("ISO 8601 due date for this stage").optional(),
|
|
9
9
|
stageDefinitionId: zod.z.string().describe("The ID of the stage definition"),
|
|
10
|
-
variableInstances: zod.z.array(zod.z.object({ stageDefinitionId: zod.z.string().describe("The ID of the stage definition") }).describe("Variable instance for a project stage.")).describe("Optional variable instances for this stage").optional()
|
|
11
|
-
}).describe("Stage configuration for a project.")).describe("Array of stage objects for the project. Required when projectDefinitionId is provided.").optional(),
|
|
10
|
+
variableInstances: zod.z.array(zod.z.object({ stageDefinitionId: zod.z.string().describe("The ID of the stage definition") }).passthrough().describe("Variable instance for a project stage.")).describe("Optional variable instances for this stage").optional()
|
|
11
|
+
}).passthrough().describe("Stage configuration for a project.")).describe("Array of stage objects for the project. Required when projectDefinitionId is provided.").optional(),
|
|
12
12
|
dueDate: zod.z.string().describe("ISO 8601 due date for the project").optional(),
|
|
13
13
|
priority: zod.z.enum([
|
|
14
14
|
"ASAP",
|
|
@@ -30,7 +30,7 @@ const MotionCreateProjectOutput = zod.z.object({
|
|
|
30
30
|
description: zod.z.string().describe("The HTML contents of the description").nullable().optional(),
|
|
31
31
|
workspaceId: zod.z.string().describe("The ID of the workspace").nullable(),
|
|
32
32
|
priorityLevel: zod.z.string().describe("The priority level of the project").nullable().optional()
|
|
33
|
-
}).describe("Response schema after creating a Motion project.");
|
|
33
|
+
}).passthrough().describe("Response schema after creating a Motion project.");
|
|
34
34
|
const motionCreateProject = require_action.action("MOTION_CREATE_PROJECT", {
|
|
35
35
|
slug: "motion-create-project",
|
|
36
36
|
name: "Create Project",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-project.cjs","names":["z","action"],"sources":["../../src/actions/create-project.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionCreateProjectInput = z.object({\n name: z.string().describe(\"The name of the project\"),\n labels: z.array(z.string()).describe(\"List of label names the project should have\").optional(),\n stages: z.array(z.object({\n dueDate: z.string().describe(\"ISO 8601 due date for this stage\").optional(),\n stageDefinitionId: z.string().describe(\"The ID of the stage definition\"),\n variableInstances: z.array(z.object({\n stageDefinitionId: z.string().describe(\"The ID of the stage definition\"),\n}).describe(\"Variable instance for a project stage.\")).describe(\"Optional variable instances for this stage\").optional(),\n}).describe(\"Stage configuration for a project.\")).describe(\"Array of stage objects for the project. Required when projectDefinitionId is provided.\").optional(),\n dueDate: z.string().describe(\"ISO 8601 due date for the project\").optional(),\n priority: z.enum([\"ASAP\", \"HIGH\", \"MEDIUM\", \"LOW\"]).describe(\"Priority levels for Motion projects.\").optional(),\n description: z.string().describe(\"The description of the project. HTML input accepted.\").optional(),\n workspaceId: z.string().describe(\"The workspace ID to which the project belongs\"),\n projectDefinitionId: z.string().describe(\"Template ID for the project. When provided, must include stages array.\").optional(),\n}).describe(\"Request schema for creating a new Motion project.\");\nexport const MotionCreateProjectOutput = z.object({\n id: z.string().describe(\"The ID of the created project\").nullable(),\n name: z.string().describe(\"The name of the project\").nullable(),\n type: z.string().describe(\"The type of project\").nullable().optional(),\n dueDate: z.string().describe(\"The due date of the project\").nullable().optional(),\n statusId: z.string().describe(\"The ID of the current status\").nullable(),\n createdTime: z.string().describe(\"When the project was created\").nullable().optional(),\n description: z.string().describe(\"The HTML contents of the description\").nullable().optional(),\n workspaceId: z.string().describe(\"The ID of the workspace\").nullable(),\n priorityLevel: z.string().describe(\"The priority level of the project\").nullable().optional(),\n}).describe(\"Response schema after creating a Motion project.\");\n\nexport const motionCreateProject = action(\"MOTION_CREATE_PROJECT\", {\n slug: \"motion-create-project\",\n name: \"Create Project\",\n description: \"Tool to create a new project in Motion. Use when you need to create a project within a specific workspace. Projects can have optional due dates, descriptions (HTML supported), labels, and priority levels.\",\n input: MotionCreateProjectInput,\n output: MotionCreateProjectOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACnD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC7F,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACzB,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC1E,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EACvE,mBAAmBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,EACpC,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,EACzE,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;
|
|
1
|
+
{"version":3,"file":"create-project.cjs","names":["z","action"],"sources":["../../src/actions/create-project.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionCreateProjectInput = z.object({\n name: z.string().describe(\"The name of the project\"),\n labels: z.array(z.string()).describe(\"List of label names the project should have\").optional(),\n stages: z.array(z.object({\n dueDate: z.string().describe(\"ISO 8601 due date for this stage\").optional(),\n stageDefinitionId: z.string().describe(\"The ID of the stage definition\"),\n variableInstances: z.array(z.object({\n stageDefinitionId: z.string().describe(\"The ID of the stage definition\"),\n}).passthrough().describe(\"Variable instance for a project stage.\")).describe(\"Optional variable instances for this stage\").optional(),\n}).passthrough().describe(\"Stage configuration for a project.\")).describe(\"Array of stage objects for the project. Required when projectDefinitionId is provided.\").optional(),\n dueDate: z.string().describe(\"ISO 8601 due date for the project\").optional(),\n priority: z.enum([\"ASAP\", \"HIGH\", \"MEDIUM\", \"LOW\"]).describe(\"Priority levels for Motion projects.\").optional(),\n description: z.string().describe(\"The description of the project. HTML input accepted.\").optional(),\n workspaceId: z.string().describe(\"The workspace ID to which the project belongs\"),\n projectDefinitionId: z.string().describe(\"Template ID for the project. When provided, must include stages array.\").optional(),\n}).describe(\"Request schema for creating a new Motion project.\");\nexport const MotionCreateProjectOutput = z.object({\n id: z.string().describe(\"The ID of the created project\").nullable(),\n name: z.string().describe(\"The name of the project\").nullable(),\n type: z.string().describe(\"The type of project\").nullable().optional(),\n dueDate: z.string().describe(\"The due date of the project\").nullable().optional(),\n statusId: z.string().describe(\"The ID of the current status\").nullable(),\n createdTime: z.string().describe(\"When the project was created\").nullable().optional(),\n description: z.string().describe(\"The HTML contents of the description\").nullable().optional(),\n workspaceId: z.string().describe(\"The ID of the workspace\").nullable(),\n priorityLevel: z.string().describe(\"The priority level of the project\").nullable().optional(),\n}).passthrough().describe(\"Response schema after creating a Motion project.\");\n\nexport const motionCreateProject = action(\"MOTION_CREATE_PROJECT\", {\n slug: \"motion-create-project\",\n name: \"Create Project\",\n description: \"Tool to create a new project in Motion. Use when you need to create a project within a specific workspace. Projects can have optional due dates, descriptions (HTML supported), labels, and priority levels.\",\n input: MotionCreateProjectInput,\n output: MotionCreateProjectOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACnD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC7F,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACzB,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC1E,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EACvE,mBAAmBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,EACpC,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,EACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACrI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CAC3K,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC3E,UAAUA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAQ;EAAU;CAAK,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC9G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAClG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAChF,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;AAC9H,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACvE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACrE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -9,8 +9,8 @@ declare const MotionCreateProjectInput: z.ZodObject<{
|
|
|
9
9
|
stageDefinitionId: z.ZodString;
|
|
10
10
|
variableInstances: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11
11
|
stageDefinitionId: z.ZodString;
|
|
12
|
-
}, z.core.$
|
|
13
|
-
}, z.core.$
|
|
12
|
+
}, z.core.$loose>>>;
|
|
13
|
+
}, z.core.$loose>>>;
|
|
14
14
|
dueDate: z.ZodOptional<z.ZodString>;
|
|
15
15
|
priority: z.ZodOptional<z.ZodEnum<{
|
|
16
16
|
ASAP: "ASAP";
|
|
@@ -32,15 +32,17 @@ declare const MotionCreateProjectOutput: z.ZodObject<{
|
|
|
32
32
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
33
|
workspaceId: z.ZodNullable<z.ZodString>;
|
|
34
34
|
priorityLevel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
-
}, z.core.$
|
|
35
|
+
}, z.core.$loose>;
|
|
36
36
|
declare const motionCreateProject: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
37
37
|
name: string;
|
|
38
38
|
workspaceId: string;
|
|
39
39
|
labels?: string[] | undefined;
|
|
40
40
|
stages?: {
|
|
41
|
+
[x: string]: unknown;
|
|
41
42
|
stageDefinitionId: string;
|
|
42
43
|
dueDate?: string | undefined;
|
|
43
44
|
variableInstances?: {
|
|
45
|
+
[x: string]: unknown;
|
|
44
46
|
stageDefinitionId: string;
|
|
45
47
|
}[] | undefined;
|
|
46
48
|
}[] | undefined;
|
|
@@ -9,8 +9,8 @@ declare const MotionCreateProjectInput: z.ZodObject<{
|
|
|
9
9
|
stageDefinitionId: z.ZodString;
|
|
10
10
|
variableInstances: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11
11
|
stageDefinitionId: z.ZodString;
|
|
12
|
-
}, z.core.$
|
|
13
|
-
}, z.core.$
|
|
12
|
+
}, z.core.$loose>>>;
|
|
13
|
+
}, z.core.$loose>>>;
|
|
14
14
|
dueDate: z.ZodOptional<z.ZodString>;
|
|
15
15
|
priority: z.ZodOptional<z.ZodEnum<{
|
|
16
16
|
ASAP: "ASAP";
|
|
@@ -32,15 +32,17 @@ declare const MotionCreateProjectOutput: z.ZodObject<{
|
|
|
32
32
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
33
|
workspaceId: z.ZodNullable<z.ZodString>;
|
|
34
34
|
priorityLevel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
-
}, z.core.$
|
|
35
|
+
}, z.core.$loose>;
|
|
36
36
|
declare const motionCreateProject: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
37
37
|
name: string;
|
|
38
38
|
workspaceId: string;
|
|
39
39
|
labels?: string[] | undefined;
|
|
40
40
|
stages?: {
|
|
41
|
+
[x: string]: unknown;
|
|
41
42
|
stageDefinitionId: string;
|
|
42
43
|
dueDate?: string | undefined;
|
|
43
44
|
variableInstances?: {
|
|
45
|
+
[x: string]: unknown;
|
|
44
46
|
stageDefinitionId: string;
|
|
45
47
|
}[] | undefined;
|
|
46
48
|
}[] | undefined;
|