@automate.ax/catalog 0.86.2 → 0.87.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automate.ax/catalog",
3
- "version": "0.86.2",
3
+ "version": "0.87.0",
4
4
  "description": "Shared integration service and trigger definitions for Automate.ax.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -36,7 +36,187 @@ const GITHUB_ACTIONS_ACCOUNT = {
36
36
  serviceId: "github",
37
37
  } as const satisfies IntegrationAccountRequirement
38
38
 
39
+ const GITHUB_DEPLOYMENTS_ACCOUNT = {
40
+ connectionOptions: [
41
+ {
42
+ requiredScopes: ["deployments:read"],
43
+ },
44
+ ],
45
+ serviceId: "github",
46
+ } as const satisfies IntegrationAccountRequirement
47
+
48
+ const GITHUB_COMMIT_STATUSES_ACCOUNT = {
49
+ connectionOptions: [
50
+ {
51
+ requiredScopes: ["statuses:read"],
52
+ },
53
+ ],
54
+ serviceId: "github",
55
+ } as const satisfies IntegrationAccountRequirement
56
+
57
+ const GITHUB_CHECKS_ACCOUNT = {
58
+ connectionOptions: [
59
+ {
60
+ requiredScopes: ["checks:read"],
61
+ },
62
+ ],
63
+ serviceId: "github",
64
+ } as const satisfies IntegrationAccountRequirement
65
+
66
+ const GITHUB_CHECKS_WRITE_ACCOUNT = {
67
+ connectionOptions: [
68
+ {
69
+ requiredScopes: ["checks:write"],
70
+ },
71
+ ],
72
+ serviceId: "github",
73
+ } as const satisfies IntegrationAccountRequirement
74
+
39
75
  export const githubTriggerDefinitions = {
76
+ githubBranchCreated: {
77
+ account: GITHUB_CONTENTS_ACCOUNT,
78
+ type: "github.branch.created",
79
+ },
80
+ githubBranchDeleted: {
81
+ account: GITHUB_CONTENTS_ACCOUNT,
82
+ type: "github.branch.deleted",
83
+ },
84
+ githubCheckRunActionRequired: {
85
+ account: GITHUB_CHECKS_ACCOUNT,
86
+ type: "github.check-run.action-required",
87
+ },
88
+ githubCheckRunCancelled: {
89
+ account: GITHUB_CHECKS_ACCOUNT,
90
+ type: "github.check-run.cancelled",
91
+ },
92
+ githubCheckRunCompleted: {
93
+ account: GITHUB_CHECKS_ACCOUNT,
94
+ type: "github.check-run.completed",
95
+ },
96
+ githubCheckRunCreated: {
97
+ account: GITHUB_CHECKS_ACCOUNT,
98
+ type: "github.check-run.created",
99
+ },
100
+ githubCheckRunEvent: {
101
+ account: GITHUB_CHECKS_ACCOUNT,
102
+ type: "github.check-run.event",
103
+ },
104
+ githubCheckRunFailed: {
105
+ account: GITHUB_CHECKS_ACCOUNT,
106
+ type: "github.check-run.failed",
107
+ },
108
+ githubCheckRunRerequested: {
109
+ account: GITHUB_CHECKS_WRITE_ACCOUNT,
110
+ type: "github.check-run.rerequested",
111
+ },
112
+ githubCheckRunRequestedAction: {
113
+ account: GITHUB_CHECKS_WRITE_ACCOUNT,
114
+ type: "github.check-run.requested-action",
115
+ },
116
+ githubCheckRunSucceeded: {
117
+ account: GITHUB_CHECKS_ACCOUNT,
118
+ type: "github.check-run.succeeded",
119
+ },
120
+ githubCheckRunStartupFailed: {
121
+ account: GITHUB_CHECKS_ACCOUNT,
122
+ type: "github.check-run.startup-failed",
123
+ },
124
+ githubCheckRunTimedOut: {
125
+ account: GITHUB_CHECKS_ACCOUNT,
126
+ type: "github.check-run.timed-out",
127
+ },
128
+ githubCheckSuiteActionRequired: {
129
+ account: GITHUB_CHECKS_ACCOUNT,
130
+ type: "github.check-suite.action-required",
131
+ },
132
+ githubCheckSuiteCancelled: {
133
+ account: GITHUB_CHECKS_ACCOUNT,
134
+ type: "github.check-suite.cancelled",
135
+ },
136
+ githubCheckSuiteCompleted: {
137
+ account: GITHUB_CHECKS_ACCOUNT,
138
+ type: "github.check-suite.completed",
139
+ },
140
+ githubCheckSuiteEvent: {
141
+ account: GITHUB_CHECKS_ACCOUNT,
142
+ type: "github.check-suite.event",
143
+ },
144
+ githubCheckSuiteFailed: {
145
+ account: GITHUB_CHECKS_ACCOUNT,
146
+ type: "github.check-suite.failed",
147
+ },
148
+ githubCheckSuiteRerequested: {
149
+ account: GITHUB_CHECKS_WRITE_ACCOUNT,
150
+ type: "github.check-suite.rerequested",
151
+ },
152
+ githubCheckSuiteRequested: {
153
+ account: GITHUB_CHECKS_WRITE_ACCOUNT,
154
+ type: "github.check-suite.requested",
155
+ },
156
+ githubCheckSuiteSucceeded: {
157
+ account: GITHUB_CHECKS_ACCOUNT,
158
+ type: "github.check-suite.succeeded",
159
+ },
160
+ githubCheckSuiteStartupFailed: {
161
+ account: GITHUB_CHECKS_ACCOUNT,
162
+ type: "github.check-suite.startup-failed",
163
+ },
164
+ githubCheckSuiteTimedOut: {
165
+ account: GITHUB_CHECKS_ACCOUNT,
166
+ type: "github.check-suite.timed-out",
167
+ },
168
+ githubDeploymentCreated: {
169
+ account: GITHUB_DEPLOYMENTS_ACCOUNT,
170
+ type: "github.deployment.created",
171
+ },
172
+ githubDeploymentStatusErrored: {
173
+ account: GITHUB_DEPLOYMENTS_ACCOUNT,
174
+ type: "github.deployment-status.errored",
175
+ },
176
+ githubDeploymentStatusEvent: {
177
+ account: GITHUB_DEPLOYMENTS_ACCOUNT,
178
+ type: "github.deployment-status.event",
179
+ },
180
+ githubDeploymentStatusFailed: {
181
+ account: GITHUB_DEPLOYMENTS_ACCOUNT,
182
+ type: "github.deployment-status.failed",
183
+ },
184
+ githubDeploymentStatusInactive: {
185
+ account: GITHUB_DEPLOYMENTS_ACCOUNT,
186
+ type: "github.deployment-status.inactive",
187
+ },
188
+ githubDeploymentStatusPending: {
189
+ account: GITHUB_DEPLOYMENTS_ACCOUNT,
190
+ type: "github.deployment-status.pending",
191
+ },
192
+ githubDeploymentStatusQueued: {
193
+ account: GITHUB_DEPLOYMENTS_ACCOUNT,
194
+ type: "github.deployment-status.queued",
195
+ },
196
+ githubDeploymentStatusStarted: {
197
+ account: GITHUB_DEPLOYMENTS_ACCOUNT,
198
+ type: "github.deployment-status.started",
199
+ },
200
+ githubDeploymentStatusSucceeded: {
201
+ account: GITHUB_DEPLOYMENTS_ACCOUNT,
202
+ type: "github.deployment-status.succeeded",
203
+ },
204
+ githubIssueCommentCreated: {
205
+ account: GITHUB_ISSUES_ACCOUNT,
206
+ type: "github.issue-comment.created",
207
+ },
208
+ githubIssueCommentDeleted: {
209
+ account: GITHUB_ISSUES_ACCOUNT,
210
+ type: "github.issue-comment.deleted",
211
+ },
212
+ githubIssueCommentEdited: {
213
+ account: GITHUB_ISSUES_ACCOUNT,
214
+ type: "github.issue-comment.edited",
215
+ },
216
+ githubIssueCommentEvent: {
217
+ account: GITHUB_ISSUES_ACCOUNT,
218
+ type: "github.issue-comment.event",
219
+ },
40
220
  githubIssueClosed: {
41
221
  account: GITHUB_ISSUES_ACCOUNT,
42
222
  type: "github.issue.closed",
@@ -94,6 +274,22 @@ export const githubTriggerDefinitions = {
94
274
  account: GITHUB_PULL_REQUESTS_ACCOUNT,
95
275
  type: "github.pull-request-review.submitted",
96
276
  },
277
+ githubPullRequestReviewCommentCreated: {
278
+ account: GITHUB_PULL_REQUESTS_ACCOUNT,
279
+ type: "github.pull-request-review-comment.created",
280
+ },
281
+ githubPullRequestReviewCommentDeleted: {
282
+ account: GITHUB_PULL_REQUESTS_ACCOUNT,
283
+ type: "github.pull-request-review-comment.deleted",
284
+ },
285
+ githubPullRequestReviewCommentEdited: {
286
+ account: GITHUB_PULL_REQUESTS_ACCOUNT,
287
+ type: "github.pull-request-review-comment.edited",
288
+ },
289
+ githubPullRequestReviewCommentEvent: {
290
+ account: GITHUB_PULL_REQUESTS_ACCOUNT,
291
+ type: "github.pull-request-review-comment.event",
292
+ },
97
293
  githubPullRequestSynchronized: {
98
294
  account: GITHUB_PULL_REQUESTS_ACCOUNT,
99
295
  type: "github.pull-request.synchronized",
@@ -110,6 +306,86 @@ export const githubTriggerDefinitions = {
110
306
  account: GITHUB_CONTENTS_ACCOUNT,
111
307
  type: "github.release.published",
112
308
  },
309
+ githubRefCreated: {
310
+ account: GITHUB_CONTENTS_ACCOUNT,
311
+ type: "github.ref.created",
312
+ },
313
+ githubRefDeleted: {
314
+ account: GITHUB_CONTENTS_ACCOUNT,
315
+ type: "github.ref.deleted",
316
+ },
317
+ githubRepositoryDispatch: {
318
+ account: GITHUB_CONTENTS_ACCOUNT,
319
+ type: "github.repository-dispatch",
320
+ },
321
+ githubStatusErrored: {
322
+ account: GITHUB_COMMIT_STATUSES_ACCOUNT,
323
+ type: "github.status.errored",
324
+ },
325
+ githubStatusEvent: {
326
+ account: GITHUB_COMMIT_STATUSES_ACCOUNT,
327
+ type: "github.status.event",
328
+ },
329
+ githubStatusFailed: {
330
+ account: GITHUB_COMMIT_STATUSES_ACCOUNT,
331
+ type: "github.status.failed",
332
+ },
333
+ githubStatusPending: {
334
+ account: GITHUB_COMMIT_STATUSES_ACCOUNT,
335
+ type: "github.status.pending",
336
+ },
337
+ githubStatusSucceeded: {
338
+ account: GITHUB_COMMIT_STATUSES_ACCOUNT,
339
+ type: "github.status.succeeded",
340
+ },
341
+ githubTagCreated: {
342
+ account: GITHUB_CONTENTS_ACCOUNT,
343
+ type: "github.tag.created",
344
+ },
345
+ githubTagDeleted: {
346
+ account: GITHUB_CONTENTS_ACCOUNT,
347
+ type: "github.tag.deleted",
348
+ },
349
+ githubWorkflowDispatch: {
350
+ account: GITHUB_CONTENTS_ACCOUNT,
351
+ type: "github.workflow-dispatch",
352
+ },
353
+ githubWorkflowJobCancelled: {
354
+ account: GITHUB_ACTIONS_ACCOUNT,
355
+ type: "github.workflow-job.cancelled",
356
+ },
357
+ githubWorkflowJobCompleted: {
358
+ account: GITHUB_ACTIONS_ACCOUNT,
359
+ type: "github.workflow-job.completed",
360
+ },
361
+ githubWorkflowJobEvent: {
362
+ account: GITHUB_ACTIONS_ACCOUNT,
363
+ type: "github.workflow-job.event",
364
+ },
365
+ githubWorkflowJobFailed: {
366
+ account: GITHUB_ACTIONS_ACCOUNT,
367
+ type: "github.workflow-job.failed",
368
+ },
369
+ githubWorkflowJobQueued: {
370
+ account: GITHUB_ACTIONS_ACCOUNT,
371
+ type: "github.workflow-job.queued",
372
+ },
373
+ githubWorkflowJobStarted: {
374
+ account: GITHUB_ACTIONS_ACCOUNT,
375
+ type: "github.workflow-job.started",
376
+ },
377
+ githubWorkflowJobSucceeded: {
378
+ account: GITHUB_ACTIONS_ACCOUNT,
379
+ type: "github.workflow-job.succeeded",
380
+ },
381
+ githubWorkflowJobTimedOut: {
382
+ account: GITHUB_ACTIONS_ACCOUNT,
383
+ type: "github.workflow-job.timed-out",
384
+ },
385
+ githubWorkflowJobWaiting: {
386
+ account: GITHUB_ACTIONS_ACCOUNT,
387
+ type: "github.workflow-job.waiting",
388
+ },
113
389
  githubWorkflowRunCancelled: {
114
390
  account: GITHUB_ACTIONS_ACCOUNT,
115
391
  type: "github.workflow-run.cancelled",