resend 6.10.0-preview-workflows.6 → 6.10.0-preview-workflows.7

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 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.10.0-preview-workflows.6";
28
+ var version = "6.10.0-preview-workflows.7";
29
29
  //#endregion
30
30
  //#region src/common/utils/build-pagination-query.ts
31
31
  /**
@@ -97,10 +97,7 @@ function parseStepConfig(step) {
97
97
  key: step.key,
98
98
  type: step.type,
99
99
  config: {
100
- template: {
101
- id: step.config.templateId,
102
- variables: step.config.variables
103
- },
100
+ template: step.config.template,
104
101
  subject: step.config.subject,
105
102
  from: step.config.from,
106
103
  reply_to: step.config.replyTo
package/dist/index.d.cts CHANGED
@@ -272,11 +272,13 @@ interface DelayStepConfig {
272
272
  duration: string;
273
273
  }
274
274
  interface SendEmailStepConfig {
275
- templateId: string;
275
+ template: {
276
+ id: string;
277
+ variables?: Record<string, TemplateVariableValue>;
278
+ };
276
279
  subject?: string;
277
280
  from?: string;
278
281
  replyTo?: string;
279
- variables?: Record<string, TemplateVariableValue>;
280
282
  }
281
283
  interface WaitForEventStepConfig {
282
284
  eventName: string;
package/dist/index.d.mts CHANGED
@@ -272,11 +272,13 @@ interface DelayStepConfig {
272
272
  duration: string;
273
273
  }
274
274
  interface SendEmailStepConfig {
275
- templateId: string;
275
+ template: {
276
+ id: string;
277
+ variables?: Record<string, TemplateVariableValue>;
278
+ };
276
279
  subject?: string;
277
280
  from?: string;
278
281
  replyTo?: string;
279
- variables?: Record<string, TemplateVariableValue>;
280
282
  }
281
283
  interface WaitForEventStepConfig {
282
284
  eventName: 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.10.0-preview-workflows.6";
4
+ var version = "6.10.0-preview-workflows.7";
5
5
  //#endregion
6
6
  //#region src/common/utils/build-pagination-query.ts
7
7
  /**
@@ -73,10 +73,7 @@ function parseStepConfig(step) {
73
73
  key: step.key,
74
74
  type: step.type,
75
75
  config: {
76
- template: {
77
- id: step.config.templateId,
78
- variables: step.config.variables
79
- },
76
+ template: step.config.template,
80
77
  subject: step.config.subject,
81
78
  from: step.config.from,
82
79
  reply_to: step.config.replyTo
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resend",
3
- "version": "6.10.0-preview-workflows.6",
3
+ "version": "6.10.0-preview-workflows.7",
4
4
  "description": "Node.js library for the Resend API",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -62,12 +62,12 @@
62
62
  "cross-env": "10.1.0",
63
63
  "dotenv": "17.4.1",
64
64
  "pkg-pr-new": "0.0.66",
65
- "react": "19.2.4",
66
- "react-dom": "19.2.4",
65
+ "react": "19.2.5",
66
+ "react-dom": "19.2.5",
67
67
  "rimraf": "6.1.3",
68
68
  "tsdown": "0.21.4",
69
69
  "typescript": "6.0.2",
70
- "vitest": "4.1.3",
70
+ "vitest": "4.1.4",
71
71
  "vitest-fetch-mock": "0.4.5"
72
72
  },
73
73
  "scripts": {