resend 6.11.0-canary.0 → 6.11.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/index.cjs +8 -3
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +8 -3
- package/package.json +16 -14
package/dist/index.cjs
CHANGED
|
@@ -25,7 +25,7 @@ let postal_mime = require("postal-mime");
|
|
|
25
25
|
postal_mime = __toESM(postal_mime);
|
|
26
26
|
let svix = require("svix");
|
|
27
27
|
//#region package.json
|
|
28
|
-
var version = "6.11.0
|
|
28
|
+
var version = "6.11.0";
|
|
29
29
|
//#endregion
|
|
30
30
|
//#region src/common/utils/build-pagination-query.ts
|
|
31
31
|
/**
|
|
@@ -120,7 +120,12 @@ function parseStepConfig(step) {
|
|
|
120
120
|
case "contact_update": return {
|
|
121
121
|
key: step.key,
|
|
122
122
|
type: step.type,
|
|
123
|
-
config:
|
|
123
|
+
config: {
|
|
124
|
+
first_name: step.config.firstName,
|
|
125
|
+
last_name: step.config.lastName,
|
|
126
|
+
unsubscribed: step.config.unsubscribed,
|
|
127
|
+
properties: step.config.properties
|
|
128
|
+
}
|
|
124
129
|
};
|
|
125
130
|
case "contact_delete": return {
|
|
126
131
|
key: step.key,
|
|
@@ -130,7 +135,7 @@ function parseStepConfig(step) {
|
|
|
130
135
|
case "add_to_segment": return {
|
|
131
136
|
key: step.key,
|
|
132
137
|
type: step.type,
|
|
133
|
-
config: step.config
|
|
138
|
+
config: { segment_id: step.config.segmentId }
|
|
134
139
|
};
|
|
135
140
|
}
|
|
136
141
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -287,10 +287,10 @@ interface WaitForEventStepConfig {
|
|
|
287
287
|
}
|
|
288
288
|
type ConditionStepConfig = ConditionRule;
|
|
289
289
|
interface ContactUpdateStepConfig {
|
|
290
|
-
|
|
290
|
+
firstName?: string | null | {
|
|
291
291
|
var: string;
|
|
292
292
|
};
|
|
293
|
-
|
|
293
|
+
lastName?: string | null | {
|
|
294
294
|
var: string;
|
|
295
295
|
};
|
|
296
296
|
unsubscribed?: boolean | {
|
|
@@ -302,7 +302,7 @@ interface ContactUpdateStepConfig {
|
|
|
302
302
|
}
|
|
303
303
|
type ContactDeleteStepConfig = Record<string, never>;
|
|
304
304
|
interface AddToSegmentStepConfig {
|
|
305
|
-
|
|
305
|
+
segmentId: string;
|
|
306
306
|
}
|
|
307
307
|
type AutomationStep = {
|
|
308
308
|
key: string;
|
package/dist/index.d.mts
CHANGED
|
@@ -287,10 +287,10 @@ interface WaitForEventStepConfig {
|
|
|
287
287
|
}
|
|
288
288
|
type ConditionStepConfig = ConditionRule;
|
|
289
289
|
interface ContactUpdateStepConfig {
|
|
290
|
-
|
|
290
|
+
firstName?: string | null | {
|
|
291
291
|
var: string;
|
|
292
292
|
};
|
|
293
|
-
|
|
293
|
+
lastName?: string | null | {
|
|
294
294
|
var: string;
|
|
295
295
|
};
|
|
296
296
|
unsubscribed?: boolean | {
|
|
@@ -302,7 +302,7 @@ interface ContactUpdateStepConfig {
|
|
|
302
302
|
}
|
|
303
303
|
type ContactDeleteStepConfig = Record<string, never>;
|
|
304
304
|
interface AddToSegmentStepConfig {
|
|
305
|
-
|
|
305
|
+
segmentId: string;
|
|
306
306
|
}
|
|
307
307
|
type AutomationStep = {
|
|
308
308
|
key: string;
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import PostalMime from "postal-mime";
|
|
2
2
|
import { Webhook } from "svix";
|
|
3
3
|
//#region package.json
|
|
4
|
-
var version = "6.11.0
|
|
4
|
+
var version = "6.11.0";
|
|
5
5
|
//#endregion
|
|
6
6
|
//#region src/common/utils/build-pagination-query.ts
|
|
7
7
|
/**
|
|
@@ -96,7 +96,12 @@ function parseStepConfig(step) {
|
|
|
96
96
|
case "contact_update": return {
|
|
97
97
|
key: step.key,
|
|
98
98
|
type: step.type,
|
|
99
|
-
config:
|
|
99
|
+
config: {
|
|
100
|
+
first_name: step.config.firstName,
|
|
101
|
+
last_name: step.config.lastName,
|
|
102
|
+
unsubscribed: step.config.unsubscribed,
|
|
103
|
+
properties: step.config.properties
|
|
104
|
+
}
|
|
100
105
|
};
|
|
101
106
|
case "contact_delete": return {
|
|
102
107
|
key: step.key,
|
|
@@ -106,7 +111,7 @@ function parseStepConfig(step) {
|
|
|
106
111
|
case "add_to_segment": return {
|
|
107
112
|
key: step.key,
|
|
108
113
|
type: step.type,
|
|
109
|
-
config: step.config
|
|
114
|
+
config: { segment_id: step.config.segmentId }
|
|
110
115
|
};
|
|
111
116
|
}
|
|
112
117
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "resend",
|
|
3
|
-
"version": "6.11.0
|
|
3
|
+
"version": "6.11.0",
|
|
4
4
|
"description": "Node.js library for the Resend API",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -29,6 +29,19 @@
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
|
+
"scripts": {
|
|
33
|
+
"build": "tsdown src/index.ts --format esm,cjs --dts",
|
|
34
|
+
"integration:nextjs": "cd ./e2e/nextjs && next build --turbopack",
|
|
35
|
+
"lint": "biome check .",
|
|
36
|
+
"lint:fix": "biome check . --write",
|
|
37
|
+
"prepublishOnly": "pnpm run build",
|
|
38
|
+
"test": "vitest run --exclude e2e",
|
|
39
|
+
"test:dev": "cross-env TEST_MODE=dev vitest run --exclude e2e",
|
|
40
|
+
"test:e2e": "vitest run e2e",
|
|
41
|
+
"test:record": "rimraf --glob \"**/__recordings__\" && cross-env TEST_MODE=record vitest run --exclude e2e",
|
|
42
|
+
"test:watch": "vitest --exclude e2e",
|
|
43
|
+
"typecheck": "tsc --noEmit"
|
|
44
|
+
},
|
|
32
45
|
"repository": {
|
|
33
46
|
"type": "git",
|
|
34
47
|
"url": "git+https://github.com/resend/resend-node.git"
|
|
@@ -70,16 +83,5 @@
|
|
|
70
83
|
"vitest": "4.1.4",
|
|
71
84
|
"vitest-fetch-mock": "0.4.5"
|
|
72
85
|
},
|
|
73
|
-
"
|
|
74
|
-
|
|
75
|
-
"integration:nextjs": "cd ./e2e/nextjs && next build --turbopack",
|
|
76
|
-
"lint": "biome check .",
|
|
77
|
-
"lint:fix": "biome check . --write",
|
|
78
|
-
"test": "vitest run --exclude e2e",
|
|
79
|
-
"test:dev": "cross-env TEST_MODE=dev vitest run --exclude e2e",
|
|
80
|
-
"test:e2e": "vitest run e2e",
|
|
81
|
-
"test:record": "rimraf --glob \"**/__recordings__\" && cross-env TEST_MODE=record vitest run --exclude e2e",
|
|
82
|
-
"test:watch": "vitest --exclude e2e",
|
|
83
|
-
"typecheck": "tsc --noEmit"
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
+
"packageManager": "pnpm@10.33.0"
|
|
87
|
+
}
|