@social-mail/social-mail-client 1.2.540 → 1.2.542
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/content/svg/audio.svg +1 -0
- package/dist/admin/AdminAppIndex.pack.js +14 -10
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +14 -10
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +1 -1
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/dist/web/page/channels/services/ChannelService.d.ts +4 -1
- package/dist/web/page/channels/services/ChannelService.d.ts.map +1 -1
- package/dist/web/page/channels/services/ChannelService.js +14 -10
- package/dist/web/page/channels/services/ChannelService.js.map +1 -1
- package/package.json +1 -1
- package/src/web/page/channels/services/ChannelService.ts +11 -10
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><!--!Font Awesome Pro 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path class="fa-secondary" opacity=".4" fill="#281b15" d="M96 224l0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64c0-17.7-14.3-32-32-32s-32 14.3-32 32zM288 32l0 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-448c0-17.7-14.3-32-32-32s-32 14.3-32 32zM480 96l0 320c0 17.7 14.3 32 32 32s32-14.3 32-32l0-320c0-17.7-14.3-32-32-32s-32 14.3-32 32z"/><path class="fa-primary" fill="#bd3900" d="M256 128c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 256c0 17.7 14.3 32 32 32s32-14.3 32-32l0-256zm192 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 192c0 17.7 14.3 32 32 32s32-14.3 32-32l0-192zM0 256a32 32 0 1 0 64 0A32 32 0 1 0 0 256zm576 0a32 32 0 1 0 64 0 32 32 0 1 0 -64 0z"/></svg>
|
|
@@ -45388,7 +45388,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
45388
45388
|
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", "../../../../common/apiPath"], function (_export, _context) {
|
|
45389
45389
|
"use strict";
|
|
45390
45390
|
|
|
45391
|
-
var __awaiter, __decorate, __metadata, DITransient, Inject, EntityService, Email, Mailbox, MailboxContact, Sql, EmailContentDownloader, EngagementService, apiPath, ChannelService;
|
|
45391
|
+
var __awaiter, __decorate, __metadata, DITransient, Inject, EntityService, Email, Mailbox, MailboxContact, MailboxEmail, Sql, EmailContentDownloader, EngagementService, apiPath, ChannelService;
|
|
45392
45392
|
return {
|
|
45393
45393
|
setters: [function (_tslib) {
|
|
45394
45394
|
__awaiter = _tslib.__awaiter;
|
|
@@ -45404,6 +45404,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
|
|
|
45404
45404
|
Email = _modelModel.Email;
|
|
45405
45405
|
Mailbox = _modelModel.Mailbox;
|
|
45406
45406
|
MailboxContact = _modelModel.MailboxContact;
|
|
45407
|
+
MailboxEmail = _modelModel.MailboxEmail;
|
|
45407
45408
|
}, function (_commonSql) {
|
|
45408
45409
|
Sql = _commonSql.Sql;
|
|
45409
45410
|
}, function (_servicesEmailEmailContentDownloader) {
|
|
@@ -45425,16 +45426,16 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
|
|
|
45425
45426
|
cancelToken
|
|
45426
45427
|
}) {
|
|
45427
45428
|
return __awaiter(this, void 0, void 0, function* () {
|
|
45428
|
-
let q = this.entityService.query(
|
|
45429
|
+
let q = this.entityService.query(MailboxEmail);
|
|
45429
45430
|
if (channelID) {
|
|
45430
45431
|
q = q.where({
|
|
45431
45432
|
channelID
|
|
45432
|
-
}, p => x => x.
|
|
45433
|
+
}, p => x => x.mailboxID === p.channelID);
|
|
45433
45434
|
}
|
|
45434
45435
|
if (published) {
|
|
45435
|
-
q = q.where(x => x.
|
|
45436
|
+
q = q.where(x => x.datePublished !== null);
|
|
45436
45437
|
} else {
|
|
45437
|
-
q = q.where(x => x.status
|
|
45438
|
+
q = q.where(x => x.email.status === null);
|
|
45438
45439
|
}
|
|
45439
45440
|
if (search) {
|
|
45440
45441
|
if (!/\%/.test(search)) {
|
|
@@ -45442,20 +45443,23 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
|
|
|
45442
45443
|
}
|
|
45443
45444
|
q = q.where({
|
|
45444
45445
|
search
|
|
45445
|
-
}, p => x => Sql.text.like(x.subject, p.search));
|
|
45446
|
+
}, p => x => Sql.text.like(x.email.subject, p.search));
|
|
45446
45447
|
}
|
|
45447
|
-
const result = yield q.orderByDescending(x => x.emailID).toPagedList({
|
|
45448
|
+
const result = yield q.orderByDescending(x => x.emailID).include(x => [x.email, x.email.attachments]).toPagedList({
|
|
45448
45449
|
start,
|
|
45449
45450
|
size,
|
|
45450
45451
|
cancelToken
|
|
45451
45452
|
});
|
|
45452
45453
|
const tasks = [];
|
|
45453
45454
|
for (const iterator of result.items) {
|
|
45454
|
-
tasks.push(this.emailContentDownloader.downloadFromUrl(apiPath(`/api/emails/channel/content/html/${channelID}/${iterator.emailID}/${iterator.headerMessageID}`), iterator));
|
|
45455
|
-
tasks.push(this.engagementService.downloadEngagements(iterator));
|
|
45455
|
+
tasks.push(this.emailContentDownloader.downloadFromUrl(apiPath(`/api/emails/channel/content/html/${channelID}/${iterator.emailID}/${iterator.email.headerMessageID}`), iterator.email));
|
|
45456
|
+
tasks.push(this.engagementService.downloadEngagements(iterator.email));
|
|
45456
45457
|
}
|
|
45457
45458
|
yield Promise.all(tasks);
|
|
45458
|
-
return
|
|
45459
|
+
return {
|
|
45460
|
+
items: result.items.map(x => x.email),
|
|
45461
|
+
total: result.total
|
|
45462
|
+
};
|
|
45459
45463
|
});
|
|
45460
45464
|
}
|
|
45461
45465
|
getMailbox(id) {
|