c2-climbing-x 1.0.95 → 1.0.96
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.
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Schema, Types } from "mongoose";
|
|
2
2
|
import { IAccount } from "./Account";
|
|
3
3
|
import { IAdminNotification } from "./AdminNotification";
|
|
4
|
-
export declare enum
|
|
4
|
+
export declare enum AccountNotificationStatus {
|
|
5
5
|
CREATED = "CREATED",
|
|
6
6
|
SENT = "SENT",
|
|
7
7
|
DELIVERED = "DELIVERED",
|
|
8
8
|
READ = "READ"
|
|
9
9
|
}
|
|
10
|
-
export interface
|
|
10
|
+
export interface IAccountNotification {
|
|
11
11
|
account: Types.ObjectId | IAccount;
|
|
12
12
|
adminNotification: Types.ObjectId | IAdminNotification;
|
|
13
|
-
status:
|
|
13
|
+
status: AccountNotificationStatus;
|
|
14
14
|
push: boolean;
|
|
15
15
|
title: string;
|
|
16
16
|
message: string;
|
|
@@ -19,7 +19,7 @@ export interface IAccountPushNotification {
|
|
|
19
19
|
createdAtDateTime: Date;
|
|
20
20
|
updatedAtDateTime: Date;
|
|
21
21
|
}
|
|
22
|
-
export declare const
|
|
22
|
+
export declare const AccountNotificationSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
23
23
|
timestamps: {
|
|
24
24
|
createdAt: string;
|
|
25
25
|
updatedAt: string;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.AccountNotificationSchema = exports.AccountNotificationStatus = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
|
-
var
|
|
6
|
-
(function (
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
})(
|
|
12
|
-
exports.
|
|
5
|
+
var AccountNotificationStatus;
|
|
6
|
+
(function (AccountNotificationStatus) {
|
|
7
|
+
AccountNotificationStatus["CREATED"] = "CREATED";
|
|
8
|
+
AccountNotificationStatus["SENT"] = "SENT";
|
|
9
|
+
AccountNotificationStatus["DELIVERED"] = "DELIVERED";
|
|
10
|
+
AccountNotificationStatus["READ"] = "READ";
|
|
11
|
+
})(AccountNotificationStatus || (exports.AccountNotificationStatus = AccountNotificationStatus = {}));
|
|
12
|
+
exports.AccountNotificationSchema = new mongoose_1.Schema({
|
|
13
13
|
account: { type: mongoose_1.Types.ObjectId, ref: "account", required: true },
|
|
14
14
|
adminNotification: { type: mongoose_1.Types.ObjectId, ref: "admin-notification", required: true },
|
|
15
|
-
status: { type: String, enum:
|
|
15
|
+
status: { type: String, enum: AccountNotificationStatus, required: true, default: AccountNotificationStatus.CREATED },
|
|
16
16
|
push: { type: Boolean, required: true, default: false },
|
|
17
17
|
title: { type: String, required: true },
|
|
18
18
|
message: { type: String, required: true },
|
package/package.json
CHANGED