@automate.ax/catalog 0.55.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.
Files changed (54) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +3 -0
  3. package/dist/catalog.d.ts +1106 -0
  4. package/dist/catalog.js +349 -0
  5. package/dist/index.d.ts +3 -0
  6. package/dist/index.js +3 -0
  7. package/dist/triggers/airtable.d.ts +62 -0
  8. package/dist/triggers/airtable.js +36 -0
  9. package/dist/triggers/asana.d.ts +65 -0
  10. package/dist/triggers/asana.js +39 -0
  11. package/dist/triggers/brevo.d.ts +111 -0
  12. package/dist/triggers/brevo.js +65 -0
  13. package/dist/triggers/core.d.ts +50 -0
  14. package/dist/triggers/core.js +74 -0
  15. package/dist/triggers/github.d.ts +228 -0
  16. package/dist/triggers/github.js +136 -0
  17. package/dist/triggers/google.d.ts +126 -0
  18. package/dist/triggers/google.js +143 -0
  19. package/dist/triggers/index.d.ts +2598 -0
  20. package/dist/triggers/index.js +97 -0
  21. package/dist/triggers/linear.d.ts +110 -0
  22. package/dist/triggers/linear.js +59 -0
  23. package/dist/triggers/microsoft.d.ts +40 -0
  24. package/dist/triggers/microsoft.js +60 -0
  25. package/dist/triggers/resend.d.ts +110 -0
  26. package/dist/triggers/resend.js +59 -0
  27. package/dist/triggers/slack.d.ts +41 -0
  28. package/dist/triggers/slack.js +53 -0
  29. package/dist/triggers/trello.d.ts +56 -0
  30. package/dist/triggers/trello.js +35 -0
  31. package/dist/triggers/vercel.d.ts +279 -0
  32. package/dist/triggers/vercel.js +163 -0
  33. package/dist/triggers/whatsapp.d.ts +65 -0
  34. package/dist/triggers/whatsapp.js +39 -0
  35. package/dist/types.d.ts +134 -0
  36. package/dist/types.js +59 -0
  37. package/package.json +70 -0
  38. package/src/catalog.ts +403 -0
  39. package/src/index.ts +68 -0
  40. package/src/triggers/airtable.ts +39 -0
  41. package/src/triggers/asana.ts +42 -0
  42. package/src/triggers/brevo.ts +68 -0
  43. package/src/triggers/core.ts +93 -0
  44. package/src/triggers/github.ts +142 -0
  45. package/src/triggers/google.ts +149 -0
  46. package/src/triggers/index.ts +128 -0
  47. package/src/triggers/linear.ts +62 -0
  48. package/src/triggers/microsoft.ts +65 -0
  49. package/src/triggers/resend.ts +62 -0
  50. package/src/triggers/slack.ts +58 -0
  51. package/src/triggers/trello.ts +38 -0
  52. package/src/triggers/vercel.ts +170 -0
  53. package/src/triggers/whatsapp.ts +42 -0
  54. package/src/types.ts +219 -0
@@ -0,0 +1,143 @@
1
+ import { googleService } from "../catalog.js";
2
+ const GMAIL_ACCOUNT = {
3
+ connectionOptions: [
4
+ {
5
+ requiredScopes: [
6
+ {
7
+ requirements: [
8
+ "https://mail.google.com/",
9
+ "https://www.googleapis.com/auth/gmail.modify",
10
+ "https://www.googleapis.com/auth/gmail.readonly",
11
+ ],
12
+ type: "or",
13
+ },
14
+ ],
15
+ },
16
+ ],
17
+ serviceId: googleService.id,
18
+ };
19
+ const GOOGLE_CALENDAR_ACCOUNT = {
20
+ connectionOptions: [
21
+ {
22
+ requiredScopes: [
23
+ {
24
+ requirements: [
25
+ "https://www.googleapis.com/auth/calendar",
26
+ "https://www.googleapis.com/auth/calendar.readonly",
27
+ "https://www.googleapis.com/auth/calendar.events",
28
+ "https://www.googleapis.com/auth/calendar.events.readonly",
29
+ "https://www.googleapis.com/auth/calendar.events.owned",
30
+ ],
31
+ type: "or",
32
+ },
33
+ ],
34
+ },
35
+ ],
36
+ serviceId: googleService.id,
37
+ };
38
+ const GOOGLE_FORMS_ACCOUNT = {
39
+ connectionOptions: [
40
+ {
41
+ requiredScopes: [
42
+ {
43
+ requirements: [
44
+ "https://www.googleapis.com/auth/drive",
45
+ "https://www.googleapis.com/auth/drive.file",
46
+ "https://www.googleapis.com/auth/drive.readonly",
47
+ "https://www.googleapis.com/auth/forms.body",
48
+ "https://www.googleapis.com/auth/forms.body.readonly",
49
+ ],
50
+ type: "or",
51
+ },
52
+ ],
53
+ },
54
+ ],
55
+ serviceId: googleService.id,
56
+ };
57
+ const GOOGLE_FORM_RESPONSES_ACCOUNT = {
58
+ connectionOptions: [
59
+ {
60
+ requiredScopes: [
61
+ {
62
+ requirements: [
63
+ "https://www.googleapis.com/auth/drive",
64
+ "https://www.googleapis.com/auth/drive.file",
65
+ "https://www.googleapis.com/auth/drive.readonly",
66
+ "https://www.googleapis.com/auth/forms.body",
67
+ "https://www.googleapis.com/auth/forms.body.readonly",
68
+ ],
69
+ type: "or",
70
+ },
71
+ {
72
+ requirements: [
73
+ {
74
+ requirements: [
75
+ "https://www.googleapis.com/auth/drive",
76
+ "https://www.googleapis.com/auth/drive.file",
77
+ "https://www.googleapis.com/auth/forms.responses.readonly",
78
+ ],
79
+ type: "or",
80
+ },
81
+ {
82
+ requirements: [
83
+ "https://www.googleapis.com/auth/drive",
84
+ "https://www.googleapis.com/auth/drive.file",
85
+ "https://www.googleapis.com/auth/drive.readonly",
86
+ "https://www.googleapis.com/auth/forms.body",
87
+ "https://www.googleapis.com/auth/forms.body.readonly",
88
+ ],
89
+ type: "or",
90
+ },
91
+ ],
92
+ type: "and",
93
+ },
94
+ ],
95
+ },
96
+ ],
97
+ serviceId: googleService.id,
98
+ };
99
+ export const googleTriggerDefinitions = {
100
+ gmailLabelAdded: {
101
+ account: GMAIL_ACCOUNT,
102
+ type: "gmail.label.added",
103
+ },
104
+ gmailLabelRemoved: {
105
+ account: GMAIL_ACCOUNT,
106
+ type: "gmail.label.removed",
107
+ },
108
+ gmailMessageReceived: {
109
+ account: GMAIL_ACCOUNT,
110
+ name: "Gmail email received",
111
+ type: "gmail.message.received",
112
+ },
113
+ gmailMessageSent: {
114
+ account: GMAIL_ACCOUNT,
115
+ name: "Gmail email sent",
116
+ type: "gmail.message.sent",
117
+ },
118
+ googleCalendarEventCreated: {
119
+ account: GOOGLE_CALENDAR_ACCOUNT,
120
+ name: "Google Calendar event created",
121
+ type: "googleCalendar.event.created",
122
+ },
123
+ googleCalendarEventDeleted: {
124
+ account: GOOGLE_CALENDAR_ACCOUNT,
125
+ name: "Google Calendar event deleted",
126
+ type: "googleCalendar.event.deleted",
127
+ },
128
+ googleCalendarEventUpdated: {
129
+ account: GOOGLE_CALENDAR_ACCOUNT,
130
+ name: "Google Calendar event updated",
131
+ type: "googleCalendar.event.updated",
132
+ },
133
+ googleFormsFormChanged: {
134
+ account: GOOGLE_FORMS_ACCOUNT,
135
+ name: "Google Form changed",
136
+ type: "googleForms.form.changed",
137
+ },
138
+ googleFormsResponseSubmitted: {
139
+ account: GOOGLE_FORM_RESPONSES_ACCOUNT,
140
+ name: "Google Form response submitted",
141
+ type: "googleForms.response.submitted",
142
+ },
143
+ };