@automate.ax/integration-contracts 0.98.0 → 0.99.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/resend/action-schemas.d.ts +817 -0
- package/dist/resend/action-schemas.js +273 -0
- package/dist/resend/api.d.ts +95 -0
- package/dist/resend/api.js +171 -0
- package/dist/resend/index.d.ts +2084 -64
- package/dist/resend/index.js +50 -1
- package/dist/resend/schemas.d.ts +2836 -201
- package/dist/resend/schemas.js +333 -161
- package/package.json +2 -2
- package/src/resend/action-schemas.ts +430 -0
- package/src/resend/api.ts +258 -0
- package/src/resend/index.ts +61 -0
- package/src/resend/schemas.ts +459 -219
package/dist/resend/index.js
CHANGED
|
@@ -1,8 +1,41 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
-
import { RESEND_EMAIL_BOUNCED_EVENT_SCHEMA, RESEND_EMAIL_CLICKED_EVENT_SCHEMA, RESEND_EMAIL_COMPLAINED_EVENT_SCHEMA, RESEND_EMAIL_DELIVERED_EVENT_SCHEMA, RESEND_EMAIL_DELIVERY_DELAYED_EVENT_SCHEMA, RESEND_EMAIL_EVENT_SCHEMA, RESEND_EMAIL_FAILED_EVENT_SCHEMA, RESEND_EMAIL_OPENED_EVENT_SCHEMA, RESEND_EMAIL_RECEIVED_EVENT_SCHEMA, RESEND_EMAIL_SCHEDULED_EVENT_SCHEMA, RESEND_EMAIL_SENT_EVENT_SCHEMA, RESEND_EMAIL_SUPPRESSED_EVENT_SCHEMA, } from "./schemas.js";
|
|
2
|
+
import { RESEND_CONTACT_CREATED_EVENT_SCHEMA, RESEND_CONTACT_DELETED_EVENT_SCHEMA, RESEND_CONTACT_EVENT_SCHEMA, RESEND_CONTACT_UPDATED_EVENT_SCHEMA, RESEND_DOMAIN_CREATED_EVENT_SCHEMA, RESEND_DOMAIN_DELETED_EVENT_SCHEMA, RESEND_DOMAIN_EVENT_SCHEMA, RESEND_DOMAIN_UPDATED_EVENT_SCHEMA, RESEND_EMAIL_BOUNCED_EVENT_SCHEMA, RESEND_EMAIL_CLICKED_EVENT_SCHEMA, RESEND_EMAIL_COMPLAINED_EVENT_SCHEMA, RESEND_EMAIL_DELIVERED_EVENT_SCHEMA, RESEND_EMAIL_DELIVERY_DELAYED_EVENT_SCHEMA, RESEND_EMAIL_EVENT_SCHEMA, RESEND_EMAIL_FAILED_EVENT_SCHEMA, RESEND_EMAIL_OPENED_EVENT_SCHEMA, RESEND_EMAIL_RECEIVED_EVENT_SCHEMA, RESEND_EMAIL_SCHEDULED_EVENT_SCHEMA, RESEND_EMAIL_SENT_EVENT_SCHEMA, RESEND_EMAIL_SUPPRESSED_EVENT_SCHEMA, RESEND_EVENT_SCHEMA, RESEND_SUPPRESSION_ADDED_EVENT_SCHEMA, RESEND_SUPPRESSION_EVENT_SCHEMA, RESEND_SUPPRESSION_REMOVED_EVENT_SCHEMA, } from "./schemas.js";
|
|
3
|
+
export * from "./api.js";
|
|
3
4
|
export * from "./schemas.js";
|
|
4
5
|
export const RESEND_TRIGGER_CONFIG_SCHEMA = z.object({});
|
|
5
6
|
export const resendTriggerContracts = {
|
|
7
|
+
"resend.contact.created": {
|
|
8
|
+
configSchema: RESEND_TRIGGER_CONFIG_SCHEMA,
|
|
9
|
+
eventSchema: RESEND_CONTACT_CREATED_EVENT_SCHEMA,
|
|
10
|
+
},
|
|
11
|
+
"resend.contact.deleted": {
|
|
12
|
+
configSchema: RESEND_TRIGGER_CONFIG_SCHEMA,
|
|
13
|
+
eventSchema: RESEND_CONTACT_DELETED_EVENT_SCHEMA,
|
|
14
|
+
},
|
|
15
|
+
"resend.contact.event": {
|
|
16
|
+
configSchema: RESEND_TRIGGER_CONFIG_SCHEMA,
|
|
17
|
+
eventSchema: RESEND_CONTACT_EVENT_SCHEMA,
|
|
18
|
+
},
|
|
19
|
+
"resend.contact.updated": {
|
|
20
|
+
configSchema: RESEND_TRIGGER_CONFIG_SCHEMA,
|
|
21
|
+
eventSchema: RESEND_CONTACT_UPDATED_EVENT_SCHEMA,
|
|
22
|
+
},
|
|
23
|
+
"resend.domain.created": {
|
|
24
|
+
configSchema: RESEND_TRIGGER_CONFIG_SCHEMA,
|
|
25
|
+
eventSchema: RESEND_DOMAIN_CREATED_EVENT_SCHEMA,
|
|
26
|
+
},
|
|
27
|
+
"resend.domain.deleted": {
|
|
28
|
+
configSchema: RESEND_TRIGGER_CONFIG_SCHEMA,
|
|
29
|
+
eventSchema: RESEND_DOMAIN_DELETED_EVENT_SCHEMA,
|
|
30
|
+
},
|
|
31
|
+
"resend.domain.event": {
|
|
32
|
+
configSchema: RESEND_TRIGGER_CONFIG_SCHEMA,
|
|
33
|
+
eventSchema: RESEND_DOMAIN_EVENT_SCHEMA,
|
|
34
|
+
},
|
|
35
|
+
"resend.domain.updated": {
|
|
36
|
+
configSchema: RESEND_TRIGGER_CONFIG_SCHEMA,
|
|
37
|
+
eventSchema: RESEND_DOMAIN_UPDATED_EVENT_SCHEMA,
|
|
38
|
+
},
|
|
6
39
|
"resend.email.bounced": {
|
|
7
40
|
configSchema: RESEND_TRIGGER_CONFIG_SCHEMA,
|
|
8
41
|
eventSchema: RESEND_EMAIL_BOUNCED_EVENT_SCHEMA,
|
|
@@ -51,4 +84,20 @@ export const resendTriggerContracts = {
|
|
|
51
84
|
configSchema: RESEND_TRIGGER_CONFIG_SCHEMA,
|
|
52
85
|
eventSchema: RESEND_EMAIL_SUPPRESSED_EVENT_SCHEMA,
|
|
53
86
|
},
|
|
87
|
+
"resend.event": {
|
|
88
|
+
configSchema: RESEND_TRIGGER_CONFIG_SCHEMA,
|
|
89
|
+
eventSchema: RESEND_EVENT_SCHEMA,
|
|
90
|
+
},
|
|
91
|
+
"resend.suppression.added": {
|
|
92
|
+
configSchema: RESEND_TRIGGER_CONFIG_SCHEMA,
|
|
93
|
+
eventSchema: RESEND_SUPPRESSION_ADDED_EVENT_SCHEMA,
|
|
94
|
+
},
|
|
95
|
+
"resend.suppression.event": {
|
|
96
|
+
configSchema: RESEND_TRIGGER_CONFIG_SCHEMA,
|
|
97
|
+
eventSchema: RESEND_SUPPRESSION_EVENT_SCHEMA,
|
|
98
|
+
},
|
|
99
|
+
"resend.suppression.removed": {
|
|
100
|
+
configSchema: RESEND_TRIGGER_CONFIG_SCHEMA,
|
|
101
|
+
eventSchema: RESEND_SUPPRESSION_REMOVED_EVENT_SCHEMA,
|
|
102
|
+
},
|
|
54
103
|
};
|