@happyvertical/smrt-messages 0.55.11 → 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.
Files changed (28) hide show
  1. package/dist/chunks/{AccountCollection-BI-osnRy.js → AccountCollection-Yf8qlymc.js} +10 -3
  2. package/dist/chunks/AccountCollection-Yf8qlymc.js.map +1 -0
  3. package/dist/chunks/{Email-BWTPou1O.js → Email-AuLDf7PW.js} +20 -4
  4. package/dist/chunks/Email-AuLDf7PW.js.map +1 -0
  5. package/dist/chunks/{EmailFolder-acO0l4c0.js → EmailFolder-MaPjXEmC.js} +2 -2
  6. package/dist/chunks/{EmailFolder-acO0l4c0.js.map → EmailFolder-MaPjXEmC.js.map} +1 -1
  7. package/dist/chunks/{Message-CX5L_ANS.js → Message-BkY7dIdP.js} +30 -9
  8. package/dist/chunks/Message-BkY7dIdP.js.map +1 -0
  9. package/dist/chunks/{MessageCollection-CmKXEeiT.js → MessageCollection-ChyyL0y_.js} +2 -2
  10. package/dist/chunks/{MessageCollection-CmKXEeiT.js.map → MessageCollection-ChyyL0y_.js.map} +1 -1
  11. package/dist/chunks/__smrt-register__-BqfRALVb.js +6 -0
  12. package/dist/chunks/__smrt-register__-BqfRALVb.js.map +1 -0
  13. package/dist/index.js +21 -9
  14. package/dist/index.js.map +1 -1
  15. package/dist/manifest.json +837 -159
  16. package/dist/models/Account.d.ts.map +1 -1
  17. package/dist/models/Email.d.ts.map +1 -1
  18. package/dist/models/EmailAccount.d.ts.map +1 -1
  19. package/dist/models/Message.d.ts.map +1 -1
  20. package/dist/recipes.d.ts +22 -0
  21. package/dist/recipes.d.ts.map +1 -1
  22. package/dist/smrt-knowledge.json +357 -169
  23. package/package.json +15 -15
  24. package/dist/chunks/AccountCollection-BI-osnRy.js.map +0 -1
  25. package/dist/chunks/Email-BWTPou1O.js.map +0 -1
  26. package/dist/chunks/Message-CX5L_ANS.js.map +0 -1
  27. package/dist/chunks/__smrt-register__-BwaxW-WF.js +0 -6
  28. package/dist/chunks/__smrt-register__-BwaxW-WF.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__-BwaxW-WF.js";
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-BI-osnRy.js";
5
- import { t as Message } from "./chunks/Message-CX5L_ANS.js";
6
- import { t as MessageCollection } from "./chunks/MessageCollection-CmKXEeiT.js";
7
- import { t as Email } from "./chunks/Email-BWTPou1O.js";
8
- import { t as EmailFolder } from "./chunks/EmailFolder-acO0l4c0.js";
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-CmKXEeiT.js").then((n) => n.n);
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-acO0l4c0.js").then((n) => n.n);
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-BWTPou1O.js").then((n) => n.n);
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";