@natrave/shared-entities 1.5.4 → 1.5.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/dist/notifications/enums/index.d.ts +1 -0
- package/dist/notifications/enums/index.d.ts.map +1 -1
- package/dist/notifications/enums/index.js +2 -0
- package/dist/notifications/enums/notification-category.enum.d.ts +7 -0
- package/dist/notifications/enums/notification-category.enum.d.ts.map +1 -0
- package/dist/notifications/enums/notification-category.enum.js +10 -0
- package/dist/notifications/notifications/notification.entity.d.ts +2 -1
- package/dist/notifications/notifications/notification.entity.d.ts.map +1 -1
- package/dist/notifications/notifications/notification.entity.js +9 -1
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { NotificationCategory } from './notification-category.enum';
|
|
1
2
|
export { NotificationChannel } from './notification-channel.enum';
|
|
2
3
|
export { NotificationDeliveryStatus } from './notification-delivery-status.enum';
|
|
3
4
|
export { NotificationStatus } from './notification-status.enum';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/notifications/enums/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/notifications/enums/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { NotificationCategory } from "./notification-category.enum.js";
|
|
1
2
|
import { NotificationChannel } from "./notification-channel.enum.js";
|
|
2
3
|
import { NotificationDeliveryStatus } from "./notification-delivery-status.enum.js";
|
|
3
4
|
import { NotificationStatus } from "./notification-status.enum.js";
|
|
4
5
|
export {
|
|
6
|
+
NotificationCategory,
|
|
5
7
|
NotificationChannel,
|
|
6
8
|
NotificationDeliveryStatus,
|
|
7
9
|
NotificationStatus
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-category.enum.d.ts","sourceRoot":"","sources":["../../../src/notifications/enums/notification-category.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,oBAAoB;IAC9B,UAAU,eAAe;IACzB,IAAI,SAAS;IACb,UAAU,eAAe;IACzB,cAAc,mBAAmB;CAClC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
var NotificationCategory = /* @__PURE__ */ ((NotificationCategory2) => {
|
|
2
|
+
NotificationCategory2["TOURNAMENT"] = "tournament";
|
|
3
|
+
NotificationCategory2["TEAM"] = "team";
|
|
4
|
+
NotificationCategory2["APP_UPDATE"] = "app_update";
|
|
5
|
+
NotificationCategory2["UPCOMING_EVENT"] = "upcoming_event";
|
|
6
|
+
return NotificationCategory2;
|
|
7
|
+
})(NotificationCategory || {});
|
|
8
|
+
export {
|
|
9
|
+
NotificationCategory
|
|
10
|
+
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { User } from '../../app-auth';
|
|
2
|
-
import { NotificationStatus } from '../enums';
|
|
2
|
+
import { NotificationCategory, NotificationStatus } from '../enums';
|
|
3
3
|
import { NotificationDelivery } from '../notification-deliveries';
|
|
4
4
|
import { NotificationDispatchLog } from '../notification-dispatch-logs';
|
|
5
5
|
export declare class Notification {
|
|
6
6
|
id: string;
|
|
7
7
|
userId: string;
|
|
8
8
|
type: string;
|
|
9
|
+
category: NotificationCategory;
|
|
9
10
|
title: string;
|
|
10
11
|
body: string;
|
|
11
12
|
payload: Record<string, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.entity.d.ts","sourceRoot":"","sources":["../../../src/notifications/notifications/notification.entity.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"notification.entity.d.ts","sourceRoot":"","sources":["../../../src/notifications/notifications/notification.entity.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAExE,qBAYa,YAAY;IAIvB,EAAE,EAAE,MAAM,CAAC;IAOX,MAAM,EAAE,MAAM,CAAC;IAOf,IAAI,EAAE,MAAM,CAAC;IAQb,QAAQ,EAAE,oBAAoB,CAAC;IAO/B,KAAK,EAAE,MAAM,CAAC;IAMd,IAAI,EAAE,MAAM,CAAC;IAOb,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IASjC,MAAM,EAAE,kBAAkB,CAAC;IAS3B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAQzB,WAAW,EAAE,IAAI,GAAG,IAAI,CAAC;IAQzB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IAQvB,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;IAOpB,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IAIvB,IAAI,EAAE,IAAI,CAAC;IAGX,UAAU,EAAE,oBAAoB,EAAE,CAAC;IAGnC,YAAY,EAAE,uBAAuB,EAAE,CAAC;CACzC"}
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
UpdateDateColumn
|
|
22
22
|
} from "typeorm";
|
|
23
23
|
import { User } from "../../app-auth/index.js";
|
|
24
|
-
import { NotificationStatus } from "../enums/index.js";
|
|
24
|
+
import { NotificationCategory, NotificationStatus } from "../enums/index.js";
|
|
25
25
|
import { NotificationDelivery } from "../notification-deliveries/index.js";
|
|
26
26
|
import { NotificationDispatchLog } from "../notification-dispatch-logs/index.js";
|
|
27
27
|
let Notification = class {
|
|
@@ -45,6 +45,14 @@ __decorateClass([
|
|
|
45
45
|
comment: "Tipo funcional da notifica\xE7\xE3o."
|
|
46
46
|
})
|
|
47
47
|
], Notification.prototype, "type", 2);
|
|
48
|
+
__decorateClass([
|
|
49
|
+
Column({
|
|
50
|
+
type: "enum",
|
|
51
|
+
enum: NotificationCategory,
|
|
52
|
+
enumName: "NotificationCategory",
|
|
53
|
+
comment: "Categoria funcional da notifica\xE7\xE3o."
|
|
54
|
+
})
|
|
55
|
+
], Notification.prototype, "category", 2);
|
|
48
56
|
__decorateClass([
|
|
49
57
|
Column({
|
|
50
58
|
type: "varchar",
|