@automate.ax/integration-contracts 0.99.5 → 0.102.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/automate/index.d.ts +451 -0
- package/dist/automate/index.js +108 -0
- package/dist/close/events.d.ts +3 -3
- package/dist/close/events.js +5 -2
- package/dist/close/schemas.d.ts +3 -3
- package/dist/google-calendar/event-schemas.d.ts +2 -2
- package/dist/google-calendar/index.d.ts +6 -6
- package/dist/google-calendar/schemas.d.ts +6 -6
- package/dist/linear/schemas.d.ts +11 -11
- package/dist/resend/action-schemas.d.ts +22 -22
- package/dist/resend/action-schemas.js +5 -4
- package/dist/triggers.d.ts +2 -1
- package/dist/whatsapp/index.d.ts +2 -2
- package/dist/whatsapp/schemas.d.ts +5 -5
- package/package.json +8 -2
- package/src/automate/index.ts +129 -0
- package/src/close/events.ts +6 -2
- package/src/resend/action-schemas.ts +5 -3
- package/src/triggers.ts +2 -0
|
@@ -135,11 +135,11 @@ export const RESEND_EMAIL_SCHEMA = RESEND_EMAIL_WIRE_SCHEMA.transform(
|
|
|
135
135
|
|
|
136
136
|
export const RESEND_ATTACHMENT_WIRE_SCHEMA = z.object({
|
|
137
137
|
content_disposition: z.enum(["attachment", "inline"]).nullable(),
|
|
138
|
-
content_id: z.string(),
|
|
138
|
+
content_id: z.string().optional(),
|
|
139
139
|
content_type: z.string(),
|
|
140
140
|
download_url: z.url(),
|
|
141
141
|
expires_at: z.string(),
|
|
142
|
-
filename: z.string().nullable(),
|
|
142
|
+
filename: z.string().nullable().optional(),
|
|
143
143
|
id: z.string(),
|
|
144
144
|
size: z.number().int().nonnegative(),
|
|
145
145
|
})
|
|
@@ -151,14 +151,16 @@ export const RESEND_ATTACHMENT_SCHEMA = RESEND_ATTACHMENT_WIRE_SCHEMA.transform(
|
|
|
151
151
|
content_type: contentType,
|
|
152
152
|
download_url: downloadUrl,
|
|
153
153
|
expires_at: expiresAt,
|
|
154
|
+
filename,
|
|
154
155
|
...attachment
|
|
155
156
|
}) => ({
|
|
156
157
|
...attachment,
|
|
157
158
|
contentDisposition,
|
|
158
|
-
contentId,
|
|
159
|
+
...(contentId === undefined ? {} : { contentId }),
|
|
159
160
|
contentType,
|
|
160
161
|
downloadUrl,
|
|
161
162
|
expiresAt,
|
|
163
|
+
...(filename === undefined ? {} : { filename }),
|
|
162
164
|
}),
|
|
163
165
|
)
|
|
164
166
|
|
package/src/triggers.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { airtableTriggerContracts } from "./airtable"
|
|
2
|
+
import type { automateTriggerContracts } from "./automate"
|
|
2
3
|
import type { asanaTriggerContracts } from "./asana"
|
|
3
4
|
import type { brevoTriggerContracts } from "./brevo"
|
|
4
5
|
import type { convexTriggerContracts } from "./convex"
|
|
@@ -22,6 +23,7 @@ import type { whatsappTriggerContracts } from "./whatsapp"
|
|
|
22
23
|
import type { z } from "zod"
|
|
23
24
|
|
|
24
25
|
export type TriggerContractMap = typeof airtableTriggerContracts &
|
|
26
|
+
typeof automateTriggerContracts &
|
|
25
27
|
typeof asanaTriggerContracts &
|
|
26
28
|
typeof brevoTriggerContracts &
|
|
27
29
|
typeof convexTriggerContracts &
|