@pipedream/linear_app 0.7.2 → 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.
@@ -5,7 +5,7 @@ export default {
5
5
  key: "linear_app-create-issue",
6
6
  name: "Create Issue",
7
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.9",
8
+ version: "0.4.10",
9
9
  props: {
10
10
  linearApp,
11
11
  teamId: {
@@ -4,7 +4,7 @@ export default {
4
4
  key: "linear_app-get-issue",
5
5
  name: "Get Issue",
6
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.9",
7
+ version: "0.1.10",
8
8
  type: "action",
9
9
  props: {
10
10
  linearApp,
@@ -5,7 +5,7 @@ export default {
5
5
  key: "linear_app-get-teams",
6
6
  name: "Get Teams",
7
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.9",
8
+ version: "0.2.10",
9
9
  type: "action",
10
10
  props: {
11
11
  linearApp,
@@ -7,7 +7,7 @@ export default {
7
7
  name: "Search Issues",
8
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.9",
10
+ version: "0.2.10",
11
11
  props: {
12
12
  linearApp,
13
13
  teamId: {
@@ -5,7 +5,7 @@ export default {
5
5
  name: "Update Issue",
6
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.9",
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.2",
3
+ "version": "0.7.3",
4
4
  "description": "Pipedream Linear_app Components",
5
5
  "main": "linear_app.app.mjs",
6
6
  "keywords": [
@@ -7,7 +7,7 @@ export default {
7
7
  name: "New Comment Created (Instant)",
8
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.11",
10
+ version: "0.1.12",
11
11
  dedupe: "unique",
12
12
  methods: {
13
13
  ...common.methods,
@@ -7,7 +7,7 @@ export default {
7
7
  name: "New Issue Created (Instant)",
8
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.11",
10
+ version: "0.3.12",
11
11
  dedupe: "unique",
12
12
  methods: {
13
13
  ...common.methods,
@@ -7,7 +7,7 @@ export default {
7
7
  name: "Issue Updated (Instant)",
8
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.11",
10
+ version: "0.3.12",
11
11
  dedupe: "unique",
12
12
  methods: {
13
13
  ...common.methods,
@@ -8,7 +8,7 @@ export default {
8
8
  name: "Issue Status Updated (Instant)",
9
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.11",
11
+ version: "0.1.12",
12
12
  dedupe: "unique",
13
13
  props: {
14
14
  linearApp: common.props.linearApp,
@@ -8,7 +8,7 @@ export default {
8
8
  name: "New Project Update Written (Instant)",
9
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.3",
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);
@@ -8,7 +8,7 @@ export default {
8
8
  name: "Project Updated (Instant)",
9
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.4",
11
+ version: "0.0.5",
12
12
  dedupe: "unique",
13
13
  props: {
14
14
  linearApp,