resend 3.2.0-canary.0 → 3.2.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 +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +9 -9
package/dist/index.d.mts
CHANGED
|
@@ -435,16 +435,16 @@ interface ListDomainsResponse {
|
|
|
435
435
|
error: ErrorResponse | null;
|
|
436
436
|
}
|
|
437
437
|
|
|
438
|
-
interface
|
|
438
|
+
interface UpdateDomainsOptions {
|
|
439
439
|
id: string;
|
|
440
|
-
|
|
441
|
-
|
|
440
|
+
clickTracking?: boolean;
|
|
441
|
+
openTracking?: boolean;
|
|
442
442
|
}
|
|
443
|
-
type
|
|
443
|
+
type UpdateDomainsResponseSuccess = Pick<Domain, 'id'> & {
|
|
444
444
|
object: 'domain';
|
|
445
445
|
};
|
|
446
|
-
interface
|
|
447
|
-
data:
|
|
446
|
+
interface UpdateDomainsResponse {
|
|
447
|
+
data: UpdateDomainsResponseSuccess | null;
|
|
448
448
|
error: ErrorResponse | null;
|
|
449
449
|
}
|
|
450
450
|
|
|
@@ -466,7 +466,7 @@ declare class Domains {
|
|
|
466
466
|
create(payload: CreateDomainOptions, options?: CreateDomainRequestOptions): Promise<CreateDomainResponse>;
|
|
467
467
|
list(): Promise<ListDomainsResponse>;
|
|
468
468
|
get(id: string): Promise<GetDomainResponse>;
|
|
469
|
-
|
|
469
|
+
update(payload: UpdateDomainsOptions): Promise<UpdateDomainsResponse>;
|
|
470
470
|
remove(id: string): Promise<RemoveDomainsResponse>;
|
|
471
471
|
verify(id: string): Promise<VerifyDomainsResponse>;
|
|
472
472
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -435,16 +435,16 @@ interface ListDomainsResponse {
|
|
|
435
435
|
error: ErrorResponse | null;
|
|
436
436
|
}
|
|
437
437
|
|
|
438
|
-
interface
|
|
438
|
+
interface UpdateDomainsOptions {
|
|
439
439
|
id: string;
|
|
440
|
-
|
|
441
|
-
|
|
440
|
+
clickTracking?: boolean;
|
|
441
|
+
openTracking?: boolean;
|
|
442
442
|
}
|
|
443
|
-
type
|
|
443
|
+
type UpdateDomainsResponseSuccess = Pick<Domain, 'id'> & {
|
|
444
444
|
object: 'domain';
|
|
445
445
|
};
|
|
446
|
-
interface
|
|
447
|
-
data:
|
|
446
|
+
interface UpdateDomainsResponse {
|
|
447
|
+
data: UpdateDomainsResponseSuccess | null;
|
|
448
448
|
error: ErrorResponse | null;
|
|
449
449
|
}
|
|
450
450
|
|
|
@@ -466,7 +466,7 @@ declare class Domains {
|
|
|
466
466
|
create(payload: CreateDomainOptions, options?: CreateDomainRequestOptions): Promise<CreateDomainResponse>;
|
|
467
467
|
list(): Promise<ListDomainsResponse>;
|
|
468
468
|
get(id: string): Promise<GetDomainResponse>;
|
|
469
|
-
|
|
469
|
+
update(payload: UpdateDomainsOptions): Promise<UpdateDomainsResponse>;
|
|
470
470
|
remove(id: string): Promise<RemoveDomainsResponse>;
|
|
471
471
|
verify(id: string): Promise<VerifyDomainsResponse>;
|
|
472
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.2.0
|
|
62
|
+
var version = "3.2.0";
|
|
63
63
|
|
|
64
64
|
// src/api-keys/api-keys.ts
|
|
65
65
|
var ApiKeys = class {
|
|
@@ -248,13 +248,13 @@ var Domains = class {
|
|
|
248
248
|
return data;
|
|
249
249
|
});
|
|
250
250
|
}
|
|
251
|
-
|
|
251
|
+
update(payload) {
|
|
252
252
|
return __async(this, null, function* () {
|
|
253
253
|
const data = yield this.resend.patch(
|
|
254
254
|
`/domains/${payload.id}`,
|
|
255
255
|
{
|
|
256
|
-
click_tracking: payload.
|
|
257
|
-
open_tracking: payload.
|
|
256
|
+
click_tracking: payload.clickTracking,
|
|
257
|
+
open_tracking: payload.openTracking
|
|
258
258
|
}
|
|
259
259
|
);
|
|
260
260
|
return data;
|
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.2.0
|
|
39
|
+
var version = "3.2.0";
|
|
40
40
|
|
|
41
41
|
// src/api-keys/api-keys.ts
|
|
42
42
|
var ApiKeys = class {
|
|
@@ -225,13 +225,13 @@ var Domains = class {
|
|
|
225
225
|
return data;
|
|
226
226
|
});
|
|
227
227
|
}
|
|
228
|
-
|
|
228
|
+
update(payload) {
|
|
229
229
|
return __async(this, null, function* () {
|
|
230
230
|
const data = yield this.resend.patch(
|
|
231
231
|
`/domains/${payload.id}`,
|
|
232
232
|
{
|
|
233
|
-
click_tracking: payload.
|
|
234
|
-
open_tracking: payload.
|
|
233
|
+
click_tracking: payload.clickTracking,
|
|
234
|
+
open_tracking: payload.openTracking
|
|
235
235
|
}
|
|
236
236
|
);
|
|
237
237
|
return data;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "resend",
|
|
3
|
-
"version": "3.2.0
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "Node.js library for the Resend API",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
|
-
"packageManager": "yarn@3.
|
|
26
|
+
"packageManager": "yarn@3.8.0",
|
|
27
27
|
"scripts": {
|
|
28
28
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|
|
29
29
|
"test": "jest",
|
|
@@ -47,16 +47,16 @@
|
|
|
47
47
|
"@react-email/render": "0.0.12"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@types/jest": "29.5.
|
|
51
|
-
"@types/node": "18.19.
|
|
52
|
-
"@types/react": "18.2.
|
|
53
|
-
"@typescript-eslint/eslint-plugin": "6.
|
|
54
|
-
"@typescript-eslint/parser": "6.
|
|
50
|
+
"@types/jest": "29.5.12",
|
|
51
|
+
"@types/node": "18.19.15",
|
|
52
|
+
"@types/react": "18.2.55",
|
|
53
|
+
"@typescript-eslint/eslint-plugin": "6.21.0",
|
|
54
|
+
"@typescript-eslint/parser": "6.21.0",
|
|
55
55
|
"eslint": "8.56.0",
|
|
56
56
|
"jest": "29.7.0",
|
|
57
57
|
"jest-fetch-mock": "3.0.3",
|
|
58
|
-
"prettier": "3.2.
|
|
59
|
-
"ts-jest": "29.1.
|
|
58
|
+
"prettier": "3.2.5",
|
|
59
|
+
"ts-jest": "29.1.2",
|
|
60
60
|
"ts-node": "10.9.2",
|
|
61
61
|
"tsup": "7.2.0",
|
|
62
62
|
"typescript": "5.3.3"
|