c2-climbing-x 1.0.94 → 1.0.95
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.
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { Schema, Types } from "mongoose";
|
|
2
|
+
import { IAccount } from "./Account";
|
|
3
|
+
import { IAdminNotification } from "./AdminNotification";
|
|
4
|
+
export declare enum AccountPushNotificationStatus {
|
|
5
|
+
CREATED = "CREATED",
|
|
6
|
+
SENT = "SENT",
|
|
7
|
+
DELIVERED = "DELIVERED",
|
|
8
|
+
READ = "READ"
|
|
9
|
+
}
|
|
10
|
+
export interface IAccountPushNotification {
|
|
11
|
+
account: Types.ObjectId | IAccount;
|
|
12
|
+
adminNotification: Types.ObjectId | IAdminNotification;
|
|
13
|
+
status: AccountPushNotificationStatus;
|
|
14
|
+
push: boolean;
|
|
15
|
+
title: string;
|
|
16
|
+
message: string;
|
|
17
|
+
redirect: string;
|
|
18
|
+
metadata: Map<string, string>;
|
|
19
|
+
createdAtDateTime: Date;
|
|
20
|
+
updatedAtDateTime: Date;
|
|
21
|
+
}
|
|
22
|
+
export declare const AccountPushNotificationSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
23
|
+
timestamps: {
|
|
24
|
+
createdAt: string;
|
|
25
|
+
updatedAt: string;
|
|
26
|
+
};
|
|
27
|
+
}, {
|
|
28
|
+
push: boolean;
|
|
29
|
+
createdAtDateTime: Date;
|
|
30
|
+
updatedAtDateTime: Date;
|
|
31
|
+
message: string;
|
|
32
|
+
account: {
|
|
33
|
+
prototype?: Types.ObjectId | undefined;
|
|
34
|
+
cacheHexString?: unknown;
|
|
35
|
+
generate?: {} | undefined;
|
|
36
|
+
createFromTime?: {} | undefined;
|
|
37
|
+
createFromHexString?: {} | undefined;
|
|
38
|
+
createFromBase64?: {} | undefined;
|
|
39
|
+
isValid?: {} | undefined;
|
|
40
|
+
};
|
|
41
|
+
status: string;
|
|
42
|
+
title: string;
|
|
43
|
+
adminNotification: {
|
|
44
|
+
prototype?: Types.ObjectId | undefined;
|
|
45
|
+
cacheHexString?: unknown;
|
|
46
|
+
generate?: {} | undefined;
|
|
47
|
+
createFromTime?: {} | undefined;
|
|
48
|
+
createFromHexString?: {} | undefined;
|
|
49
|
+
createFromBase64?: {} | undefined;
|
|
50
|
+
isValid?: {} | undefined;
|
|
51
|
+
};
|
|
52
|
+
redirect?: string | undefined;
|
|
53
|
+
metadata?: Map<string, string> | undefined;
|
|
54
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
55
|
+
push: boolean;
|
|
56
|
+
createdAtDateTime: Date;
|
|
57
|
+
updatedAtDateTime: Date;
|
|
58
|
+
message: string;
|
|
59
|
+
account: {
|
|
60
|
+
prototype?: Types.ObjectId | undefined;
|
|
61
|
+
cacheHexString?: unknown;
|
|
62
|
+
generate?: {} | undefined;
|
|
63
|
+
createFromTime?: {} | undefined;
|
|
64
|
+
createFromHexString?: {} | undefined;
|
|
65
|
+
createFromBase64?: {} | undefined;
|
|
66
|
+
isValid?: {} | undefined;
|
|
67
|
+
};
|
|
68
|
+
status: string;
|
|
69
|
+
title: string;
|
|
70
|
+
adminNotification: {
|
|
71
|
+
prototype?: Types.ObjectId | undefined;
|
|
72
|
+
cacheHexString?: unknown;
|
|
73
|
+
generate?: {} | undefined;
|
|
74
|
+
createFromTime?: {} | undefined;
|
|
75
|
+
createFromHexString?: {} | undefined;
|
|
76
|
+
createFromBase64?: {} | undefined;
|
|
77
|
+
isValid?: {} | undefined;
|
|
78
|
+
};
|
|
79
|
+
redirect?: string | undefined;
|
|
80
|
+
metadata?: Map<string, string> | undefined;
|
|
81
|
+
}>> & import("mongoose").FlatRecord<{
|
|
82
|
+
push: boolean;
|
|
83
|
+
createdAtDateTime: Date;
|
|
84
|
+
updatedAtDateTime: Date;
|
|
85
|
+
message: string;
|
|
86
|
+
account: {
|
|
87
|
+
prototype?: Types.ObjectId | undefined;
|
|
88
|
+
cacheHexString?: unknown;
|
|
89
|
+
generate?: {} | undefined;
|
|
90
|
+
createFromTime?: {} | undefined;
|
|
91
|
+
createFromHexString?: {} | undefined;
|
|
92
|
+
createFromBase64?: {} | undefined;
|
|
93
|
+
isValid?: {} | undefined;
|
|
94
|
+
};
|
|
95
|
+
status: string;
|
|
96
|
+
title: string;
|
|
97
|
+
adminNotification: {
|
|
98
|
+
prototype?: Types.ObjectId | undefined;
|
|
99
|
+
cacheHexString?: unknown;
|
|
100
|
+
generate?: {} | undefined;
|
|
101
|
+
createFromTime?: {} | undefined;
|
|
102
|
+
createFromHexString?: {} | undefined;
|
|
103
|
+
createFromBase64?: {} | undefined;
|
|
104
|
+
isValid?: {} | undefined;
|
|
105
|
+
};
|
|
106
|
+
redirect?: string | undefined;
|
|
107
|
+
metadata?: Map<string, string> | undefined;
|
|
108
|
+
}> & {
|
|
109
|
+
_id: Types.ObjectId;
|
|
110
|
+
}>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AccountPushNotificationSchema = exports.AccountPushNotificationStatus = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
var AccountPushNotificationStatus;
|
|
6
|
+
(function (AccountPushNotificationStatus) {
|
|
7
|
+
AccountPushNotificationStatus["CREATED"] = "CREATED";
|
|
8
|
+
AccountPushNotificationStatus["SENT"] = "SENT";
|
|
9
|
+
AccountPushNotificationStatus["DELIVERED"] = "DELIVERED";
|
|
10
|
+
AccountPushNotificationStatus["READ"] = "READ";
|
|
11
|
+
})(AccountPushNotificationStatus || (exports.AccountPushNotificationStatus = AccountPushNotificationStatus = {}));
|
|
12
|
+
exports.AccountPushNotificationSchema = new mongoose_1.Schema({
|
|
13
|
+
account: { type: mongoose_1.Types.ObjectId, ref: "account", required: true },
|
|
14
|
+
adminNotification: { type: mongoose_1.Types.ObjectId, ref: "admin-notification", required: true },
|
|
15
|
+
status: { type: String, enum: AccountPushNotificationStatus, required: true, default: AccountPushNotificationStatus.CREATED },
|
|
16
|
+
push: { type: Boolean, required: true, default: false },
|
|
17
|
+
title: { type: String, required: true },
|
|
18
|
+
message: { type: String, required: true },
|
|
19
|
+
redirect: { type: String, required: false },
|
|
20
|
+
metadata: { type: Map, of: String, required: false },
|
|
21
|
+
createdAtDateTime: { type: Date, required: true },
|
|
22
|
+
updatedAtDateTime: { type: Date, required: true }
|
|
23
|
+
}, {
|
|
24
|
+
timestamps: { createdAt: "createdAtDateTime", updatedAt: "updatedAtDateTime" }
|
|
25
|
+
});
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { Schema, Types } from "mongoose";
|
|
2
|
+
import { IAccount } from "./Account";
|
|
3
|
+
export declare enum AdminNotificationStatus {
|
|
4
|
+
DRAFT = "DRAFT",
|
|
5
|
+
SCHEDULED = "SCHEDULED",
|
|
6
|
+
SENT = "SENT",
|
|
7
|
+
FAILED = "FAILED",
|
|
8
|
+
CANCELLED = "CANCELLED"
|
|
9
|
+
}
|
|
10
|
+
export interface IAdminNotification {
|
|
11
|
+
title: string;
|
|
12
|
+
message: string;
|
|
13
|
+
redirect: string;
|
|
14
|
+
metadata: Map<string, string>;
|
|
15
|
+
destinations: Types.ObjectId[] | IAccount[];
|
|
16
|
+
sentAtDateTime: Date;
|
|
17
|
+
status: AdminNotificationStatus;
|
|
18
|
+
push: boolean;
|
|
19
|
+
createdAtDateTime: Date;
|
|
20
|
+
updatedAtDateTime: Date;
|
|
21
|
+
}
|
|
22
|
+
export declare const AdminNotificationSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
23
|
+
timestamps: {
|
|
24
|
+
createdAt: string;
|
|
25
|
+
updatedAt: string;
|
|
26
|
+
};
|
|
27
|
+
}, {
|
|
28
|
+
push: boolean;
|
|
29
|
+
createdAtDateTime: Date;
|
|
30
|
+
updatedAtDateTime: Date;
|
|
31
|
+
message: string;
|
|
32
|
+
status: string;
|
|
33
|
+
title: string;
|
|
34
|
+
redirect?: string | undefined;
|
|
35
|
+
metadata?: Map<string, string> | undefined;
|
|
36
|
+
destinations?: {
|
|
37
|
+
prototype?: Types.ObjectId | undefined;
|
|
38
|
+
cacheHexString?: unknown;
|
|
39
|
+
generate?: {} | undefined;
|
|
40
|
+
createFromTime?: {} | undefined;
|
|
41
|
+
createFromHexString?: {} | undefined;
|
|
42
|
+
createFromBase64?: {} | undefined;
|
|
43
|
+
isValid?: {} | undefined;
|
|
44
|
+
}[] | undefined;
|
|
45
|
+
sentAtDateTime?: Date | undefined;
|
|
46
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
47
|
+
push: boolean;
|
|
48
|
+
createdAtDateTime: Date;
|
|
49
|
+
updatedAtDateTime: Date;
|
|
50
|
+
message: string;
|
|
51
|
+
status: string;
|
|
52
|
+
title: string;
|
|
53
|
+
redirect?: string | undefined;
|
|
54
|
+
metadata?: Map<string, string> | undefined;
|
|
55
|
+
destinations?: {
|
|
56
|
+
prototype?: Types.ObjectId | undefined;
|
|
57
|
+
cacheHexString?: unknown;
|
|
58
|
+
generate?: {} | undefined;
|
|
59
|
+
createFromTime?: {} | undefined;
|
|
60
|
+
createFromHexString?: {} | undefined;
|
|
61
|
+
createFromBase64?: {} | undefined;
|
|
62
|
+
isValid?: {} | undefined;
|
|
63
|
+
}[] | undefined;
|
|
64
|
+
sentAtDateTime?: Date | undefined;
|
|
65
|
+
}>> & import("mongoose").FlatRecord<{
|
|
66
|
+
push: boolean;
|
|
67
|
+
createdAtDateTime: Date;
|
|
68
|
+
updatedAtDateTime: Date;
|
|
69
|
+
message: string;
|
|
70
|
+
status: string;
|
|
71
|
+
title: string;
|
|
72
|
+
redirect?: string | undefined;
|
|
73
|
+
metadata?: Map<string, string> | undefined;
|
|
74
|
+
destinations?: {
|
|
75
|
+
prototype?: Types.ObjectId | undefined;
|
|
76
|
+
cacheHexString?: unknown;
|
|
77
|
+
generate?: {} | undefined;
|
|
78
|
+
createFromTime?: {} | undefined;
|
|
79
|
+
createFromHexString?: {} | undefined;
|
|
80
|
+
createFromBase64?: {} | undefined;
|
|
81
|
+
isValid?: {} | undefined;
|
|
82
|
+
}[] | undefined;
|
|
83
|
+
sentAtDateTime?: Date | undefined;
|
|
84
|
+
}> & {
|
|
85
|
+
_id: Types.ObjectId;
|
|
86
|
+
}>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminNotificationSchema = exports.AdminNotificationStatus = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
var AdminNotificationStatus;
|
|
6
|
+
(function (AdminNotificationStatus) {
|
|
7
|
+
AdminNotificationStatus["DRAFT"] = "DRAFT";
|
|
8
|
+
AdminNotificationStatus["SCHEDULED"] = "SCHEDULED";
|
|
9
|
+
AdminNotificationStatus["SENT"] = "SENT";
|
|
10
|
+
AdminNotificationStatus["FAILED"] = "FAILED";
|
|
11
|
+
AdminNotificationStatus["CANCELLED"] = "CANCELLED";
|
|
12
|
+
})(AdminNotificationStatus || (exports.AdminNotificationStatus = AdminNotificationStatus = {}));
|
|
13
|
+
exports.AdminNotificationSchema = new mongoose_1.Schema({
|
|
14
|
+
title: { type: String, required: true },
|
|
15
|
+
message: { type: String, required: true },
|
|
16
|
+
redirect: { type: String, required: false },
|
|
17
|
+
metadata: { type: Map, of: String, required: false },
|
|
18
|
+
destinations: { type: [mongoose_1.Types.ObjectId], required: false },
|
|
19
|
+
sentAtDateTime: { type: Date, required: false },
|
|
20
|
+
status: { type: String, enum: AdminNotificationStatus, required: true, default: AdminNotificationStatus.DRAFT },
|
|
21
|
+
push: { type: Boolean, required: true, default: false },
|
|
22
|
+
createdAtDateTime: { type: Date, required: true },
|
|
23
|
+
updatedAtDateTime: { type: Date, required: true }
|
|
24
|
+
}, {
|
|
25
|
+
timestamps: { createdAt: "createdAtDateTime", updatedAt: "updatedAtDateTime" }
|
|
26
|
+
});
|
package/dist/models/index.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ export * from "./ChampionshipMatch";
|
|
|
8
8
|
export * from "./ChampionshipPhase";
|
|
9
9
|
export * from "./ChampionshipRound";
|
|
10
10
|
export * from "./File";
|
|
11
|
+
export * from "./AdminNotification";
|
|
12
|
+
export * from "./AccountNotification";
|
|
11
13
|
export * from "./Team";
|
|
12
14
|
export * from "./Ticket";
|
|
13
15
|
export * from "./TicketGuess";
|
package/dist/models/index.js
CHANGED
|
@@ -24,6 +24,8 @@ __exportStar(require("./ChampionshipMatch"), exports);
|
|
|
24
24
|
__exportStar(require("./ChampionshipPhase"), exports);
|
|
25
25
|
__exportStar(require("./ChampionshipRound"), exports);
|
|
26
26
|
__exportStar(require("./File"), exports);
|
|
27
|
+
__exportStar(require("./AdminNotification"), exports);
|
|
28
|
+
__exportStar(require("./AccountNotification"), exports);
|
|
27
29
|
__exportStar(require("./Team"), exports);
|
|
28
30
|
__exportStar(require("./Ticket"), exports);
|
|
29
31
|
__exportStar(require("./TicketGuess"), exports);
|
package/package.json
CHANGED