Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import app from "../../miro_custom_app.app.mjs";

export default {
name: "Create Board",
version: "0.0.1",
version: "0.0.2",
key: "miro_custom_app-create-board",
description: "Creates a Miro board. [See the docs](https://developers.miro.com/reference/create-board).",
type: "action",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
import common from "../common/base.mjs";

export default {
key: "miro_custom_app-create-card-item",
name: "Create Card Item",
description: "Creates a card item on a Miro board. [See the documentation](https://developers.miro.com/reference/create-card-item).",
version: "0.0.1",
type: "action",
props: {
...common.props,
title: {
propDefinition: [
common.props.app,
"cardTitle",
],
},
assigneeId: {
propDefinition: [
common.props.app,
"userId",
(c) => ({
boardId: c.boardId,
}),
],
label: "Assignee ID",
description: "The ID of the user to assign the card to",
optional: true,
},
description: {
propDefinition: [
common.props.app,
"cardDescription",
],
},
dueDate: {
propDefinition: [
common.props.app,
"dueDate",
],
},
cardTheme: {
propDefinition: [
common.props.app,
"cardTheme",
],
},
x: {
propDefinition: [
common.props.app,
"x",
],
optional: true,
},
y: {
propDefinition: [
common.props.app,
"y",
],
optional: true,
},
height: {
propDefinition: [
common.props.app,
"height",
],
},
rotation: {
propDefinition: [
common.props.app,
"rotation",
],
},
width: {
propDefinition: [
common.props.app,
"width",
],
},
parent: {
propDefinition: [
common.props.app,
"itemId",
(c) => ({
boardId: c.boardId,
type: "frame",
}),
],
label: "Parent ID",
description: "The ID of the parent frame for the item",
optional: true,
},
},
async run({ $: step }) {
const response = await this.app.createCardItem({
step,
boardId: this.boardId,
data: {
data: {
title: this.title,
assigneeId: this.assigneeId,
description: this.description,
dueDate: this.dueDate,
},
style: {
cardTheme: this.cardTheme,
},
position: {
x: this.x,
y: this.y,
},
geometry: {
height: this.height,
rotation: this.rotation,
width: this.width,
},
parent: {
id: this.parent,
},
},
});
step.export("$summary", `Successfully created card item with ID \`${response.id}\``);
return response;
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const { app } = common.props;

export default {
name: "Create Shape",
version: "0.0.1",
version: "0.0.2",
key: "miro_custom_app-create-shape",
description: "Creates a shape on a Miro board. [See the docs](https://developers.miro.com/reference/create-shape-item).",
type: "action",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const { app } = common.props;

export default {
name: "Create Sticky Note",
version: "0.0.1",
version: "0.0.2",
key: "miro_custom_app-create-sticky-note",
description: "Creates a sticky note on a Miro board. [See the docs](https://developers.miro.com/reference/create-sticky-note-item).",
type: "action",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import common from "../common/base.mjs";
export default {
...common,
name: "Delete Board",
version: "0.0.1",
version: "0.0.2",
key: "miro_custom_app-delete-board",
description: "Deletes a Miro board. [See the docs](https://developers.miro.com/reference/delete-board).",
type: "action",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const { app } = common.props;

export default {
name: "Delete Item",
version: "0.0.1",
version: "0.0.2",
key: "miro_custom_app-delete-item",
description: "Deletes an item from a Miro board. [See the docs](https://developers.miro.com/reference/delete-item).",
type: "action",
Expand Down
2 changes: 1 addition & 1 deletion components/miro_custom_app/actions/get-board/get-board.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import common from "../common/base.mjs";
export default {
...common,
name: "Get Board",
version: "0.0.1",
version: "0.0.2",
key: "miro_custom_app-get-board",
description: "Returns a Miro board. [See the docs](https://developers.miro.com/reference/get-specific-board).",
type: "action",
Expand Down
2 changes: 1 addition & 1 deletion components/miro_custom_app/actions/get-items/get-items.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import utils from "../../common/utils.mjs";

export default {
name: "Get Items",
version: "0.0.1",
version: "0.0.2",
key: "miro_custom_app-get-items",
description: "Returns items on a Miro board. [See the docs](https://developers.miro.com/reference/get-items).",
type: "action",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const { app } = common.props;

export default {
name: "Get Specific Item",
version: "0.0.1",
version: "0.0.2",
key: "miro_custom_app-get-specific-item",
description: "Returns a specific item on a Miro board. [See the docs](https://developers.miro.com/reference/get-specific-item).",
type: "action",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import utils from "../../common/utils.mjs";

export default {
name: "List Boards",
version: "0.0.2",
version: "0.0.3",
key: "miro_custom_app-list-boards",
description: "Returns a user's Miro boards. [See the docs](https://developers.miro.com/reference/get-boards).",
type: "action",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const { app } = common.props;

export default {
name: "Update Board",
version: "0.0.1",
version: "0.0.2",
key: "miro_custom_app-update-board",
description: "Updates a Miro board. [See the docs](https://developers.miro.com/reference/update-board).",
type: "action",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
import common from "../common/base.mjs";

export default {
key: "miro_custom_app-update-card-item",
name: "Update Card Item",
description: "Updates a card item on a Miro board. [See the documentation](https://developers.miro.com/reference/update-card-item).",
version: "0.0.1",
type: "action",
props: {
...common.props,
itemId: {
propDefinition: [
common.props.app,
"itemId",
(c) => ({
boardId: c.boardId,
type: "card",
}),
],
},
title: {
propDefinition: [
common.props.app,
"cardTitle",
],
},
assigneeId: {
propDefinition: [
common.props.app,
"userId",
(c) => ({
boardId: c.boardId,
}),
],
label: "Assignee ID",
description: "The ID of the user to assign the card to",
optional: true,
},
description: {
propDefinition: [
common.props.app,
"cardDescription",
],
},
dueDate: {
propDefinition: [
common.props.app,
"dueDate",
],
},
cardTheme: {
propDefinition: [
common.props.app,
"cardTheme",
],
},
x: {
propDefinition: [
common.props.app,
"x",
],
optional: true,
},
y: {
propDefinition: [
common.props.app,
"y",
],
optional: true,
},
height: {
propDefinition: [
common.props.app,
"height",
],
},
rotation: {
propDefinition: [
common.props.app,
"rotation",
],
},
width: {
propDefinition: [
common.props.app,
"width",
],
},
parent: {
propDefinition: [
common.props.app,
"itemId",
(c) => ({
boardId: c.boardId,
type: "frame",
}),
],
label: "Parent ID",
description: "The ID of the parent frame for the item",
optional: true,
},
},
async run({ $: step }) {
const response = await this.app.updateCardItem({
step,
boardId: this.boardId,
itemId: this.itemId,
data: {
data: {
title: this.title,
assigneeId: this.assigneeId,
description: this.description,
dueDate: this.dueDate,
},
style: {
cardTheme: this.cardTheme,
},
position: {
x: this.x,
y: this.y,
},
geometry: {
height: this.height,
rotation: this.rotation,
width: this.width,
},
parent: {
id: this.parent,
},
},
});
step.export("$summary", `Successfully updated card item with ID \`${response.id}\``);
return response;
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const { app } = common.props;

export default {
name: "Update Shape",
version: "0.0.1",
version: "0.0.2",
key: "miro_custom_app-update-shape",
description: "Updates content of an existing shape on a Miro board. [See the docs](https://developers.miro.com/reference/update-shape-item).",
type: "action",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const { app } = common.props;

export default {
name: "Update Sticky Note",
version: "0.0.1",
version: "0.0.2",
key: "miro_custom_app-update-sticky-note",
description: "Updates content of an existing sticky note on a Miro board. [See the docs](https://developers.miro.com/reference/update-sticky-note-item).",
type: "action",
Expand Down
Loading
Loading