@automate.ax/integration-contracts 0.77.2 → 0.78.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/triggers.d.ts +17 -21
- package/dist/triggers.js +1 -35
- package/package.json +2 -2
- package/src/triggers.ts +17 -39
package/dist/triggers.d.ts
CHANGED
|
@@ -1,27 +1,23 @@
|
|
|
1
|
-
import { airtableTriggerContracts } from "./airtable/index.js";
|
|
2
|
-
import { asanaTriggerContracts } from "./asana/index.js";
|
|
3
|
-
import { brevoTriggerContracts } from "./brevo/index.js";
|
|
4
|
-
import { githubTriggerContracts } from "./github/index.js";
|
|
5
|
-
import { gmailTriggerContracts } from "./gmail/index.js";
|
|
6
|
-
import { googleCalendarTriggerContracts } from "./google-calendar/index.js";
|
|
7
|
-
import { googleFormsTriggerContracts } from "./google-forms/index.js";
|
|
8
|
-
import { googleMeetTriggerContracts } from "./google-meet/index.js";
|
|
9
|
-
import { linearTriggerContracts } from "./linear/index.js";
|
|
10
|
-
import { outlookTriggerContracts } from "./outlook/index.js";
|
|
11
|
-
import { resendTriggerContracts } from "./resend/index.js";
|
|
12
|
-
import { slackTriggerContracts } from "./slack/index.js";
|
|
13
|
-
import { teamsTriggerContracts } from "./teams/index.js";
|
|
14
|
-
import { trelloTriggerContracts } from "./trello/index.js";
|
|
15
|
-
import { vercelTriggerContracts } from "./vercel/index.js";
|
|
16
|
-
import { whatsappTriggerContracts } from "./whatsapp/index.js";
|
|
1
|
+
import type { airtableTriggerContracts } from "./airtable/index.js";
|
|
2
|
+
import type { asanaTriggerContracts } from "./asana/index.js";
|
|
3
|
+
import type { brevoTriggerContracts } from "./brevo/index.js";
|
|
4
|
+
import type { githubTriggerContracts } from "./github/index.js";
|
|
5
|
+
import type { gmailTriggerContracts } from "./gmail/index.js";
|
|
6
|
+
import type { googleCalendarTriggerContracts } from "./google-calendar/index.js";
|
|
7
|
+
import type { googleFormsTriggerContracts } from "./google-forms/index.js";
|
|
8
|
+
import type { googleMeetTriggerContracts } from "./google-meet/index.js";
|
|
9
|
+
import type { linearTriggerContracts } from "./linear/index.js";
|
|
10
|
+
import type { outlookTriggerContracts } from "./outlook/index.js";
|
|
11
|
+
import type { resendTriggerContracts } from "./resend/index.js";
|
|
12
|
+
import type { slackTriggerContracts } from "./slack/index.js";
|
|
13
|
+
import type { teamsTriggerContracts } from "./teams/index.js";
|
|
14
|
+
import type { trelloTriggerContracts } from "./trello/index.js";
|
|
15
|
+
import type { vercelTriggerContracts } from "./vercel/index.js";
|
|
16
|
+
import type { whatsappTriggerContracts } from "./whatsapp/index.js";
|
|
17
17
|
import type { z } from "zod";
|
|
18
|
-
type
|
|
19
|
-
/** Shared schemas for every integration-backed public trigger. */
|
|
20
|
-
export declare const triggerContracts: IntegrationTriggerContracts;
|
|
21
|
-
export type TriggerContractMap = IntegrationTriggerContracts;
|
|
18
|
+
export type TriggerContractMap = typeof airtableTriggerContracts & typeof asanaTriggerContracts & typeof brevoTriggerContracts & typeof githubTriggerContracts & typeof gmailTriggerContracts & typeof googleCalendarTriggerContracts & typeof googleFormsTriggerContracts & typeof googleMeetTriggerContracts & typeof linearTriggerContracts & typeof outlookTriggerContracts & typeof resendTriggerContracts & typeof slackTriggerContracts & typeof teamsTriggerContracts & typeof trelloTriggerContracts & typeof vercelTriggerContracts & typeof whatsappTriggerContracts;
|
|
22
19
|
export type IntegrationTriggerType = keyof TriggerContractMap;
|
|
23
20
|
/** Canonical authoring configuration for one integration trigger type. */
|
|
24
21
|
export type TriggerConfig<TType extends IntegrationTriggerType> = z.input<TriggerContractMap[TType]["configSchema"]> extends Record<string, never> ? object : z.input<TriggerContractMap[TType]["configSchema"]>;
|
|
25
22
|
/** Normalized event payload emitted by one integration trigger type. */
|
|
26
23
|
export type TriggerEvent<TType extends IntegrationTriggerType> = z.output<TriggerContractMap[TType]["eventSchema"]>;
|
|
27
|
-
export {};
|
package/dist/triggers.js
CHANGED
|
@@ -1,35 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { asanaTriggerContracts } from "./asana/index.js";
|
|
3
|
-
import { brevoTriggerContracts } from "./brevo/index.js";
|
|
4
|
-
import { githubTriggerContracts } from "./github/index.js";
|
|
5
|
-
import { gmailTriggerContracts } from "./gmail/index.js";
|
|
6
|
-
import { googleCalendarTriggerContracts } from "./google-calendar/index.js";
|
|
7
|
-
import { googleFormsTriggerContracts } from "./google-forms/index.js";
|
|
8
|
-
import { googleMeetTriggerContracts } from "./google-meet/index.js";
|
|
9
|
-
import { linearTriggerContracts } from "./linear/index.js";
|
|
10
|
-
import { outlookTriggerContracts } from "./outlook/index.js";
|
|
11
|
-
import { resendTriggerContracts } from "./resend/index.js";
|
|
12
|
-
import { slackTriggerContracts } from "./slack/index.js";
|
|
13
|
-
import { teamsTriggerContracts } from "./teams/index.js";
|
|
14
|
-
import { trelloTriggerContracts } from "./trello/index.js";
|
|
15
|
-
import { vercelTriggerContracts } from "./vercel/index.js";
|
|
16
|
-
import { whatsappTriggerContracts } from "./whatsapp/index.js";
|
|
17
|
-
/** Shared schemas for every integration-backed public trigger. */
|
|
18
|
-
export const triggerContracts = {
|
|
19
|
-
...airtableTriggerContracts,
|
|
20
|
-
...asanaTriggerContracts,
|
|
21
|
-
...brevoTriggerContracts,
|
|
22
|
-
...githubTriggerContracts,
|
|
23
|
-
...gmailTriggerContracts,
|
|
24
|
-
...googleCalendarTriggerContracts,
|
|
25
|
-
...googleFormsTriggerContracts,
|
|
26
|
-
...googleMeetTriggerContracts,
|
|
27
|
-
...linearTriggerContracts,
|
|
28
|
-
...outlookTriggerContracts,
|
|
29
|
-
...resendTriggerContracts,
|
|
30
|
-
...slackTriggerContracts,
|
|
31
|
-
...teamsTriggerContracts,
|
|
32
|
-
...trelloTriggerContracts,
|
|
33
|
-
...vercelTriggerContracts,
|
|
34
|
-
...whatsappTriggerContracts,
|
|
35
|
-
};
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automate.ax/integration-contracts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.78.0",
|
|
4
4
|
"description": "Shared integration payload contracts and provider primitives for Automate.ax.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@automate.ax/codec": "0.
|
|
45
|
+
"@automate.ax/codec": "0.78.0",
|
|
46
46
|
"@googleapis/calendar": "^15.0.0",
|
|
47
47
|
"@googleapis/forms": "^6.0.1",
|
|
48
48
|
"@googleapis/gmail": "^12.0.0",
|
package/src/triggers.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { airtableTriggerContracts } from "./airtable"
|
|
2
|
-
import { asanaTriggerContracts } from "./asana"
|
|
3
|
-
import { brevoTriggerContracts } from "./brevo"
|
|
4
|
-
import { githubTriggerContracts } from "./github"
|
|
5
|
-
import { gmailTriggerContracts } from "./gmail"
|
|
6
|
-
import { googleCalendarTriggerContracts } from "./google-calendar"
|
|
7
|
-
import { googleFormsTriggerContracts } from "./google-forms"
|
|
8
|
-
import { googleMeetTriggerContracts } from "./google-meet"
|
|
9
|
-
import { linearTriggerContracts } from "./linear"
|
|
10
|
-
import { outlookTriggerContracts } from "./outlook"
|
|
11
|
-
import { resendTriggerContracts } from "./resend"
|
|
12
|
-
import { slackTriggerContracts } from "./slack"
|
|
13
|
-
import { teamsTriggerContracts } from "./teams"
|
|
14
|
-
import { trelloTriggerContracts } from "./trello"
|
|
15
|
-
import { vercelTriggerContracts } from "./vercel"
|
|
16
|
-
import { whatsappTriggerContracts } from "./whatsapp"
|
|
1
|
+
import type { airtableTriggerContracts } from "./airtable"
|
|
2
|
+
import type { asanaTriggerContracts } from "./asana"
|
|
3
|
+
import type { brevoTriggerContracts } from "./brevo"
|
|
4
|
+
import type { githubTriggerContracts } from "./github"
|
|
5
|
+
import type { gmailTriggerContracts } from "./gmail"
|
|
6
|
+
import type { googleCalendarTriggerContracts } from "./google-calendar"
|
|
7
|
+
import type { googleFormsTriggerContracts } from "./google-forms"
|
|
8
|
+
import type { googleMeetTriggerContracts } from "./google-meet"
|
|
9
|
+
import type { linearTriggerContracts } from "./linear"
|
|
10
|
+
import type { outlookTriggerContracts } from "./outlook"
|
|
11
|
+
import type { resendTriggerContracts } from "./resend"
|
|
12
|
+
import type { slackTriggerContracts } from "./slack"
|
|
13
|
+
import type { teamsTriggerContracts } from "./teams"
|
|
14
|
+
import type { trelloTriggerContracts } from "./trello"
|
|
15
|
+
import type { vercelTriggerContracts } from "./vercel"
|
|
16
|
+
import type { whatsappTriggerContracts } from "./whatsapp"
|
|
17
17
|
import type { z } from "zod"
|
|
18
18
|
|
|
19
|
-
type
|
|
19
|
+
export type TriggerContractMap = typeof airtableTriggerContracts &
|
|
20
20
|
typeof asanaTriggerContracts &
|
|
21
21
|
typeof brevoTriggerContracts &
|
|
22
22
|
typeof githubTriggerContracts &
|
|
@@ -32,28 +32,6 @@ type IntegrationTriggerContracts = typeof airtableTriggerContracts &
|
|
|
32
32
|
typeof trelloTriggerContracts &
|
|
33
33
|
typeof vercelTriggerContracts &
|
|
34
34
|
typeof whatsappTriggerContracts
|
|
35
|
-
|
|
36
|
-
/** Shared schemas for every integration-backed public trigger. */
|
|
37
|
-
export const triggerContracts: IntegrationTriggerContracts = {
|
|
38
|
-
...airtableTriggerContracts,
|
|
39
|
-
...asanaTriggerContracts,
|
|
40
|
-
...brevoTriggerContracts,
|
|
41
|
-
...githubTriggerContracts,
|
|
42
|
-
...gmailTriggerContracts,
|
|
43
|
-
...googleCalendarTriggerContracts,
|
|
44
|
-
...googleFormsTriggerContracts,
|
|
45
|
-
...googleMeetTriggerContracts,
|
|
46
|
-
...linearTriggerContracts,
|
|
47
|
-
...outlookTriggerContracts,
|
|
48
|
-
...resendTriggerContracts,
|
|
49
|
-
...slackTriggerContracts,
|
|
50
|
-
...teamsTriggerContracts,
|
|
51
|
-
...trelloTriggerContracts,
|
|
52
|
-
...vercelTriggerContracts,
|
|
53
|
-
...whatsappTriggerContracts,
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export type TriggerContractMap = IntegrationTriggerContracts
|
|
57
35
|
export type IntegrationTriggerType = keyof TriggerContractMap
|
|
58
36
|
|
|
59
37
|
/** Canonical authoring configuration for one integration trigger type. */
|