@happyvertical/smrt-messages 0.55.12 → 0.55.13
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/chunks/{AccountCollection-KshNIkPE.js → AccountCollection-Yf8qlymc.js} +10 -3
- package/dist/chunks/AccountCollection-Yf8qlymc.js.map +1 -0
- package/dist/chunks/{Email-CEJQKkpN.js → Email-AuLDf7PW.js} +20 -4
- package/dist/chunks/Email-AuLDf7PW.js.map +1 -0
- package/dist/chunks/{EmailFolder-BhNYKU2I.js → EmailFolder-MaPjXEmC.js} +2 -2
- package/dist/chunks/{EmailFolder-BhNYKU2I.js.map → EmailFolder-MaPjXEmC.js.map} +1 -1
- package/dist/chunks/{Message-BMtbSExY.js → Message-BkY7dIdP.js} +30 -9
- package/dist/chunks/Message-BkY7dIdP.js.map +1 -0
- package/dist/chunks/{MessageCollection-4sOQ4srR.js → MessageCollection-ChyyL0y_.js} +2 -2
- package/dist/chunks/{MessageCollection-4sOQ4srR.js.map → MessageCollection-ChyyL0y_.js.map} +1 -1
- package/dist/chunks/__smrt-register__-BqfRALVb.js +6 -0
- package/dist/chunks/__smrt-register__-BqfRALVb.js.map +1 -0
- package/dist/index.js +21 -9
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +837 -159
- package/dist/models/Account.d.ts.map +1 -1
- package/dist/models/Email.d.ts.map +1 -1
- package/dist/models/EmailAccount.d.ts.map +1 -1
- package/dist/models/Message.d.ts.map +1 -1
- package/dist/recipes.d.ts +22 -0
- package/dist/recipes.d.ts.map +1 -1
- package/dist/smrt-knowledge.json +357 -169
- package/package.json +15 -15
- package/dist/chunks/AccountCollection-KshNIkPE.js.map +0 -1
- package/dist/chunks/Email-CEJQKkpN.js.map +0 -1
- package/dist/chunks/Message-BMtbSExY.js.map +0 -1
- package/dist/chunks/__smrt-register__-BLIm0oQ4.js +0 -6
- package/dist/chunks/__smrt-register__-BLIm0oQ4.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as __exportAll } from "./chunks/rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import "./chunks/__smrt-register__-
|
|
2
|
+
import "./chunks/__smrt-register__-BqfRALVb.js";
|
|
3
3
|
import { a as registerMessagingProvider, n as getMessagingProvider, o as ZulipSender, r as listMessagingProviders, s as TelegramSender, t as ensureBuiltinMessagingProvidersRegistered } from "./chunks/providers-4iLula-V.js";
|
|
4
|
-
import { r as Account, t as AccountCollection } from "./chunks/AccountCollection-
|
|
5
|
-
import { t as Message } from "./chunks/Message-
|
|
6
|
-
import { t as MessageCollection } from "./chunks/MessageCollection-
|
|
7
|
-
import { t as Email } from "./chunks/Email-
|
|
8
|
-
import { t as EmailFolder } from "./chunks/EmailFolder-
|
|
4
|
+
import { r as Account, t as AccountCollection } from "./chunks/AccountCollection-Yf8qlymc.js";
|
|
5
|
+
import { t as Message } from "./chunks/Message-BkY7dIdP.js";
|
|
6
|
+
import { t as MessageCollection } from "./chunks/MessageCollection-ChyyL0y_.js";
|
|
7
|
+
import { t as Email } from "./chunks/Email-AuLDf7PW.js";
|
|
8
|
+
import { t as EmailFolder } from "./chunks/EmailFolder-MaPjXEmC.js";
|
|
9
9
|
import { t as SlackSender } from "./chunks/SlackSender-CjSvwY1K.js";
|
|
10
10
|
import { t as TweetSender } from "./chunks/TweetSender-CcLPNNi1.js";
|
|
11
11
|
import { SmrtCollection, SmrtObject, SmrtRecipe, crossPackageRef, field, foreignKey, importOptionalDependency, isUniqueViolationError, smrt } from "@happyvertical/smrt-core";
|
|
@@ -98,7 +98,7 @@ var Attachment = class extends SmrtObject {
|
|
|
98
98
|
*/
|
|
99
99
|
async getMessage() {
|
|
100
100
|
if (!this.messageId) return null;
|
|
101
|
-
const { MessageCollection } = await import("./chunks/MessageCollection-
|
|
101
|
+
const { MessageCollection } = await import("./chunks/MessageCollection-ChyyL0y_.js").then((n) => n.n);
|
|
102
102
|
return await (await MessageCollection.create(this.options)).get({ id: this.messageId });
|
|
103
103
|
}
|
|
104
104
|
/**
|
|
@@ -670,7 +670,7 @@ var EmailAccount = class extends Account {
|
|
|
670
670
|
for (const folderName of foldersToSync) try {
|
|
671
671
|
let folder = await folderCollection.getByPath(accountId, folderName);
|
|
672
672
|
if (!folder) {
|
|
673
|
-
const { EmailFolder } = await import("./chunks/EmailFolder-
|
|
673
|
+
const { EmailFolder } = await import("./chunks/EmailFolder-MaPjXEmC.js").then((n) => n.n);
|
|
674
674
|
folder = new EmailFolder({
|
|
675
675
|
...this.childOptions(),
|
|
676
676
|
accountId,
|
|
@@ -695,7 +695,7 @@ var EmailAccount = class extends Account {
|
|
|
695
695
|
result.messagesSkipped++;
|
|
696
696
|
continue;
|
|
697
697
|
}
|
|
698
|
-
const { Email } = await import("./chunks/Email-
|
|
698
|
+
const { Email } = await import("./chunks/Email-AuLDf7PW.js").then((n) => n.n);
|
|
699
699
|
let email = existingEmail;
|
|
700
700
|
if (!email) {
|
|
701
701
|
email = new Email({
|
|
@@ -820,6 +820,8 @@ var EmailAccount = class extends Account {
|
|
|
820
820
|
}
|
|
821
821
|
};
|
|
822
822
|
__publicField$8(EmailAccount, "__smrtPackage__", "@happyvertical/smrt-messages");
|
|
823
|
+
__decorateClass$8([field({ description: "The email address associated with this mailbox." })], EmailAccount.prototype, "email", 2);
|
|
824
|
+
__decorateClass$8([field({ description: "The time in minutes between scheduled mailbox checks." })], EmailAccount.prototype, "syncIntervalMinutes", 2);
|
|
823
825
|
EmailAccount = __decorateClass$8([smrt({
|
|
824
826
|
tableStrategy: "sti",
|
|
825
827
|
api: { include: ["list", "get"] },
|
|
@@ -2482,6 +2484,16 @@ var MailboxRecipe = class extends SmrtRecipe {
|
|
|
2482
2484
|
}
|
|
2483
2485
|
}];
|
|
2484
2486
|
static help = "./help/mailbox.md";
|
|
2487
|
+
static options = {
|
|
2488
|
+
Email: { fields: {
|
|
2489
|
+
created_at: { help: "When this email was first recorded." },
|
|
2490
|
+
updated_at: { help: "When this email record was last changed." }
|
|
2491
|
+
} },
|
|
2492
|
+
EmailAccount: { fields: {
|
|
2493
|
+
created_at: { help: "When this mailbox connection was first recorded." },
|
|
2494
|
+
updated_at: { help: "When this mailbox connection was last changed." }
|
|
2495
|
+
} }
|
|
2496
|
+
};
|
|
2485
2497
|
};
|
|
2486
2498
|
var NotificationsRecipe = class extends SmrtRecipe {
|
|
2487
2499
|
static id = "messages.notifications";
|