@flusys/nestjs-notification 5.0.0 → 5.0.3
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.
|
@@ -8,9 +8,10 @@ Object.defineProperty(exports, "Notification", {
|
|
|
8
8
|
return Notification;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
+
const _nestjsshared = require("@flusys/nestjs-shared");
|
|
11
12
|
const _entities = require("@flusys/nestjs-shared/entities");
|
|
12
|
-
const _typeorm = require("typeorm");
|
|
13
13
|
const _enums = require("@flusys/nestjs-shared/enums");
|
|
14
|
+
const _typeorm = require("typeorm");
|
|
14
15
|
function _define_property(obj, key, value) {
|
|
15
16
|
if (key in obj) {
|
|
16
17
|
Object.defineProperty(obj, key, {
|
|
@@ -73,7 +74,7 @@ _ts_decorate([
|
|
|
73
74
|
], Notification.prototype, "message", void 0);
|
|
74
75
|
_ts_decorate([
|
|
75
76
|
(0, _typeorm.Column)({
|
|
76
|
-
type:
|
|
77
|
+
type: (0, _nestjsshared.getJsonColumnType)(),
|
|
77
78
|
nullable: true
|
|
78
79
|
}),
|
|
79
80
|
_ts_metadata("design:type", Object)
|
|
@@ -20,9 +20,10 @@ function _ts_decorate(decorators, target, key, desc) {
|
|
|
20
20
|
function _ts_metadata(k, v) {
|
|
21
21
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
22
22
|
}
|
|
23
|
+
import { getJsonColumnType } from '@flusys/nestjs-shared';
|
|
23
24
|
import { Identity } from '@flusys/nestjs-shared/entities';
|
|
24
|
-
import { Column, Entity, Index } from 'typeorm';
|
|
25
25
|
import { NotificationType } from '@flusys/nestjs-shared/enums';
|
|
26
|
+
import { Column, Entity, Index } from 'typeorm';
|
|
26
27
|
export class Notification extends Identity {
|
|
27
28
|
constructor(...args){
|
|
28
29
|
super(...args), _define_property(this, "userId", void 0), _define_property(this, "type", void 0), _define_property(this, "title", void 0), _define_property(this, "message", void 0), _define_property(this, "data", void 0), _define_property(this, "isRead", void 0), _define_property(this, "readAt", void 0);
|
|
@@ -63,7 +64,7 @@ _ts_decorate([
|
|
|
63
64
|
], Notification.prototype, "message", void 0);
|
|
64
65
|
_ts_decorate([
|
|
65
66
|
Column({
|
|
66
|
-
type:
|
|
67
|
+
type: getJsonColumnType(),
|
|
67
68
|
nullable: true
|
|
68
69
|
}),
|
|
69
70
|
_ts_metadata("design:type", Object)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flusys/nestjs-notification",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.3",
|
|
4
4
|
"description": "Notification module with real-time Socket.IO support",
|
|
5
5
|
"main": "cjs/index.js",
|
|
6
6
|
"module": "fesm/index.js",
|
|
@@ -92,8 +92,8 @@
|
|
|
92
92
|
"express": "^4.18.0"
|
|
93
93
|
},
|
|
94
94
|
"dependencies": {
|
|
95
|
-
"@flusys/nestjs-core": "5.0.
|
|
96
|
-
"@flusys/nestjs-shared": "5.0.
|
|
95
|
+
"@flusys/nestjs-core": "5.0.3",
|
|
96
|
+
"@flusys/nestjs-shared": "5.0.3",
|
|
97
97
|
"jsonwebtoken": "^9.0.0"
|
|
98
98
|
}
|
|
99
99
|
}
|