@pipedream/linear_app 0.7.1 → 0.7.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.
@@ -4,8 +4,8 @@ export default {
4
4
  type: "action",
5
5
  key: "linear_app-create-issue",
6
6
  name: "Create Issue",
7
- description: "Create an issue (API Key). See the docs [here](https://developers.linear.app/docs/graphql/working-with-the-graphql-api#creating-and-editing-issues)",
8
- version: "0.4.8",
7
+ description: "Creates a new issue in Linear. Requires team ID and title. Optional: description, assignee, project, state. Returns response object with success status and issue details. Uses API Key authentication. See Linear docs for additional info [here](https://developers.linear.app/docs/graphql/working-with-the-graphql-api#creating-and-editing-issues).",
8
+ version: "0.4.10",
9
9
  props: {
10
10
  linearApp,
11
11
  teamId: {
@@ -3,8 +3,8 @@ import linearApp from "../../linear_app.app.mjs";
3
3
  export default {
4
4
  key: "linear_app-get-issue",
5
5
  name: "Get Issue",
6
- description: "Get an issue by ID (API Key). See the docs [here](https://developers.linear.app/docs/graphql/working-with-the-graphql-api)",
7
- version: "0.1.8",
6
+ description: "Retrieves a Linear issue by its ID. Returns complete issue details including title, description, state, assignee, team, project, labels, and timestamps. Uses API Key authentication. See Linear docs for additional info [here](https://developers.linear.app/docs/graphql/working-with-the-graphql-api).",
7
+ version: "0.1.10",
8
8
  type: "action",
9
9
  props: {
10
10
  linearApp,
@@ -4,8 +4,8 @@ import constants from "../../common/constants.mjs";
4
4
  export default {
5
5
  key: "linear_app-get-teams",
6
6
  name: "Get Teams",
7
- description: "Get all the teams (API Key). See the docs [here](https://developers.linear.app/docs/graphql/working-with-the-graphql-api)",
8
- version: "0.2.8",
7
+ description: "Retrieves all teams in your Linear workspace. Returns array of team objects with details like ID, name, and key. Supports pagination with configurable limit. Uses API Key authentication. See Linear docs for additional info [here](https://developers.linear.app/docs/graphql/working-with-the-graphql-api).",
8
+ version: "0.2.10",
9
9
  type: "action",
10
10
  props: {
11
11
  linearApp,
@@ -5,9 +5,9 @@ import constants from "../../common/constants.mjs";
5
5
  export default {
6
6
  key: "linear_app-search-issues",
7
7
  name: "Search Issues",
8
- description: "Search issues (API Key). See the docs [here](https://developers.linear.app/docs/graphql/working-with-the-graphql-api)",
8
+ description: "Searches Linear issues by team, project, assignee, labels, state, or text query. Supports pagination, ordering, and archived issues. Returns array of matching issues. Uses API Key authentication. See Linear docs for additional info [here](https://developers.linear.app/docs/graphql/working-with-the-graphql-api).",
9
9
  type: "action",
10
- version: "0.2.8",
10
+ version: "0.2.10",
11
11
  props: {
12
12
  linearApp,
13
13
  teamId: {
@@ -3,9 +3,9 @@ import linearApp from "../../linear_app.app.mjs";
3
3
  export default {
4
4
  key: "linear_app-update-issue",
5
5
  name: "Update Issue",
6
- description: "Update an issue (API Key). See the docs [here](https://developers.linear.app/docs/graphql/working-with-the-graphql-api#creating-and-editing-issues)",
6
+ description: "Updates an existing Linear issue. Can modify title, description, assignee, state, project, team, labels, priority, and dates. Returns updated issue details. Uses API Key authentication. See Linear docs for additional info [here](https://developers.linear.app/docs/graphql/working-with-the-graphql-api#creating-and-editing-issues).",
7
7
  type: "action",
8
- version: "0.1.8",
8
+ version: "0.1.10",
9
9
  props: {
10
10
  linearApp,
11
11
  teamId: {
@@ -103,4 +103,12 @@ export default {
103
103
  ${fragments.projectUpdate}
104
104
  ${fragments.pageInfo}
105
105
  `,
106
+ getProjectUpdate: `
107
+ query GetProjectUpdate($projectUpdateId: String!) {
108
+ projectUpdate(id: $projectUpdateId) {
109
+ ...ProjectUpdate
110
+ }
111
+ }
112
+ ${fragments.projectUpdate}
113
+ `,
106
114
  };
@@ -72,11 +72,9 @@ export default {
72
72
  }),
73
73
  resourcesArgs: teamId && {
74
74
  filter: {
75
- issues: {
76
- team: {
77
- id: {
78
- eq: teamId,
79
- },
75
+ accessibleTeams: {
76
+ id: {
77
+ eq: teamId,
80
78
  },
81
79
  },
82
80
  },
@@ -258,6 +256,17 @@ export default {
258
256
  async getProjectUpdate(id) {
259
257
  return this.client().projectUpdate(id);
260
258
  },
259
+ async getProjectUpdateGraphQL(id) {
260
+ const { data: { projectUpdate } } = await this.post({
261
+ data: {
262
+ query: queries.getProjectUpdate,
263
+ variables: {
264
+ projectUpdateId: id,
265
+ },
266
+ },
267
+ });
268
+ return projectUpdate;
269
+ },
261
270
  async getState(id) {
262
271
  return this.client().workflowState(id);
263
272
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/linear_app",
3
- "version": "0.7.1",
3
+ "version": "0.7.3",
4
4
  "description": "Pipedream Linear_app Components",
5
5
  "main": "linear_app.app.mjs",
6
6
  "keywords": [
@@ -4,10 +4,10 @@ import constants from "../../common/constants.mjs";
4
4
  export default {
5
5
  ...common,
6
6
  key: "linear_app-comment-created-instant",
7
- name: "New Created Comment (Instant)",
8
- description: "Emit new event when a new comment is created. [See the documentation](https://developers.linear.app/docs/graphql/webhooks)",
7
+ name: "New Comment Created (Instant)",
8
+ description: "Triggers instantly when a new comment is added to an issue in Linear. Returns comment details including content, author, issue reference, and timestamps. Supports filtering by team. See Linear docs for additional info [here](https://developers.linear.app/docs/graphql/webhooks).",
9
9
  type: "source",
10
- version: "0.1.10",
10
+ version: "0.1.12",
11
11
  dedupe: "unique",
12
12
  methods: {
13
13
  ...common.methods,
@@ -4,10 +4,10 @@ import constants from "../../common/constants.mjs";
4
4
  export default {
5
5
  ...common,
6
6
  key: "linear_app-issue-created-instant",
7
- name: "New Created Issue (Instant)",
8
- description: "Emit new event when a new issue is created. [See the documentation](https://developers.linear.app/docs/graphql/webhooks)",
7
+ name: "New Issue Created (Instant)",
8
+ description: "Triggers instantly when a new issue is created in Linear. Provides complete issue details including title, description, team, assignee, state, and timestamps. Supports filtering by team and project. See Linear docs for additional info [here](https://developers.linear.app/docs/graphql/webhooks).",
9
9
  type: "source",
10
- version: "0.3.10",
10
+ version: "0.3.12",
11
11
  dedupe: "unique",
12
12
  methods: {
13
13
  ...common.methods,
@@ -4,10 +4,10 @@ import constants from "../../common/constants.mjs";
4
4
  export default {
5
5
  ...common,
6
6
  key: "linear_app-issue-updated-instant",
7
- name: "New Updated Issue (Instant)",
8
- description: "Emit new event when an issue is updated. [See the documentation](https://developers.linear.app/docs/graphql/webhooks)",
7
+ name: "Issue Updated (Instant)",
8
+ description: "Triggers instantly when any issue is updated in Linear. Provides complete issue details with changes. Supports filtering by team and project. Includes all updates except status changes. See Linear docs for additional info [here](https://developers.linear.app/docs/graphql/webhooks).",
9
9
  type: "source",
10
- version: "0.3.10",
10
+ version: "0.3.12",
11
11
  dedupe: "unique",
12
12
  methods: {
13
13
  ...common.methods,
@@ -5,10 +5,10 @@ import utils from "../../common/utils.mjs";
5
5
  export default {
6
6
  ...common,
7
7
  key: "linear_app-new-issue-status-updated",
8
- name: "New Issue Status Updated (Instant)",
9
- description: "Emit new event when the status of an issue is updated. [See the documentation](https://developers.linear.app/docs/graphql/webhooks)",
8
+ name: "Issue Status Updated (Instant)",
9
+ description: "Triggers instantly when an issue's workflow state changes (e.g., Todo to In Progress). Returns issue with previous and current state info. Can filter by specific target state. See Linear docs for additional info [here](https://developers.linear.app/docs/graphql/webhooks).",
10
10
  type: "source",
11
- version: "0.1.10",
11
+ version: "0.1.12",
12
12
  dedupe: "unique",
13
13
  props: {
14
14
  linearApp: common.props.linearApp,
@@ -6,9 +6,9 @@ export default {
6
6
  ...common,
7
7
  key: "linear_app-new-projectupdate-created",
8
8
  name: "New Project Update Written (Instant)",
9
- description: "Project updates are short status reports on the health of your projects. Emit new event when a new Project Update is written. [See the documentation](https://developers.linear.app/docs/graphql/webhooks)",
9
+ description: "Triggers instantly when a project update (status report) is created in Linear. Returns update content, author, project details, and health status. Filters by team and optionally by project. See Linear docs for additional info [here](https://developers.linear.app/docs/graphql/webhooks).",
10
10
  type: "source",
11
- version: "0.0.2",
11
+ version: "0.0.4",
12
12
  dedupe: "unique",
13
13
  props: {
14
14
  linearApp,
@@ -58,11 +58,10 @@ export default {
58
58
  };
59
59
  },
60
60
  getResource(projectUpdate) {
61
- return this.linearApp.getProjectUpdate(projectUpdate.id);
61
+ return this.linearApp.getProjectUpdateGraphQL(projectUpdate.id);
62
62
  },
63
63
  isRelevant(body) {
64
- const teamIds = body.data.infoSnapshot.teamsInfo.map(({ id }) => id);
65
- return body?.action === "create" && teamIds.includes(this.teamId);
64
+ return body?.action === "create";
66
65
  },
67
66
  isRelevantPolling(resource) {
68
67
  const teamIds = resource.infoSnapshot.teamsInfo.map(({ id }) => id);
@@ -5,10 +5,10 @@ import linearApp from "../../linear_app.app.mjs";
5
5
  export default {
6
6
  ...common,
7
7
  key: "linear_app-project-updated-instant",
8
- name: "New Updated Project (Instant)",
9
- description: "Emit new event when a project is updated. [See the documentation](https://developers.linear.app/docs/graphql/webhooks)",
8
+ name: "Project Updated (Instant)",
9
+ description: "Triggers instantly when a project is updated in Linear. Returns project details including name, description, status, dates, and team info. Supports filtering by specific teams. See Linear docs for additional info [here](https://developers.linear.app/docs/graphql/webhooks).",
10
10
  type: "source",
11
- version: "0.0.3",
11
+ version: "0.0.5",
12
12
  dedupe: "unique",
13
13
  props: {
14
14
  linearApp,