@automate.ax/integration-contracts 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/dist/airtable/api.d.ts +19 -0
- package/dist/airtable/api.js +44 -0
- package/dist/airtable/index.d.ts +353 -0
- package/dist/airtable/index.js +32 -0
- package/dist/airtable/schemas.d.ts +716 -0
- package/dist/airtable/schemas.js +184 -0
- package/dist/asana/api.d.ts +70 -0
- package/dist/asana/api.js +119 -0
- package/dist/asana/index.d.ts +384 -0
- package/dist/asana/index.js +38 -0
- package/dist/asana/schemas.d.ts +1060 -0
- package/dist/asana/schemas.js +512 -0
- package/dist/brevo/api.d.ts +31 -0
- package/dist/brevo/api.js +64 -0
- package/dist/brevo/index.d.ts +822 -0
- package/dist/brevo/index.js +51 -0
- package/dist/brevo/schemas.d.ts +1217 -0
- package/dist/brevo/schemas.js +332 -0
- package/dist/github/index.d.ts +37 -0
- package/dist/github/index.js +106 -0
- package/dist/github/schemas.d.ts +8014 -0
- package/dist/github/schemas.js +113 -0
- package/dist/gmail/gmail.d.ts +172 -0
- package/dist/gmail/gmail.js +405 -0
- package/dist/gmail/index.d.ts +262 -0
- package/dist/gmail/index.js +23 -0
- package/dist/gmail/schemas.d.ts +444 -0
- package/dist/gmail/schemas.js +242 -0
- package/dist/google-calendar/event-schemas.d.ts +117 -0
- package/dist/google-calendar/event-schemas.js +13 -0
- package/dist/google-calendar/google-calendar.d.ts +147 -0
- package/dist/google-calendar/google-calendar.js +583 -0
- package/dist/google-calendar/index.d.ts +365 -0
- package/dist/google-calendar/index.js +24 -0
- package/dist/google-calendar/schemas.d.ts +592 -0
- package/dist/google-calendar/schemas.js +379 -0
- package/dist/google-forms/event-schemas.d.ts +105 -0
- package/dist/google-forms/event-schemas.js +20 -0
- package/dist/google-forms/google-forms.d.ts +243 -0
- package/dist/google-forms/google-forms.js +581 -0
- package/dist/google-forms/index.d.ts +141 -0
- package/dist/google-forms/index.js +20 -0
- package/dist/google-forms/schemas.d.ts +618 -0
- package/dist/google-forms/schemas.js +383 -0
- package/dist/linear/api.d.ts +63 -0
- package/dist/linear/api.js +88 -0
- package/dist/linear/index.d.ts +1338 -0
- package/dist/linear/index.js +55 -0
- package/dist/linear/schemas.d.ts +1795 -0
- package/dist/linear/schemas.js +760 -0
- package/dist/outlook/graph.d.ts +34 -0
- package/dist/outlook/graph.js +98 -0
- package/dist/outlook/index.d.ts +115 -0
- package/dist/outlook/index.js +11 -0
- package/dist/outlook/schemas.d.ts +529 -0
- package/dist/outlook/schemas.js +312 -0
- package/dist/resend/index.d.ts +707 -0
- package/dist/resend/index.js +54 -0
- package/dist/resend/schemas.d.ts +1033 -0
- package/dist/resend/schemas.js +377 -0
- package/dist/slack/index.d.ts +151 -0
- package/dist/slack/index.js +22 -0
- package/dist/slack/schemas.d.ts +641 -0
- package/dist/slack/schemas.js +581 -0
- package/dist/teams/graph.d.ts +33 -0
- package/dist/teams/graph.js +95 -0
- package/dist/teams/index.d.ts +164 -0
- package/dist/teams/index.js +21 -0
- package/dist/teams/schemas.d.ts +675 -0
- package/dist/teams/schemas.js +365 -0
- package/dist/trello/api.d.ts +69 -0
- package/dist/trello/api.js +140 -0
- package/dist/trello/event-schemas.d.ts +1101 -0
- package/dist/trello/event-schemas.js +233 -0
- package/dist/trello/index.d.ts +721 -0
- package/dist/trello/index.js +35 -0
- package/dist/trello/schemas.d.ts +283 -0
- package/dist/trello/schemas.js +401 -0
- package/dist/triggers.d.ts +26 -0
- package/dist/triggers.js +33 -0
- package/dist/vercel/index.d.ts +1065 -0
- package/dist/vercel/index.js +114 -0
- package/dist/vercel/schemas.d.ts +1518 -0
- package/dist/vercel/schemas.js +335 -0
- package/dist/whatsapp/api.d.ts +62 -0
- package/dist/whatsapp/api.js +121 -0
- package/dist/whatsapp/index.d.ts +614 -0
- package/dist/whatsapp/index.js +35 -0
- package/dist/whatsapp/schemas.d.ts +926 -0
- package/dist/whatsapp/schemas.js +326 -0
- package/package.json +169 -0
- package/src/airtable/api.ts +66 -0
- package/src/airtable/index.ts +41 -0
- package/src/airtable/schemas.ts +231 -0
- package/src/asana/api.ts +171 -0
- package/src/asana/index.ts +49 -0
- package/src/asana/schemas.ts +655 -0
- package/src/brevo/api.ts +89 -0
- package/src/brevo/index.ts +66 -0
- package/src/brevo/schemas.ts +449 -0
- package/src/github/index.ts +217 -0
- package/src/github/schemas.ts +435 -0
- package/src/gmail/gmail.ts +577 -0
- package/src/gmail/index.ts +26 -0
- package/src/gmail/schemas.ts +327 -0
- package/src/google-calendar/event-schemas.ts +16 -0
- package/src/google-calendar/google-calendar.ts +727 -0
- package/src/google-calendar/index.ts +27 -0
- package/src/google-calendar/schemas.ts +529 -0
- package/src/google-forms/event-schemas.ts +26 -0
- package/src/google-forms/google-forms.ts +683 -0
- package/src/google-forms/index.ts +23 -0
- package/src/google-forms/schemas.ts +499 -0
- package/src/linear/api.ts +141 -0
- package/src/linear/index.ts +71 -0
- package/src/linear/schemas.ts +1060 -0
- package/src/outlook/graph.ts +132 -0
- package/src/outlook/index.ts +14 -0
- package/src/outlook/schemas.ts +388 -0
- package/src/resend/index.ts +70 -0
- package/src/resend/schemas.ts +462 -0
- package/src/slack/index.ts +29 -0
- package/src/slack/schemas.ts +737 -0
- package/src/teams/graph.ts +130 -0
- package/src/teams/index.ts +27 -0
- package/src/teams/schemas.ts +463 -0
- package/src/trello/api.ts +190 -0
- package/src/trello/event-schemas.ts +290 -0
- package/src/trello/index.ts +45 -0
- package/src/trello/schemas.ts +507 -0
- package/src/triggers.ts +68 -0
- package/src/vercel/index.ts +147 -0
- package/src/vercel/schemas.ts +594 -0
- package/src/whatsapp/api.ts +171 -0
- package/src/whatsapp/index.ts +46 -0
- package/src/whatsapp/schemas.ts +341 -0
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export * from "./event-schemas.js";
|
|
3
|
+
export * from "./google-forms.js";
|
|
4
|
+
export * from "./schemas.js";
|
|
5
|
+
/** Canonical Google Form selected by one subscription. */
|
|
6
|
+
export declare const GOOGLE_FORMS_TRIGGER_CONFIG_SCHEMA: z.ZodObject<{
|
|
7
|
+
formId: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export declare const googleFormsTriggerContracts: {
|
|
10
|
+
readonly "googleForms.form.changed": {
|
|
11
|
+
readonly configSchema: z.ZodObject<{
|
|
12
|
+
formId: z.ZodString;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
readonly eventSchema: z.ZodObject<{
|
|
15
|
+
editUrl: z.ZodString;
|
|
16
|
+
formId: z.ZodString;
|
|
17
|
+
items: z.ZodArray<z.ZodObject<{
|
|
18
|
+
description: z.ZodOptional<z.ZodString>;
|
|
19
|
+
index: z.ZodNumber;
|
|
20
|
+
itemId: z.ZodString;
|
|
21
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
22
|
+
choices: z.ZodArray<z.ZodString>;
|
|
23
|
+
date: z.ZodOptional<z.ZodObject<{
|
|
24
|
+
includeTime: z.ZodBoolean;
|
|
25
|
+
includeYear: z.ZodBoolean;
|
|
26
|
+
}, z.core.$strip>>;
|
|
27
|
+
fileUpload: z.ZodOptional<z.ZodObject<{
|
|
28
|
+
folderId: z.ZodOptional<z.ZodString>;
|
|
29
|
+
maxFileSizeBytes: z.ZodOptional<z.ZodString>;
|
|
30
|
+
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
types: z.ZodArray<z.ZodString>;
|
|
32
|
+
}, z.core.$strip>>;
|
|
33
|
+
grading: z.ZodOptional<z.ZodObject<{
|
|
34
|
+
correct: z.ZodOptional<z.ZodBoolean>;
|
|
35
|
+
correctAnswers: z.ZodArray<z.ZodString>;
|
|
36
|
+
feedback: z.ZodOptional<z.ZodString>;
|
|
37
|
+
points: z.ZodOptional<z.ZodNumber>;
|
|
38
|
+
score: z.ZodOptional<z.ZodNumber>;
|
|
39
|
+
whenWrong: z.ZodOptional<z.ZodString>;
|
|
40
|
+
whenRight: z.ZodOptional<z.ZodString>;
|
|
41
|
+
}, z.core.$strip>>;
|
|
42
|
+
questionId: z.ZodString;
|
|
43
|
+
rating: z.ZodOptional<z.ZodObject<{
|
|
44
|
+
icon: z.ZodString;
|
|
45
|
+
levels: z.ZodNumber;
|
|
46
|
+
}, z.core.$strip>>;
|
|
47
|
+
required: z.ZodBoolean;
|
|
48
|
+
rowTitle: z.ZodOptional<z.ZodString>;
|
|
49
|
+
scale: z.ZodOptional<z.ZodObject<{
|
|
50
|
+
high: z.ZodNumber;
|
|
51
|
+
highLabel: z.ZodOptional<z.ZodString>;
|
|
52
|
+
low: z.ZodNumber;
|
|
53
|
+
lowLabel: z.ZodOptional<z.ZodString>;
|
|
54
|
+
}, z.core.$strip>>;
|
|
55
|
+
type: z.ZodEnum<{
|
|
56
|
+
unknown: "unknown";
|
|
57
|
+
date: "date";
|
|
58
|
+
shortText: "shortText";
|
|
59
|
+
paragraph: "paragraph";
|
|
60
|
+
multipleChoice: "multipleChoice";
|
|
61
|
+
checkbox: "checkbox";
|
|
62
|
+
dropdown: "dropdown";
|
|
63
|
+
scale: "scale";
|
|
64
|
+
time: "time";
|
|
65
|
+
duration: "duration";
|
|
66
|
+
rating: "rating";
|
|
67
|
+
fileUpload: "fileUpload";
|
|
68
|
+
gridRow: "gridRow";
|
|
69
|
+
}>;
|
|
70
|
+
}, z.core.$strip>>;
|
|
71
|
+
title: z.ZodString;
|
|
72
|
+
type: z.ZodEnum<{
|
|
73
|
+
unknown: "unknown";
|
|
74
|
+
text: "text";
|
|
75
|
+
question: "question";
|
|
76
|
+
grid: "grid";
|
|
77
|
+
pageBreak: "pageBreak";
|
|
78
|
+
image: "image";
|
|
79
|
+
video: "video";
|
|
80
|
+
}>;
|
|
81
|
+
}, z.core.$strip>>;
|
|
82
|
+
linkedSheetId: z.ZodOptional<z.ZodString>;
|
|
83
|
+
publishSettings: z.ZodOptional<z.ZodObject<{
|
|
84
|
+
isAcceptingResponses: z.ZodBoolean;
|
|
85
|
+
isPublished: z.ZodBoolean;
|
|
86
|
+
}, z.core.$strip>>;
|
|
87
|
+
responderUrl: z.ZodOptional<z.ZodString>;
|
|
88
|
+
revisionId: z.ZodOptional<z.ZodString>;
|
|
89
|
+
settings: z.ZodObject<{
|
|
90
|
+
emailCollection: z.ZodEnum<{
|
|
91
|
+
none: "none";
|
|
92
|
+
verified: "verified";
|
|
93
|
+
respondentInput: "respondentInput";
|
|
94
|
+
}>;
|
|
95
|
+
isQuiz: z.ZodBoolean;
|
|
96
|
+
}, z.core.$strip>;
|
|
97
|
+
description: z.ZodOptional<z.ZodString>;
|
|
98
|
+
documentTitle: z.ZodOptional<z.ZodString>;
|
|
99
|
+
title: z.ZodString;
|
|
100
|
+
event: z.ZodObject<{
|
|
101
|
+
formId: z.ZodString;
|
|
102
|
+
messageId: z.ZodString;
|
|
103
|
+
publishTime: z.ZodString;
|
|
104
|
+
watchId: z.ZodString;
|
|
105
|
+
eventType: z.ZodLiteral<"SCHEMA">;
|
|
106
|
+
}, z.core.$strip>;
|
|
107
|
+
}, z.core.$strip>;
|
|
108
|
+
};
|
|
109
|
+
readonly "googleForms.response.submitted": {
|
|
110
|
+
readonly configSchema: z.ZodObject<{
|
|
111
|
+
formId: z.ZodString;
|
|
112
|
+
}, z.core.$strip>;
|
|
113
|
+
readonly eventSchema: z.ZodObject<{
|
|
114
|
+
answers: z.ZodArray<z.ZodObject<{
|
|
115
|
+
files: z.ZodArray<z.ZodObject<{
|
|
116
|
+
fileId: z.ZodString;
|
|
117
|
+
fileName: z.ZodString;
|
|
118
|
+
mimeType: z.ZodString;
|
|
119
|
+
}, z.core.$strip>>;
|
|
120
|
+
grade: z.ZodOptional<z.ZodObject<{
|
|
121
|
+
correct: z.ZodOptional<z.ZodBoolean>;
|
|
122
|
+
correctAnswers: z.ZodArray<z.ZodString>;
|
|
123
|
+
feedback: z.ZodOptional<z.ZodString>;
|
|
124
|
+
points: z.ZodOptional<z.ZodNumber>;
|
|
125
|
+
score: z.ZodOptional<z.ZodNumber>;
|
|
126
|
+
whenWrong: z.ZodOptional<z.ZodString>;
|
|
127
|
+
whenRight: z.ZodOptional<z.ZodString>;
|
|
128
|
+
}, z.core.$strip>>;
|
|
129
|
+
questionId: z.ZodString;
|
|
130
|
+
questionTitle: z.ZodOptional<z.ZodString>;
|
|
131
|
+
values: z.ZodArray<z.ZodString>;
|
|
132
|
+
}, z.core.$strip>>;
|
|
133
|
+
createTime: z.ZodOptional<z.ZodString>;
|
|
134
|
+
formId: z.ZodString;
|
|
135
|
+
lastSubmittedTime: z.ZodOptional<z.ZodString>;
|
|
136
|
+
respondentEmail: z.ZodOptional<z.ZodString>;
|
|
137
|
+
responseId: z.ZodString;
|
|
138
|
+
totalScore: z.ZodOptional<z.ZodNumber>;
|
|
139
|
+
}, z.core.$strip>;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { GOOGLE_FORMS_FORM_CHANGED_EVENT_SCHEMA } from "./event-schemas.js";
|
|
3
|
+
import { FORM_RESPONSE_SCHEMA } from "./schemas.js";
|
|
4
|
+
export * from "./event-schemas.js";
|
|
5
|
+
export * from "./google-forms.js";
|
|
6
|
+
export * from "./schemas.js";
|
|
7
|
+
/** Canonical Google Form selected by one subscription. */
|
|
8
|
+
export const GOOGLE_FORMS_TRIGGER_CONFIG_SCHEMA = z.object({
|
|
9
|
+
formId: z.string(),
|
|
10
|
+
});
|
|
11
|
+
export const googleFormsTriggerContracts = {
|
|
12
|
+
"googleForms.form.changed": {
|
|
13
|
+
configSchema: GOOGLE_FORMS_TRIGGER_CONFIG_SCHEMA,
|
|
14
|
+
eventSchema: GOOGLE_FORMS_FORM_CHANGED_EVENT_SCHEMA,
|
|
15
|
+
},
|
|
16
|
+
"googleForms.response.submitted": {
|
|
17
|
+
configSchema: GOOGLE_FORMS_TRIGGER_CONFIG_SCHEMA,
|
|
18
|
+
eventSchema: FORM_RESPONSE_SCHEMA,
|
|
19
|
+
},
|
|
20
|
+
};
|