@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 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
- export declare const DateUtil: {
28
- addMonths: (date: Date, months: number) => Date;
29
- getDate: (dateStr: string) => string;
30
- getDateFormat: (dateStr: string) => string;
31
- };
32
- export declare const DB: {
33
- UserModel: import("mongoose").Model<INotiHubUser, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiHubUser> & INotiHubUser & Required<{
34
- _id: string;
35
- }> & {
36
- __v?: number | undefined;
37
- }, any>;
38
- Subscription: import("mongoose").Model<INotiHubSubscription, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiHubSubscription> & INotiHubSubscription & Required<{
39
- _id: string;
40
- }> & {
41
- __v?: number | undefined;
42
- }, any>;
43
- SubscriptionType: import("mongoose").Model<IUserSubscribeNotifier, {}, {}, {}, import("mongoose").Document<unknown, {}, IUserSubscribeNotifier> & IUserSubscribeNotifier & {
44
- _id: import("mongoose").Types.ObjectId;
45
- } & {
46
- __v?: number | undefined;
47
- }, any>;
48
- NotiTypeModel: import("mongoose").Model<INotiType, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiType> & INotiType & Required<{
49
- _id: string;
50
- }> & {
51
- __v?: number | undefined;
52
- }, any>;
53
- NotificationStatsModel: import("mongoose").Model<INotiHubNotificationStats, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiHubNotificationStats> & INotiHubNotificationStats & Required<{
54
- _id: string;
55
- }> & {
56
- __v?: number | undefined;
57
- }, any>;
58
- NotiHubStatsHistory: import("mongoose").Model<INotiHubStatsHistory, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiHubStatsHistory> & INotiHubStatsHistory & {
59
- _id: import("mongoose").Types.ObjectId;
60
- } & {
61
- __v?: number | undefined;
62
- }, any>;
63
- NotificationModel: import("mongoose").Model<INotiHubNotification, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiHubNotification> & INotiHubNotification & Required<{
64
- _id: string;
65
- }> & {
66
- __v?: number | undefined;
67
- }, any>;
68
- Customer: import("mongoose").Model<INotiHubCustomer, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiHubCustomer> & INotiHubCustomer & Required<{
69
- _id: string;
70
- }> & {
71
- __v?: number | undefined;
72
- }, any>;
73
- CustomerMinified: import("mongoose").Model<INotiHubCustomerMinified, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiHubCustomerMinified> & INotiHubCustomerMinified & Required<{
74
- _id: string;
75
- }> & {
76
- __v?: number | undefined;
77
- }, import("mongoose").Schema<INotiHubCustomerMinified, import("mongoose").Model<INotiHubCustomerMinified, any, any, any, import("mongoose").Document<unknown, any, INotiHubCustomerMinified> & INotiHubCustomerMinified & Required<{
78
- _id: string;
79
- }> & {
80
- __v?: number | undefined;
81
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, INotiHubCustomerMinified, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<INotiHubCustomerMinified>> & import("mongoose").FlatRecord<INotiHubCustomerMinified> & Required<{
82
- _id: string;
83
- }> & {
84
- __v?: number | undefined;
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.DateUtil = DateUtil_1.default;
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 dateUtil from "./lib/util/DateUtil";
2
- import Schemas from "./lib/models/index";
1
+ import DateUtil from "./lib/util/DateUtil";
2
+ import DB from "./lib/models/index";
3
3
 
4
4
  // ---------NotiHub Utils ---------------------------------------------------------------
5
- export const DateUtil = dateUtil;
6
- export const DB = Schemas;
5
+
6
+ export default { DateUtil, DB };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amohamud23/notihub",
3
- "version": "1.0.46",
3
+ "version": "1.0.48",
4
4
  "description": "Notihub Package",
5
5
  "main": "dist/index.js",
6
6
  "types": "./index.d.ts",