@pipedream/motion 0.2.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/actions/create-task/create-task.mjs +6 -1
- package/actions/delete-task/delete-task.mjs +6 -1
- package/actions/get-schedules/get-schedules.mjs +6 -1
- package/actions/get-task/get-task.mjs +6 -1
- package/actions/list-workspace-id-options/list-workspace-id-options.mjs +26 -0
- package/actions/move-workspace/move-workspace.mjs +7 -1
- package/actions/update-task/update-task.mjs +6 -1
- package/package.json +2 -2
|
@@ -3,7 +3,12 @@ import motion from "../../motion.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
key: "motion-create-task",
|
|
5
5
|
name: "Create Task",
|
|
6
|
-
version: "0.0.
|
|
6
|
+
version: "0.0.2",
|
|
7
|
+
annotations: {
|
|
8
|
+
destructiveHint: false,
|
|
9
|
+
openWorldHint: true,
|
|
10
|
+
readOnlyHint: false,
|
|
11
|
+
},
|
|
7
12
|
description: "Create a new task. [See the documentation](https://docs.usemotion.com/docs/motion-rest-api/0846d1205f9b3-create-task)",
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
@@ -3,7 +3,12 @@ import motion from "../../motion.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
key: "motion-delete-task",
|
|
5
5
|
name: "Delete Task",
|
|
6
|
-
version: "0.0.
|
|
6
|
+
version: "0.0.2",
|
|
7
|
+
annotations: {
|
|
8
|
+
destructiveHint: true,
|
|
9
|
+
openWorldHint: true,
|
|
10
|
+
readOnlyHint: false,
|
|
11
|
+
},
|
|
7
12
|
description: "Delete a specific task by Id. [See the documentation](https://docs.usemotion.com/docs/motion-rest-api/963b35f93846f-delete-a-task)",
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
@@ -3,7 +3,12 @@ import motion from "../../motion.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
key: "motion-get-schedules",
|
|
5
5
|
name: "Retrieve Schedules",
|
|
6
|
-
version: "0.0.
|
|
6
|
+
version: "0.0.2",
|
|
7
|
+
annotations: {
|
|
8
|
+
destructiveHint: false,
|
|
9
|
+
openWorldHint: true,
|
|
10
|
+
readOnlyHint: true,
|
|
11
|
+
},
|
|
7
12
|
description: "Get a list of schedules for your user. [See the documentation](https://docs.usemotion.com/docs/motion-rest-api/f9fec7bb61c6f-get-schedules)",
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
@@ -3,7 +3,12 @@ import motion from "../../motion.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
key: "motion-get-task",
|
|
5
5
|
name: "Retrieve Task",
|
|
6
|
-
version: "0.0.
|
|
6
|
+
version: "0.0.2",
|
|
7
|
+
annotations: {
|
|
8
|
+
destructiveHint: false,
|
|
9
|
+
openWorldHint: true,
|
|
10
|
+
readOnlyHint: true,
|
|
11
|
+
},
|
|
7
12
|
description: "Retrieve a specific task by Id. [See the documentation](https://docs.usemotion.com/docs/motion-rest-api/3e8c65ed58693-retrieve-a-task)",
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import motion from "../../motion.app.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
key: "motion-list-workspace-id-options",
|
|
5
|
+
name: "List Workspace ID Options",
|
|
6
|
+
description: "Retrieves available options for the Workspace ID field.",
|
|
7
|
+
version: "0.0.1",
|
|
8
|
+
type: "action",
|
|
9
|
+
annotations: {
|
|
10
|
+
destructiveHint: false,
|
|
11
|
+
openWorldHint: true,
|
|
12
|
+
readOnlyHint: true,
|
|
13
|
+
},
|
|
14
|
+
props: {
|
|
15
|
+
motion,
|
|
16
|
+
},
|
|
17
|
+
async run({ $ }) {
|
|
18
|
+
const options = await motion.propDefinitions.workspaceId.options.call(this.motion, {});
|
|
19
|
+
$.export("$summary", `Successfully retrieved ${options.length} option${
|
|
20
|
+
options.length === 1
|
|
21
|
+
? ""
|
|
22
|
+
: "s"
|
|
23
|
+
}`);
|
|
24
|
+
return options;
|
|
25
|
+
},
|
|
26
|
+
};
|
|
@@ -3,9 +3,15 @@ import motion from "../../motion.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
key: "motion-move-workspace",
|
|
5
5
|
name: "Move Workspace",
|
|
6
|
-
version: "0.0.
|
|
6
|
+
version: "0.0.3",
|
|
7
|
+
annotations: {
|
|
8
|
+
destructiveHint: true,
|
|
9
|
+
openWorldHint: true,
|
|
10
|
+
readOnlyHint: false,
|
|
11
|
+
},
|
|
7
12
|
description: "Move a specific task to another workspace. When moving tasks from one workspace to another, the tasks project, status, and label(s) and assignee will all be reset. [See the documentation](https://docs.usemotion.com/docs/motion-rest-api/0440c0ba81f10-move-workspace)",
|
|
8
13
|
type: "action",
|
|
14
|
+
ai: "optimized",
|
|
9
15
|
props: {
|
|
10
16
|
motion,
|
|
11
17
|
taskId: {
|
|
@@ -3,7 +3,12 @@ import motion from "../../motion.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
key: "motion-update-task",
|
|
5
5
|
name: "Update Task",
|
|
6
|
-
version: "0.0.
|
|
6
|
+
version: "0.0.2",
|
|
7
|
+
annotations: {
|
|
8
|
+
destructiveHint: true,
|
|
9
|
+
openWorldHint: true,
|
|
10
|
+
readOnlyHint: false,
|
|
11
|
+
},
|
|
7
12
|
description: "Update a specific task. [See the documentation](https://docs.usemotion.com/docs/motion-rest-api/a2b2ce881ce26-update-a-task)",
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pipedream/motion",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Pipedream Motion Components",
|
|
5
5
|
"main": "motion.app.mjs",
|
|
6
6
|
"keywords": [
|
|
@@ -13,6 +13,6 @@
|
|
|
13
13
|
"access": "public"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@pipedream/platform": "^3.
|
|
16
|
+
"@pipedream/platform": "^3.1.1"
|
|
17
17
|
}
|
|
18
18
|
}
|