@thescaffold/ntx-apps-notification 0.0.10
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/README.md +1 -0
- package/api/log/dto/create-log.dto.d.ts +20 -0
- package/api/log/dto/create-log.dto.js +123 -0
- package/api/log/dto/create-log.dto.js.map +1 -0
- package/api/log/dto/update-log.dto.d.ts +20 -0
- package/api/log/dto/update-log.dto.js +126 -0
- package/api/log/dto/update-log.dto.js.map +1 -0
- package/api/log/entities/log.entity.d.ts +30 -0
- package/api/log/entities/log.entity.js +163 -0
- package/api/log/entities/log.entity.js.map +1 -0
- package/api/log/index.d.ts +6 -0
- package/api/log/index.js +23 -0
- package/api/log/index.js.map +1 -0
- package/api/log/log.controller.d.ts +34 -0
- package/api/log/log.controller.js +105 -0
- package/api/log/log.controller.js.map +1 -0
- package/api/log/log.module.d.ts +2 -0
- package/api/log/log.module.js +34 -0
- package/api/log/log.module.js.map +1 -0
- package/api/log/log.service.d.ts +22 -0
- package/api/log/log.service.js +65 -0
- package/api/log/log.service.js.map +1 -0
- package/api/message/dto/create-message.dto.d.ts +17 -0
- package/api/message/dto/create-message.dto.js +105 -0
- package/api/message/dto/create-message.dto.js.map +1 -0
- package/api/message/dto/update-message.dto.d.ts +17 -0
- package/api/message/dto/update-message.dto.js +108 -0
- package/api/message/dto/update-message.dto.js.map +1 -0
- package/api/message/entities/message.entity.d.ts +22 -0
- package/api/message/entities/message.entity.js +135 -0
- package/api/message/entities/message.entity.js.map +1 -0
- package/api/message/index.d.ts +6 -0
- package/api/message/index.js +23 -0
- package/api/message/index.js.map +1 -0
- package/api/message/message.controller.d.ts +24 -0
- package/api/message/message.controller.js +50 -0
- package/api/message/message.controller.js.map +1 -0
- package/api/message/message.module.d.ts +2 -0
- package/api/message/message.module.js +27 -0
- package/api/message/message.module.js.map +1 -0
- package/api/message/message.service.d.ts +22 -0
- package/api/message/message.service.js +65 -0
- package/api/message/message.service.js.map +1 -0
- package/api/rule/dto/create-rule.dto.d.ts +6 -0
- package/api/rule/dto/create-rule.dto.js +39 -0
- package/api/rule/dto/create-rule.dto.js.map +1 -0
- package/api/rule/dto/update-rule.dto.d.ts +6 -0
- package/api/rule/dto/update-rule.dto.js +42 -0
- package/api/rule/dto/update-rule.dto.js.map +1 -0
- package/api/rule/entities/rule.entity.d.ts +9 -0
- package/api/rule/entities/rule.entity.js +47 -0
- package/api/rule/entities/rule.entity.js.map +1 -0
- package/api/rule/index.d.ts +6 -0
- package/api/rule/index.js +23 -0
- package/api/rule/index.js.map +1 -0
- package/api/rule/rule.controller.d.ts +21 -0
- package/api/rule/rule.controller.js +40 -0
- package/api/rule/rule.controller.js.map +1 -0
- package/api/rule/rule.module.d.ts +2 -0
- package/api/rule/rule.module.js +27 -0
- package/api/rule/rule.module.js.map +1 -0
- package/api/rule/rule.service.d.ts +13 -0
- package/api/rule/rule.service.js +46 -0
- package/api/rule/rule.service.js.map +1 -0
- package/api/template/dto/create-template.dto.d.ts +7 -0
- package/api/template/dto/create-template.dto.js +46 -0
- package/api/template/dto/create-template.dto.js.map +1 -0
- package/api/template/dto/update-template.dto.d.ts +7 -0
- package/api/template/dto/update-template.dto.js +48 -0
- package/api/template/dto/update-template.dto.js.map +1 -0
- package/api/template/entities/template.entity.d.ts +12 -0
- package/api/template/entities/template.entity.js +59 -0
- package/api/template/entities/template.entity.js.map +1 -0
- package/api/template/index.d.ts +6 -0
- package/api/template/index.js +23 -0
- package/api/template/index.js.map +1 -0
- package/api/template/template.controller.d.ts +21 -0
- package/api/template/template.controller.js +40 -0
- package/api/template/template.controller.js.map +1 -0
- package/api/template/template.module.d.ts +2 -0
- package/api/template/template.module.js +27 -0
- package/api/template/template.module.js.map +1 -0
- package/api/template/template.service.d.ts +13 -0
- package/api/template/template.service.js +46 -0
- package/api/template/template.service.js.map +1 -0
- package/app.config.d.ts +2 -0
- package/app.config.js +16 -0
- package/app.config.js.map +1 -0
- package/app.controller.d.ts +54 -0
- package/app.controller.js +259 -0
- package/app.controller.js.map +1 -0
- package/app.dto.d.ts +46 -0
- package/app.dto.js +58 -0
- package/app.dto.js.map +1 -0
- package/app.module.d.ts +2 -0
- package/app.module.js +58 -0
- package/app.module.js.map +1 -0
- package/app.service.d.ts +3 -0
- package/app.service.js +20 -0
- package/app.service.js.map +1 -0
- package/index.d.ts +30 -0
- package/index.js +69 -0
- package/index.js.map +1 -0
- package/migrations/1749979429709-NotificationLogs.d.ts +5 -0
- package/migrations/1749979429709-NotificationLogs.js +61 -0
- package/migrations/1749979429709-NotificationLogs.js.map +1 -0
- package/migrations/1749979429775-NotificationRules.d.ts +5 -0
- package/migrations/1749979429775-NotificationRules.js +32 -0
- package/migrations/1749979429775-NotificationRules.js.map +1 -0
- package/migrations/1749979429841-NotificationTemplates.d.ts +5 -0
- package/migrations/1749979429841-NotificationTemplates.js +36 -0
- package/migrations/1749979429841-NotificationTemplates.js.map +1 -0
- package/migrations/1749979429845-NotificationMessages.d.ts +5 -0
- package/migrations/1749979429845-NotificationMessages.js +58 -0
- package/migrations/1749979429845-NotificationMessages.js.map +1 -0
- package/migrations/index.d.ts +2 -0
- package/migrations/index.js +14 -0
- package/migrations/index.js.map +1 -0
- package/package.json +18 -0
- package/pkg/provider/mailgun/mailgun.service.d.ts +19 -0
- package/pkg/provider/mailgun/mailgun.service.js +84 -0
- package/pkg/provider/mailgun/mailgun.service.js.map +1 -0
- package/pkg/provider/provider.interface.d.ts +25 -0
- package/pkg/provider/provider.interface.js +3 -0
- package/pkg/provider/provider.interface.js.map +1 -0
- package/pkg/provider/provider.module.d.ts +2 -0
- package/pkg/provider/provider.module.js +26 -0
- package/pkg/provider/provider.module.js.map +1 -0
- package/pkg/provider/provider.service.d.ts +29 -0
- package/pkg/provider/provider.service.js +204 -0
- package/pkg/provider/provider.service.js.map +1 -0
- package/pkg/provider/zoho/zoho.service.d.ts +20 -0
- package/pkg/provider/zoho/zoho.service.js +94 -0
- package/pkg/provider/zoho/zoho.service.js.map +1 -0
- package/tsconfig.lib.tsbuildinfo +1 -0
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# Ntx SDK
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { MessageChannelType, MessagePositionType, MessagePriorityType, MessageScopeType, MessageStatusType, MessageThemeType, MessageTypeType } from '../../../app.dto';
|
|
2
|
+
export declare class CreateLogDto {
|
|
3
|
+
reference?: string;
|
|
4
|
+
key: string;
|
|
5
|
+
subject: string;
|
|
6
|
+
channels: MessageChannelType[];
|
|
7
|
+
data?: any;
|
|
8
|
+
message?: any;
|
|
9
|
+
meta?: any;
|
|
10
|
+
readAt?: Date;
|
|
11
|
+
publishAt?: Date;
|
|
12
|
+
expireAt?: Date;
|
|
13
|
+
type?: MessageTypeType;
|
|
14
|
+
priority?: MessagePriorityType;
|
|
15
|
+
theme?: MessageThemeType;
|
|
16
|
+
scope?: MessageScopeType;
|
|
17
|
+
position?: MessagePositionType;
|
|
18
|
+
status?: MessageStatusType;
|
|
19
|
+
passcode?: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CreateLogDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const ntx_core_1 = require("@thescaffold/ntx-core");
|
|
15
|
+
const class_transformer_1 = require("class-transformer");
|
|
16
|
+
const class_validator_1 = require("class-validator");
|
|
17
|
+
const app_dto_1 = require("../../../app.dto");
|
|
18
|
+
class CreateLogDto {
|
|
19
|
+
}
|
|
20
|
+
exports.CreateLogDto = CreateLogDto;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
(0, class_validator_1.IsOptional)(),
|
|
24
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], CreateLogDto.prototype, "reference", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsString)(),
|
|
29
|
+
(0, swagger_1.ApiProperty)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], CreateLogDto.prototype, "key", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
(0, swagger_1.ApiProperty)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], CreateLogDto.prototype, "subject", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsEnum)(app_dto_1.MessageChannelType, { each: true }),
|
|
39
|
+
(0, swagger_1.ApiProperty)(),
|
|
40
|
+
__metadata("design:type", Array)
|
|
41
|
+
], CreateLogDto.prototype, "channels", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsObject)(),
|
|
44
|
+
(0, class_validator_1.IsOptional)(),
|
|
45
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
46
|
+
__metadata("design:type", Object)
|
|
47
|
+
], CreateLogDto.prototype, "data", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_1.IsObject)(),
|
|
50
|
+
(0, class_validator_1.IsOptional)(),
|
|
51
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
52
|
+
__metadata("design:type", Object)
|
|
53
|
+
], CreateLogDto.prototype, "message", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_validator_1.IsObject)(),
|
|
56
|
+
(0, class_validator_1.IsOptional)(),
|
|
57
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
58
|
+
__metadata("design:type", Object)
|
|
59
|
+
], CreateLogDto.prototype, "meta", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, class_validator_1.IsOptional)(),
|
|
62
|
+
(0, class_validator_1.IsDate)(),
|
|
63
|
+
(0, class_transformer_1.Transform)(({ value }) => (0, ntx_core_1.strToDate)(value)),
|
|
64
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
65
|
+
__metadata("design:type", Date)
|
|
66
|
+
], CreateLogDto.prototype, "readAt", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, class_validator_1.IsOptional)(),
|
|
69
|
+
(0, class_validator_1.IsDate)(),
|
|
70
|
+
(0, class_transformer_1.Transform)(({ value }) => (0, ntx_core_1.strToDate)(value)),
|
|
71
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
72
|
+
__metadata("design:type", Date)
|
|
73
|
+
], CreateLogDto.prototype, "publishAt", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, class_validator_1.IsOptional)(),
|
|
76
|
+
(0, class_validator_1.IsDate)(),
|
|
77
|
+
(0, class_transformer_1.Transform)(({ value }) => (0, ntx_core_1.strToDate)(value)),
|
|
78
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
79
|
+
__metadata("design:type", Date)
|
|
80
|
+
], CreateLogDto.prototype, "expireAt", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, class_validator_1.IsEnum)(app_dto_1.MessageTypeType),
|
|
83
|
+
(0, class_validator_1.IsOptional)(),
|
|
84
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
85
|
+
__metadata("design:type", String)
|
|
86
|
+
], CreateLogDto.prototype, "type", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, class_validator_1.IsEnum)(app_dto_1.MessagePriorityType),
|
|
89
|
+
(0, class_validator_1.IsOptional)(),
|
|
90
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
91
|
+
__metadata("design:type", String)
|
|
92
|
+
], CreateLogDto.prototype, "priority", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, class_validator_1.IsEnum)(app_dto_1.MessageThemeType),
|
|
95
|
+
(0, class_validator_1.IsOptional)(),
|
|
96
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
97
|
+
__metadata("design:type", String)
|
|
98
|
+
], CreateLogDto.prototype, "theme", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, class_validator_1.IsEnum)(app_dto_1.MessageScopeType),
|
|
101
|
+
(0, class_validator_1.IsOptional)(),
|
|
102
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
103
|
+
__metadata("design:type", String)
|
|
104
|
+
], CreateLogDto.prototype, "scope", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, class_validator_1.IsEnum)(app_dto_1.MessagePositionType),
|
|
107
|
+
(0, class_validator_1.IsOptional)(),
|
|
108
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
109
|
+
__metadata("design:type", String)
|
|
110
|
+
], CreateLogDto.prototype, "position", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, class_validator_1.IsEnum)(app_dto_1.MessageStatusType),
|
|
113
|
+
(0, class_validator_1.IsOptional)(),
|
|
114
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
115
|
+
__metadata("design:type", String)
|
|
116
|
+
], CreateLogDto.prototype, "status", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, class_validator_1.IsString)(),
|
|
119
|
+
(0, class_validator_1.IsOptional)(),
|
|
120
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
121
|
+
__metadata("design:type", String)
|
|
122
|
+
], CreateLogDto.prototype, "passcode", void 0);
|
|
123
|
+
//# sourceMappingURL=create-log.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-log.dto.js","sourceRoot":"","sources":["../../../../../../libs/notification/src/api/log/dto/create-log.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;AACnE,oDAAkD;AAClD,yDAA8C;AAC9C,qDAMyB;AACzB,8CAQ0B;AAE1B,MAAa,YAAY;CAqFxB;AArFD,oCAqFC;AAjFC;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;+CACH;AAInB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;yCACF;AAIZ;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;6CACE;AAIhB;IAFC,IAAA,wBAAM,EAAC,4BAAkB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC1C,IAAA,qBAAW,GAAE;;8CACiB;AAK/B;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;0CACX;AAKX;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;6CACR;AAKd;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;0CACX;AAMX;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,IAAA,oBAAS,EAAC,KAAK,CAAC,CAAC;IAC1C,IAAA,6BAAmB,GAAE;8BACb,IAAI;4CAAC;AAMd;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,IAAA,oBAAS,EAAC,KAAK,CAAC,CAAC;IAC1C,IAAA,6BAAmB,GAAE;8BACV,IAAI;+CAAC;AAMjB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,IAAA,oBAAS,EAAC,KAAK,CAAC,CAAC;IAC1C,IAAA,6BAAmB,GAAE;8BACX,IAAI;8CAAC;AAKhB;IAHC,IAAA,wBAAM,EAAC,yBAAe,CAAC;IACvB,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;0CACC;AAKvB;IAHC,IAAA,wBAAM,EAAC,6BAAmB,CAAC;IAC3B,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;8CACS;AAK/B;IAHC,IAAA,wBAAM,EAAC,0BAAgB,CAAC;IACxB,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;2CACG;AAKzB;IAHC,IAAA,wBAAM,EAAC,0BAAgB,CAAC;IACxB,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;2CACG;AAKzB;IAHC,IAAA,wBAAM,EAAC,6BAAmB,CAAC;IAC3B,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;8CACS;AAK/B;IAHC,IAAA,wBAAM,EAAC,2BAAiB,CAAC;IACzB,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;4CACK;AAK3B;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;8CACJ"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { MessageChannelType, MessagePositionType, MessagePriorityType, MessageScopeType, MessageStatusType, MessageThemeType, MessageTypeType } from '../../../app.dto';
|
|
2
|
+
export declare class UpdateLogDto {
|
|
3
|
+
reference?: string;
|
|
4
|
+
key?: string;
|
|
5
|
+
subject?: string;
|
|
6
|
+
channels?: MessageChannelType[];
|
|
7
|
+
data?: any;
|
|
8
|
+
message?: any;
|
|
9
|
+
meta?: any;
|
|
10
|
+
readAt?: Date;
|
|
11
|
+
publishAt?: Date;
|
|
12
|
+
expireAt?: Date;
|
|
13
|
+
type?: MessageTypeType;
|
|
14
|
+
priority?: MessagePriorityType;
|
|
15
|
+
theme?: MessageThemeType;
|
|
16
|
+
scope?: MessageScopeType;
|
|
17
|
+
position?: MessagePositionType;
|
|
18
|
+
status?: MessageStatusType;
|
|
19
|
+
passcode?: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.UpdateLogDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const ntx_core_1 = require("@thescaffold/ntx-core");
|
|
15
|
+
const class_transformer_1 = require("class-transformer");
|
|
16
|
+
const class_validator_1 = require("class-validator");
|
|
17
|
+
const app_dto_1 = require("../../../app.dto");
|
|
18
|
+
class UpdateLogDto {
|
|
19
|
+
}
|
|
20
|
+
exports.UpdateLogDto = UpdateLogDto;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
(0, class_validator_1.IsOptional)(),
|
|
24
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], UpdateLogDto.prototype, "reference", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsString)(),
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], UpdateLogDto.prototype, "key", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
(0, class_validator_1.IsOptional)(),
|
|
36
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], UpdateLogDto.prototype, "subject", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsEnum)(app_dto_1.MessageChannelType, { each: true }),
|
|
41
|
+
(0, class_validator_1.IsOptional)(),
|
|
42
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
43
|
+
__metadata("design:type", Array)
|
|
44
|
+
], UpdateLogDto.prototype, "channels", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.IsObject)(),
|
|
47
|
+
(0, class_validator_1.IsOptional)(),
|
|
48
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
49
|
+
__metadata("design:type", Object)
|
|
50
|
+
], UpdateLogDto.prototype, "data", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_validator_1.IsObject)(),
|
|
53
|
+
(0, class_validator_1.IsOptional)(),
|
|
54
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], UpdateLogDto.prototype, "message", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.IsObject)(),
|
|
59
|
+
(0, class_validator_1.IsOptional)(),
|
|
60
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
|
+
], UpdateLogDto.prototype, "meta", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, class_validator_1.IsOptional)(),
|
|
65
|
+
(0, class_validator_1.IsDate)(),
|
|
66
|
+
(0, class_transformer_1.Transform)(({ value }) => (0, ntx_core_1.strToDate)(value)),
|
|
67
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
68
|
+
__metadata("design:type", Date)
|
|
69
|
+
], UpdateLogDto.prototype, "readAt", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, class_validator_1.IsOptional)(),
|
|
72
|
+
(0, class_validator_1.IsDate)(),
|
|
73
|
+
(0, class_transformer_1.Transform)(({ value }) => (0, ntx_core_1.strToDate)(value)),
|
|
74
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
75
|
+
__metadata("design:type", Date)
|
|
76
|
+
], UpdateLogDto.prototype, "publishAt", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, class_validator_1.IsOptional)(),
|
|
79
|
+
(0, class_validator_1.IsDate)(),
|
|
80
|
+
(0, class_transformer_1.Transform)(({ value }) => (0, ntx_core_1.strToDate)(value)),
|
|
81
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
82
|
+
__metadata("design:type", Date)
|
|
83
|
+
], UpdateLogDto.prototype, "expireAt", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, class_validator_1.IsEnum)(app_dto_1.MessageTypeType),
|
|
86
|
+
(0, class_validator_1.IsOptional)(),
|
|
87
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
88
|
+
__metadata("design:type", String)
|
|
89
|
+
], UpdateLogDto.prototype, "type", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, class_validator_1.IsEnum)(app_dto_1.MessagePriorityType),
|
|
92
|
+
(0, class_validator_1.IsOptional)(),
|
|
93
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
94
|
+
__metadata("design:type", String)
|
|
95
|
+
], UpdateLogDto.prototype, "priority", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, class_validator_1.IsEnum)(app_dto_1.MessageThemeType),
|
|
98
|
+
(0, class_validator_1.IsOptional)(),
|
|
99
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
100
|
+
__metadata("design:type", String)
|
|
101
|
+
], UpdateLogDto.prototype, "theme", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, class_validator_1.IsEnum)(app_dto_1.MessageScopeType),
|
|
104
|
+
(0, class_validator_1.IsOptional)(),
|
|
105
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
106
|
+
__metadata("design:type", String)
|
|
107
|
+
], UpdateLogDto.prototype, "scope", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, class_validator_1.IsEnum)(app_dto_1.MessagePositionType),
|
|
110
|
+
(0, class_validator_1.IsOptional)(),
|
|
111
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
112
|
+
__metadata("design:type", String)
|
|
113
|
+
], UpdateLogDto.prototype, "position", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, class_validator_1.IsEnum)(app_dto_1.MessageStatusType),
|
|
116
|
+
(0, class_validator_1.IsOptional)(),
|
|
117
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
118
|
+
__metadata("design:type", String)
|
|
119
|
+
], UpdateLogDto.prototype, "status", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
(0, class_validator_1.IsString)(),
|
|
122
|
+
(0, class_validator_1.IsOptional)(),
|
|
123
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
124
|
+
__metadata("design:type", String)
|
|
125
|
+
], UpdateLogDto.prototype, "passcode", void 0);
|
|
126
|
+
//# sourceMappingURL=update-log.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-log.dto.js","sourceRoot":"","sources":["../../../../../../libs/notification/src/api/log/dto/update-log.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAsD;AACtD,oDAAkD;AAClD,yDAA8C;AAC9C,qDAMyB;AACzB,8CAQ0B;AAE1B,MAAa,YAAY;CAwFxB;AAxFD,oCAwFC;AApFC;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;+CACH;AAKnB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;yCACT;AAKb;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;6CACL;AAKjB;IAHC,IAAA,wBAAM,EAAC,4BAAkB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC1C,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;8CACU;AAKhC;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;0CACX;AAKX;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;6CACR;AAKd;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;0CACX;AAMX;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,IAAA,oBAAS,EAAC,KAAK,CAAC,CAAC;IAC1C,IAAA,6BAAmB,GAAE;8BACb,IAAI;4CAAC;AAMd;IAJC,IAAA,4BAAU,GAAE;IAC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eType, MessageStatusType, MessageThemeType, MessageTypeType } from '../../../app.dto';
|
|
3
|
+
import { Rule } from '../../rule/entities/rule.entity';
|
|
4
|
+
import { Template } from '../../template/entities/template.entity';
|
|
5
|
+
export declare class Log extends BaseEntity {
|
|
6
|
+
reference: string;
|
|
7
|
+
userId?: string;
|
|
8
|
+
clientId?: string;
|
|
9
|
+
workspaceId?: string;
|
|
10
|
+
key: string;
|
|
11
|
+
subject: string;
|
|
12
|
+
channels: MessageChannelType[];
|
|
13
|
+
data?: any;
|
|
14
|
+
message?: any;
|
|
15
|
+
meta?: any;
|
|
16
|
+
readAt?: Date;
|
|
17
|
+
publishAt?: Date;
|
|
18
|
+
expireAt?: Date;
|
|
19
|
+
type?: MessageTypeType;
|
|
20
|
+
priority?: MessagePriorityType;
|
|
21
|
+
theme?: MessageThemeType;
|
|
22
|
+
scope?: MessageScopeType;
|
|
23
|
+
position?: MessagePositionType;
|
|
24
|
+
status?: MessageStatusType;
|
|
25
|
+
templateId?: string;
|
|
26
|
+
template?: Template;
|
|
27
|
+
ruleId?: string;
|
|
28
|
+
rule?: Rule;
|
|
29
|
+
beforeInsert(): void;
|
|
30
|
+
}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Log = void 0;
|
|
13
|
+
const ntx_core_1 = require("@thescaffold/ntx-core");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const app_dto_1 = require("../../../app.dto");
|
|
16
|
+
const rule_entity_1 = require("../../rule/entities/rule.entity");
|
|
17
|
+
const template_entity_1 = require("../../template/entities/template.entity");
|
|
18
|
+
let Log = class Log extends ntx_core_1.BaseEntity {
|
|
19
|
+
beforeInsert() {
|
|
20
|
+
if (!this.publishAt) {
|
|
21
|
+
this.publishAt = new Date();
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
exports.Log = Log;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)('varchar', { name: 'reference', length: 255 }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], Log.prototype, "reference", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)('char', { name: 'userId', length: 36, nullable: true }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], Log.prototype, "userId", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)('char', { name: 'clientId', length: 36, nullable: true }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], Log.prototype, "clientId", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)('char', { name: 'workspaceId', length: 36, nullable: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], Log.prototype, "workspaceId", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)('char', { name: 'key', length: 36 }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], Log.prototype, "key", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)('varchar', { name: 'subject', length: 255 }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], Log.prototype, "subject", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)('json', { name: 'channels' }),
|
|
52
|
+
__metadata("design:type", Array)
|
|
53
|
+
], Log.prototype, "channels", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)('json', { name: 'data', nullable: true }),
|
|
56
|
+
__metadata("design:type", Object)
|
|
57
|
+
], Log.prototype, "data", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)('json', { name: 'message', nullable: true }),
|
|
60
|
+
__metadata("design:type", Object)
|
|
61
|
+
], Log.prototype, "message", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)('json', { name: 'meta', nullable: true }),
|
|
64
|
+
__metadata("design:type", Object)
|
|
65
|
+
], Log.prototype, "meta", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.Column)('datetime', { name: 'readAt', nullable: true }),
|
|
68
|
+
__metadata("design:type", Date)
|
|
69
|
+
], Log.prototype, "readAt", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, typeorm_1.Column)('datetime', { name: 'publishAt', nullable: true }),
|
|
72
|
+
__metadata("design:type", Date)
|
|
73
|
+
], Log.prototype, "publishAt", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, typeorm_1.Column)('datetime', { name: 'expireAt', nullable: true }),
|
|
76
|
+
__metadata("design:type", Date)
|
|
77
|
+
], Log.prototype, "expireAt", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)('varchar', {
|
|
80
|
+
name: 'type',
|
|
81
|
+
nullable: true,
|
|
82
|
+
length: 52,
|
|
83
|
+
default: app_dto_1.MessageTypeType.Default,
|
|
84
|
+
}),
|
|
85
|
+
__metadata("design:type", String)
|
|
86
|
+
], Log.prototype, "type", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typeorm_1.Column)('varchar', {
|
|
89
|
+
name: 'priority',
|
|
90
|
+
nullable: true,
|
|
91
|
+
length: 52,
|
|
92
|
+
default: app_dto_1.MessagePriorityType.Medium,
|
|
93
|
+
}),
|
|
94
|
+
__metadata("design:type", String)
|
|
95
|
+
], Log.prototype, "priority", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, typeorm_1.Column)('varchar', {
|
|
98
|
+
name: 'theme',
|
|
99
|
+
nullable: true,
|
|
100
|
+
length: 52,
|
|
101
|
+
default: app_dto_1.MessageThemeType.Info,
|
|
102
|
+
}),
|
|
103
|
+
__metadata("design:type", String)
|
|
104
|
+
], Log.prototype, "theme", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, typeorm_1.Column)('varchar', {
|
|
107
|
+
name: 'scope',
|
|
108
|
+
nullable: true,
|
|
109
|
+
length: 52,
|
|
110
|
+
}),
|
|
111
|
+
__metadata("design:type", String)
|
|
112
|
+
], Log.prototype, "scope", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, typeorm_1.Column)('varchar', {
|
|
115
|
+
name: 'position',
|
|
116
|
+
nullable: true,
|
|
117
|
+
length: 52,
|
|
118
|
+
default: app_dto_1.MessagePositionType.BottonRight,
|
|
119
|
+
}),
|
|
120
|
+
__metadata("design:type", String)
|
|
121
|
+
], Log.prototype, "position", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
(0, typeorm_1.Column)('varchar', {
|
|
124
|
+
name: 'status',
|
|
125
|
+
nullable: true,
|
|
126
|
+
length: 52,
|
|
127
|
+
default: app_dto_1.MessageStatusType.New,
|
|
128
|
+
}),
|
|
129
|
+
__metadata("design:type", String)
|
|
130
|
+
], Log.prototype, "status", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, typeorm_1.Column)('char', { name: 'templateId', length: 36, nullable: true }),
|
|
133
|
+
__metadata("design:type", String)
|
|
134
|
+
], Log.prototype, "templateId", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
(0, typeorm_1.ManyToOne)((type) => template_entity_1.Template, (template) => template.logs, {
|
|
137
|
+
createForeignKeyConstraints: false,
|
|
138
|
+
}),
|
|
139
|
+
__metadata("design:type", template_entity_1.Template)
|
|
140
|
+
], Log.prototype, "template", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
(0, typeorm_1.Column)('char', { name: 'ruleId', length: 36, nullable: true }),
|
|
143
|
+
__metadata("design:type", String)
|
|
144
|
+
], Log.prototype, "ruleId", void 0);
|
|
145
|
+
__decorate([
|
|
146
|
+
(0, typeorm_1.ManyToOne)((type) => rule_entity_1.Rule, (rule) => rule.logs),
|
|
147
|
+
__metadata("design:type", rule_entity_1.Rule)
|
|
148
|
+
], Log.prototype, "rule", void 0);
|
|
149
|
+
__decorate([
|
|
150
|
+
(0, typeorm_1.BeforeInsert)(),
|
|
151
|
+
__metadata("design:type", Function),
|
|
152
|
+
__metadata("design:paramtypes", []),
|
|
153
|
+
__metadata("design:returntype", void 0)
|
|
154
|
+
], Log.prototype, "beforeInsert", null);
|
|
155
|
+
exports.Log = Log = __decorate([
|
|
156
|
+
(0, typeorm_1.Entity)({
|
|
157
|
+
name: 'NotificationLogs',
|
|
158
|
+
orderBy: {
|
|
159
|
+
createdAt: 'DESC',
|
|
160
|
+
},
|
|
161
|
+
})
|
|
162
|
+
], Log);
|
|
163
|
+
//# sourceMappingURL=log.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log.entity.js","sourceRoot":"","sources":["../../../../../../libs/notification/src/api/log/entities/log.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAmD;AACnD,qCAAkE;AAClE,8CAQ0B;AAC1B,iEAAuD;AACvD,6EAAmE;AAQ5D,IAAM,GAAG,GAAT,MAAM,GAAI,SAAQ,qBAAU;IAsGjC,YAAY;QACV,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;YACpB,IAAI,CAAC,SAAS,GAAG,IAAI,IAAI,EAA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,EAAC,SAAS,EAAE;QACjB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE,EAAE;QACV,OAAO,EAAE,2BAAiB,CAAC,GAAG;KAC/B,CAAC;;mCACyB;AAG3B;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCAC/C;AAKpB;IAHC,IAAA,mBAAS,EAAC,CAAC,IAAI,EAAE,EAAE,CAAC,0BAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,EAAE;QAC1D,2BAA2B,EAAE,KAAK;KACnC,CAAC;8BACS,0BAAQ;qCAAC;AAGpB;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mCAC/C;AAGhB;IADC,IAAA,mBAAS,EAAC,CAAC,IAAI,EAAE,EAAE,CAAC,kBAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC;8BACxC,kBAAI;iCAAC;AAGZ;IADC,IAAA,sBAAY,GAAE;;;;uCAKd;cA1GU,GAAG;IANf,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,kBAAkB;QACxB,OAAO,EAAE;YACP,SAAS,EAAE,MAAM;SAClB;KACF,CAAC;GACW,GAAG,CA2Gf"}
|
package/api/log/index.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./dto/create-log.dto"), exports);
|
|
18
|
+
__exportStar(require("./dto/update-log.dto"), exports);
|
|
19
|
+
__exportStar(require("./entities/log.entity"), exports);
|
|
20
|
+
__exportStar(require("./log.controller"), exports);
|
|
21
|
+
__exportStar(require("./log.service"), exports);
|
|
22
|
+
__exportStar(require("./log.module"), exports);
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/notification/src/api/log/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,uDAAqC;AACrC,wDAAsC;AACtC,mDAAiC;AACjC,gDAA8B;AAC9B,+CAA6B"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ConfigService } from '@nestjs/config';
|
|
2
|
+
import { AppService as QueueAppService } from '@thescaffold/ntx-apps-queue';
|
|
3
|
+
import { LanguageService, MediaService, PlatformService } from '@thescaffold/ntx-core';
|
|
4
|
+
import { DataSource } from 'typeorm';
|
|
5
|
+
import { ProviderService } from '../../pkg/provider/provider.service';
|
|
6
|
+
import { CreateLogDto } from './dto/create-log.dto';
|
|
7
|
+
import { UpdateLogDto } from './dto/update-log.dto';
|
|
8
|
+
import { Log } from './entities/log.entity';
|
|
9
|
+
import { LogService } from './log.service';
|
|
10
|
+
declare const LogController_base: import("@nestjs/common").Type<import("@thescaffold/ntx-core").CrudControllerContract<Log, CreateLogDto, UpdateLogDto>>;
|
|
11
|
+
export declare class LogController extends LogController_base {
|
|
12
|
+
private readonly logService;
|
|
13
|
+
protected readonly languageService: LanguageService;
|
|
14
|
+
protected readonly mediaService: MediaService;
|
|
15
|
+
protected readonly configService: ConfigService;
|
|
16
|
+
protected readonly dataSource: DataSource;
|
|
17
|
+
protected readonly platformService: PlatformService;
|
|
18
|
+
protected readonly providerService: ProviderService;
|
|
19
|
+
private readonly queueAppService;
|
|
20
|
+
protected name: string;
|
|
21
|
+
protected searchable: string[];
|
|
22
|
+
protected service: LogService;
|
|
23
|
+
protected unique: (entity: Log) => any[];
|
|
24
|
+
protected morphRequest: (entity: Log) => Log;
|
|
25
|
+
protected morphs: {
|
|
26
|
+
beforeCreate: (payload: any, context: any) => Promise<any>;
|
|
27
|
+
};
|
|
28
|
+
protected hooks: {
|
|
29
|
+
beforeCreate: (payload: any, context: any) => Promise<never>;
|
|
30
|
+
afterCreate: (entity: Log, context: any, payload: any) => Promise<void>;
|
|
31
|
+
};
|
|
32
|
+
constructor(logService: LogService, languageService: LanguageService, mediaService: MediaService, configService: ConfigService, dataSource: DataSource, platformService: PlatformService, providerService: ProviderService, queueAppService: QueueAppService);
|
|
33
|
+
}
|
|
34
|
+
export {};
|