@thescaffold/ntx-apps-notification 0.2.20 → 0.2.30
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/api/log/entities/log.entity.js +15 -21
- package/api/log/entities/log.entity.js.map +1 -1
- package/api/log/log.controller.d.ts +3 -1
- package/api/log/log.controller.js +1 -1
- package/api/log/log.controller.js.map +1 -1
- package/api/message/entities/message.entity.js +11 -17
- package/api/message/entities/message.entity.js.map +1 -1
- package/api/message/message.controller.d.ts +3 -1
- package/api/message/message.controller.js +1 -1
- package/api/message/message.controller.js.map +1 -1
- package/api/rule/entities/rule.entity.js +4 -4
- package/api/rule/entities/rule.entity.js.map +1 -1
- package/api/rule/rule.controller.d.ts +2 -1
- package/api/rule/rule.controller.js +2 -2
- package/api/rule/rule.controller.js.map +1 -1
- package/api/template/entities/template.entity.js +4 -4
- package/api/template/entities/template.entity.js.map +1 -1
- package/api/template/template.controller.d.ts +2 -1
- package/api/template/template.controller.js +2 -2
- package/api/template/template.controller.js.map +1 -1
- package/migrations/1749979429709-NotificationLogs.js +46 -45
- package/migrations/1749979429709-NotificationLogs.js.map +1 -1
- package/migrations/1749979429775-NotificationRules.js +17 -16
- package/migrations/1749979429775-NotificationRules.js.map +1 -1
- package/migrations/1749979429841-NotificationTemplates.js +21 -20
- package/migrations/1749979429841-NotificationTemplates.js.map +1 -1
- package/migrations/1749979429845-NotificationMessages.js +43 -42
- package/migrations/1749979429845-NotificationMessages.js.map +1 -1
- package/package.json +42 -6
- package/pkg/provider/provider.module.js.map +1 -1
- package/pkg/provider/provider.service.js +4 -4
- package/pkg/provider/provider.service.js.map +1 -1
- package/tsconfig.lib.tsbuildinfo +1 -1
|
@@ -24,62 +24,61 @@ let Log = class Log extends ntx_core_1.BaseEntity {
|
|
|
24
24
|
};
|
|
25
25
|
exports.Log = Log;
|
|
26
26
|
__decorate([
|
|
27
|
-
(0, typeorm_1.Column)('varchar', { name: 'reference'
|
|
27
|
+
(0, typeorm_1.Column)('varchar', { name: 'reference' }),
|
|
28
28
|
__metadata("design:type", String)
|
|
29
29
|
], Log.prototype, "reference", void 0);
|
|
30
30
|
__decorate([
|
|
31
|
-
(0, typeorm_1.Column)('
|
|
31
|
+
(0, typeorm_1.Column)('uuid', { name: 'userId', nullable: true }),
|
|
32
32
|
__metadata("design:type", String)
|
|
33
33
|
], Log.prototype, "userId", void 0);
|
|
34
34
|
__decorate([
|
|
35
|
-
(0, typeorm_1.Column)('
|
|
35
|
+
(0, typeorm_1.Column)('varchar', { name: 'clientId', nullable: true }),
|
|
36
36
|
__metadata("design:type", String)
|
|
37
37
|
], Log.prototype, "clientId", void 0);
|
|
38
38
|
__decorate([
|
|
39
|
-
(0, typeorm_1.Column)('
|
|
39
|
+
(0, typeorm_1.Column)('uuid', { name: 'workspaceId', nullable: true }),
|
|
40
40
|
__metadata("design:type", String)
|
|
41
41
|
], Log.prototype, "workspaceId", void 0);
|
|
42
42
|
__decorate([
|
|
43
|
-
(0, typeorm_1.Column)('
|
|
43
|
+
(0, typeorm_1.Column)('varchar', { name: 'key' }),
|
|
44
44
|
__metadata("design:type", String)
|
|
45
45
|
], Log.prototype, "key", void 0);
|
|
46
46
|
__decorate([
|
|
47
|
-
(0, typeorm_1.Column)('varchar', { name: 'subject'
|
|
47
|
+
(0, typeorm_1.Column)('varchar', { name: 'subject' }),
|
|
48
48
|
__metadata("design:type", String)
|
|
49
49
|
], Log.prototype, "subject", void 0);
|
|
50
50
|
__decorate([
|
|
51
|
-
(0, typeorm_1.Column)('
|
|
51
|
+
(0, typeorm_1.Column)('jsonb', { name: 'channels' }),
|
|
52
52
|
__metadata("design:type", Array)
|
|
53
53
|
], Log.prototype, "channels", void 0);
|
|
54
54
|
__decorate([
|
|
55
|
-
(0, typeorm_1.Column)('
|
|
55
|
+
(0, typeorm_1.Column)('jsonb', { name: 'data', nullable: true }),
|
|
56
56
|
__metadata("design:type", Object)
|
|
57
57
|
], Log.prototype, "data", void 0);
|
|
58
58
|
__decorate([
|
|
59
|
-
(0, typeorm_1.Column)('
|
|
59
|
+
(0, typeorm_1.Column)('jsonb', { name: 'message', nullable: true }),
|
|
60
60
|
__metadata("design:type", Object)
|
|
61
61
|
], Log.prototype, "message", void 0);
|
|
62
62
|
__decorate([
|
|
63
|
-
(0, typeorm_1.Column)('
|
|
63
|
+
(0, typeorm_1.Column)('jsonb', { name: 'meta', nullable: true }),
|
|
64
64
|
__metadata("design:type", Object)
|
|
65
65
|
], Log.prototype, "meta", void 0);
|
|
66
66
|
__decorate([
|
|
67
|
-
(0, typeorm_1.Column)('
|
|
67
|
+
(0, typeorm_1.Column)('timestamp', { name: 'readAt', nullable: true }),
|
|
68
68
|
__metadata("design:type", Date)
|
|
69
69
|
], Log.prototype, "readAt", void 0);
|
|
70
70
|
__decorate([
|
|
71
|
-
(0, typeorm_1.Column)('
|
|
71
|
+
(0, typeorm_1.Column)('timestamp', { name: 'publishAt', nullable: true }),
|
|
72
72
|
__metadata("design:type", Date)
|
|
73
73
|
], Log.prototype, "publishAt", void 0);
|
|
74
74
|
__decorate([
|
|
75
|
-
(0, typeorm_1.Column)('
|
|
75
|
+
(0, typeorm_1.Column)('timestamp', { name: 'expireAt', nullable: true }),
|
|
76
76
|
__metadata("design:type", Date)
|
|
77
77
|
], Log.prototype, "expireAt", void 0);
|
|
78
78
|
__decorate([
|
|
79
79
|
(0, typeorm_1.Column)('varchar', {
|
|
80
80
|
name: 'type',
|
|
81
81
|
nullable: true,
|
|
82
|
-
length: 52,
|
|
83
82
|
default: app_dto_1.MessageTypeType.Default,
|
|
84
83
|
}),
|
|
85
84
|
__metadata("design:type", String)
|
|
@@ -88,7 +87,6 @@ __decorate([
|
|
|
88
87
|
(0, typeorm_1.Column)('varchar', {
|
|
89
88
|
name: 'priority',
|
|
90
89
|
nullable: true,
|
|
91
|
-
length: 52,
|
|
92
90
|
default: app_dto_1.MessagePriorityType.Medium,
|
|
93
91
|
}),
|
|
94
92
|
__metadata("design:type", String)
|
|
@@ -97,7 +95,6 @@ __decorate([
|
|
|
97
95
|
(0, typeorm_1.Column)('varchar', {
|
|
98
96
|
name: 'theme',
|
|
99
97
|
nullable: true,
|
|
100
|
-
length: 52,
|
|
101
98
|
default: app_dto_1.MessageThemeType.Info,
|
|
102
99
|
}),
|
|
103
100
|
__metadata("design:type", String)
|
|
@@ -106,7 +103,6 @@ __decorate([
|
|
|
106
103
|
(0, typeorm_1.Column)('varchar', {
|
|
107
104
|
name: 'scope',
|
|
108
105
|
nullable: true,
|
|
109
|
-
length: 52,
|
|
110
106
|
}),
|
|
111
107
|
__metadata("design:type", String)
|
|
112
108
|
], Log.prototype, "scope", void 0);
|
|
@@ -114,7 +110,6 @@ __decorate([
|
|
|
114
110
|
(0, typeorm_1.Column)('varchar', {
|
|
115
111
|
name: 'position',
|
|
116
112
|
nullable: true,
|
|
117
|
-
length: 52,
|
|
118
113
|
default: app_dto_1.MessagePositionType.BottonRight,
|
|
119
114
|
}),
|
|
120
115
|
__metadata("design:type", String)
|
|
@@ -123,13 +118,12 @@ __decorate([
|
|
|
123
118
|
(0, typeorm_1.Column)('varchar', {
|
|
124
119
|
name: 'status',
|
|
125
120
|
nullable: true,
|
|
126
|
-
length: 52,
|
|
127
121
|
default: app_dto_1.MessageStatusType.New,
|
|
128
122
|
}),
|
|
129
123
|
__metadata("design:type", String)
|
|
130
124
|
], Log.prototype, "status", void 0);
|
|
131
125
|
__decorate([
|
|
132
|
-
(0, typeorm_1.Column)('
|
|
126
|
+
(0, typeorm_1.Column)('uuid', { name: 'templateId', nullable: true }),
|
|
133
127
|
__metadata("design:type", String)
|
|
134
128
|
], Log.prototype, "templateId", void 0);
|
|
135
129
|
__decorate([
|
|
@@ -139,7 +133,7 @@ __decorate([
|
|
|
139
133
|
__metadata("design:type", template_entity_1.Template)
|
|
140
134
|
], Log.prototype, "template", void 0);
|
|
141
135
|
__decorate([
|
|
142
|
-
(0, typeorm_1.Column)('
|
|
136
|
+
(0, typeorm_1.Column)('uuid', { name: 'ruleId', nullable: true }),
|
|
143
137
|
__metadata("design:type", String)
|
|
144
138
|
], Log.prototype, "ruleId", void 0);
|
|
145
139
|
__decorate([
|
|
@@ -1 +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;
|
|
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;IAgGjC,YAAY;QACV,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;YACpB,IAAI,CAAC,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC;QAC9B,CAAC;IACH,CAAC;CACF,CAAA;AArGY,kBAAG;AAEd;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;;sCACvB;AAGlB;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mCACnC;AAGhB;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qCACtC;AAGlB;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCACnC;AAGrB;IADC,IAAA,gBAAM,EAAC,SAAS,E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I,EAAE,kBAAkB;QACxB,OAAO,EAAE;YACP,SAAS,EAAE,MAAM;SAClB;KACF,CAAC;GACW,GAAG,CAqGf"}
|
|
@@ -20,7 +20,9 @@ export declare class LogController extends LogController_base {
|
|
|
20
20
|
protected name: string;
|
|
21
21
|
protected searchable: string[];
|
|
22
22
|
protected service: LogService;
|
|
23
|
-
protected unique: (
|
|
23
|
+
protected unique: ({ reference }: Log) => {
|
|
24
|
+
reference: string;
|
|
25
|
+
}[];
|
|
24
26
|
protected morphRequest: (entity: Log) => Log;
|
|
25
27
|
protected morphs: {
|
|
26
28
|
beforeCreate: (payload: any, context: any) => Promise<any>;
|
|
@@ -34,7 +34,7 @@ let LogController = class LogController extends (0, ntx_core_1.CrudControllerFac
|
|
|
34
34
|
this.name = 'log';
|
|
35
35
|
this.searchable = ['subject', 'message'];
|
|
36
36
|
this.service = this.logService;
|
|
37
|
-
this.unique = (
|
|
37
|
+
this.unique = ({ reference }) => [{ reference }];
|
|
38
38
|
this.morphRequest = (entity) => entity;
|
|
39
39
|
this.morphs = {
|
|
40
40
|
[ntx_core_1.CrudActionType.beforeCreate]: async (payload, context) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log.controller.js","sourceRoot":"","sources":["../../../../../libs/notification/src/api/log/log.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,2CAA+C;AAC/C,gEAA4E;AAC5E,oDAS+B;AAC/B,qCAAqC;AACrC,0EAAsE;AACtE,yDAAoD;AACpD,yDAAoD;AACpD,sDAA4C;AAC5C,+CAA2C;AAGpC,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,IAAA,gCAAqB,EAItD,6BAAY,EAAE,6BAAY,EAAE,gBAAG,CAAC;IAgGhC,YACmB,UAAsB,EACpB,eAAgC,EAChC,YAA0B,EAC1B,aAA4B,EAC5B,UAAsB,EACtB,eAAgC,EAChC,eAAgC,EAClC,eAAgC;QAEjD,KAAK,EAAE,CAAC;QATS,eAAU,GAAV,UAAU,CAAY;QACpB,oBAAe,GAAf,eAAe,CAAiB;QAChC,iBAAY,GAAZ,YAAY,CAAc;QAC1B,kBAAa,GAAb,aAAa,CAAe;QAC5B,eAAU,GAAV,UAAU,CAAY;QACtB,oBAAe,GAAf,eAAe,CAAiB;QAChC,oBAAe,GAAf,eAAe,CAAiB;QAClC,oBAAe,GAAf,eAAe,CAAiB;QAvGzC,SAAI,GAAG,KAAK,CAAC;QACb,eAAU,GAAG,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;QACpC,YAAO,GAAG,IAAI,CAAC,UAAU,CAAC;QAC1B,WAAM,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"log.controller.js","sourceRoot":"","sources":["../../../../../libs/notification/src/api/log/log.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,2CAA+C;AAC/C,gEAA4E;AAC5E,oDAS+B;AAC/B,qCAAqC;AACrC,0EAAsE;AACtE,yDAAoD;AACpD,yDAAoD;AACpD,sDAA4C;AAC5C,+CAA2C;AAGpC,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,IAAA,gCAAqB,EAItD,6BAAY,EAAE,6BAAY,EAAE,gBAAG,CAAC;IAgGhC,YACmB,UAAsB,EACpB,eAAgC,EAChC,YAA0B,EAC1B,aAA4B,EAC5B,UAAsB,EACtB,eAAgC,EAChC,eAAgC,EAClC,eAAgC;QAEjD,KAAK,EAAE,CAAC;QATS,eAAU,GAAV,UAAU,CAAY;QACpB,oBAAe,GAAf,eAAe,CAAiB;QAChC,iBAAY,GAAZ,YAAY,CAAc;QAC1B,kBAAa,GAAb,aAAa,CAAe;QAC5B,eAAU,GAAV,UAAU,CAAY;QACtB,oBAAe,GAAf,eAAe,CAAiB;QAChC,oBAAe,GAAf,eAAe,CAAiB;QAClC,oBAAe,GAAf,eAAe,CAAiB;QAvGzC,SAAI,GAAG,KAAK,CAAC;QACb,eAAU,GAAG,CAAC,SAAS,E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oBACb,UAAU,EAAE,EAAE,GAAG,CAAC;iBACnB,CACF,CAAC;YACJ,CAAC;SACF,CAAC;IAaF,CAAC;CACF,CAAA;AAhHY,sCAAa;wBAAb,aAAa;IADzB,IAAA,mBAAU,EAAC,KAAK,CAAC;qCAsGe,wBAAU;QACH,0BAAe;QAClB,uBAAY;QACX,sBAAa;QAChB,oBAAU;QACL,0BAAe;QACf,kCAAe;QACjB,2BAAe;GA5GxC,aAAa,CAgHzB"}
|
|
@@ -22,54 +22,53 @@ let Message = class Message extends ntx_core_1.BaseEntity {
|
|
|
22
22
|
};
|
|
23
23
|
exports.Message = Message;
|
|
24
24
|
__decorate([
|
|
25
|
-
(0, typeorm_1.Column)('varchar', { name: 'reference'
|
|
25
|
+
(0, typeorm_1.Column)('varchar', { name: 'reference' }),
|
|
26
26
|
__metadata("design:type", String)
|
|
27
27
|
], Message.prototype, "reference", void 0);
|
|
28
28
|
__decorate([
|
|
29
|
-
(0, typeorm_1.Column)('
|
|
29
|
+
(0, typeorm_1.Column)('uuid', { name: 'userId', nullable: false }),
|
|
30
30
|
__metadata("design:type", String)
|
|
31
31
|
], Message.prototype, "userId", void 0);
|
|
32
32
|
__decorate([
|
|
33
|
-
(0, typeorm_1.Column)('
|
|
33
|
+
(0, typeorm_1.Column)('varchar', { name: 'clientId', nullable: false }),
|
|
34
34
|
__metadata("design:type", String)
|
|
35
35
|
], Message.prototype, "clientId", void 0);
|
|
36
36
|
__decorate([
|
|
37
|
-
(0, typeorm_1.Column)('
|
|
37
|
+
(0, typeorm_1.Column)('uuid', { name: 'workspaceId', nullable: false }),
|
|
38
38
|
__metadata("design:type", String)
|
|
39
39
|
], Message.prototype, "workspaceId", void 0);
|
|
40
40
|
__decorate([
|
|
41
|
-
(0, typeorm_1.Column)('
|
|
41
|
+
(0, typeorm_1.Column)('uuid', { name: 'type' }),
|
|
42
42
|
__metadata("design:type", String)
|
|
43
43
|
], Message.prototype, "key", void 0);
|
|
44
44
|
__decorate([
|
|
45
|
-
(0, typeorm_1.Column)('varchar', { name: 'subject'
|
|
45
|
+
(0, typeorm_1.Column)('varchar', { name: 'subject' }),
|
|
46
46
|
__metadata("design:type", String)
|
|
47
47
|
], Message.prototype, "subject", void 0);
|
|
48
48
|
__decorate([
|
|
49
|
-
(0, typeorm_1.Column)('
|
|
49
|
+
(0, typeorm_1.Column)('varchar', { name: 'channels' }),
|
|
50
50
|
__metadata("design:type", String)
|
|
51
51
|
], Message.prototype, "channel", void 0);
|
|
52
52
|
__decorate([
|
|
53
|
-
(0, typeorm_1.Column)('
|
|
53
|
+
(0, typeorm_1.Column)('jsonb', { name: 'message', nullable: true }),
|
|
54
54
|
__metadata("design:type", Object)
|
|
55
55
|
], Message.prototype, "message", void 0);
|
|
56
56
|
__decorate([
|
|
57
|
-
(0, typeorm_1.Column)('
|
|
57
|
+
(0, typeorm_1.Column)('timestamp', { name: 'readAt', nullable: true }),
|
|
58
58
|
__metadata("design:type", Date)
|
|
59
59
|
], Message.prototype, "readAt", void 0);
|
|
60
60
|
__decorate([
|
|
61
|
-
(0, typeorm_1.Column)('
|
|
61
|
+
(0, typeorm_1.Column)('timestamp', { name: 'publishAt', nullable: true }),
|
|
62
62
|
__metadata("design:type", Date)
|
|
63
63
|
], Message.prototype, "publishAt", void 0);
|
|
64
64
|
__decorate([
|
|
65
|
-
(0, typeorm_1.Column)('
|
|
65
|
+
(0, typeorm_1.Column)('timestamp', { name: 'expireAt', nullable: true }),
|
|
66
66
|
__metadata("design:type", Date)
|
|
67
67
|
], Message.prototype, "expireAt", void 0);
|
|
68
68
|
__decorate([
|
|
69
69
|
(0, typeorm_1.Column)('varchar', {
|
|
70
70
|
name: 'type',
|
|
71
71
|
nullable: true,
|
|
72
|
-
length: 52,
|
|
73
72
|
default: app_dto_1.MessageTypeType.Default,
|
|
74
73
|
}),
|
|
75
74
|
__metadata("design:type", String)
|
|
@@ -78,7 +77,6 @@ __decorate([
|
|
|
78
77
|
(0, typeorm_1.Column)('varchar', {
|
|
79
78
|
name: 'priority',
|
|
80
79
|
nullable: true,
|
|
81
|
-
length: 52,
|
|
82
80
|
default: app_dto_1.MessagePriorityType.Medium,
|
|
83
81
|
}),
|
|
84
82
|
__metadata("design:type", String)
|
|
@@ -87,7 +85,6 @@ __decorate([
|
|
|
87
85
|
(0, typeorm_1.Column)('varchar', {
|
|
88
86
|
name: 'theme',
|
|
89
87
|
nullable: true,
|
|
90
|
-
length: 52,
|
|
91
88
|
default: app_dto_1.MessageThemeType.Info,
|
|
92
89
|
}),
|
|
93
90
|
__metadata("design:type", String)
|
|
@@ -96,7 +93,6 @@ __decorate([
|
|
|
96
93
|
(0, typeorm_1.Column)('varchar', {
|
|
97
94
|
name: 'scope',
|
|
98
95
|
nullable: true,
|
|
99
|
-
length: 52,
|
|
100
96
|
}),
|
|
101
97
|
__metadata("design:type", String)
|
|
102
98
|
], Message.prototype, "scope", void 0);
|
|
@@ -104,7 +100,6 @@ __decorate([
|
|
|
104
100
|
(0, typeorm_1.Column)('varchar', {
|
|
105
101
|
name: 'position',
|
|
106
102
|
nullable: true,
|
|
107
|
-
length: 52,
|
|
108
103
|
default: app_dto_1.MessagePositionType.BottonRight,
|
|
109
104
|
}),
|
|
110
105
|
__metadata("design:type", String)
|
|
@@ -113,7 +108,6 @@ __decorate([
|
|
|
113
108
|
(0, typeorm_1.Column)('varchar', {
|
|
114
109
|
name: 'status',
|
|
115
110
|
nullable: true,
|
|
116
|
-
length: 52,
|
|
117
111
|
default: app_dto_1.MessageStatusType.New,
|
|
118
112
|
}),
|
|
119
113
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message.entity.js","sourceRoot":"","sources":["../../../../../../libs/notification/src/api/message/entities/message.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAmD;AACnD,qCAAuD;AACvD,8CAQ0B;AAQnB,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,qBAAU;
|
|
1
|
+
{"version":3,"file":"message.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BAAM,EAAC;QACN,IAAI,EAAE,sBAAsB;QAC5B,OAAO,EAAE;YACP,SAAS,EAAE,MAAM;SAClB;KACF,CAAC;GACW,OAAO,CAiFnB"}
|
|
@@ -13,7 +13,9 @@ export declare class MessageController extends MessageController_base {
|
|
|
13
13
|
protected name: string;
|
|
14
14
|
protected searchable: string[];
|
|
15
15
|
protected service: MessageService;
|
|
16
|
-
protected unique: (
|
|
16
|
+
protected unique: ({ reference }: Message) => {
|
|
17
|
+
reference: string;
|
|
18
|
+
}[];
|
|
17
19
|
protected morphRequest: (entity: Message) => Message;
|
|
18
20
|
protected morphs: {
|
|
19
21
|
beforeCreate: (payload: any, context: any) => Promise<any>;
|
|
@@ -27,7 +27,7 @@ let MessageController = class MessageController extends (0, ntx_core_1.CrudContr
|
|
|
27
27
|
this.name = 'message';
|
|
28
28
|
this.searchable = ['subject', 'message'];
|
|
29
29
|
this.service = this.messageService;
|
|
30
|
-
this.unique = (
|
|
30
|
+
this.unique = ({ reference }) => [{ reference }];
|
|
31
31
|
this.morphRequest = (entity) => entity;
|
|
32
32
|
this.morphs = {
|
|
33
33
|
[ntx_core_1.CrudActionType.beforeCreate]: async (payload, context) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message.controller.js","sourceRoot":"","sources":["../../../../../libs/notification/src/api/message/message.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,2CAA+C;AAC/C,oDAK+B;AAC/B,iEAA4D;AAC5D,iEAA4D;AAC5D,8DAAoD;AACpD,uDAAmD;AAG5C,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,IAAA,gCAAqB,EAI1D,qCAAgB,EAAE,qCAAgB,EAAE,wBAAO,CAAC;IAoB5C,YACmB,cAA8B,EAC5B,eAAgC,EAChC,YAA0B,EAC1B,aAA4B;QAE/C,KAAK,EAAE,CAAC;QALS,mBAAc,GAAd,cAAc,CAAgB;QAC5B,oBAAe,GAAf,eAAe,CAAiB;QAChC,iBAAY,GAAZ,YAAY,CAAc;QAC1B,kBAAa,GAAb,aAAa,CAAe;QAvBvC,SAAI,GAAG,SAAS,CAAC;QACjB,eAAU,GAAG,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;QACpC,YAAO,GAAG,IAAI,CAAC,cAAc,CAAC;QAC9B,WAAM,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"message.controller.js","sourceRoot":"","sources":["../../../../../libs/notification/src/api/message/message.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,2CAA+C;AAC/C,oDAK+B;AAC/B,iEAA4D;AAC5D,iEAA4D;AAC5D,8DAAoD;AACpD,uDAAmD;AAG5C,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,IAAA,gCAAqB,EAI1D,qCAAgB,EAAE,qCAAgB,EAAE,wBAAO,CAAC;IAoB5C,YACmB,cAA8B,EAC5B,eAAgC,EAChC,YAA0B,EAC1B,aAA4B;QAE/C,KAAK,EAAE,CAAC;QALS,mBAAc,GAAd,cAAc,CAAgB;QAC5B,oBAAe,GAAf,eAAe,CAAiB;QAChC,iBAAY,GAAZ,YAAY,CAAc;QAC1B,kBAAa,GAAb,aAAa,CAAe;QAvBvC,SAAI,GAAG,SAAS,CAAC;QACjB,eAAU,GAAG,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;QACpC,YAAO,GAAG,IAAI,CAAC,cAAc,CAAC;QAC9B,WAAM,GAAG,CAAC,EAAE,SAAS,EAAW,EAAE,EAAE,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC;QACrD,iBAAY,GAAG,CAAC,MAAe,EAAE,EAAE,CAAC,MAAM,CAAC;QAC3C,WAAM,GAAG;YACjB,CAAC,yBAAc,CAAC,YAAY,CAAC,EAAE,KAAK,EAAE,OAAY,EAAE,OAAY,EAAE,EAAE;gBAClE,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC;gBAC/B,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC;gBAC5C,uCACK,OAAO,KACV,MAAM,EAAE,IAAI,CAAC,EAAE,EACf,QAAQ,EAAE,MAAM,CAAC,EAAE,EACnB,WAAW,EAAE,SAAS,CAAC,EAAE,IACzB;YACJ,CAAC;SACF,CAAC;QACQ,UAAK,GAAG,EAAE,CAAC;IASrB,CAAC;CACF,CAAA;AAhCY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,mBAAU,EAAC,SAAS,CAAC;qCA0Be,gCAAc;QACX,0BAAe;QAClB,uBAAY;QACX,sBAAa;GA5BtC,iBAAiB,CAgC7B"}
|
|
@@ -17,19 +17,19 @@ let Rule = class Rule extends ntx_core_1.BaseEntity {
|
|
|
17
17
|
};
|
|
18
18
|
exports.Rule = Rule;
|
|
19
19
|
__decorate([
|
|
20
|
-
(0, typeorm_1.Column)('
|
|
20
|
+
(0, typeorm_1.Column)('uuid', { name: 'group' }),
|
|
21
21
|
__metadata("design:type", String)
|
|
22
22
|
], Rule.prototype, "group", void 0);
|
|
23
23
|
__decorate([
|
|
24
|
-
(0, typeorm_1.Column)('
|
|
24
|
+
(0, typeorm_1.Column)('uuid', { name: 'key' }),
|
|
25
25
|
__metadata("design:type", String)
|
|
26
26
|
], Rule.prototype, "key", void 0);
|
|
27
27
|
__decorate([
|
|
28
|
-
(0, typeorm_1.Column)('
|
|
28
|
+
(0, typeorm_1.Column)('jsonb', { name: 'rules' }),
|
|
29
29
|
__metadata("design:type", Object)
|
|
30
30
|
], Rule.prototype, "rules", void 0);
|
|
31
31
|
__decorate([
|
|
32
|
-
(0, typeorm_1.Column)('varchar', { name: 'status', nullable: true
|
|
32
|
+
(0, typeorm_1.Column)('varchar', { name: 'status', nullable: true }),
|
|
33
33
|
__metadata("design:type", String)
|
|
34
34
|
], Rule.prototype, "status", void 0);
|
|
35
35
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule.entity.js","sourceRoot":"","sources":["../../../../../../libs/notification/src/api/rule/entities/rule.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAmD;AACnD,qCAAoD;AACpD,8DAAoD;AAQ7C,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,qBAAU;CAenC,CAAA;AAfY,oBAAI;AAEf;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"rule.entity.js","sourceRoot":"","sources":["../../../../../../libs/notification/src/api/rule/entities/rule.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAmD;AACnD,qCAAoD;AACpD,8DAAoD;AAQ7C,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,qBAAU;CAenC,CAAA;AAfY,oBAAI;AAEf;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;mCACpB;AAGd;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;iCACpB;AAGZ;IADC,IAAA,gBAAM,EAAC,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;mCACxB;AAGX;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oCACtC;AAGhB;IADC,IAAA,mBAAS,EAAC,CAAC,IAAI,EAAE,EAAE,CAAC,gBAAG,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC;;kCAC/B;eAdF,IAAI;IANhB,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE;YACP,SAAS,EAAE,MAAM;SAClB;KACF,CAAC;GACW,IAAI,CAehB"}
|
|
@@ -11,7 +11,8 @@ export declare class RuleController extends RuleController_base {
|
|
|
11
11
|
protected name: string;
|
|
12
12
|
protected searchable: string[];
|
|
13
13
|
protected service: RuleService;
|
|
14
|
-
protected unique: ({ key }: Rule) => {
|
|
14
|
+
protected unique: ({ group, key }: Rule) => {
|
|
15
|
+
group: string;
|
|
15
16
|
key: string;
|
|
16
17
|
}[];
|
|
17
18
|
protected morphRequest: (entity: Rule) => Rule;
|
|
@@ -23,9 +23,9 @@ let RuleController = class RuleController extends (0, ntx_core_1.CrudControllerF
|
|
|
23
23
|
this.languageService = languageService;
|
|
24
24
|
this.mediaService = mediaService;
|
|
25
25
|
this.name = 'rule';
|
|
26
|
-
this.searchable = ['group', '
|
|
26
|
+
this.searchable = ['group', 'key'];
|
|
27
27
|
this.service = this.ruleService;
|
|
28
|
-
this.unique = ({ key }) => [{ key }];
|
|
28
|
+
this.unique = ({ group, key }) => [{ group, key }];
|
|
29
29
|
this.morphRequest = (entity) => entity;
|
|
30
30
|
this.hooks = {};
|
|
31
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule.controller.js","sourceRoot":"","sources":["../../../../../libs/notification/src/api/rule/rule.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,oDAI+B;AAC/B,2DAAsD;AACtD,2DAAsD;AACtD,wDAA8C;AAC9C,iDAA6C;AAGtC,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,IAAA,gCAAqB,EAIvD,+BAAa,EAAE,+BAAa,EAAE,kBAAI,CAAC;IAQnC,YACmB,WAAwB,EACtB,eAAgC,EAChC,YAA0B;QAE7C,KAAK,EAAE,CAAC;QAJS,gBAAW,GAAX,WAAW,CAAa;QACtB,oBAAe,GAAf,eAAe,CAAiB;QAChC,iBAAY,GAAZ,YAAY,CAAc;QAVrC,SAAI,GAAG,MAAM,CAAC;QACd,eAAU,GAAG,CAAC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"rule.controller.js","sourceRoot":"","sources":["../../../../../libs/notification/src/api/rule/rule.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,oDAI+B;AAC/B,2DAAsD;AACtD,2DAAsD;AACtD,wDAA8C;AAC9C,iDAA6C;AAGtC,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,IAAA,gCAAqB,EAIvD,+BAAa,EAAE,+BAAa,EAAE,kBAAI,CAAC;IAQnC,YACmB,WAAwB,EACtB,eAAgC,EAChC,YAA0B;QAE7C,KAAK,EAAE,CAAC;QAJS,gBAAW,GAAX,WAAW,CAAa;QACtB,oBAAe,GAAf,eAAe,CAAiB;QAChC,iBAAY,GAAZ,YAAY,CAAc;QAVrC,SAAI,GAAG,MAAM,CAAC;QACd,eAAU,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QAC9B,YAAO,GAAG,IAAI,CAAC,WAAW,CAAC;QAC3B,WAAM,GAAG,CAAC,EAAE,KAAK,EAAE,GAAG,EAAQ,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC;QACpD,iBAAY,GAAG,CAAC,MAAY,EAAE,EAAE,CAAC,MAAM,CAAC;QACxC,UAAK,GAAG,EAAE,CAAC;IAQrB,CAAC;CACF,CAAA;AAnBY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,mBAAU,EAAC,MAAM,CAAC;qCAce,0BAAW;QACL,0BAAe;QAClB,uBAAY;GAfpC,cAAc,CAmB1B"}
|
|
@@ -17,15 +17,15 @@ let Template = class Template extends ntx_core_1.BaseEntity {
|
|
|
17
17
|
};
|
|
18
18
|
exports.Template = Template;
|
|
19
19
|
__decorate([
|
|
20
|
-
(0, typeorm_1.Column)('
|
|
20
|
+
(0, typeorm_1.Column)('uuid', { name: 'group' }),
|
|
21
21
|
__metadata("design:type", String)
|
|
22
22
|
], Template.prototype, "group", void 0);
|
|
23
23
|
__decorate([
|
|
24
|
-
(0, typeorm_1.Column)('
|
|
24
|
+
(0, typeorm_1.Column)('uuid', { name: 'key' }),
|
|
25
25
|
__metadata("design:type", String)
|
|
26
26
|
], Template.prototype, "key", void 0);
|
|
27
27
|
__decorate([
|
|
28
|
-
(0, typeorm_1.Column)('
|
|
28
|
+
(0, typeorm_1.Column)('text', { name: 'email', nullable: true }),
|
|
29
29
|
__metadata("design:type", String)
|
|
30
30
|
], Template.prototype, "email", void 0);
|
|
31
31
|
__decorate([
|
|
@@ -41,7 +41,7 @@ __decorate([
|
|
|
41
41
|
__metadata("design:type", String)
|
|
42
42
|
], Template.prototype, "mobile", void 0);
|
|
43
43
|
__decorate([
|
|
44
|
-
(0, typeorm_1.Column)('varchar', { name: 'status', nullable: true
|
|
44
|
+
(0, typeorm_1.Column)('varchar', { name: 'status', nullable: true }),
|
|
45
45
|
__metadata("design:type", String)
|
|
46
46
|
], Template.prototype, "status", void 0);
|
|
47
47
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template.entity.js","sourceRoot":"","sources":["../../../../../../libs/notification/src/api/template/entities/template.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAmD;AACnD,qCAAoD;AACpD,8DAAoD;AAQ7C,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,qBAAU;CAwBvC,CAAA;AAxBY,4BAAQ;AAEnB;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"template.entity.js","sourceRoot":"","sources":["../../../../../../libs/notification/src/api/template/entities/template.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAmD;AACnD,qCAAoD;AACpD,8DAAoD;AAQ7C,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,qBAAU;CAwBvC,CAAA;AAxBY,4BAAQ;AAEnB;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;uCACpB;AAGd;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;qCACpB;AAGZ;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACpC;AAGd;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qCACpC;AAGZ;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qCACpC;AAGZ;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCACpC;AAGf;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCACtC;AAGhB;IADC,IAAA,mBAAS,EAAC,CAAC,IAAI,EAAE,EAAE,CAAC,gBAAG,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC;;sCAC/B;mBAvBF,QAAQ;IANpB,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,uBAAuB;QAC7B,OAAO,EAAE;YACP,SAAS,EAAE,MAAM;SAClB;KACF,CAAC;GACW,QAAQ,CAwBpB"}
|
|
@@ -11,7 +11,8 @@ export declare class TemplateController extends TemplateController_base {
|
|
|
11
11
|
protected name: string;
|
|
12
12
|
protected searchable: string[];
|
|
13
13
|
protected service: TemplateService;
|
|
14
|
-
protected unique: ({ key }: Template) => {
|
|
14
|
+
protected unique: ({ group, key }: Template) => {
|
|
15
|
+
group: string;
|
|
15
16
|
key: string;
|
|
16
17
|
}[];
|
|
17
18
|
protected morphRequest: (entity: Template) => Template;
|
|
@@ -23,9 +23,9 @@ let TemplateController = class TemplateController extends (0, ntx_core_1.CrudCon
|
|
|
23
23
|
this.languageService = languageService;
|
|
24
24
|
this.mediaService = mediaService;
|
|
25
25
|
this.name = 'template';
|
|
26
|
-
this.searchable = ['group', '
|
|
26
|
+
this.searchable = ['group', 'key'];
|
|
27
27
|
this.service = this.templateService;
|
|
28
|
-
this.unique = ({ key }) => [{ key }];
|
|
28
|
+
this.unique = ({ group, key }) => [{ group, key }];
|
|
29
29
|
this.morphRequest = (entity) => entity;
|
|
30
30
|
this.hooks = {};
|
|
31
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template.controller.js","sourceRoot":"","sources":["../../../../../libs/notification/src/api/template/template.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,oDAI+B;AAC/B,mEAA8D;AAC9D,mEAA8D;AAC9D,gEAAsD;AACtD,yDAAqD;AAG9C,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,IAAA,gCAAqB,EAI3D,uCAAiB,EAAE,uCAAiB,EAAE,0BAAQ,CAAC;IAQ/C,YACmB,eAAgC,EAC9B,eAAgC,EAChC,YAA0B;QAE7C,KAAK,EAAE,CAAC;QAJS,oBAAe,GAAf,eAAe,CAAiB;QAC9B,oBAAe,GAAf,eAAe,CAAiB;QAChC,iBAAY,GAAZ,YAAY,CAAc;QAVrC,SAAI,GAAG,UAAU,CAAC;QAClB,eAAU,GAAG,CAAC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"template.controller.js","sourceRoot":"","sources":["../../../../../libs/notification/src/api/template/template.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,oDAI+B;AAC/B,mEAA8D;AAC9D,mEAA8D;AAC9D,gEAAsD;AACtD,yDAAqD;AAG9C,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,IAAA,gCAAqB,EAI3D,uCAAiB,EAAE,uCAAiB,EAAE,0BAAQ,CAAC;IAQ/C,YACmB,eAAgC,EAC9B,eAAgC,EAChC,YAA0B;QAE7C,KAAK,EAAE,CAAC;QAJS,oBAAe,GAAf,eAAe,CAAiB;QAC9B,oBAAe,GAAf,eAAe,CAAiB;QAChC,iBAAY,GAAZ,YAAY,CAAc;QAVrC,SAAI,GAAG,UAAU,CAAC;QAClB,eAAU,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QAC9B,YAAO,GAAG,IAAI,CAAC,eAAe,CAAC;QAC/B,WAAM,GAAG,CAAC,EAAE,KAAK,EAAE,GAAG,EAAY,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC;QACxD,iBAAY,GAAG,CAAC,MAAgB,EAAE,EAAE,CAAC,MAAM,CAAC;QAC5C,UAAK,GAAG,EAAE,CAAC;IAQrB,CAAC;CACF,CAAA;AAnBY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,mBAAU,EAAC,UAAU,CAAC;qCAce,kCAAe;QACb,0BAAe;QAClB,uBAAY;GAfpC,kBAAkB,CAmB9B"}
|
|
@@ -4,56 +4,57 @@ exports.NotificationLogs1749979429709 = void 0;
|
|
|
4
4
|
class NotificationLogs1749979429709 {
|
|
5
5
|
async up(queryRunner) {
|
|
6
6
|
await queryRunner.query(`
|
|
7
|
-
CREATE TABLE
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
PRIMARY KEY (
|
|
34
|
-
|
|
35
|
-
KEY \`IDX_10f471ac246f472eacfbc7250a\` (\`updatedAt\`),
|
|
36
|
-
KEY \`IDX_73c7771d85758b2191dc22efc9\` (\`deletedAt\`),
|
|
37
|
-
KEY \`IDX_4b5b57a99f775ebc02c8937af9\` (\`reference\`),
|
|
38
|
-
KEY \`IDX_3074703f4d647025679e026f13\` (\`userId\`),
|
|
39
|
-
KEY \`IDX_5d6347a3533870727fb98739af\` (\`clientId\`),
|
|
40
|
-
KEY \`IDX_da209cf6fb45b0a19b1aa1f691\` (\`workspaceId\`),
|
|
41
|
-
KEY \`IDX_b33a136722422e88874bbbbc2b\` (\`readAt\`),
|
|
42
|
-
KEY \`IDX_90eb6c91b1031d9ad2a2874d89\` (\`publishAt\`),
|
|
43
|
-
KEY \`IDX_4a8eae4bab9d495fd96a6b9169\` (\`expireAt\`),
|
|
44
|
-
KEY \`IDX_216192804513e9a63d9d9983d9\` (\`priority\`),
|
|
45
|
-
KEY \`IDX_11f16b4948f842d059d31fecee\` (\`theme\`),
|
|
46
|
-
KEY \`IDX_9affc6e72d1d42b6aef9cb9a1c\` (\`scope\`),
|
|
47
|
-
KEY \`IDX_b44652502d7bf67a4fa2ef967b\` (\`position\`),
|
|
48
|
-
KEY \`IDX_0018e942322808d01f8df7332b\` (\`status\`),
|
|
49
|
-
KEY \`IDX_4a3995c98607affd3d60546a2d\` (\`type\`),
|
|
50
|
-
KEY \`FK_8667360d0b709515b1e1d57f3ea\` (\`ruleId\`)
|
|
7
|
+
CREATE TABLE "NotificationLogs" (
|
|
8
|
+
"id" uuid NOT NULL,
|
|
9
|
+
"createdAt" timestamp(6) DEFAULT NULL,
|
|
10
|
+
"updatedAt" timestamp(6) DEFAULT NULL,
|
|
11
|
+
"deletedAt" timestamp(6) DEFAULT NULL,
|
|
12
|
+
"reference" varchar(255) NOT NULL,
|
|
13
|
+
"userId" uuid NOT NULL,
|
|
14
|
+
"clientId" varchar(255) DEFAULT NULL,
|
|
15
|
+
"workspaceId" uuid DEFAULT NULL,
|
|
16
|
+
"subject" varchar(255) NOT NULL,
|
|
17
|
+
"channels" jsonb NOT NULL,
|
|
18
|
+
"message" jsonb DEFAULT NULL,
|
|
19
|
+
"readAt" timestamp(6) DEFAULT NULL,
|
|
20
|
+
"publishAt" timestamp(6) DEFAULT NULL,
|
|
21
|
+
"expireAt" timestamp(6) DEFAULT NULL,
|
|
22
|
+
"priority" varchar(255) DEFAULT 'medium',
|
|
23
|
+
"theme" varchar(255) DEFAULT 'info',
|
|
24
|
+
"scope" varchar(255) DEFAULT NULL,
|
|
25
|
+
"position" varchar(255) DEFAULT 'bottom right',
|
|
26
|
+
"status" varchar(255) DEFAULT 'new',
|
|
27
|
+
"key" varchar(255) NOT NULL,
|
|
28
|
+
"data" jsonb DEFAULT NULL,
|
|
29
|
+
"meta" jsonb DEFAULT NULL,
|
|
30
|
+
"templateId" uuid DEFAULT NULL,
|
|
31
|
+
"ruleId" uuid DEFAULT NULL,
|
|
32
|
+
"type" varchar(255) NOT NULL,
|
|
33
|
+
PRIMARY KEY ("id")
|
|
34
|
+
|
|
51
35
|
);
|
|
52
36
|
`);
|
|
37
|
+
await queryRunner.query(`CREATE INDEX "IDX_0af059dcccac9abeccf343c60e_NotificationLogs" ON "NotificationLogs" ("createdAt")`);
|
|
38
|
+
await queryRunner.query(`CREATE INDEX "IDX_10f471ac246f472eacfbc7250a_NotificationLogs" ON "NotificationLogs" ("updatedAt")`);
|
|
39
|
+
await queryRunner.query(`CREATE INDEX "IDX_73c7771d85758b2191dc22efc9_NotificationLogs" ON "NotificationLogs" ("deletedAt")`);
|
|
40
|
+
await queryRunner.query(`CREATE INDEX "IDX_4b5b57a99f775ebc02c8937af9_NotificationLogs" ON "NotificationLogs" ("reference")`);
|
|
41
|
+
await queryRunner.query(`CREATE INDEX "IDX_3074703f4d647025679e026f13_NotificationLogs" ON "NotificationLogs" ("userId")`);
|
|
42
|
+
await queryRunner.query(`CREATE INDEX "IDX_5d6347a3533870727fb98739af_NotificationLogs" ON "NotificationLogs" ("clientId")`);
|
|
43
|
+
await queryRunner.query(`CREATE INDEX "IDX_da209cf6fb45b0a19b1aa1f691_NotificationLogs" ON "NotificationLogs" ("workspaceId")`);
|
|
44
|
+
await queryRunner.query(`CREATE INDEX "IDX_b33a136722422e88874bbbbc2b_NotificationLogs" ON "NotificationLogs" ("readAt")`);
|
|
45
|
+
await queryRunner.query(`CREATE INDEX "IDX_90eb6c91b1031d9ad2a2874d89_NotificationLogs" ON "NotificationLogs" ("publishAt")`);
|
|
46
|
+
await queryRunner.query(`CREATE INDEX "IDX_4a8eae4bab9d495fd96a6b9169_NotificationLogs" ON "NotificationLogs" ("expireAt")`);
|
|
47
|
+
await queryRunner.query(`CREATE INDEX "IDX_216192804513e9a63d9d9983d9_NotificationLogs" ON "NotificationLogs" ("priority")`);
|
|
48
|
+
await queryRunner.query(`CREATE INDEX "IDX_11f16b4948f842d059d31fecee_NotificationLogs" ON "NotificationLogs" ("theme")`);
|
|
49
|
+
await queryRunner.query(`CREATE INDEX "IDX_9affc6e72d1d42b6aef9cb9a1c_NotificationLogs" ON "NotificationLogs" ("scope")`);
|
|
50
|
+
await queryRunner.query(`CREATE INDEX "IDX_b44652502d7bf67a4fa2ef967b_NotificationLogs" ON "NotificationLogs" ("position")`);
|
|
51
|
+
await queryRunner.query(`CREATE INDEX "IDX_0018e942322808d01f8df7332b_NotificationLogs" ON "NotificationLogs" ("status")`);
|
|
52
|
+
await queryRunner.query(`CREATE INDEX "IDX_4a3995c98607affd3d60546a2d_NotificationLogs" ON "NotificationLogs" ("type")`);
|
|
53
|
+
await queryRunner.query(`CREATE INDEX "FK_8667360d0b709515b1e1d57f3ea_NotificationLogs" ON "NotificationLogs" ("ruleId")`);
|
|
53
54
|
}
|
|
54
55
|
async down(queryRunner) {
|
|
55
56
|
await queryRunner.query(`
|
|
56
|
-
DROP TABLE IF EXISTS
|
|
57
|
+
DROP TABLE IF EXISTS "NotificationLogs";
|
|
57
58
|
`);
|
|
58
59
|
}
|
|
59
60
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1749979429709-NotificationLogs.js","sourceRoot":"","sources":["../../../../libs/notification/src/migrations/1749979429709-NotificationLogs.ts"],"names":[],"mappings":";;;AAEA,MAAa,6BAA6B;IACjC,KAAK,CAAC,EAAE,CAAC,WAAwB;QACtC,MAAM,WAAW,CAAC,KAAK,CAAC
|
|
1
|
+
{"version":3,"file":"1749979429709-NotificationLogs.js","sourceRoot":"","sources":["../../../../libs/notification/src/migrations/1749979429709-NotificationLogs.ts"],"names":[],"mappings":";;;AAEA,MAAa,6BAA6B;IACjC,KAAK,CAAC,EAAE,CAAC,WAAwB;QACtC,MAAM,WAAW,CAAC,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8BvB,CAAC,CAAC;QACH,MAAM,WAAW,CAAC,KAAK,CACrB,oGAAoG,CACrG,CAAC;QACF,MAAM,WAAW,CAAC,KAAK,CACrB,oGAAoG,CACrG,CAAC;QACF,MAAM,WAAW,CAAC,KAAK,CACrB,oGAAoG,CACrG,CAAC;QACF,MAAM,WAAW,CAAC,KAAK,CACrB,oGAAoG,CACrG,CAAC;QACF,MAAM,WAAW,CAAC,KAAK,CACrB,iGAAiG,CAClG,CAAC;QACF,MAAM,WAAW,CAAC,KAAK,CACrB,mGAAmG,CACpG,CAAC;QACF,MAAM,WAAW,CAAC,KAAK,CACrB,sGAAsG,CACvG,CAAC;QACF,MAAM,WAAW,CAAC,KAAK,CACrB,iGAAiG,CAClG,CAAC;QACF,MAAM,WAAW,CAAC,KAAK,CACrB,oGAAoG,CACrG,CAAC;QACF,MAAM,WAAW,CAAC,KAAK,CACrB,mGAAmG,CACpG,CAAC;QACF,MAAM,WAAW,CAAC,KAAK,CACrB,mGAAmG,CACpG,CAAC;QACF,MAAM,WAAW,CAAC,KAAK,CACrB,gGAAgG,CACjG,CAAC;QACF,MAAM,WAAW,CAAC,KAAK,CACrB,gGAAgG,CACjG,CAAC;QACF,MAAM,WAAW,CAAC,KAAK,CACrB,mGAAmG,CACpG,CAAC;QACF,MAAM,WAAW,CAAC,KAAK,CACrB,iGAAiG,CA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