@automate.ax/integration-contracts 0.97.1 → 0.98.1
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/src/resend/index.ts
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import * as z from "zod"
|
|
2
2
|
import {
|
|
3
|
+
RESEND_CONTACT_CREATED_EVENT_SCHEMA,
|
|
4
|
+
RESEND_CONTACT_DELETED_EVENT_SCHEMA,
|
|
5
|
+
RESEND_CONTACT_EVENT_SCHEMA,
|
|
6
|
+
RESEND_CONTACT_UPDATED_EVENT_SCHEMA,
|
|
7
|
+
RESEND_DOMAIN_CREATED_EVENT_SCHEMA,
|
|
8
|
+
RESEND_DOMAIN_DELETED_EVENT_SCHEMA,
|
|
9
|
+
RESEND_DOMAIN_EVENT_SCHEMA,
|
|
10
|
+
RESEND_DOMAIN_UPDATED_EVENT_SCHEMA,
|
|
3
11
|
RESEND_EMAIL_BOUNCED_EVENT_SCHEMA,
|
|
4
12
|
RESEND_EMAIL_CLICKED_EVENT_SCHEMA,
|
|
5
13
|
RESEND_EMAIL_COMPLAINED_EVENT_SCHEMA,
|
|
@@ -12,13 +20,50 @@ import {
|
|
|
12
20
|
RESEND_EMAIL_SCHEDULED_EVENT_SCHEMA,
|
|
13
21
|
RESEND_EMAIL_SENT_EVENT_SCHEMA,
|
|
14
22
|
RESEND_EMAIL_SUPPRESSED_EVENT_SCHEMA,
|
|
23
|
+
RESEND_EVENT_SCHEMA,
|
|
24
|
+
RESEND_SUPPRESSION_ADDED_EVENT_SCHEMA,
|
|
25
|
+
RESEND_SUPPRESSION_EVENT_SCHEMA,
|
|
26
|
+
RESEND_SUPPRESSION_REMOVED_EVENT_SCHEMA,
|
|
15
27
|
} from "./schemas"
|
|
16
28
|
|
|
29
|
+
export * from "./api"
|
|
17
30
|
export * from "./schemas"
|
|
18
31
|
|
|
19
32
|
export const RESEND_TRIGGER_CONFIG_SCHEMA = z.object({})
|
|
20
33
|
|
|
21
34
|
export const resendTriggerContracts = {
|
|
35
|
+
"resend.contact.created": {
|
|
36
|
+
configSchema: RESEND_TRIGGER_CONFIG_SCHEMA,
|
|
37
|
+
eventSchema: RESEND_CONTACT_CREATED_EVENT_SCHEMA,
|
|
38
|
+
},
|
|
39
|
+
"resend.contact.deleted": {
|
|
40
|
+
configSchema: RESEND_TRIGGER_CONFIG_SCHEMA,
|
|
41
|
+
eventSchema: RESEND_CONTACT_DELETED_EVENT_SCHEMA,
|
|
42
|
+
},
|
|
43
|
+
"resend.contact.event": {
|
|
44
|
+
configSchema: RESEND_TRIGGER_CONFIG_SCHEMA,
|
|
45
|
+
eventSchema: RESEND_CONTACT_EVENT_SCHEMA,
|
|
46
|
+
},
|
|
47
|
+
"resend.contact.updated": {
|
|
48
|
+
configSchema: RESEND_TRIGGER_CONFIG_SCHEMA,
|
|
49
|
+
eventSchema: RESEND_CONTACT_UPDATED_EVENT_SCHEMA,
|
|
50
|
+
},
|
|
51
|
+
"resend.domain.created": {
|
|
52
|
+
configSchema: RESEND_TRIGGER_CONFIG_SCHEMA,
|
|
53
|
+
eventSchema: RESEND_DOMAIN_CREATED_EVENT_SCHEMA,
|
|
54
|
+
},
|
|
55
|
+
"resend.domain.deleted": {
|
|
56
|
+
configSchema: RESEND_TRIGGER_CONFIG_SCHEMA,
|
|
57
|
+
eventSchema: RESEND_DOMAIN_DELETED_EVENT_SCHEMA,
|
|
58
|
+
},
|
|
59
|
+
"resend.domain.event": {
|
|
60
|
+
configSchema: RESEND_TRIGGER_CONFIG_SCHEMA,
|
|
61
|
+
eventSchema: RESEND_DOMAIN_EVENT_SCHEMA,
|
|
62
|
+
},
|
|
63
|
+
"resend.domain.updated": {
|
|
64
|
+
configSchema: RESEND_TRIGGER_CONFIG_SCHEMA,
|
|
65
|
+
eventSchema: RESEND_DOMAIN_UPDATED_EVENT_SCHEMA,
|
|
66
|
+
},
|
|
22
67
|
"resend.email.bounced": {
|
|
23
68
|
configSchema: RESEND_TRIGGER_CONFIG_SCHEMA,
|
|
24
69
|
eventSchema: RESEND_EMAIL_BOUNCED_EVENT_SCHEMA,
|
|
@@ -67,4 +112,20 @@ export const resendTriggerContracts = {
|
|
|
67
112
|
configSchema: RESEND_TRIGGER_CONFIG_SCHEMA,
|
|
68
113
|
eventSchema: RESEND_EMAIL_SUPPRESSED_EVENT_SCHEMA,
|
|
69
114
|
},
|
|
115
|
+
"resend.event": {
|
|
116
|
+
configSchema: RESEND_TRIGGER_CONFIG_SCHEMA,
|
|
117
|
+
eventSchema: RESEND_EVENT_SCHEMA,
|
|
118
|
+
},
|
|
119
|
+
"resend.suppression.added": {
|
|
120
|
+
configSchema: RESEND_TRIGGER_CONFIG_SCHEMA,
|
|
121
|
+
eventSchema: RESEND_SUPPRESSION_ADDED_EVENT_SCHEMA,
|
|
122
|
+
},
|
|
123
|
+
"resend.suppression.event": {
|
|
124
|
+
configSchema: RESEND_TRIGGER_CONFIG_SCHEMA,
|
|
125
|
+
eventSchema: RESEND_SUPPRESSION_EVENT_SCHEMA,
|
|
126
|
+
},
|
|
127
|
+
"resend.suppression.removed": {
|
|
128
|
+
configSchema: RESEND_TRIGGER_CONFIG_SCHEMA,
|
|
129
|
+
eventSchema: RESEND_SUPPRESSION_REMOVED_EVENT_SCHEMA,
|
|
130
|
+
},
|
|
70
131
|
} as const
|