resend 6.28.0-preview-inboxes.0 → 6.28.1-preview-inboxes.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 +5 -2
- package/dist/index.d.cts +370 -363
- package/dist/index.d.mts +370 -363
- package/dist/index.mjs +4 -1
- package/package.json +11 -11
package/dist/index.cjs
CHANGED
|
@@ -16,7 +16,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
}
|
|
17
17
|
return to;
|
|
18
18
|
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
20
20
|
value: mod,
|
|
21
21
|
enumerable: true
|
|
22
22
|
}) : target, mod));
|
|
@@ -53,7 +53,7 @@ const INBOX_LABEL_COLORS = [
|
|
|
53
53
|
];
|
|
54
54
|
//#endregion
|
|
55
55
|
//#region package.json
|
|
56
|
-
var version = "6.28.
|
|
56
|
+
var version = "6.28.1-preview-inboxes.0";
|
|
57
57
|
//#endregion
|
|
58
58
|
//#region src/common/utils/build-pagination-query.ts
|
|
59
59
|
function buildPaginationUrl(base, options) {
|
|
@@ -351,6 +351,9 @@ var Broadcasts = class {
|
|
|
351
351
|
async cancel(id) {
|
|
352
352
|
return await this.resend.post(`/broadcasts/${id}/cancel`);
|
|
353
353
|
}
|
|
354
|
+
async duplicate(id) {
|
|
355
|
+
return await this.resend.post(`/broadcasts/${id}/duplicate`);
|
|
356
|
+
}
|
|
354
357
|
async update(id, payload) {
|
|
355
358
|
const html = payload.react ? await render(payload.react) : payload.html;
|
|
356
359
|
return await this.resend.patch(`/broadcasts/${id}`, {
|