@pipedream/monday 0.3.5 → 0.3.6
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/LICENSE +41 -7
- package/README.md +10 -0
- package/actions/create-column/create-column.mjs +70 -0
- package/common/constants.mjs +124 -0
- package/common/mutations.mjs +19 -0
- package/monday.app.mjs +8 -0
- package/package.json +1 -2
package/LICENSE
CHANGED
|
@@ -1,7 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
Pipedream Source Available License Version 1.0
|
|
2
|
+
|
|
3
|
+
This Pipedream Source Available License Agreement Version 1.0 (this “Agreement”) sets forth the terms on which Pipedream, Inc., a Delaware corporation (“Pipedream”) makes available certain software (the “Software”). By installing, downloading, accessing, using or distributing the Software, you agree to the terms of this Agreement. If you do not agree to such terms, you must not use the Software. If you are receiving the Software on behalf of a legal entity, you represent and warrant that you have the actual authority to agree to the terms and conditions of this Agreement on behalf of such entity. “Licensee” means you, an individual, or the entity on whose behalf you are receiving the Software.
|
|
4
|
+
|
|
5
|
+
LICENSE GRANT AND CONDITIONS.
|
|
6
|
+
|
|
7
|
+
1.1 License. Subject to the terms and conditions of this Agreement, Pipedream hereby grants to Licensee a non-exclusive, royalty-free, worldwide, non-transferable, non-sublicenseable license during the term of this Agreement to use, prepare modifications and derivative works, distribute (including without limitation in source code or object code form) and reproduce copies of the Software (the “License”). Licensee is not granted the right to, and Licensee shall not, exercise the License for an Excluded Purpose. For purposes of this Agreement, “Excluded Purpose” means any commercial use of the software including, but not limited to, making available any software-as-a-service, platform-as-a-service, infrastructure-as-a-service or other online service that competes with the Software or any other Pipedream products or services.
|
|
8
|
+
|
|
9
|
+
1.2 Conditions. In consideration of the License, Licensee’s distribution of the Software is subject to the following conditions:
|
|
10
|
+
|
|
11
|
+
a. Licensee must cause any Software modified by Licensee to carry prominent notices stating that Licensee modified the Software.
|
|
12
|
+
|
|
13
|
+
b. On each Software copy, Licensee shall reproduce and not remove or alter all Pipedream or third party copyright or other proprietary notices contained in the Software, and Licensee must provide this with each copy: “This software is made available by Pipedream, Inc., under the terms of the Pipedream Source Available License, Version 1.0 located at https://github.com/PipedreamHQ/pipedream/blob/master/LICENSE. By installing, downloading, accessing, using or distributing the Software, you agree to the terms of such License Agreement.”
|
|
14
|
+
|
|
15
|
+
1.3 Modifications. Licensee may add its own copyright notices to modifications made by Licensee and may provide additional or different license terms and conditions for use, reproduction, or distribution of Licensee’s modifications. While redistributing the Software or modifications thereof, Licensee may choose to offer, for a fee or free of charge, support, warranty, indemnity, or other obligations. Licensee, and not Pipedream, will be responsible for any such obligations.
|
|
16
|
+
|
|
17
|
+
1.4 No Sublicensing. The License does not include the right to sublicense the Software; provided, however, that any recipient to which Licensee provides the Software may exercise the License so long as such recipient agrees to the terms and conditions of this Agreement.
|
|
18
|
+
|
|
19
|
+
TERM AND TERMINATION.
|
|
20
|
+
|
|
21
|
+
This Agreement will continue unless and until earlier terminated as set forth herein. If Licensee breaches any of its conditions or obligations under this Agreement, this Agreement will terminate automatically and the License will terminate automatically and permanently.
|
|
22
|
+
|
|
23
|
+
INTELLECTUAL PROPERTY.
|
|
24
|
+
|
|
25
|
+
As between the parties, Pipedream retains all right, title, and interest in the Software, and all intellectual property rights therein. Pipedream hereby reserves all rights not expressly granted to Licensee in this Agreement. Pipedream reserves all rights in its trademarks and service marks, and no licenses thereto are granted by this Agreement.
|
|
26
|
+
|
|
27
|
+
DISCLAIMER.
|
|
28
|
+
|
|
29
|
+
PIPEDREAM HEREBY DISCLAIMS ANY AND ALL WARRANTIES AND CONDITIONS, EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE, AND SPECIFICALLY DISCLAIMS ANY WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, WITH RESPECT TO THE SOFTWARE.
|
|
30
|
+
|
|
31
|
+
LIMITATION OF LIABILITY.
|
|
32
|
+
|
|
33
|
+
PIPEDREAM WILL NOT BE LIABLE FOR ANY DAMAGES OF ANY KIND, INCLUDING BUT NOT LIMITED TO, LOST PROFITS OR ANY CONSEQUENTIAL, SPECIAL, INCIDENTAL, INDIRECT, OR DIRECT DAMAGES, HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, ARISING OUT OF THIS AGREEMENT. THE FOREGOING SHALL APPLY TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW.
|
|
34
|
+
|
|
35
|
+
GENERAL.
|
|
36
|
+
|
|
37
|
+
6.1 Governing Law. This Agreement will be governed by and interpreted in accordance with the laws of the state of California, without reference to its conflict of laws principles. If Licensee is located outside of the United States, any dispute, controversy or claim arising out of or relating to this Agreement will be referred to and finally determined by arbitration in accordance with the JAMS International Arbitration Rules. The tribunal will consist of one arbitrator. Judgment upon the award rendered by the arbitrator may be entered in any court having jurisdiction thereof. All disputes including arbitrations shall take place in Santa Clara County, California. The language to be used in any such proceedings shall be English.
|
|
38
|
+
|
|
39
|
+
6.2. Assignment. Licensee is not authorized to assign its rights under this Agreement to any third party. Pipedream may freely assign its rights under this Agreement to any third party.
|
|
40
|
+
|
|
41
|
+
6.3. Other. This Agreement is the entire agreement between the parties regarding the subject matter hereof. No amendment or modification of this Agreement will be valid or binding upon the parties unless made in writing and signed by the duly authorized representatives of both parties. In the event that any provision, including without limitation any condition, of this Agreement is held to be unenforceable, this Agreement and all licenses and rights granted hereunder will immediately terminate. Waiver by Pipedream of a breach of any provision of this Agreement or the failure by Pipedream to exercise any right hereunder will not be construed as a waiver of any subsequent breach of that right or as a waiver of any other right.
|
package/README.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Overview
|
|
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
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import constants from "../../common/constants.mjs";
|
|
2
|
+
import monday from "../../monday.app.mjs";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
key: "monday-create-column",
|
|
6
|
+
name: "Create Column",
|
|
7
|
+
description: "Creates a column. [See the docs here](https://developer.monday.com/api-reference/docs/columns-queries-1)",
|
|
8
|
+
type: "action",
|
|
9
|
+
version: "0.0.1",
|
|
10
|
+
props: {
|
|
11
|
+
monday,
|
|
12
|
+
boardId: {
|
|
13
|
+
propDefinition: [
|
|
14
|
+
monday,
|
|
15
|
+
"boardId",
|
|
16
|
+
],
|
|
17
|
+
},
|
|
18
|
+
title: {
|
|
19
|
+
type: "string",
|
|
20
|
+
label: "Title",
|
|
21
|
+
description: "The new column's title.",
|
|
22
|
+
},
|
|
23
|
+
columnType: {
|
|
24
|
+
type: "string",
|
|
25
|
+
label: "Column Type",
|
|
26
|
+
description: "The new column's title",
|
|
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,
|
|
34
|
+
},
|
|
35
|
+
description: {
|
|
36
|
+
type: "string",
|
|
37
|
+
label: "Description",
|
|
38
|
+
description: "The column's description.",
|
|
39
|
+
optional: true,
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
async run({ $ }) {
|
|
43
|
+
const {
|
|
44
|
+
data,
|
|
45
|
+
errors,
|
|
46
|
+
error_message: errorMessage,
|
|
47
|
+
} =
|
|
48
|
+
await this.monday.createColumn({
|
|
49
|
+
boardId: +this.boardId,
|
|
50
|
+
title: this.title,
|
|
51
|
+
columnType: this.columnType,
|
|
52
|
+
defaults: this.defaults,
|
|
53
|
+
description: this.description,
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
if (errors) {
|
|
57
|
+
throw new Error(`Failed to create column: ${errors[0].message}`);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
if (errorMessage) {
|
|
61
|
+
throw new Error(`Failed to create column: ${errorMessage}`);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
const { id } = data.create_column;
|
|
65
|
+
|
|
66
|
+
$.export("$summary", `Successfully created a new column with ID: ${id}`);
|
|
67
|
+
|
|
68
|
+
return id;
|
|
69
|
+
},
|
|
70
|
+
};
|
package/common/constants.mjs
CHANGED
|
@@ -13,6 +13,130 @@ const BOARD_KIND_OPTIONS = [
|
|
|
13
13
|
},
|
|
14
14
|
];
|
|
15
15
|
|
|
16
|
+
const COLUMN_TYPE_OPTIONS = [
|
|
17
|
+
{
|
|
18
|
+
label: "auto_number - Number items according to their order in the group/board",
|
|
19
|
+
value: "auto_number",
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
label: "checkbox - Check off items and see what's done at a glance",
|
|
23
|
+
value: "checkbox",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
label: "country - Choose a country",
|
|
27
|
+
value: "country",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
label: "color_picker - Manage a design system using a color palette",
|
|
31
|
+
value: "color_picker",
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
label: "creation_log - Add the item's creator and creation date automatically",
|
|
35
|
+
value: "creation_log",
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
label: "date - Add dates like deadlines to ensure you never drop the ball",
|
|
39
|
+
value: "date",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
label: "dependency - Set up dependencies between items in the board",
|
|
43
|
+
value: "dependency",
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
label: "dropdown - Create a dropdown list of options",
|
|
47
|
+
value: "dropdown",
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
label: "email - Email team members and clients directly from your board",
|
|
51
|
+
value: "email",
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
label: "file - Add files & docs to your item",
|
|
55
|
+
value: "file",
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
label: "hour - Add times to manage and schedule tasks, shifts and more",
|
|
59
|
+
value: "hour",
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
label: "item_id - Show a unique ID for each item",
|
|
63
|
+
value: "item_id",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
label: "last_updated - Add the person that last updated the item and the date",
|
|
67
|
+
value: "last_updated",
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
label: "link - Simply hyperlink to any website",
|
|
71
|
+
value: "link",
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
label: "location - Place multiple locations on a geographic map",
|
|
75
|
+
value: "location",
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
label: "long_text - Add large amounts of text without changing column width",
|
|
79
|
+
value: "long_text",
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
label: "numbers - Add revenue, costs, time estimations and more",
|
|
83
|
+
value: "numbers",
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
label: "people - Assign people to improve team work",
|
|
87
|
+
value: "people",
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
label: "phone - Call your contacts directly from monday.com",
|
|
91
|
+
value: "phone",
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
label: "progress - Show progress by combining status columns in a battery",
|
|
95
|
+
value: "progress",
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
label: "rating - Rate or rank anything visually",
|
|
99
|
+
value: "rating",
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
label: "status - Get an instant overview of where things stand",
|
|
103
|
+
value: "status",
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
label: "team - Assign a full team to an item",
|
|
107
|
+
value: "team",
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
label: "tags - Add tags to categorize items across multiple boards",
|
|
111
|
+
value: "tags",
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
label: "text - Add textual information e.g. addresses, names or keywords",
|
|
115
|
+
value: "text",
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
label: "timeline - Visually see a breakdown of your team's workload by time",
|
|
119
|
+
value: "timeline",
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
label: "time_tracking - Easily track time spent on each item, group, and board",
|
|
123
|
+
value: "time_tracking",
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
label: "vote - Vote on an item e.g. pick a new feature or a favorite lunch place",
|
|
127
|
+
value: "vote",
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
label: "week - Select the week on which each item should be completed",
|
|
131
|
+
value: "week",
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
label: "world_clock - Keep track of the time anywhere in the world",
|
|
135
|
+
value: "world_clock",
|
|
136
|
+
},
|
|
137
|
+
];
|
|
138
|
+
|
|
16
139
|
export default {
|
|
17
140
|
BOARD_KIND_OPTIONS,
|
|
141
|
+
COLUMN_TYPE_OPTIONS,
|
|
18
142
|
};
|
package/common/mutations.mjs
CHANGED
|
@@ -110,4 +110,23 @@ export default {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
`,
|
|
113
|
+
createColumn: `
|
|
114
|
+
mutation createColumn (
|
|
115
|
+
$boardId: Int!
|
|
116
|
+
$title: String!
|
|
117
|
+
$columnType: ColumnType!
|
|
118
|
+
$defaults: JSON
|
|
119
|
+
$description: String
|
|
120
|
+
) {
|
|
121
|
+
create_column(
|
|
122
|
+
board_id: $boardId
|
|
123
|
+
title: $title
|
|
124
|
+
column_type: $columnType
|
|
125
|
+
defaults: $defaults
|
|
126
|
+
description: $description
|
|
127
|
+
) {
|
|
128
|
+
id
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
`,
|
|
113
132
|
};
|
package/monday.app.mjs
CHANGED
|
@@ -207,6 +207,14 @@ export default {
|
|
|
207
207
|
},
|
|
208
208
|
});
|
|
209
209
|
},
|
|
210
|
+
async createColumn(variables) {
|
|
211
|
+
return this.makeRequest({
|
|
212
|
+
query: mutations.createColumn,
|
|
213
|
+
options: {
|
|
214
|
+
variables,
|
|
215
|
+
},
|
|
216
|
+
});
|
|
217
|
+
},
|
|
210
218
|
async createUpdate(variables) {
|
|
211
219
|
return this.makeRequest({
|
|
212
220
|
query: mutations.createUpdate,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pipedream/monday",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"description": "Pipedream Monday Components",
|
|
5
5
|
"main": "monday.app.mjs",
|
|
6
6
|
"keywords": [
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
],
|
|
10
10
|
"homepage": "https://pipedream.com/apps/monday",
|
|
11
11
|
"author": "Pipedream <support@pipedream.com> (https://pipedream.com/)",
|
|
12
|
-
"license": "MIT",
|
|
13
12
|
"gitHead": "e12480b94cc03bed4808ebc6b13e7fdb3a1ba535",
|
|
14
13
|
"publishConfig": {
|
|
15
14
|
"access": "public"
|