@firestitch/app-message 9.1.1 → 9.1.5
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/app/modules/message-queues/components/queues/queues.component.d.ts +3 -1
- package/app/modules/message-queues/services/message-queue.service.d.ts +9 -0
- package/app/modules/webhooks/components/webhooks/webhooks.component.d.ts +12 -0
- package/app/modules/webhooks/webhooks.module.d.ts +2 -0
- package/bundles/firestitch-app-message.umd.js +161 -54
- package/bundles/firestitch-app-message.umd.js.map +1 -1
- package/bundles/firestitch-app-message.umd.min.js +1 -1
- package/bundles/firestitch-app-message.umd.min.js.map +1 -1
- package/esm2015/app/modules/message-queues/components/queue/queue.component.js +2 -2
- package/esm2015/app/modules/message-queues/components/queues/queues.component.js +10 -13
- package/esm2015/app/modules/message-queues/components/recipient/recipient.component.js +3 -3
- package/esm2015/app/modules/message-queues/message-queues.module.js +6 -2
- package/esm2015/app/modules/message-queues/services/message-queue.service.js +31 -0
- package/esm2015/app/modules/webhooks/components/webhooks/webhooks.component.js +63 -0
- package/esm2015/app/modules/webhooks/webhooks.module.js +23 -0
- package/esm2015/firestitch-app-message.js +3 -2
- package/esm2015/public_api.js +3 -1
- package/esm5/app/modules/message-queues/components/queue/queue.component.js +2 -2
- package/esm5/app/modules/message-queues/components/queues/queues.component.js +10 -13
- package/esm5/app/modules/message-queues/components/recipient/recipient.component.js +3 -3
- package/esm5/app/modules/message-queues/message-queues.module.js +6 -2
- package/esm5/app/modules/message-queues/services/message-queue.service.js +33 -0
- package/esm5/app/modules/webhooks/components/webhooks/webhooks.component.js +65 -0
- package/esm5/app/modules/webhooks/webhooks.module.js +26 -0
- package/esm5/firestitch-app-message.js +3 -2
- package/esm5/public_api.js +3 -1
- package/fesm2015/firestitch-app-message.js +150 -53
- package/fesm2015/firestitch-app-message.js.map +1 -1
- package/fesm5/firestitch-app-message.js +160 -56
- package/fesm5/firestitch-app-message.js.map +1 -1
- package/firestitch-app-message.d.ts +2 -1
- package/firestitch-app-message.metadata.json +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +2 -0
- package/app/modules/message-queues/components/index.d.ts +0 -3
- package/app/modules/message-queues/components/queue/index.d.ts +0 -1
- package/app/modules/message-queues/components/queues/index.d.ts +0 -1
- package/app/modules/message-queues/components/recipient/index.d.ts +0 -1
- package/esm2015/app/modules/message-queues/components/index.js +0 -4
- package/esm2015/app/modules/message-queues/components/queue/index.js +0 -2
- package/esm2015/app/modules/message-queues/components/queues/index.js +0 -2
- package/esm2015/app/modules/message-queues/components/recipient/index.js +0 -2
- package/esm5/app/modules/message-queues/components/index.js +0 -4
- package/esm5/app/modules/message-queues/components/queue/index.js +0 -2
- package/esm5/app/modules/message-queues/components/queues/index.js +0 -2
- package/esm5/app/modules/message-queues/components/recipient/index.js +0 -2
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { __decorate, __metadata, __param } from "tslib";
|
|
2
|
+
import { Component, Inject, ViewChild } from '@angular/core';
|
|
3
|
+
import { FsListComponent } from '@firestitch/list';
|
|
4
|
+
import { FsMessage } from '@firestitch/message';
|
|
5
|
+
import { map } from 'rxjs/operators';
|
|
6
|
+
import { FS_APP_MESSAGE_CONFIG } from '../../../app-message/injectors';
|
|
7
|
+
var WebhooksComponent = /** @class */ (function () {
|
|
8
|
+
function WebhooksComponent(_config, _message) {
|
|
9
|
+
this._config = _config;
|
|
10
|
+
this._message = _message;
|
|
11
|
+
}
|
|
12
|
+
WebhooksComponent.prototype.ngOnInit = function () {
|
|
13
|
+
var _this = this;
|
|
14
|
+
this.listConfig = {
|
|
15
|
+
paging: false,
|
|
16
|
+
actions: [
|
|
17
|
+
{
|
|
18
|
+
click: function () {
|
|
19
|
+
_this._config.createWebhook()
|
|
20
|
+
.subscribe(function () {
|
|
21
|
+
_this._message.success('Created webhook');
|
|
22
|
+
_this.list.reload();
|
|
23
|
+
});
|
|
24
|
+
},
|
|
25
|
+
label: 'Create',
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
rowActions: [
|
|
29
|
+
{
|
|
30
|
+
click: function (webhook) {
|
|
31
|
+
_this._config.deleteWebhook(webhook)
|
|
32
|
+
.subscribe(function () {
|
|
33
|
+
_this._message.success('Deleted webhook');
|
|
34
|
+
_this.list.reload();
|
|
35
|
+
});
|
|
36
|
+
},
|
|
37
|
+
label: 'Delete',
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
fetch: function () {
|
|
41
|
+
return _this._config.loadWebhooks()
|
|
42
|
+
.pipe(map(function (webhooks) { return ({ data: webhooks }); }));
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
WebhooksComponent.ctorParameters = function () { return [
|
|
47
|
+
{ type: undefined, decorators: [{ type: Inject, args: [FS_APP_MESSAGE_CONFIG,] }] },
|
|
48
|
+
{ type: FsMessage }
|
|
49
|
+
]; };
|
|
50
|
+
__decorate([
|
|
51
|
+
ViewChild(FsListComponent),
|
|
52
|
+
__metadata("design:type", FsListComponent)
|
|
53
|
+
], WebhooksComponent.prototype, "list", void 0);
|
|
54
|
+
WebhooksComponent = __decorate([
|
|
55
|
+
Component({
|
|
56
|
+
selector: 'fs-app-message-webhooks',
|
|
57
|
+
template: "<fs-list [config]=\"listConfig\">\r\n <fs-list-column title=\"URL\">\r\n <ng-template fs-list-cell let-row=\"row\">\r\n {{row.url}}\r\n </ng-template>\r\n </fs-list-column>\r\n <fs-list-column title=\"Created\">\r\n <ng-template fs-list-cell let-row=\"row\">\r\n {{row.createDate | fsDate}}\r\n </ng-template>\r\n </fs-list-column>\r\n</fs-list>"
|
|
58
|
+
}),
|
|
59
|
+
__param(0, Inject(FS_APP_MESSAGE_CONFIG)),
|
|
60
|
+
__metadata("design:paramtypes", [Object, FsMessage])
|
|
61
|
+
], WebhooksComponent);
|
|
62
|
+
return WebhooksComponent;
|
|
63
|
+
}());
|
|
64
|
+
export { WebhooksComponent };
|
|
65
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJ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NhZ2U6IEZzTWVzc2FnZSxcclxuICApIHt9XHJcblxyXG4gIHB1YmxpYyBuZ09uSW5pdCgpOiB2b2lkIHtcclxuICAgIHRoaXMubGlzdENvbmZpZyA9IHtcclxuICAgICAgcGFnaW5nOiBmYWxzZSxcclxuICAgICAgYWN0aW9uczogW1xyXG4gICAgICAgIHtcclxuICAgICAgICAgIGNsaWNrOiAoKSA9PiB7XHJcbiAgICAgICAgICAgIHRoaXMuX2NvbmZpZy5jcmVhdGVXZWJob29rKClcclxuICAgICAgICAgICAgICAuc3Vic2NyaWJlKCgpID0+IHtcclxuICAgICAgICAgICAgICAgIHRoaXMuX21lc3NhZ2Uuc3VjY2VzcygnQ3JlYXRlZCB3ZWJob29rJyk7XHJcbiAgICAgICAgICAgICAgICB0aGlzLmxpc3QucmVsb2FkKCk7XHJcbiAgICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgICB9LFxyXG4gICAgICAgICAgbGFiZWw6ICdDcmVhdGUnLFxyXG4gICAgICAgIH0sXHJcbiAgICAgIF0sXHJcbiAgICAgIHJvd0FjdGlvbnM6IFtcclxuICAgICAgICB7XHJcbiAgICAgICAgICBjbGljazogKHdlYmhvb2spID0+IHtcclxuICAgICAgICAgICAgdGhpcy5fY29uZmlnLmRlbGV0ZVdlYmhvb2sod2ViaG9vaylcclxuICAgICAgICAgICAgICAuc3Vic2NyaWJlKCgpID0+IHtcclxuICAgICAgICAgICAgICAgIHRoaXMuX21lc3NhZ2Uuc3VjY2VzcygnRGVsZXRlZCB3ZWJob29rJyk7XHJcbiAgICAgICAgICAgICAgICB0aGlzLmxpc3QucmVsb2FkKCk7XHJcbiAgICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgICB9LFxyXG4gICAgICAgICAgbGFiZWw6ICdEZWxldGUnLFxyXG4gICAgICAgIH0sXHJcbiAgICAgIF0sXHJcbiAgICAgIGZldGNoOiAoKSA9PiB7XHJcbiAgICAgICAgcmV0dXJuIHRoaXMuX2NvbmZpZy5sb2FkV2ViaG9va3MoKVxyXG4gICAgICAgICAgLnBpcGUoXHJcbiAgICAgICAgICAgIG1hcCgod2ViaG9va3MpID0+ICh7IGRhdGE6IHdlYmhvb2tzIH0pKSxcclxuICAgICAgICAgICk7XHJcbiAgICAgIH0sXHJcbiAgICB9O1xyXG4gIH1cclxufVxyXG4iXX0=
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
3
|
+
import { FsDateModule } from '@firestitch/date';
|
|
4
|
+
import { FsListModule } from '@firestitch/list';
|
|
5
|
+
import { WebhooksComponent } from './components/webhooks/webhooks.component';
|
|
6
|
+
var FsAppMessageWebhooksModule = /** @class */ (function () {
|
|
7
|
+
function FsAppMessageWebhooksModule() {
|
|
8
|
+
}
|
|
9
|
+
FsAppMessageWebhooksModule = __decorate([
|
|
10
|
+
NgModule({
|
|
11
|
+
imports: [
|
|
12
|
+
FsListModule,
|
|
13
|
+
FsDateModule,
|
|
14
|
+
],
|
|
15
|
+
declarations: [
|
|
16
|
+
WebhooksComponent,
|
|
17
|
+
],
|
|
18
|
+
exports: [
|
|
19
|
+
WebhooksComponent,
|
|
20
|
+
],
|
|
21
|
+
})
|
|
22
|
+
], FsAppMessageWebhooksModule);
|
|
23
|
+
return FsAppMessageWebhooksModule;
|
|
24
|
+
}());
|
|
25
|
+
export { FsAppMessageWebhooksModule };
|
|
26
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2ViaG9va3MubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGZpcmVzdGl0Y2gvYXBwLW1lc3NhZ2UvIiwic291cmNlcyI6WyJhcHAvbW9kdWxlcy93ZWJob29rcy93ZWJob29rcy5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFD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cE1lc3NhZ2VXZWJob29rc01vZHVsZSB7fVxuIl19
|
|
@@ -5,8 +5,9 @@ export * from './public_api';
|
|
|
5
5
|
export { FS_APP_MESSAGE_CONFIG as ɵc } from './app/modules/app-message/injectors';
|
|
6
6
|
export { PreviewComponent as ɵb } from './app/modules/message-preview/components/preview';
|
|
7
7
|
export { FsAppMessagePreviewModule as ɵa } from './app/modules/message-preview/message-preview.module';
|
|
8
|
-
export { RecipientComponent as ɵf } from './app/modules/message-queues/components';
|
|
8
|
+
export { RecipientComponent as ɵf } from './app/modules/message-queues/components/recipient/recipient.component';
|
|
9
9
|
export { LinkifyPipe as ɵd } from './app/modules/message-queues/pipes/linkify.pipe';
|
|
10
10
|
export { TruncatePipe as ɵe } from './app/modules/message-queues/pipes/truncate.pipe';
|
|
11
11
|
export { TemplateComponent as ɵg } from './app/modules/message-templates/components/template/template.component';
|
|
12
|
-
|
|
12
|
+
export { WebhooksComponent as ɵh } from './app/modules/webhooks/components/webhooks/webhooks.component';
|
|
13
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlyZXN0aXRjaC1hcHAtbWVzc2FnZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BmaXJlc3RpdGNoL2FwcC1tZXNzYWdlLyIsInNvdXJjZXMiOlsiZmlyZXN0aXRjaC1hcHAtbWVzc2FnZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDO0FBRTdCLE9BQU8sRUFBQyxxQkFBcUIsSUFBSSxFQUFFLEVBQUMsTUFBTSxxQ0FBcUMsQ0FBQztBQUNoRixPQUFPLEVBQUMsZ0JBQWdCLElBQUksRUFBRSxFQUFDLE1BQU0sa0RBQWtELENBQUM7QUFDeEYsT0FBTyxFQUFDLHlCQUF5QixJQUFJLEVBQUUsRUFBQyxNQUFNLHNEQUFzRCxDQUFDO0FBQ3JHLE9BQU8sRUFB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Wxlcy9tZXNzYWdlLXF1ZXVlcy9waXBlcy9saW5raWZ5LnBpcGUnO1xuZXhwb3J0IHtUcnVuY2F0ZVBpcGUgYXMgybVlfSBmcm9tICcuL2FwcC9tb2R1bGVzL21lc3NhZ2UtcXVldWVzL3BpcGVzL3RydW5jYXRlLnBpcGUnO1xuZXhwb3J0IHtUZW1wbGF0ZUNvbXBvbmVudCBhcyDJtWd9IGZyb20gJy4vYXBwL21vZHVsZXMvbWVzc2FnZS10ZW1wbGF0ZXMvY29tcG9uZW50cy90ZW1wbGF0ZS90ZW1wbGF0ZS5jb21wb25lbnQnO1xuZXhwb3J0IHtXZWJob29rc0NvbXBvbmVudCBhcyDJtWh9IGZyb20gJy4vYXBwL21vZHVsZXMvd2ViaG9va3MvY29tcG9uZW50cy93ZWJob29rcy93ZWJob29rcy5jb21wb25lbnQnOyJdfQ==
|
package/esm5/public_api.js
CHANGED
|
@@ -4,11 +4,13 @@
|
|
|
4
4
|
export { FsAppMessagesModule } from './app/modules/messages/messages.module';
|
|
5
5
|
export { FsAppMessageQueuesModule } from './app/modules/message-queues/message-queues.module';
|
|
6
6
|
export { FsAppMessageTemplatesModule } from './app/modules/message-templates/message-templates.module';
|
|
7
|
+
export { FsAppMessageWebhooksModule } from './app/modules/webhooks/webhooks.module';
|
|
7
8
|
export { FsAppMessageModule } from './app/modules/app-message/app-message.module';
|
|
8
9
|
export { MessagesComponent } from './app/modules/messages/components/messages/messages.component';
|
|
9
10
|
export { MessageComponent } from './app/modules/messages/components/message/message.component';
|
|
10
11
|
export { QueuesComponent } from './app/modules/message-queues/components/queues/queues.component';
|
|
11
12
|
export { QueueComponent } from './app/modules/message-queues/components/queue/queue.component';
|
|
12
13
|
export { TemplatesComponent } from './app/modules/message-templates/components/templates/templates.component';
|
|
14
|
+
export { FsMessageQueueService } from './app/modules/message-queues/services/message-queue.service';
|
|
13
15
|
export { FS_APP_MESSAGE_CONFIG } from './app/modules/app-message/injectors/app-message-config.injector';
|
|
14
|
-
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HAvbW9kdWxlcy9tZXNzYWdlLXF1ZXVlcy9jb21wb25lbnRzL3F1ZXVlL3F1ZXVlLmNvbXBvbmVudCc7XG5leHBvcnQgeyBUZW1wbGF0ZXNDb21wb25lbnQgfSBmcm9tICcuL2FwcC9tb2R1bGVzL21lc3NhZ2UtdGVtcGxhdGVzL2NvbXBvbmVudHMvdGVtcGxhdGVzL3RlbXBsYXRlcy5jb21wb25lbnQnO1xuXG5leHBvcnQgeyBGc0FwcE1lc3NhZ2VDb25maWcgfSBmcm9tICcuL2FwcC9tb2R1bGVzL2FwcC1tZXNzYWdlL2ludGVyZmFjZXMnO1xuXG5leHBvcnQgeyBGc01lc3NhZ2VRdWV1ZVNlcnZpY2UgfSBmcm9tICcuL2FwcC9tb2R1bGVzL21lc3NhZ2UtcXVldWVzL3NlcnZpY2VzL21lc3NhZ2UtcXVldWUuc2VydmljZSc7XG5cbmV4cG9ydCB7IEZTX0FQUF9NRVNTQUdFX0NPTkZJRyB9IGZyb20gJy4vYXBwL21vZHVsZXMvYXBwLW1lc3NhZ2UvaW5qZWN0b3JzL2FwcC1tZXNzYWdlLWNvbmZpZy5pbmplY3Rvcic7XG4iXX0=
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __param, __metadata } from 'tslib';
|
|
2
|
-
import { Inject, Component, InjectionToken, ChangeDetectorRef, ChangeDetectionStrategy, ViewChild, NgModule, Input, Pipe } from '@angular/core';
|
|
2
|
+
import { Inject, Component, InjectionToken, ChangeDetectorRef, ChangeDetectionStrategy, ViewChild, NgModule, Injectable, Input, Pipe } from '@angular/core';
|
|
3
3
|
import { CommonModule } from '@angular/common';
|
|
4
4
|
import { RouterModule } from '@angular/router';
|
|
5
5
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
@@ -312,19 +312,6 @@ FsAppMessagesModule = __decorate([
|
|
|
312
312
|
})
|
|
313
313
|
], FsAppMessagesModule);
|
|
314
314
|
|
|
315
|
-
var EmailMessageQueueFormat;
|
|
316
|
-
(function (EmailMessageQueueFormat) {
|
|
317
|
-
EmailMessageQueueFormat["Text"] = "T";
|
|
318
|
-
EmailMessageQueueFormat["HTML"] = "H";
|
|
319
|
-
EmailMessageQueueFormat["RichText"] = "R";
|
|
320
|
-
})(EmailMessageQueueFormat || (EmailMessageQueueFormat = {}));
|
|
321
|
-
|
|
322
|
-
var MessageQueueType;
|
|
323
|
-
(function (MessageQueueType) {
|
|
324
|
-
MessageQueueType["Sms"] = "S";
|
|
325
|
-
MessageQueueType["Email"] = "E";
|
|
326
|
-
})(MessageQueueType || (MessageQueueType = {}));
|
|
327
|
-
|
|
328
315
|
var MessageQueueState;
|
|
329
316
|
(function (MessageQueueState) {
|
|
330
317
|
MessageQueueState["Sent"] = "S";
|
|
@@ -346,6 +333,19 @@ const MessageQueueStates = [
|
|
|
346
333
|
{ name: 'Failed', value: MessageQueueState.Failed }
|
|
347
334
|
];
|
|
348
335
|
|
|
336
|
+
var EmailMessageQueueFormat;
|
|
337
|
+
(function (EmailMessageQueueFormat) {
|
|
338
|
+
EmailMessageQueueFormat["Text"] = "T";
|
|
339
|
+
EmailMessageQueueFormat["HTML"] = "H";
|
|
340
|
+
EmailMessageQueueFormat["RichText"] = "R";
|
|
341
|
+
})(EmailMessageQueueFormat || (EmailMessageQueueFormat = {}));
|
|
342
|
+
|
|
343
|
+
var MessageQueueType;
|
|
344
|
+
(function (MessageQueueType) {
|
|
345
|
+
MessageQueueType["Sms"] = "S";
|
|
346
|
+
MessageQueueType["Email"] = "E";
|
|
347
|
+
})(MessageQueueType || (MessageQueueType = {}));
|
|
348
|
+
|
|
349
349
|
let QueueComponent = class QueueComponent {
|
|
350
350
|
constructor(_config, _message, _prompt, _dialog, _data) {
|
|
351
351
|
this._config = _config;
|
|
@@ -361,7 +361,7 @@ let QueueComponent = class QueueComponent {
|
|
|
361
361
|
this.messageQueueStates = indexNameValue(MessageQueueStates);
|
|
362
362
|
this.resendMessageQueue = this._config.resendMessageQueue;
|
|
363
363
|
this.forwardMessageQueue = this._config.forwardMessageQueue;
|
|
364
|
-
this._config.loadMessageQueue(this._data.
|
|
364
|
+
this._config.loadMessageQueue(this._data.messageQueueId)
|
|
365
365
|
.subscribe((messageQueue) => {
|
|
366
366
|
this.messageQueue = messageQueue;
|
|
367
367
|
if (this.messageQueue.emailMessageQueue) {
|
|
@@ -517,10 +517,35 @@ QueueComponent = __decorate([
|
|
|
517
517
|
MatDialog, Object])
|
|
518
518
|
], QueueComponent);
|
|
519
519
|
|
|
520
|
+
let FsMessageQueueService = class FsMessageQueueService {
|
|
521
|
+
constructor(_dialog) {
|
|
522
|
+
this._dialog = _dialog;
|
|
523
|
+
this._destroy$ = new Subject();
|
|
524
|
+
}
|
|
525
|
+
openMessageQueue(messageQueueId, options = {}) {
|
|
526
|
+
return this._dialog.open(QueueComponent, Object.assign(Object.assign({}, options), { data: {
|
|
527
|
+
messageQueueId,
|
|
528
|
+
}, width: options.width || '85%' })).afterClosed()
|
|
529
|
+
.pipe(takeUntil(this._destroy$));
|
|
530
|
+
}
|
|
531
|
+
ngOnDestroy() {
|
|
532
|
+
this._destroy$.next();
|
|
533
|
+
this._destroy$.complete();
|
|
534
|
+
}
|
|
535
|
+
};
|
|
536
|
+
FsMessageQueueService.ctorParameters = () => [
|
|
537
|
+
{ type: MatDialog }
|
|
538
|
+
];
|
|
539
|
+
FsMessageQueueService = __decorate([
|
|
540
|
+
Injectable(),
|
|
541
|
+
__metadata("design:paramtypes", [MatDialog])
|
|
542
|
+
], FsMessageQueueService);
|
|
543
|
+
|
|
520
544
|
let QueuesComponent = class QueuesComponent {
|
|
521
|
-
constructor(_config, _dialog) {
|
|
545
|
+
constructor(_config, _dialog, _messageQueueService) {
|
|
522
546
|
this._config = _config;
|
|
523
547
|
this._dialog = _dialog;
|
|
548
|
+
this._messageQueueService = _messageQueueService;
|
|
524
549
|
this.list = null;
|
|
525
550
|
this.query = {};
|
|
526
551
|
this.config = null;
|
|
@@ -608,13 +633,7 @@ let QueuesComponent = class QueuesComponent {
|
|
|
608
633
|
});
|
|
609
634
|
}
|
|
610
635
|
open(messageQueue) {
|
|
611
|
-
this.
|
|
612
|
-
data: {
|
|
613
|
-
messageQueue: messageQueue,
|
|
614
|
-
},
|
|
615
|
-
width: '85%'
|
|
616
|
-
})
|
|
617
|
-
.afterClosed()
|
|
636
|
+
this._messageQueueService.openMessageQueue(messageQueue.id)
|
|
618
637
|
.pipe(takeUntil(this._destroy$))
|
|
619
638
|
.subscribe(() => {
|
|
620
639
|
this.list.reload();
|
|
@@ -627,7 +646,8 @@ let QueuesComponent = class QueuesComponent {
|
|
|
627
646
|
};
|
|
628
647
|
QueuesComponent.ctorParameters = () => [
|
|
629
648
|
{ type: undefined, decorators: [{ type: Inject, args: [FS_APP_MESSAGE_CONFIG,] }] },
|
|
630
|
-
{ type: MatDialog }
|
|
649
|
+
{ type: MatDialog },
|
|
650
|
+
{ type: FsMessageQueueService }
|
|
631
651
|
];
|
|
632
652
|
__decorate([
|
|
633
653
|
ViewChild(FsListComponent, { static: true }),
|
|
@@ -640,13 +660,40 @@ __decorate([
|
|
|
640
660
|
QueuesComponent = __decorate([
|
|
641
661
|
Component({
|
|
642
662
|
selector: 'fs-app-message-queues',
|
|
643
|
-
template: "<fs-list [config]=\"config\" #list>\n <fs-list-column title=\"Message\" name=\"subject\" sortable=\"true\">\n <ng-template fs-list-cell let-row=\"row\">\n <ng-container *ngIf=\"row.emailMessageQueue\">\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <a (click)=\"open(row)\">{{row.emailMessageQueue.subject|truncate:100}}</a>\n <mat-icon *ngIf=\"row.messageQueueAttachmentCount\" [matTooltip]=\"row.messageQueueAttachmentCount + ' Attachment(s)'\">attach_file</mat-icon>\n </div>\n </ng-container>\n <ng-container *ngIf=\"row.smsMessageQueue\">\n <a (click)=\"open(row)\">{{row.smsMessageQueue.body|truncate:100}}</a>\n </ng-container>\n </ng-template>\n </fs-list-column>\n <fs-list-column title=\"Recipients\" class=\"col-recipients\">\n <ng-template fs-list-cell let-row=\"row\">\n <ng-container *ngIf=\"row.emailMessageQueue\">\n <ng-container *ngIf=\"row.emailMessageQueue.toRecipients.length; else unspecified\">\n <div class=\"small\" *ngFor=\"let recipient of row.emailMessageQueue.toRecipients\">\n <app-recipient \n [state]=\"row.messageQueueRecipients[recipient]\"\n [name]=\"recipient\">\n </app-recipient>\n </div>\n </ng-container>\n <div class=\"small\" *ngFor=\"let recipient of row.emailMessageQueue.ccRecipients\">\n <app-recipient \n [state]=\"row.messageQueueRecipients[recipient]\"\n [name]=\"recipient\">\n </app-recipient>\n </div>\n <div class=\"small\" *ngFor=\"let recipient of row.emailMessageQueue.bccRecipients\">\n <app-recipient \n [state]=\"row.messageQueueRecipients[recipient]\"\n [name]=\"recipient\">\n </app-recipient>\n </div>\n </ng-container>\n <ng-container *ngIf=\"row.smsMessageQueue\">\n <ng-container *ngIf=\"row.smsMessageQueue.toNumber; else unspecified\">\n <app-recipient \n class=\"small\"\n [state]=\"row.state\"\n [name]=\"row.smsMessageQueue.toNumber\">\n </app-recipient>\n </ng-container>\n </ng-container>\n </ng-template>\n </fs-list-column> \n <fs-list-column title=\"Status\" class=\"col-state\">\n <ng-template fs-list-cell let-row=\"row\">\n <span [class]=\"'state-' + row.state\">{{messageQueueStates[row.state]}}</span>\n </ng-template>\n </fs-list-column> \n <fs-list-column title=\"Date\" name=\"created_date\" sortable=\"true\">\n <ng-template fs-list-cell let-row=\"row\">\n
|
|
663
|
+
template: "<fs-list [config]=\"config\" #list>\n <fs-list-column title=\"Message\" name=\"subject\" sortable=\"true\">\n <ng-template fs-list-cell let-row=\"row\">\n <ng-container *ngIf=\"row.emailMessageQueue\">\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <a (click)=\"open(row)\">{{row.emailMessageQueue.subject|truncate:100}}</a>\n <mat-icon *ngIf=\"row.messageQueueAttachmentCount\" [matTooltip]=\"row.messageQueueAttachmentCount + ' Attachment(s)'\">attach_file</mat-icon>\n </div>\n </ng-container>\n <ng-container *ngIf=\"row.smsMessageQueue\">\n <a (click)=\"open(row)\">{{row.smsMessageQueue.body|truncate:100}}</a>\n </ng-container>\n </ng-template>\n </fs-list-column>\n <fs-list-column title=\"Recipients\" class=\"col-recipients\">\n <ng-template fs-list-cell let-row=\"row\">\n <ng-container *ngIf=\"row.emailMessageQueue\">\n <ng-container *ngIf=\"row.emailMessageQueue.toRecipients.length; else unspecified\">\n <div class=\"small\" *ngFor=\"let recipient of row.emailMessageQueue.toRecipients\">\n <app-recipient \n [state]=\"row.messageQueueRecipients[recipient] || row.state\"\n [name]=\"recipient\">\n </app-recipient>\n </div>\n </ng-container>\n <div class=\"small\" *ngFor=\"let recipient of row.emailMessageQueue.ccRecipients\">\n <app-recipient \n [state]=\"row.messageQueueRecipients[recipient] || row.state\"\n [name]=\"recipient\">\n </app-recipient>\n </div>\n <div class=\"small\" *ngFor=\"let recipient of row.emailMessageQueue.bccRecipients\">\n <app-recipient \n [state]=\"row.messageQueueRecipients[recipient] || row.state\"\n [name]=\"recipient\">\n </app-recipient>\n </div>\n </ng-container>\n <ng-container *ngIf=\"row.smsMessageQueue\">\n <ng-container *ngIf=\"row.smsMessageQueue.toNumber; else unspecified\">\n <app-recipient \n class=\"small\"\n [state]=\"row.state\"\n [name]=\"row.smsMessageQueue.toNumber\">\n </app-recipient>\n </ng-container>\n </ng-container>\n </ng-template>\n </fs-list-column> \n <fs-list-column title=\"Status\" class=\"col-state\">\n <ng-template fs-list-cell let-row=\"row\">\n <span [class]=\"'state-' + row.state\">{{messageQueueStates[row.state]}}</span>\n </ng-template>\n </fs-list-column> \n <fs-list-column title=\"Date\" name=\"created_date\" sortable=\"true\">\n <ng-template fs-list-cell let-row=\"row\">\n {{ row.createdDate | fsDateFormat: 'date-time-yeardiff' }}\n </ng-template>\n </fs-list-column>\n</fs-list>\n\n<ng-template #unspecified>\n <app-recipient \n class=\"small\"\n [state]=\"MessageQueueState.Failed\"\n name=\"Unspecified\">\n </app-recipient>\n</ng-template>",
|
|
644
664
|
styles: [":host ::ng-deep .col-recipients small+small:before{content:\", \"}:host ::ng-deep .col-state .state-F,:host ::ng-deep .col-state .state-P{color:#d8524e}"]
|
|
645
665
|
}),
|
|
646
666
|
__param(0, Inject(FS_APP_MESSAGE_CONFIG)),
|
|
647
|
-
__metadata("design:paramtypes", [Object, MatDialog
|
|
667
|
+
__metadata("design:paramtypes", [Object, MatDialog,
|
|
668
|
+
FsMessageQueueService])
|
|
648
669
|
], QueuesComponent);
|
|
649
670
|
|
|
671
|
+
let RecipientComponent = class RecipientComponent {
|
|
672
|
+
ngOnInit() {
|
|
673
|
+
const icons = {
|
|
674
|
+
'S': { name: 'check_circle', tooltip: 'Sent' },
|
|
675
|
+
'E': { name: 'offline_bolt', tooltip: 'Sending' },
|
|
676
|
+
'F': { name: 'info', tooltip: 'Failed' },
|
|
677
|
+
};
|
|
678
|
+
this.icon = icons[this.state];
|
|
679
|
+
}
|
|
680
|
+
};
|
|
681
|
+
__decorate([
|
|
682
|
+
Input(),
|
|
683
|
+
__metadata("design:type", Object)
|
|
684
|
+
], RecipientComponent.prototype, "name", void 0);
|
|
685
|
+
__decorate([
|
|
686
|
+
Input(),
|
|
687
|
+
__metadata("design:type", Object)
|
|
688
|
+
], RecipientComponent.prototype, "state", void 0);
|
|
689
|
+
RecipientComponent = __decorate([
|
|
690
|
+
Component({
|
|
691
|
+
selector: 'app-recipient',
|
|
692
|
+
template: "<span class=\"recipient\">\n <span class=\"name\">{{name}}</span>\n <mat-icon *ngIf=\"icon\" [class]=\"'state-' + state\" [matTooltip]=\"icon.tooltip\">{{icon.name}}</mat-icon>\n</span>",
|
|
693
|
+
styles: ["mat-icon{font-size:14px;width:14px;height:14px;line-height:normal;margin-left:2px}mat-icon.state-S{color:#5fa099}mat-icon.state-E{color:#fbbc04}mat-icon.state-F{color:#d8524e}.recipient{display:inline-flex;align-items:center}"]
|
|
694
|
+
})
|
|
695
|
+
], RecipientComponent);
|
|
696
|
+
|
|
650
697
|
let LinkifyPipe = class LinkifyPipe {
|
|
651
698
|
transform(value) {
|
|
652
699
|
return anchorme(value, {
|
|
@@ -680,32 +727,6 @@ TruncatePipe = __decorate([
|
|
|
680
727
|
})
|
|
681
728
|
], TruncatePipe);
|
|
682
729
|
|
|
683
|
-
let RecipientComponent = class RecipientComponent {
|
|
684
|
-
ngOnInit() {
|
|
685
|
-
const icons = {
|
|
686
|
-
'S': { name: 'check_circle', tooltip: 'Sent' },
|
|
687
|
-
'E': { name: 'offline_bolt', tooltip: 'Sending' },
|
|
688
|
-
'F': { name: 'info', tooltip: 'Failed' },
|
|
689
|
-
};
|
|
690
|
-
this.icon = icons[this.state];
|
|
691
|
-
}
|
|
692
|
-
};
|
|
693
|
-
__decorate([
|
|
694
|
-
Input(),
|
|
695
|
-
__metadata("design:type", Object)
|
|
696
|
-
], RecipientComponent.prototype, "name", void 0);
|
|
697
|
-
__decorate([
|
|
698
|
-
Input(),
|
|
699
|
-
__metadata("design:type", Object)
|
|
700
|
-
], RecipientComponent.prototype, "state", void 0);
|
|
701
|
-
RecipientComponent = __decorate([
|
|
702
|
-
Component({
|
|
703
|
-
selector: 'app-recipient',
|
|
704
|
-
template: "<span class=\"recipient\">\n <mat-icon *ngIf=\"icon\" [class]=\"'state-' + state\" [matTooltip]=\"icon.tooltip\">{{icon.name}}</mat-icon>\n <span class=\"name\">{{name}}</span>\n</span>",
|
|
705
|
-
styles: ["mat-icon{font-size:14px;width:14px;height:14px;line-height:normal;margin-right:2px}mat-icon.state-S{color:#5fa099}mat-icon.state-E{color:#fbbc04}mat-icon.state-F{color:#d8524e}.recipient{display:inline-flex;align-items:center}"]
|
|
706
|
-
})
|
|
707
|
-
], RecipientComponent);
|
|
708
|
-
|
|
709
730
|
let FsAppMessageQueuesModule = class FsAppMessageQueuesModule {
|
|
710
731
|
};
|
|
711
732
|
FsAppMessageQueuesModule = __decorate([
|
|
@@ -740,6 +761,9 @@ FsAppMessageQueuesModule = __decorate([
|
|
|
740
761
|
exports: [
|
|
741
762
|
QueuesComponent,
|
|
742
763
|
QueueComponent,
|
|
764
|
+
],
|
|
765
|
+
providers: [
|
|
766
|
+
FsMessageQueueService
|
|
743
767
|
]
|
|
744
768
|
})
|
|
745
769
|
], FsAppMessageQueuesModule);
|
|
@@ -928,6 +952,79 @@ FsAppMessageTemplatesModule = __decorate([
|
|
|
928
952
|
})
|
|
929
953
|
], FsAppMessageTemplatesModule);
|
|
930
954
|
|
|
955
|
+
let WebhooksComponent = class WebhooksComponent {
|
|
956
|
+
constructor(_config, _message) {
|
|
957
|
+
this._config = _config;
|
|
958
|
+
this._message = _message;
|
|
959
|
+
}
|
|
960
|
+
ngOnInit() {
|
|
961
|
+
this.listConfig = {
|
|
962
|
+
paging: false,
|
|
963
|
+
actions: [
|
|
964
|
+
{
|
|
965
|
+
click: () => {
|
|
966
|
+
this._config.createWebhook()
|
|
967
|
+
.subscribe(() => {
|
|
968
|
+
this._message.success('Created webhook');
|
|
969
|
+
this.list.reload();
|
|
970
|
+
});
|
|
971
|
+
},
|
|
972
|
+
label: 'Create',
|
|
973
|
+
},
|
|
974
|
+
],
|
|
975
|
+
rowActions: [
|
|
976
|
+
{
|
|
977
|
+
click: (webhook) => {
|
|
978
|
+
this._config.deleteWebhook(webhook)
|
|
979
|
+
.subscribe(() => {
|
|
980
|
+
this._message.success('Deleted webhook');
|
|
981
|
+
this.list.reload();
|
|
982
|
+
});
|
|
983
|
+
},
|
|
984
|
+
label: 'Delete',
|
|
985
|
+
},
|
|
986
|
+
],
|
|
987
|
+
fetch: () => {
|
|
988
|
+
return this._config.loadWebhooks()
|
|
989
|
+
.pipe(map((webhooks) => ({ data: webhooks })));
|
|
990
|
+
},
|
|
991
|
+
};
|
|
992
|
+
}
|
|
993
|
+
};
|
|
994
|
+
WebhooksComponent.ctorParameters = () => [
|
|
995
|
+
{ type: undefined, decorators: [{ type: Inject, args: [FS_APP_MESSAGE_CONFIG,] }] },
|
|
996
|
+
{ type: FsMessage }
|
|
997
|
+
];
|
|
998
|
+
__decorate([
|
|
999
|
+
ViewChild(FsListComponent),
|
|
1000
|
+
__metadata("design:type", FsListComponent)
|
|
1001
|
+
], WebhooksComponent.prototype, "list", void 0);
|
|
1002
|
+
WebhooksComponent = __decorate([
|
|
1003
|
+
Component({
|
|
1004
|
+
selector: 'fs-app-message-webhooks',
|
|
1005
|
+
template: "<fs-list [config]=\"listConfig\">\r\n <fs-list-column title=\"URL\">\r\n <ng-template fs-list-cell let-row=\"row\">\r\n {{row.url}}\r\n </ng-template>\r\n </fs-list-column>\r\n <fs-list-column title=\"Created\">\r\n <ng-template fs-list-cell let-row=\"row\">\r\n {{row.createDate | fsDate}}\r\n </ng-template>\r\n </fs-list-column>\r\n</fs-list>"
|
|
1006
|
+
}),
|
|
1007
|
+
__param(0, Inject(FS_APP_MESSAGE_CONFIG)),
|
|
1008
|
+
__metadata("design:paramtypes", [Object, FsMessage])
|
|
1009
|
+
], WebhooksComponent);
|
|
1010
|
+
|
|
1011
|
+
let FsAppMessageWebhooksModule = class FsAppMessageWebhooksModule {
|
|
1012
|
+
};
|
|
1013
|
+
FsAppMessageWebhooksModule = __decorate([
|
|
1014
|
+
NgModule({
|
|
1015
|
+
imports: [
|
|
1016
|
+
FsListModule,
|
|
1017
|
+
FsDateModule,
|
|
1018
|
+
],
|
|
1019
|
+
declarations: [
|
|
1020
|
+
WebhooksComponent,
|
|
1021
|
+
],
|
|
1022
|
+
exports: [
|
|
1023
|
+
WebhooksComponent,
|
|
1024
|
+
],
|
|
1025
|
+
})
|
|
1026
|
+
], FsAppMessageWebhooksModule);
|
|
1027
|
+
|
|
931
1028
|
var FsAppMessageModule_1;
|
|
932
1029
|
let FsAppMessageModule = FsAppMessageModule_1 = class FsAppMessageModule {
|
|
933
1030
|
static forRoot() {
|
|
@@ -948,5 +1045,5 @@ FsAppMessageModule = FsAppMessageModule_1 = __decorate([
|
|
|
948
1045
|
* Generated bundle index. Do not edit.
|
|
949
1046
|
*/
|
|
950
1047
|
|
|
951
|
-
export { FS_APP_MESSAGE_CONFIG, FsAppMessageModule, FsAppMessageQueuesModule, FsAppMessageTemplatesModule, FsAppMessagesModule, MessageComponent, MessagesComponent, QueueComponent, QueuesComponent, TemplatesComponent, FsAppMessagePreviewModule as ɵa, PreviewComponent as ɵb, FS_APP_MESSAGE_CONFIG as ɵc, LinkifyPipe as ɵd, TruncatePipe as ɵe, RecipientComponent as ɵf, TemplateComponent as ɵg };
|
|
1048
|
+
export { FS_APP_MESSAGE_CONFIG, FsAppMessageModule, FsAppMessageQueuesModule, FsAppMessageTemplatesModule, FsAppMessageWebhooksModule, FsAppMessagesModule, FsMessageQueueService, MessageComponent, MessagesComponent, QueueComponent, QueuesComponent, TemplatesComponent, FsAppMessagePreviewModule as ɵa, PreviewComponent as ɵb, FS_APP_MESSAGE_CONFIG as ɵc, LinkifyPipe as ɵd, TruncatePipe as ɵe, RecipientComponent as ɵf, TemplateComponent as ɵg, WebhooksComponent as ɵh };
|
|
952
1049
|
//# sourceMappingURL=firestitch-app-message.js.map
|