@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.
- package/LICENSE +21 -0
- package/README.md +3 -0
- package/dist/catalog.d.ts +1106 -0
- package/dist/catalog.js +349 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/triggers/airtable.d.ts +62 -0
- package/dist/triggers/airtable.js +36 -0
- package/dist/triggers/asana.d.ts +65 -0
- package/dist/triggers/asana.js +39 -0
- package/dist/triggers/brevo.d.ts +111 -0
- package/dist/triggers/brevo.js +65 -0
- package/dist/triggers/core.d.ts +50 -0
- package/dist/triggers/core.js +74 -0
- package/dist/triggers/github.d.ts +228 -0
- package/dist/triggers/github.js +136 -0
- package/dist/triggers/google.d.ts +126 -0
- package/dist/triggers/google.js +143 -0
- package/dist/triggers/index.d.ts +2598 -0
- package/dist/triggers/index.js +97 -0
- package/dist/triggers/linear.d.ts +110 -0
- package/dist/triggers/linear.js +59 -0
- package/dist/triggers/microsoft.d.ts +40 -0
- package/dist/triggers/microsoft.js +60 -0
- package/dist/triggers/resend.d.ts +110 -0
- package/dist/triggers/resend.js +59 -0
- package/dist/triggers/slack.d.ts +41 -0
- package/dist/triggers/slack.js +53 -0
- package/dist/triggers/trello.d.ts +56 -0
- package/dist/triggers/trello.js +35 -0
- package/dist/triggers/vercel.d.ts +279 -0
- package/dist/triggers/vercel.js +163 -0
- package/dist/triggers/whatsapp.d.ts +65 -0
- package/dist/triggers/whatsapp.js +39 -0
- package/dist/types.d.ts +134 -0
- package/dist/types.js +59 -0
- package/package.json +70 -0
- package/src/catalog.ts +403 -0
- package/src/index.ts +68 -0
- package/src/triggers/airtable.ts +39 -0
- package/src/triggers/asana.ts +42 -0
- package/src/triggers/brevo.ts +68 -0
- package/src/triggers/core.ts +93 -0
- package/src/triggers/github.ts +142 -0
- package/src/triggers/google.ts +149 -0
- package/src/triggers/index.ts +128 -0
- package/src/triggers/linear.ts +62 -0
- package/src/triggers/microsoft.ts +65 -0
- package/src/triggers/resend.ts +62 -0
- package/src/triggers/slack.ts +58 -0
- package/src/triggers/trello.ts +38 -0
- package/src/triggers/vercel.ts +170 -0
- package/src/triggers/whatsapp.ts +42 -0
- 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
|
+
};
|