@pipedream/monday 0.6.1 → 0.6.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/README.md CHANGED
@@ -1,10 +1,11 @@
1
1
  # Overview
2
2
 
3
- With the monday.com API you can build a variety of applications and
4
- integrations. Some examples include:
5
-
6
- - A monitoring and analytics tool to track the performance of your monday.com
7
- account
8
- - A mobile app to access your monday.com account on the go
9
- - A tool to help you migrate your data from another platform onto monday.com
10
- - An integration with your existing workflow or CRM system
3
+ The monday.com API unlocks the potential to automate workflows, sync data across applications, and create dynamic project management solutions. With this API on Pipedream, you can craft custom integrations that respond to events in monday.com, manipulate boards, items, and columns, and harmonize project data with third-party services to streamline operations, reduce manual workload, and ensure consistent information flow within your business ecosystem.
4
+
5
+ # Example Use Cases
6
+
7
+ - **Project Progress Tracker**: Trigger a workflow on Pipedream when a status column in monday.com updates, signaling a task's progression. This workflow can then post a message to a Slack channel to notify team members of the update, fostering real-time communication and keeping everyone aligned on project status.
8
+
9
+ - **Issue Reporting to Ticketing System**: When a new item is created in a specific monday.com board, representing a reported issue or bug, use Pipedream to automatically create a corresponding ticket in Jira. This ensures that your development team can triage and address issues efficiently without manual data transfer between systems.
10
+
11
+ - **Lead Management Automation**: Connect monday.com to a CRM platform like Salesforce using Pipedream. Automate the creation of new leads in Salesforce when a form submission on monday.com occurs. This can aid in ensuring that leads are promptly and accurately entered into your sales pipeline, reducing the risk of lost opportunities.
@@ -1,4 +1,5 @@
1
1
  import monday from "../../monday.app.mjs";
2
+ import { ConfigurationError } from "@pipedream/platform";
2
3
 
3
4
  export default {
4
5
  props: {
@@ -15,6 +16,9 @@ export default {
15
16
  const columns = await this.monday.listColumns({
16
17
  boardId: +boardId,
17
18
  });
19
+ if (!columns) {
20
+ throw new ConfigurationError(`No columns found for board ${boardId}`);
21
+ }
18
22
  return columns.filter(({ id }) => id !== "name");
19
23
  },
20
24
  formatColumnValues(items) {
@@ -4,9 +4,9 @@ import monday from "../../monday.app.mjs";
4
4
  export default {
5
5
  key: "monday-create-column",
6
6
  name: "Create Column",
7
- description: "Creates a column. [See the documentation](https://developer.monday.com/api-reference/docs/columns-queries-1)",
7
+ description: "Creates a column. [See the documentation](https://developer.monday.com/api-reference/reference/columns#create-a-column)",
8
8
  type: "action",
9
- version: "0.0.7",
9
+ version: "0.0.8",
10
10
  props: {
11
11
  monday,
12
12
  boardId: {
@@ -25,12 +25,7 @@ export default {
25
25
  label: "Column Type",
26
26
  description: "The new column's title",
27
27
  options: constants.COLUMN_TYPE_OPTIONS,
28
- },
29
- defaults: {
30
- type: "object",
31
- label: "Defaults",
32
- description: "The new column's defaults.",
33
- optional: true,
28
+ reloadProps: true,
34
29
  },
35
30
  description: {
36
31
  type: "string",
@@ -39,6 +34,28 @@ export default {
39
34
  optional: true,
40
35
  },
41
36
  },
37
+ async additionalProps() {
38
+ const props = {};
39
+ const defaults = {
40
+ type: "string",
41
+ label: "Defaults",
42
+ description: "The new column's defaults. For use with column types `status` or `dropdown`. [See the documentation](https://developer.monday.com/api-reference/reference/columns#create-a-status-or-dropdown-column-with-custom-labels) for additional information.",
43
+ optional: true,
44
+ };
45
+ if (this.columnType === "status") {
46
+ props.defaults = {
47
+ ...defaults,
48
+ default: "{\"labels\":{\"1\":\"Option1\",\"2\":\"Option2\",\"3\":\"Option3\",\"4\": \"Option4\"}}",
49
+ };
50
+ }
51
+ if (this.columnType === "dropdown") {
52
+ props.defaults = {
53
+ ...defaults,
54
+ default: "{\"settings\":{\"labels\":[{\"id\":1,\"name\":\"Option1\"}, {\"id\":2,\"name\":\"Option2\"}, {\"id\":3,\"name\":\"Option3\"}]}}",
55
+ };
56
+ }
57
+ return props;
58
+ },
42
59
  async run({ $ }) {
43
60
  const {
44
61
  data,
@@ -49,7 +66,11 @@ export default {
49
66
  boardId: +this.boardId,
50
67
  title: this.title,
51
68
  columnType: this.columnType,
52
- defaults: this.defaults,
69
+ defaults: this.defaults
70
+ ? typeof this.defaults !== "string"
71
+ ? JSON.stringify(this.defaults)
72
+ : this.defaults
73
+ : undefined,
53
74
  description: this.description,
54
75
  });
55
76
 
@@ -6,9 +6,9 @@ export default {
6
6
  ...commonCreateItem,
7
7
  key: "monday-create-subitem",
8
8
  name: "Create Subitem",
9
- description: "Creates a subitem. [See the documentation](https://developer.monday.com/api-reference/docs/introduction-to-graphql#mondaycom-schema)",
9
+ description: "Creates a subitem. [See the documentation](https://developer.monday.com/api-reference/reference/subitems#create-a-subitem)",
10
10
  type: "action",
11
- version: "0.0.2",
11
+ version: "0.0.3",
12
12
  props: {
13
13
  monday,
14
14
  boardId: {
@@ -35,12 +35,6 @@ export default {
35
35
  ],
36
36
  description: "The new subitem's name",
37
37
  },
38
- createLabels: {
39
- propDefinition: [
40
- monday,
41
- "itemCreateLabels",
42
- ],
43
- },
44
38
  ...commonCreateItem.props,
45
39
  },
46
40
  methods: {
@@ -50,7 +44,6 @@ export default {
50
44
  parentItemId: utils.emptyStrToUndefined(this.parentItemId),
51
45
  itemName: utils.emptyStrToUndefined(this.itemName),
52
46
  columnValues: utils.strinfied(columnValues),
53
- createLabels: utils.emptyStrToUndefined(this.createLabels),
54
47
  });
55
48
  },
56
49
  getItemId(data) {
@@ -4,9 +4,9 @@ import monday from "../../monday.app.mjs";
4
4
  export default {
5
5
  key: "monday-create-update",
6
6
  name: "Create an Update",
7
- description: "Creates a new update. [See the documentation](https://api.developer.monday.com/docs/updates-queries#create-an-update)",
7
+ description: "Creates a new update. [See the documentation](https://developer.monday.com/api-reference/reference/updates#create-an-update)",
8
8
  type: "action",
9
- version: "0.0.9",
9
+ version: "0.0.10",
10
10
  props: {
11
11
  monday,
12
12
  updateBody: {
@@ -5,7 +5,7 @@ export default {
5
5
  key: "monday-get-column-values",
6
6
  name: "Get Column Values",
7
7
  description: "Return values of a specific column or columns for a board item. [See the documentation](https://developer.monday.com/api-reference/docs/column-values-v2)",
8
- version: "0.0.4",
8
+ version: "0.0.5",
9
9
  type: "action",
10
10
  props: {
11
11
  ...common.props,
@@ -5,7 +5,7 @@ export default {
5
5
  key: "monday-get-items-by-column-value",
6
6
  name: "Get Items By Column Value",
7
7
  description: "Searches a column for items matching a value. [See the documentation](https://developer.monday.com/api-reference/docs/items-page-by-column-values)",
8
- version: "0.0.4",
8
+ version: "0.0.5",
9
9
  type: "action",
10
10
  props: {
11
11
  ...common.props,
@@ -8,7 +8,7 @@ export default {
8
8
  key: "monday-update-column-values",
9
9
  name: "Update Column Values",
10
10
  description: "Update multiple column values of an item. [See the documentation](https://developer.monday.com/api-reference/docs/columns#change-multiple-column-values)",
11
- version: "0.0.4",
11
+ version: "0.0.5",
12
12
  type: "action",
13
13
  props: {
14
14
  ...common.props,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/monday",
3
- "version": "0.6.1",
3
+ "version": "0.6.3",
4
4
  "description": "Pipedream Monday Components",
5
5
  "main": "monday.app.mjs",
6
6
  "keywords": [
@@ -14,7 +14,7 @@
14
14
  "access": "public"
15
15
  },
16
16
  "dependencies": {
17
- "@pipedream/platform": "^1.6.0",
17
+ "@pipedream/platform": "^3.0.3",
18
18
  "form-data": "^4.0.0",
19
19
  "lodash.flatmap": "^4.5.0",
20
20
  "lodash.map": "^4.6.0",