|
1 | 1 | import { addBearerHeader, authentication } from "./authentication"; |
2 | 2 | import { createIssue } from "./creates/createIssue"; |
3 | | -import { newIssueComment } from "./triggers/commentIssue"; |
4 | | -import { newProjectUpdateComment } from "./triggers/commentProjectUpdate"; |
5 | | -import { newDocumentComment } from "./triggers/commentDocument"; |
6 | | -import { newIssue, updatedIssue } from "./triggers/issue"; |
| 3 | +import { newIssueCommentLegacy } from "./triggers/legacy/commentIssue"; |
| 4 | +import { newProjectUpdateCommentLegacy } from "./triggers/legacy/commentProjectUpdate"; |
| 5 | +import { newDocumentCommentLegacy } from "./triggers/legacy/commentDocument"; |
| 6 | +import { newIssueLegacy, updatedIssueLegacy } from "./triggers/legacy/issue"; |
7 | 7 | import { team } from "./triggers/team"; |
8 | 8 | import { status } from "./triggers/status"; |
9 | 9 | import { label } from "./triggers/label"; |
10 | 10 | import { user } from "./triggers/user"; |
11 | 11 | import { project } from "./triggers/project"; |
12 | | -import { newProjectUpdate, updatedProjectUpdate } from "./triggers/projectUpdate"; |
| 12 | +import { newProjectUpdateLegacy, updatedProjectUpdateLegacy } from "./triggers/legacy/projectUpdate"; |
13 | 13 | import { projectMilestone } from "./triggers/projectMilestone"; |
14 | 14 | import { HttpResponse, ZObject } from "zapier-platform-core"; |
15 | 15 | import { createComment } from "./creates/createComment"; |
16 | 16 | import { estimate } from "./triggers/estimate"; |
17 | | -import { newDocumentCommentInstant } from "./triggers/commentDocumentV2"; |
18 | | -import { newIssueCommentInstant } from "./triggers/commentIssueV2"; |
19 | | -import { newProjectUpdateCommentInstant } from "./triggers/commentProjectUpdateV2"; |
20 | | -import { newProjectUpdateInstant, updatedProjectUpdateInstant } from "./triggers/projectUpdateV2"; |
| 17 | +import { newDocumentCommentInstant } from "./triggers/commentDocument"; |
| 18 | +import { newIssueCommentInstant } from "./triggers/commentIssue"; |
| 19 | +import { newProjectUpdateCommentInstant } from "./triggers/commentProjectUpdate"; |
| 20 | +import { newProjectUpdateInstant, updatedProjectUpdateInstant } from "./triggers/projectUpdate"; |
21 | 21 | import { projectWithoutTeam } from "./triggers/projectWithoutTeam"; |
22 | | -import { newIssueInstant, updatedIssueInstant } from "./triggers/issueV2"; |
| 22 | +import { newIssueInstant, updatedIssueInstant } from "./triggers/issue"; |
23 | 23 | import { initiative } from "./triggers/initiative"; |
24 | 24 | import { projectStatus } from "./triggers/projectStatus"; |
25 | 25 | import { newProjectInstant, updatedProjectInstant } from "./triggers/newProject"; |
@@ -71,19 +71,22 @@ const App = { |
71 | 71 | [createCustomerNeed.key]: createCustomerNeed, |
72 | 72 | }, |
73 | 73 | triggers: { |
74 | | - [newIssue.key]: newIssue, |
| 74 | + // Legacy triggers are all hidden and no longer used, but we can't remove them because Zapier considers that a breaking change. |
| 75 | + [newIssueLegacy.key]: newIssueLegacy, |
75 | 76 | [newIssueInstant.key]: newIssueInstant, |
76 | | - [updatedIssue.key]: updatedIssue, |
| 77 | + [updatedIssueLegacy.key]: updatedIssueLegacy, |
77 | 78 | [updatedIssueInstant.key]: updatedIssueInstant, |
78 | | - [newIssueComment.key]: newIssueComment, |
| 79 | + [newIssueCommentLegacy.key]: newIssueCommentLegacy, |
79 | 80 | [newIssueCommentInstant.key]: newIssueCommentInstant, |
80 | | - [newProjectUpdate.key]: newProjectUpdate, |
| 81 | + [newProjectUpdateLegacy.key]: newProjectUpdateLegacy, |
| 82 | + [updatedProjectUpdateLegacy.key]: updatedProjectUpdateLegacy, |
| 83 | + |
| 84 | + // New triggers are all visible and used |
81 | 85 | [newProjectUpdateInstant.key]: newProjectUpdateInstant, |
82 | | - [newProjectUpdateComment.key]: newProjectUpdateComment, |
| 86 | + [newProjectUpdateCommentLegacy.key]: newProjectUpdateCommentLegacy, |
83 | 87 | [newProjectUpdateCommentInstant.key]: newProjectUpdateCommentInstant, |
84 | | - [newDocumentComment.key]: newDocumentComment, |
| 88 | + [newDocumentCommentLegacy.key]: newDocumentCommentLegacy, |
85 | 89 | [newDocumentCommentInstant.key]: newDocumentCommentInstant, |
86 | | - [updatedProjectUpdate.key]: updatedProjectUpdate, |
87 | 90 | [updatedProjectUpdateInstant.key]: updatedProjectUpdateInstant, |
88 | 91 | [newInitiativeUpdateInstant.key]: newInitiativeUpdateInstant, |
89 | 92 | [updatedInitiativeUpdateInstant.key]: updatedInitiativeUpdateInstant, |
|
0 commit comments