@amohamud23/notihub 1.0.46 → 1.0.48
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/index.d.ts +62 -59
- package/dist/index.js +1 -3
- package/index.ts +4 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -24,63 +24,66 @@
|
|
|
24
24
|
/// <reference types="mongoose" />
|
|
25
25
|
/// <reference types="mongoose/types/inferschematype" />
|
|
26
26
|
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
27
|
+
declare const _default: {
|
|
28
|
+
DateUtil: {
|
|
29
|
+
addMonths: (date: Date, months: number) => Date;
|
|
30
|
+
getDate: (dateStr: string) => string;
|
|
31
|
+
getDateFormat: (dateStr: string) => string;
|
|
32
|
+
};
|
|
33
|
+
DB: {
|
|
34
|
+
UserModel: import("mongoose").Model<INotiHubUser, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiHubUser> & INotiHubUser & Required<{
|
|
35
|
+
_id: string;
|
|
36
|
+
}> & {
|
|
37
|
+
__v?: number | undefined;
|
|
38
|
+
}, any>;
|
|
39
|
+
Subscription: import("mongoose").Model<INotiHubSubscription, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiHubSubscription> & INotiHubSubscription & Required<{
|
|
40
|
+
_id: string;
|
|
41
|
+
}> & {
|
|
42
|
+
__v?: number | undefined;
|
|
43
|
+
}, any>;
|
|
44
|
+
SubscriptionType: import("mongoose").Model<IUserSubscribeNotifier, {}, {}, {}, import("mongoose").Document<unknown, {}, IUserSubscribeNotifier> & IUserSubscribeNotifier & {
|
|
45
|
+
_id: import("mongoose").Types.ObjectId;
|
|
46
|
+
} & {
|
|
47
|
+
__v?: number | undefined;
|
|
48
|
+
}, any>;
|
|
49
|
+
NotiTypeModel: import("mongoose").Model<INotiType, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiType> & INotiType & Required<{
|
|
50
|
+
_id: string;
|
|
51
|
+
}> & {
|
|
52
|
+
__v?: number | undefined;
|
|
53
|
+
}, any>;
|
|
54
|
+
NotificationStatsModel: import("mongoose").Model<INotiHubNotificationStats, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiHubNotificationStats> & INotiHubNotificationStats & Required<{
|
|
55
|
+
_id: string;
|
|
56
|
+
}> & {
|
|
57
|
+
__v?: number | undefined;
|
|
58
|
+
}, any>;
|
|
59
|
+
NotiHubStatsHistory: import("mongoose").Model<INotiHubStatsHistory, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiHubStatsHistory> & INotiHubStatsHistory & {
|
|
60
|
+
_id: import("mongoose").Types.ObjectId;
|
|
61
|
+
} & {
|
|
62
|
+
__v?: number | undefined;
|
|
63
|
+
}, any>;
|
|
64
|
+
NotificationModel: import("mongoose").Model<INotiHubNotification, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiHubNotification> & INotiHubNotification & Required<{
|
|
65
|
+
_id: string;
|
|
66
|
+
}> & {
|
|
67
|
+
__v?: number | undefined;
|
|
68
|
+
}, any>;
|
|
69
|
+
Customer: import("mongoose").Model<INotiHubCustomer, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiHubCustomer> & INotiHubCustomer & Required<{
|
|
70
|
+
_id: string;
|
|
71
|
+
}> & {
|
|
72
|
+
__v?: number | undefined;
|
|
73
|
+
}, any>;
|
|
74
|
+
CustomerMinified: import("mongoose").Model<INotiHubCustomerMinified, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiHubCustomerMinified> & INotiHubCustomerMinified & Required<{
|
|
75
|
+
_id: string;
|
|
76
|
+
}> & {
|
|
77
|
+
__v?: number | undefined;
|
|
78
|
+
}, import("mongoose").Schema<INotiHubCustomerMinified, import("mongoose").Model<INotiHubCustomerMinified, any, any, any, import("mongoose").Document<unknown, any, INotiHubCustomerMinified> & INotiHubCustomerMinified & Required<{
|
|
79
|
+
_id: string;
|
|
80
|
+
}> & {
|
|
81
|
+
__v?: number | undefined;
|
|
82
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, INotiHubCustomerMinified, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<INotiHubCustomerMinified>> & import("mongoose").FlatRecord<INotiHubCustomerMinified> & Required<{
|
|
83
|
+
_id: string;
|
|
84
|
+
}> & {
|
|
85
|
+
__v?: number | undefined;
|
|
86
|
+
}>>;
|
|
87
|
+
};
|
|
86
88
|
};
|
|
89
|
+
export default _default;
|
package/dist/index.js
CHANGED
|
@@ -3,9 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.DB = exports.DateUtil = void 0;
|
|
7
6
|
const DateUtil_1 = __importDefault(require("./lib/util/DateUtil"));
|
|
8
7
|
const index_1 = __importDefault(require("./lib/models/index"));
|
|
9
8
|
// ---------NotiHub Utils ---------------------------------------------------------------
|
|
10
|
-
exports.
|
|
11
|
-
exports.DB = index_1.default;
|
|
9
|
+
exports.default = { DateUtil: DateUtil_1.default, DB: index_1.default };
|
package/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import DateUtil from "./lib/util/DateUtil";
|
|
2
|
+
import DB from "./lib/models/index";
|
|
3
3
|
|
|
4
4
|
// ---------NotiHub Utils ---------------------------------------------------------------
|
|
5
|
-
|
|
6
|
-
export
|
|
5
|
+
|
|
6
|
+
export default { DateUtil, DB };
|