@pipedream/linear 0.4.1 → 0.4.2
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-issue/create-issue.mjs +3 -15
- package/actions/get-issue/get-issue.mjs +3 -15
- package/actions/get-teams/get-teams.mjs +1 -0
- package/actions/search-issues/search-issues.mjs +3 -15
- package/actions/update-issue/update-issue.mjs +3 -15
- package/common/utils.mjs +20 -0
- package/package.json +1 -1
- package/sources/comment-created-instant/comment-created-instant.mjs +3 -4
- package/sources/issue-created-instant/issue-created-instant.mjs +3 -4
- package/sources/issue-updated-instant/issue-updated-instant.mjs +3 -4
- package/sources/common/webhook-props.mjs +0 -22
|
@@ -1,27 +1,15 @@
|
|
|
1
|
-
import linearApp from "../../linear.app.mjs";
|
|
2
|
-
import utils from "../../common/utils.mjs";
|
|
3
1
|
import createIssue from "../../../linear_app/actions/create-issue/create-issue.mjs";
|
|
2
|
+
import utils from "../../common/utils.mjs";
|
|
4
3
|
|
|
5
4
|
/* eslint-disable pipedream/required-properties-type */
|
|
6
5
|
/* eslint-disable pipedream/required-properties-name */
|
|
7
6
|
/* eslint-disable pipedream/required-properties-version */
|
|
8
7
|
|
|
9
|
-
const {
|
|
10
|
-
// eslint-disable-next-line no-unused-vars
|
|
11
|
-
linearApp: app,
|
|
12
|
-
...otherProps
|
|
13
|
-
} = createIssue.props;
|
|
14
|
-
|
|
15
8
|
export default {
|
|
16
9
|
...createIssue,
|
|
10
|
+
...utils.getAppProps(createIssue),
|
|
17
11
|
key: "linear-create-issue",
|
|
18
12
|
description: "Create an issue (OAuth). See the docs [here](https://developers.linear.app/docs/graphql/working-with-the-graphql-api#creating-and-editing-issues)",
|
|
19
|
-
|
|
20
|
-
linearApp,
|
|
21
|
-
...utils.buildPropDefinitions({
|
|
22
|
-
app: linearApp,
|
|
23
|
-
props: otherProps,
|
|
24
|
-
}),
|
|
25
|
-
},
|
|
13
|
+
version: "0.3.7",
|
|
26
14
|
};
|
|
27
15
|
|
|
@@ -1,27 +1,15 @@
|
|
|
1
|
-
import linearApp from "../../linear.app.mjs";
|
|
2
|
-
import utils from "../../common/utils.mjs";
|
|
3
1
|
import getIssue from "../../../linear_app/actions/get-issue/get-issue.mjs";
|
|
2
|
+
import utils from "../../common/utils.mjs";
|
|
4
3
|
|
|
5
4
|
/* eslint-disable pipedream/required-properties-type */
|
|
6
5
|
/* eslint-disable pipedream/required-properties-name */
|
|
7
6
|
/* eslint-disable pipedream/required-properties-version */
|
|
8
7
|
|
|
9
|
-
const {
|
|
10
|
-
// eslint-disable-next-line no-unused-vars
|
|
11
|
-
linearApp: app,
|
|
12
|
-
...otherProps
|
|
13
|
-
} = getIssue.props;
|
|
14
|
-
|
|
15
8
|
export default {
|
|
16
9
|
...getIssue,
|
|
10
|
+
...utils.getAppProps(getIssue),
|
|
17
11
|
key: "linear-get-issue",
|
|
18
12
|
description: "Get an issue by ID (OAuth). See the docs [here](https://developers.linear.app/docs/graphql/working-with-the-graphql-api)",
|
|
19
|
-
|
|
20
|
-
linearApp,
|
|
21
|
-
...utils.buildPropDefinitions({
|
|
22
|
-
app: linearApp,
|
|
23
|
-
props: otherProps,
|
|
24
|
-
}),
|
|
25
|
-
},
|
|
13
|
+
version: "0.0.3",
|
|
26
14
|
};
|
|
27
15
|
|
|
@@ -9,6 +9,7 @@ export default {
|
|
|
9
9
|
...getTeams,
|
|
10
10
|
key: "linear-get-teams",
|
|
11
11
|
description: "Get all the teams (OAuth). See the docs [here](https://developers.linear.app/docs/graphql/working-with-the-graphql-api#creating-and-editing-issues)",
|
|
12
|
+
version: "0.1.5",
|
|
12
13
|
props: {
|
|
13
14
|
linearApp,
|
|
14
15
|
},
|
|
@@ -1,27 +1,15 @@
|
|
|
1
|
-
import linearApp from "../../linear.app.mjs";
|
|
2
|
-
import utils from "../../common/utils.mjs";
|
|
3
1
|
import searchIssues from "../../../linear_app/actions/search-issues/search-issues.mjs";
|
|
2
|
+
import utils from "../../common/utils.mjs";
|
|
4
3
|
|
|
5
4
|
/* eslint-disable pipedream/required-properties-type */
|
|
6
5
|
/* eslint-disable pipedream/required-properties-name */
|
|
7
6
|
/* eslint-disable pipedream/required-properties-version */
|
|
8
7
|
|
|
9
|
-
const {
|
|
10
|
-
// eslint-disable-next-line no-unused-vars
|
|
11
|
-
linearApp: app,
|
|
12
|
-
...otherProps
|
|
13
|
-
} = searchIssues.props;
|
|
14
|
-
|
|
15
8
|
export default {
|
|
16
9
|
...searchIssues,
|
|
10
|
+
...utils.getAppProps(searchIssues),
|
|
17
11
|
key: "linear-search-issues",
|
|
18
12
|
description: "Search issues (OAuth). See the docs [here](https://developers.linear.app/docs/graphql/working-with-the-graphql-api)",
|
|
19
|
-
|
|
20
|
-
linearApp,
|
|
21
|
-
...utils.buildPropDefinitions({
|
|
22
|
-
app: linearApp,
|
|
23
|
-
props: otherProps,
|
|
24
|
-
}),
|
|
25
|
-
},
|
|
13
|
+
version: "0.1.4",
|
|
26
14
|
};
|
|
27
15
|
|
|
@@ -1,27 +1,15 @@
|
|
|
1
|
-
import linearApp from "../../linear.app.mjs";
|
|
2
|
-
import utils from "../../common/utils.mjs";
|
|
3
1
|
import updateIssue from "../../../linear_app/actions/update-issue/update-issue.mjs";
|
|
2
|
+
import utils from "../../common/utils.mjs";
|
|
4
3
|
|
|
5
4
|
/* eslint-disable pipedream/required-properties-type */
|
|
6
5
|
/* eslint-disable pipedream/required-properties-name */
|
|
7
6
|
/* eslint-disable pipedream/required-properties-version */
|
|
8
7
|
|
|
9
|
-
const {
|
|
10
|
-
// eslint-disable-next-line no-unused-vars
|
|
11
|
-
linearApp: app,
|
|
12
|
-
...otherProps
|
|
13
|
-
} = updateIssue.props;
|
|
14
|
-
|
|
15
8
|
export default {
|
|
16
9
|
...updateIssue,
|
|
10
|
+
...utils.getAppProps(updateIssue),
|
|
17
11
|
key: "linear-update-issue",
|
|
18
12
|
description: "Update an issue (OAuth). See the docs [here](https://developers.linear.app/docs/graphql/working-with-the-graphql-api#creating-and-editing-issues)",
|
|
19
|
-
|
|
20
|
-
linearApp,
|
|
21
|
-
...utils.buildPropDefinitions({
|
|
22
|
-
app: linearApp,
|
|
23
|
-
props: otherProps,
|
|
24
|
-
}),
|
|
25
|
-
},
|
|
13
|
+
version: "0.0.5",
|
|
26
14
|
};
|
|
27
15
|
|
package/common/utils.mjs
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import linearApp from "../linear.app.mjs";
|
|
2
|
+
|
|
1
3
|
function buildPropDefinitions({
|
|
2
4
|
app = {}, props = {},
|
|
3
5
|
}) {
|
|
@@ -30,6 +32,24 @@ function buildPropDefinitions({
|
|
|
30
32
|
}, {});
|
|
31
33
|
}
|
|
32
34
|
|
|
35
|
+
function getAppProps(component = {}) {
|
|
36
|
+
const {
|
|
37
|
+
// eslint-disable-next-line no-unused-vars
|
|
38
|
+
linearApp: app,
|
|
39
|
+
...otherProps
|
|
40
|
+
} = component.props;
|
|
41
|
+
return {
|
|
42
|
+
props: {
|
|
43
|
+
linearApp,
|
|
44
|
+
...buildPropDefinitions({
|
|
45
|
+
app: linearApp,
|
|
46
|
+
props: otherProps,
|
|
47
|
+
}),
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
33
52
|
export default {
|
|
34
53
|
buildPropDefinitions,
|
|
54
|
+
getAppProps,
|
|
35
55
|
};
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import common from "../common/webhook-props.mjs";
|
|
2
1
|
import commentCreatedInstant from "../../../linear_app/sources/comment-created-instant/comment-created-instant.mjs";
|
|
2
|
+
import utils from "../../common/utils.mjs";
|
|
3
3
|
|
|
4
4
|
/* eslint-disable pipedream/required-properties-type */
|
|
5
5
|
/* eslint-disable pipedream/required-properties-name */
|
|
@@ -7,9 +7,8 @@ import commentCreatedInstant from "../../../linear_app/sources/comment-created-i
|
|
|
7
7
|
|
|
8
8
|
export default {
|
|
9
9
|
...commentCreatedInstant,
|
|
10
|
+
...utils.getAppProps(commentCreatedInstant),
|
|
10
11
|
key: "linear-comment-created-instant",
|
|
11
12
|
description: "Emit new event when a new comment is created (OAuth). See the docs [here](https://developers.linear.app/docs/graphql/webhooks)",
|
|
12
|
-
|
|
13
|
-
...common.props,
|
|
14
|
-
},
|
|
13
|
+
version: "0.0.4",
|
|
15
14
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import common from "../common/webhook-props.mjs";
|
|
2
1
|
import issueCreatedInstant from "../../../linear_app/sources/issue-created-instant/issue-created-instant.mjs";
|
|
2
|
+
import utils from "../../common/utils.mjs";
|
|
3
3
|
|
|
4
4
|
/* eslint-disable pipedream/required-properties-type */
|
|
5
5
|
/* eslint-disable pipedream/required-properties-name */
|
|
@@ -7,9 +7,8 @@ import issueCreatedInstant from "../../../linear_app/sources/issue-created-insta
|
|
|
7
7
|
|
|
8
8
|
export default {
|
|
9
9
|
...issueCreatedInstant,
|
|
10
|
+
...utils.getAppProps(issueCreatedInstant),
|
|
10
11
|
key: "linear-issue-created-instant",
|
|
11
12
|
description: "Emit new event when a new issue is created (OAuth). See the docs [here](https://developers.linear.app/docs/graphql/webhooks)",
|
|
12
|
-
|
|
13
|
-
...common.props,
|
|
14
|
-
},
|
|
13
|
+
version: "0.2.3",
|
|
15
14
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import common from "../common/webhook-props.mjs";
|
|
2
1
|
import issueUpdatedInstant from "../../../linear_app/sources/issue-updated-instant/issue-updated-instant.mjs";
|
|
2
|
+
import utils from "../../common/utils.mjs";
|
|
3
3
|
|
|
4
4
|
/* eslint-disable pipedream/required-properties-type */
|
|
5
5
|
/* eslint-disable pipedream/required-properties-name */
|
|
@@ -7,9 +7,8 @@ import issueUpdatedInstant from "../../../linear_app/sources/issue-updated-insta
|
|
|
7
7
|
|
|
8
8
|
export default {
|
|
9
9
|
...issueUpdatedInstant,
|
|
10
|
+
...utils.getAppProps(issueUpdatedInstant),
|
|
10
11
|
key: "linear-issue-updated-instant",
|
|
11
12
|
description: "Emit new event when an issue is updated (OAuth). See the docs [here](https://developers.linear.app/docs/graphql/webhooks)",
|
|
12
|
-
|
|
13
|
-
...common.props,
|
|
14
|
-
},
|
|
13
|
+
version: "0.2.3",
|
|
15
14
|
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import linearApp from "../../linear.app.mjs";
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
props: {
|
|
5
|
-
linearApp,
|
|
6
|
-
teamId: {
|
|
7
|
-
propDefinition: [
|
|
8
|
-
linearApp,
|
|
9
|
-
"teamId",
|
|
10
|
-
],
|
|
11
|
-
optional: true,
|
|
12
|
-
},
|
|
13
|
-
projectId: {
|
|
14
|
-
propDefinition: [
|
|
15
|
-
linearApp,
|
|
16
|
-
"projectId",
|
|
17
|
-
],
|
|
18
|
-
},
|
|
19
|
-
http: "$.interface.http",
|
|
20
|
-
db: "$.service.db",
|
|
21
|
-
},
|
|
22
|
-
};
|