@social-mail/social-mail-client 1.4.96 → 1.4.97

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.
@@ -40146,7 +40146,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
40146
40146
  System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/core/dist/di/Inject", "../../../../services/EntityService", "../../../../model/model", "../../../../common/Sql", "../../../../services/email/EmailContentDownloader", "../../mails/service/EngagementService"], function (_export, _context) {
40147
40147
  "use strict";
40148
40148
 
40149
- var __awaiter, __decorate, __metadata, DITransient, Inject, EntityService, ChannelEmail, Email, Mailbox, MailboxContact, Sql, EmailContentDownloader, EngagementService, ChannelService;
40149
+ var __awaiter, __decorate, __metadata, DITransient, Inject, EntityService, Email, Mailbox, MailboxContact, MailboxContactEmail, Sql, EmailContentDownloader, EngagementService, ChannelService;
40150
40150
  return {
40151
40151
  setters: [function (_tslib) {
40152
40152
  __awaiter = _tslib.__awaiter;
@@ -40159,10 +40159,10 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
40159
40159
  }, function (_servicesEntityService) {
40160
40160
  EntityService = _servicesEntityService.default;
40161
40161
  }, function (_modelModel) {
40162
- ChannelEmail = _modelModel.ChannelEmail;
40163
40162
  Email = _modelModel.Email;
40164
40163
  Mailbox = _modelModel.Mailbox;
40165
40164
  MailboxContact = _modelModel.MailboxContact;
40165
+ MailboxContactEmail = _modelModel.MailboxContactEmail;
40166
40166
  }, function (_commonSql) {
40167
40167
  Sql = _commonSql.Sql;
40168
40168
  }, function (_servicesEmailEmailContentDownloader) {
@@ -40182,16 +40182,16 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
40182
40182
  cancelToken
40183
40183
  }) {
40184
40184
  return __awaiter(this, void 0, void 0, function* () {
40185
- let q = this.entityService.query(ChannelEmail);
40185
+ let q = this.entityService.query(MailboxContactEmail);
40186
40186
  if (channelID) {
40187
40187
  q = q.where({
40188
40188
  channelID
40189
40189
  }, p => x => x.mailboxID === p.channelID);
40190
40190
  }
40191
40191
  if (published) {
40192
- q = q.where(x => x.datePublished !== null);
40192
+ q = q.where(void 0, p => x => x.email.status === "published");
40193
40193
  } else {
40194
- q = q.where(x => x.datePublished === null);
40194
+ q = q.where(void 0, p => x => x.email.status !== "published");
40195
40195
  }
40196
40196
  if (search) {
40197
40197
  if (!/\%/.test(search)) {