@social-mail/social-mail-client 1.2.92 → 1.2.93
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/admin/AdminAppIndex.pack.js +26 -133
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +3 -3
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/common/pages/logs/LogsPage.d.ts.map +1 -1
- package/dist/common/pages/logs/LogsPage.js +1 -1
- package/dist/common/pages/logs/LogsPage.js.map +1 -1
- package/dist/common/pages/logs/services/AppLogService.d.ts +1 -1
- package/dist/common/pages/logs/services/AppLogService.js +3 -3
- package/dist/common/pages/logs/services/AppLogService.js.map +1 -1
- package/dist/model/model.d.ts +18 -112
- package/dist/model/model.d.ts.map +1 -1
- package/dist/model/model.js +6 -82
- package/dist/model/model.js.map +1 -1
- package/dist/public/channel/ChannelView.pack.js +22 -129
- package/dist/public/channel/ChannelView.pack.js.map +1 -1
- package/dist/public/channel/ChannelView.pack.min.js +1 -1
- package/dist/public/channel/ChannelView.pack.min.js.map +1 -1
- package/dist/services/email/EmailContentDownloader.d.ts +2 -2
- package/dist/services/email/EmailContentDownloader.d.ts.map +1 -1
- package/dist/services/email/EmailContentDownloader.js +5 -11
- package/dist/services/email/EmailContentDownloader.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +26 -133
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +3 -3
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/dist/web/page/mails/service/ConversationService.d.ts +1 -1
- package/dist/web/page/mails/service/ConversationService.d.ts.map +1 -1
- package/dist/web/page/mails/service/ConversationService.js +11 -36
- package/dist/web/page/mails/service/ConversationService.js.map +1 -1
- package/package.json +1 -1
- package/src/common/pages/logs/LogsPage.tsx +4 -4
- package/src/common/pages/logs/services/AppLogService.ts +2 -2
- package/src/model/model.ts +20 -124
- package/src/services/email/EmailContentDownloader.ts +6 -14
- package/src/web/page/mails/service/ConversationService.tsx +6 -36
|
@@ -13245,7 +13245,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/ent
|
|
|
13245
13245
|
System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/services/BaseEntityService"], function (_export, _context) {
|
|
13246
13246
|
"use strict";
|
|
13247
13247
|
|
|
13248
|
-
var DateTime, Model, DefaultFactory, AppRole, AppFileContentDispositionArray, AppFile, AppFileVersion, AppFileAccessTypeArray, AppFileAccess, AppFileTag, FileContent, Configuration, Contact, ContactEmail, ContactPhone, ContactItem, ContactDomain, CachedItem, Domain, HostedDomain, DomainUser, DomainRelayTypeArray, DomainRelay, DomainKey, EmailStatusArray, Email, EmailEngagement,
|
|
13248
|
+
var DateTime, Model, DefaultFactory, AppRole, AppFileContentDispositionArray, AppFile, AppFileVersion, AppFileAccessTypeArray, AppFileAccess, AppFileTag, FileContent, Configuration, Contact, ContactEmail, ContactPhone, ContactItem, ContactDomain, CachedItem, Domain, HostedDomain, DomainUser, DomainRelayTypeArray, DomainRelay, DomainKey, EmailStatusArray, Email, EmailEngagement, EmailLog, EmailRecipientTypeArray, EmailRecipient, EmailTag, EmailAddress, EmailTemplate, Mailbox, MailboxEmail, MailboxContactStatusArray, MailboxContact, MailboxContactEmail, MailboxContactTag, MailboxSyncTargetDirectionArray, MailboxSyncTargetProtocolArray, MailboxSyncTargetLastSyncStatusArray, MailboxSyncTarget, ChannelConfig, SubscriberActivity, SearchWordStatusArray, SearchWord, SearchWordIndex, UserStatusArray, User, UserPin, UserPushSubscription, UserRole, UserMailbox, UserAuthFactorMethodArray, UserAuthFactor, WebSiteFolder, WebSiteFolderHost, WebSiteFolderVersion, WebSiteChannel, LoginSession, TextDocument, Tag;
|
|
13249
13249
|
return {
|
|
13250
13250
|
setters: [function (_webAtomsDateTimeDistDateTime) {
|
|
13251
13251
|
DateTime = _webAtomsDateTimeDistDateTime.default;
|
|
@@ -13406,9 +13406,11 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
13406
13406
|
engagement: "",
|
|
13407
13407
|
count: 0
|
|
13408
13408
|
}));
|
|
13409
|
-
_export("
|
|
13409
|
+
_export("EmailLog", EmailLog = new Model("EmailLog", ["logID"], {
|
|
13410
|
+
fileName: "",
|
|
13411
|
+
compression: "",
|
|
13410
13412
|
dateCreated: new DefaultFactory(() => new DateTime()),
|
|
13411
|
-
|
|
13413
|
+
cloudPath: ""
|
|
13412
13414
|
}));
|
|
13413
13415
|
_export("EmailRecipientTypeArray", EmailRecipientTypeArray = [{
|
|
13414
13416
|
"label": "from",
|
|
@@ -13605,6 +13607,7 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
13605
13607
|
dateCreated: new DefaultFactory(() => new DateTime()),
|
|
13606
13608
|
name: ""
|
|
13607
13609
|
}));
|
|
13610
|
+
_export("WebSiteChannel", WebSiteChannel = new Model("WebSiteChannel", ["folderID", "channelID"], {}));
|
|
13608
13611
|
_export("LoginSession", LoginSession = new Model("LoginSession", ["sessionID"], {
|
|
13609
13612
|
invalid: false,
|
|
13610
13613
|
dateUpdated: new DefaultFactory(() => new DateTime())
|
|
@@ -13616,85 +13619,6 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
13616
13619
|
name: "",
|
|
13617
13620
|
isSystemTag: false
|
|
13618
13621
|
}));
|
|
13619
|
-
_export("Product", Product = new Model("Product", ["productID"], {
|
|
13620
|
-
name: ""
|
|
13621
|
-
}));
|
|
13622
|
-
_export("ProductPrice", ProductPrice = new Model("ProductPrice", ["priceID"], {
|
|
13623
|
-
quantity: 0,
|
|
13624
|
-
amount: 0,
|
|
13625
|
-
isActive: false,
|
|
13626
|
-
currency: ""
|
|
13627
|
-
}));
|
|
13628
|
-
_export("AppLicense", AppLicense = new Model("AppLicense", ["licenseID", "priceID"], {
|
|
13629
|
-
dateCreated: new DefaultFactory(() => new DateTime()),
|
|
13630
|
-
dateExpiry: new DefaultFactory(() => new DateTime()),
|
|
13631
|
-
dateUpdated: new DefaultFactory(() => new DateTime()),
|
|
13632
|
-
maxCores: 0,
|
|
13633
|
-
licenseCode: ""
|
|
13634
|
-
}));
|
|
13635
|
-
_export("VirtualServer", VirtualServer = new Model("VirtualServer", ["serverID"], {
|
|
13636
|
-
serverName: "",
|
|
13637
|
-
active: false,
|
|
13638
|
-
host: "",
|
|
13639
|
-
maxStorageGB: 0
|
|
13640
|
-
}));
|
|
13641
|
-
_export("DnsZone", DnsZone = new Model("DnsZone", ["zoneID"], {
|
|
13642
|
-
zone: "",
|
|
13643
|
-
dateCreated: new DefaultFactory(() => new DateTime()),
|
|
13644
|
-
dateUpdated: new DefaultFactory(() => new DateTime())
|
|
13645
|
-
}));
|
|
13646
|
-
_export("DnsZoneRecordTypeArray", DnsZoneRecordTypeArray = [{
|
|
13647
|
-
"label": "A",
|
|
13648
|
-
"value": "A"
|
|
13649
|
-
}, {
|
|
13650
|
-
"label": "AAAA",
|
|
13651
|
-
"value": "AAAA"
|
|
13652
|
-
}, {
|
|
13653
|
-
"label": "CNAME",
|
|
13654
|
-
"value": "CNAME"
|
|
13655
|
-
}, {
|
|
13656
|
-
"label": "MX",
|
|
13657
|
-
"value": "MX"
|
|
13658
|
-
}, {
|
|
13659
|
-
"label": "TXT",
|
|
13660
|
-
"value": "TXT"
|
|
13661
|
-
}, {
|
|
13662
|
-
"label": "PTR",
|
|
13663
|
-
"value": "PTR"
|
|
13664
|
-
}, {
|
|
13665
|
-
"label": "SRV",
|
|
13666
|
-
"value": "SRV"
|
|
13667
|
-
}, {
|
|
13668
|
-
"label": "CAA",
|
|
13669
|
-
"value": "CAA"
|
|
13670
|
-
}, {
|
|
13671
|
-
"label": "NS",
|
|
13672
|
-
"value": "NS"
|
|
13673
|
-
}, {
|
|
13674
|
-
"label": "SOA",
|
|
13675
|
-
"value": "SOA"
|
|
13676
|
-
}]);
|
|
13677
|
-
_export("DnsZoneRecord", DnsZoneRecord = new Model("DnsZoneRecord", ["recordID"], {
|
|
13678
|
-
disabled: false,
|
|
13679
|
-
name: "",
|
|
13680
|
-
type: "A",
|
|
13681
|
-
isAlias: false,
|
|
13682
|
-
value: "",
|
|
13683
|
-
ttl: 0,
|
|
13684
|
-
dateCreated: new DefaultFactory(() => new DateTime()),
|
|
13685
|
-
dateUpdated: new DefaultFactory(() => new DateTime()),
|
|
13686
|
-
hosted: false
|
|
13687
|
-
}));
|
|
13688
|
-
_export("DnsSigningKey", DnsSigningKey = new Model("DnsSigningKey", ["keyID"], {
|
|
13689
|
-
publicKey: "",
|
|
13690
|
-
digestAlgorithm: 0,
|
|
13691
|
-
signingAlgorithm: 0,
|
|
13692
|
-
digest: "",
|
|
13693
|
-
flags: 0,
|
|
13694
|
-
dateCreated: new DefaultFactory(() => new DateTime()),
|
|
13695
|
-
expiryDate: new DefaultFactory(() => new DateTime()),
|
|
13696
|
-
fileName: ""
|
|
13697
|
-
}));
|
|
13698
13622
|
}
|
|
13699
13623
|
};
|
|
13700
13624
|
});
|
|
@@ -22191,30 +22115,24 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/ent
|
|
|
22191
22115
|
}],
|
|
22192
22116
|
execute: function () {
|
|
22193
22117
|
EmailContentDownloader = class EmailContentDownloader extends TaskManager {
|
|
22194
|
-
download(
|
|
22118
|
+
download(mce) {
|
|
22195
22119
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22196
|
-
if (email.htmlBody) {
|
|
22197
|
-
return email.htmlBody;
|
|
22198
|
-
}
|
|
22199
|
-
if (!email.originalFileID) {
|
|
22200
|
-
return;
|
|
22201
|
-
}
|
|
22202
22120
|
const cache = yield window.caches.open("email-content-cache");
|
|
22203
|
-
const cacheKey = new URL(
|
|
22121
|
+
const cacheKey = new URL(mce.htmlBodyUrl, location.href);
|
|
22204
22122
|
const content = yield cache.match(cacheKey);
|
|
22205
22123
|
if (content) {
|
|
22206
|
-
return email.htmlBody = yield content.text();
|
|
22124
|
+
return mce.email.htmlBody = yield content.text();
|
|
22207
22125
|
}
|
|
22208
22126
|
return yield this.run(() => __awaiter(this, void 0, void 0, function* () {
|
|
22209
22127
|
for (let i = 0; i < 3; i++) {
|
|
22210
22128
|
try {
|
|
22211
|
-
const text = yield FetchBuilder.get(
|
|
22129
|
+
const text = yield FetchBuilder.get(mce.htmlBodyUrl).responseAsText();
|
|
22212
22130
|
yield cache.put(cacheKey, new Response(text, {
|
|
22213
22131
|
headers: {
|
|
22214
22132
|
"cache-control": "public, max-age=86000"
|
|
22215
22133
|
}
|
|
22216
22134
|
}));
|
|
22217
|
-
return email.htmlBody = text;
|
|
22135
|
+
return mce.email.htmlBody = text;
|
|
22218
22136
|
} catch (error) {
|
|
22219
22137
|
console.error(error);
|
|
22220
22138
|
}
|
|
@@ -22344,7 +22262,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/Inject", "../../../../service
|
|
|
22344
22262
|
System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/core/dist/di/Inject", "../../../../services/EntityService", "../../../../model/model", "../../../../common/Sql", "@web-atoms/email-dom/dist/DomToString", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/web/controls/AtomControl", "@web-atoms/core/dist/web/core/AtomUI", "@web-atoms/date-time/dist/DateTime", "../../../../common/events/CommonEvents", "../../../../services/BusyProgress", "../../../../services/email/EmailContentDownloader", "./EngagementService"], function (_export, _context) {
|
|
22345
22263
|
"use strict";
|
|
22346
22264
|
|
|
22347
|
-
var __awaiter, __decorate, __metadata, DISingleton, Inject, EntityService, Email, EmailRecipient, MailboxContactEmail, MailboxEmail, Sql, DomToString, XNode, AtomControl, descendentElementIterator, DateTime, CommonEvents, BusyProgress, EmailContentDownloader, EngagementService, renderMail,
|
|
22265
|
+
var __awaiter, __decorate, __metadata, DISingleton, Inject, EntityService, Email, EmailRecipient, MailboxContactEmail, MailboxEmail, Sql, DomToString, XNode, AtomControl, descendentElementIterator, DateTime, CommonEvents, BusyProgress, EmailContentDownloader, EngagementService, renderMail, ConversationService;
|
|
22348
22266
|
return {
|
|
22349
22267
|
setters: [function (_tslib) {
|
|
22350
22268
|
__awaiter = _tslib.__awaiter;
|
|
@@ -22448,35 +22366,6 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
22448
22366
|
}
|
|
22449
22367
|
return;
|
|
22450
22368
|
}));
|
|
22451
|
-
downloadEmailContent = (es, email) => __awaiter(void 0, void 0, void 0, function* () {
|
|
22452
|
-
var _a, _b;
|
|
22453
|
-
if (email.replyCount) {
|
|
22454
|
-
const children = yield es.query(Email).where({
|
|
22455
|
-
emailID: email.emailID
|
|
22456
|
-
}, p => x => x.emailID === p.emailID && x.engagement !== null).orderByDescending(x => x.emailID).toPagedList({
|
|
22457
|
-
start: 0,
|
|
22458
|
-
size: 4,
|
|
22459
|
-
cacheVersion: "a",
|
|
22460
|
-
cacheSeconds: 900
|
|
22461
|
-
});
|
|
22462
|
-
email.children = (_a = children === null || children === void 0 ? void 0 : children.items) !== null && _a !== void 0 ? _a : [];
|
|
22463
|
-
} else {
|
|
22464
|
-
(_b = email.children) !== null && _b !== void 0 ? _b : email.children = [];
|
|
22465
|
-
}
|
|
22466
|
-
if (!email.originalFileID) {
|
|
22467
|
-
return;
|
|
22468
|
-
}
|
|
22469
|
-
for (let i = 0; i < 10; i++) {
|
|
22470
|
-
try {
|
|
22471
|
-
const rs = yield fetch(email.htmlBodyUrl);
|
|
22472
|
-
const text = yield rs.text();
|
|
22473
|
-
email.htmlBody = text;
|
|
22474
|
-
return;
|
|
22475
|
-
} catch (error) {
|
|
22476
|
-
console.error(error);
|
|
22477
|
-
}
|
|
22478
|
-
}
|
|
22479
|
-
});
|
|
22480
22369
|
ConversationService = class ConversationService {
|
|
22481
22370
|
getDraft({
|
|
22482
22371
|
mailboxID,
|
|
@@ -22566,12 +22455,13 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
22566
22455
|
const tasks = [];
|
|
22567
22456
|
const d = BusyProgress.create();
|
|
22568
22457
|
try {
|
|
22569
|
-
for (const {
|
|
22570
|
-
|
|
22571
|
-
|
|
22458
|
+
for (const mce of emails.items) {
|
|
22459
|
+
const {
|
|
22460
|
+
email
|
|
22461
|
+
} = mce;
|
|
22572
22462
|
(_a = email.htmlBody) !== null && _a !== void 0 ? _a : email.htmlBody = "";
|
|
22573
22463
|
(_b = email.textBody) !== null && _b !== void 0 ? _b : email.textBody = "";
|
|
22574
|
-
tasks.push(this.downloadEmailContent(
|
|
22464
|
+
tasks.push(this.downloadEmailContent(mce));
|
|
22575
22465
|
tasks.push(this.engagementService.downloadEngagements(email));
|
|
22576
22466
|
}
|
|
22577
22467
|
yield Promise.all(tasks);
|
|
@@ -22591,9 +22481,12 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
22591
22481
|
CommonEvents.onEmailUnscheduled.dispatchEvent(mce);
|
|
22592
22482
|
});
|
|
22593
22483
|
}
|
|
22594
|
-
downloadEmailContent(
|
|
22484
|
+
downloadEmailContent(mce) {
|
|
22595
22485
|
var _a, _b;
|
|
22596
22486
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22487
|
+
const {
|
|
22488
|
+
email
|
|
22489
|
+
} = mce;
|
|
22597
22490
|
if (email.replyCount) {
|
|
22598
22491
|
const children = yield this.entityService.query(Email).where({
|
|
22599
22492
|
emailID: email.emailID
|
|
@@ -22607,7 +22500,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
22607
22500
|
} else {
|
|
22608
22501
|
(_b = email.children) !== null && _b !== void 0 ? _b : email.children = [];
|
|
22609
22502
|
}
|
|
22610
|
-
yield this.emailContentDownloader.download(
|
|
22503
|
+
yield this.emailContentDownloader.download(mce);
|
|
22611
22504
|
});
|
|
22612
22505
|
}
|
|
22613
22506
|
renderText(html) {
|
|
@@ -27334,7 +27227,7 @@ System.register(["@web-atoms/date-time/dist/DateTime"], function (_export, _cont
|
|
|
27334
27227
|
System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "../../../../services/EntityService", "@web-atoms/core/dist/di/Inject", "../../../../model/model"], function (_export, _context) {
|
|
27335
27228
|
"use strict";
|
|
27336
27229
|
|
|
27337
|
-
var __awaiter, __decorate, __metadata, DITransient, EntityService, Inject,
|
|
27230
|
+
var __awaiter, __decorate, __metadata, DITransient, EntityService, Inject, EmailLog, AppLogService;
|
|
27338
27231
|
return {
|
|
27339
27232
|
setters: [function (_tslib) {
|
|
27340
27233
|
__awaiter = _tslib.__awaiter;
|
|
@@ -27347,7 +27240,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "../../../../se
|
|
|
27347
27240
|
}, function (_webAtomsCoreDistDiInject) {
|
|
27348
27241
|
Inject = _webAtomsCoreDistDiInject.Inject;
|
|
27349
27242
|
}, function (_modelModel) {
|
|
27350
|
-
|
|
27243
|
+
EmailLog = _modelModel.EmailLog;
|
|
27351
27244
|
}],
|
|
27352
27245
|
execute: function () {
|
|
27353
27246
|
AppLogService = class AppLogService {
|
|
@@ -27358,7 +27251,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "../../../../se
|
|
|
27358
27251
|
cancelToken
|
|
27359
27252
|
}) {
|
|
27360
27253
|
return __awaiter(this, void 0, void 0, function* () {
|
|
27361
|
-
let q = this.entityService.query(
|
|
27254
|
+
let q = this.entityService.query(EmailLog);
|
|
27362
27255
|
if (emailID) {
|
|
27363
27256
|
q = q.where({
|
|
27364
27257
|
emailID
|
|
@@ -27427,7 +27320,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-con
|
|
|
27427
27320
|
cancelToken
|
|
27428
27321
|
})), {
|
|
27429
27322
|
itemRenderer: item => XNode.create("tr", null, XNode.create("td", {
|
|
27430
|
-
text: item.
|
|
27323
|
+
text: item.fileName,
|
|
27431
27324
|
"data-flex": "stretch-full"
|
|
27432
27325
|
}), XNode.create("td", {
|
|
27433
27326
|
title: DateFormats.withWeekDayAndTime(item.dateCreated),
|