resend 3.0.0 → 3.2.0-canary.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.d.mts +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +13 -1
- package/dist/index.mjs +13 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -435,6 +435,19 @@ interface ListDomainsResponse {
|
|
|
435
435
|
error: ErrorResponse | null;
|
|
436
436
|
}
|
|
437
437
|
|
|
438
|
+
interface PatchDomainsOptions {
|
|
439
|
+
id: string;
|
|
440
|
+
click_tracking?: boolean;
|
|
441
|
+
open_tracking?: boolean;
|
|
442
|
+
}
|
|
443
|
+
type PatchDomainsResponseSuccess = Pick<Domain, 'id'> & {
|
|
444
|
+
object: 'domain';
|
|
445
|
+
};
|
|
446
|
+
interface PatchDomainsResponse {
|
|
447
|
+
data: PatchDomainsResponseSuccess | null;
|
|
448
|
+
error: ErrorResponse | null;
|
|
449
|
+
}
|
|
450
|
+
|
|
438
451
|
type RemoveDomainsResponseSuccess = Pick<Domain, 'id'>;
|
|
439
452
|
interface RemoveDomainsResponse {
|
|
440
453
|
data: RemoveDomainsResponseSuccess | null;
|
|
@@ -453,6 +466,7 @@ declare class Domains {
|
|
|
453
466
|
create(payload: CreateDomainOptions, options?: CreateDomainRequestOptions): Promise<CreateDomainResponse>;
|
|
454
467
|
list(): Promise<ListDomainsResponse>;
|
|
455
468
|
get(id: string): Promise<GetDomainResponse>;
|
|
469
|
+
patch(payload: PatchDomainsOptions): Promise<PatchDomainsResponse>;
|
|
456
470
|
remove(id: string): Promise<RemoveDomainsResponse>;
|
|
457
471
|
verify(id: string): Promise<VerifyDomainsResponse>;
|
|
458
472
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -435,6 +435,19 @@ interface ListDomainsResponse {
|
|
|
435
435
|
error: ErrorResponse | null;
|
|
436
436
|
}
|
|
437
437
|
|
|
438
|
+
interface PatchDomainsOptions {
|
|
439
|
+
id: string;
|
|
440
|
+
click_tracking?: boolean;
|
|
441
|
+
open_tracking?: boolean;
|
|
442
|
+
}
|
|
443
|
+
type PatchDomainsResponseSuccess = Pick<Domain, 'id'> & {
|
|
444
|
+
object: 'domain';
|
|
445
|
+
};
|
|
446
|
+
interface PatchDomainsResponse {
|
|
447
|
+
data: PatchDomainsResponseSuccess | null;
|
|
448
|
+
error: ErrorResponse | null;
|
|
449
|
+
}
|
|
450
|
+
|
|
438
451
|
type RemoveDomainsResponseSuccess = Pick<Domain, 'id'>;
|
|
439
452
|
interface RemoveDomainsResponse {
|
|
440
453
|
data: RemoveDomainsResponseSuccess | null;
|
|
@@ -453,6 +466,7 @@ declare class Domains {
|
|
|
453
466
|
create(payload: CreateDomainOptions, options?: CreateDomainRequestOptions): Promise<CreateDomainResponse>;
|
|
454
467
|
list(): Promise<ListDomainsResponse>;
|
|
455
468
|
get(id: string): Promise<GetDomainResponse>;
|
|
469
|
+
patch(payload: PatchDomainsOptions): Promise<PatchDomainsResponse>;
|
|
456
470
|
remove(id: string): Promise<RemoveDomainsResponse>;
|
|
457
471
|
verify(id: string): Promise<VerifyDomainsResponse>;
|
|
458
472
|
}
|
package/dist/index.js
CHANGED
|
@@ -59,7 +59,7 @@ __export(src_exports, {
|
|
|
59
59
|
module.exports = __toCommonJS(src_exports);
|
|
60
60
|
|
|
61
61
|
// package.json
|
|
62
|
-
var version = "3.0.0";
|
|
62
|
+
var version = "3.2.0-canary.0";
|
|
63
63
|
|
|
64
64
|
// src/api-keys/api-keys.ts
|
|
65
65
|
var ApiKeys = class {
|
|
@@ -248,6 +248,18 @@ var Domains = class {
|
|
|
248
248
|
return data;
|
|
249
249
|
});
|
|
250
250
|
}
|
|
251
|
+
patch(payload) {
|
|
252
|
+
return __async(this, null, function* () {
|
|
253
|
+
const data = yield this.resend.patch(
|
|
254
|
+
`/domains/${payload.id}`,
|
|
255
|
+
{
|
|
256
|
+
click_tracking: payload.click_tracking,
|
|
257
|
+
open_tracking: payload.open_tracking
|
|
258
|
+
}
|
|
259
|
+
);
|
|
260
|
+
return data;
|
|
261
|
+
});
|
|
262
|
+
}
|
|
251
263
|
remove(id) {
|
|
252
264
|
return __async(this, null, function* () {
|
|
253
265
|
const data = yield this.resend.delete(
|
package/dist/index.mjs
CHANGED
|
@@ -36,7 +36,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
// package.json
|
|
39
|
-
var version = "3.0.0";
|
|
39
|
+
var version = "3.2.0-canary.0";
|
|
40
40
|
|
|
41
41
|
// src/api-keys/api-keys.ts
|
|
42
42
|
var ApiKeys = class {
|
|
@@ -225,6 +225,18 @@ var Domains = class {
|
|
|
225
225
|
return data;
|
|
226
226
|
});
|
|
227
227
|
}
|
|
228
|
+
patch(payload) {
|
|
229
|
+
return __async(this, null, function* () {
|
|
230
|
+
const data = yield this.resend.patch(
|
|
231
|
+
`/domains/${payload.id}`,
|
|
232
|
+
{
|
|
233
|
+
click_tracking: payload.click_tracking,
|
|
234
|
+
open_tracking: payload.open_tracking
|
|
235
|
+
}
|
|
236
|
+
);
|
|
237
|
+
return data;
|
|
238
|
+
});
|
|
239
|
+
}
|
|
228
240
|
remove(id) {
|
|
229
241
|
return __async(this, null, function* () {
|
|
230
242
|
const data = yield this.resend.delete(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "resend",
|
|
3
|
-
"version": "3.0.0",
|
|
3
|
+
"version": "3.2.0-canary.0",
|
|
4
4
|
"description": "Node.js library for the Resend API",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
},
|
|
45
45
|
"homepage": "https://github.com/resendlabs/resend-node#readme",
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@react-email/render": "0.0.
|
|
47
|
+
"@react-email/render": "0.0.12"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/jest": "29.5.11",
|