@amohamud23/notihub 1.0.59 → 1.0.61

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.
@@ -24,8 +24,6 @@
24
24
  /// <reference types="mongoose" />
25
25
  /// <reference types="mongoose/types/inferschematype" />
26
26
  /// <reference types="mongoose/types/inferrawdoctype" />
27
- /// <reference types="src/types" />
28
- import { INotiHubCustomerMinified } from "notihub";
29
27
  declare const CustomerMinified: import("mongoose").Model<INotiHubCustomerMinified, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiHubCustomerMinified> & INotiHubCustomerMinified & Required<{
30
28
  _id: string;
31
29
  }> & {
@@ -24,8 +24,6 @@
24
24
  /// <reference types="mongoose" />
25
25
  /// <reference types="mongoose/types/inferschematype" />
26
26
  /// <reference types="mongoose/types/inferrawdoctype" />
27
- /// <reference types="src/types" />
28
- import { INotiHubCustomer } from "notihub";
29
27
  declare const Customer: import("mongoose").Model<INotiHubCustomer, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiHubCustomer> & INotiHubCustomer & Required<{
30
28
  _id: string;
31
29
  }> & {
@@ -24,8 +24,6 @@
24
24
  /// <reference types="mongoose" />
25
25
  /// <reference types="mongoose/types/inferschematype" />
26
26
  /// <reference types="mongoose/types/inferrawdoctype" />
27
- /// <reference types="src/types" />
28
- import { INotiHubStatsHistory } from "notihub";
29
27
  declare const NotiHubStatsHistory: import("mongoose").Model<INotiHubStatsHistory, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiHubStatsHistory> & INotiHubStatsHistory & {
30
28
  _id: import("mongoose").Types.ObjectId;
31
29
  } & {
@@ -24,8 +24,6 @@
24
24
  /// <reference types="mongoose" />
25
25
  /// <reference types="mongoose/types/inferschematype" />
26
26
  /// <reference types="mongoose/types/inferrawdoctype" />
27
- /// <reference types="src/types" />
28
- import { INotiHubStats } from "notihub";
29
27
  declare const EntityNotiHubStats: import("mongoose").Model<INotiHubStats, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiHubStats> & INotiHubStats & {
30
28
  _id: import("mongoose").Types.ObjectId;
31
29
  } & {
@@ -24,8 +24,6 @@
24
24
  /// <reference types="mongoose" />
25
25
  /// <reference types="mongoose/types/inferschematype" />
26
26
  /// <reference types="mongoose/types/inferrawdoctype" />
27
- /// <reference types="src/types" />
28
- import { INotiType } from "notihub";
29
27
  declare const NotiTypeModel: import("mongoose").Model<INotiType, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiType> & INotiType & Required<{
30
28
  _id: string;
31
29
  }> & {
@@ -24,8 +24,6 @@
24
24
  /// <reference types="mongoose" />
25
25
  /// <reference types="mongoose/types/inferschematype" />
26
26
  /// <reference types="mongoose/types/inferrawdoctype" />
27
- /// <reference types="src/types" />
28
- import { INotiHubNotification } from "notihub";
29
27
  declare const NotificationModel: import("mongoose").Model<INotiHubNotification, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiHubNotification> & INotiHubNotification & Required<{
30
28
  _id: string;
31
29
  }> & {
@@ -24,8 +24,6 @@
24
24
  /// <reference types="mongoose" />
25
25
  /// <reference types="mongoose/types/inferschematype" />
26
26
  /// <reference types="mongoose/types/inferrawdoctype" />
27
- /// <reference types="src/types" />
28
- import { INotiHubNotificationStats } from "notihub";
29
27
  declare const NotificationStatsModel: import("mongoose").Model<INotiHubNotificationStats, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiHubNotificationStats> & INotiHubNotificationStats & Required<{
30
28
  _id: string;
31
29
  }> & {
@@ -1,4 +1,3 @@
1
- /// <reference types="src/types" />
2
1
  /// <reference types="mongoose/types/aggregate" />
3
2
  /// <reference types="mongoose/types/callback" />
4
3
  /// <reference types="mongoose/types/collection" />
@@ -25,7 +24,6 @@
25
24
  /// <reference types="mongoose/types/inferschematype" />
26
25
  /// <reference types="mongoose/types/inferrawdoctype" />
27
26
  import mongoose from "mongoose";
28
- import { INotiHubSubscription } from "notihub";
29
27
  declare const Subscription: mongoose.Model<INotiHubSubscription, {}, {}, {}, mongoose.Document<unknown, {}, INotiHubSubscription> & INotiHubSubscription & Required<{
30
28
  _id: string;
31
29
  }> & {
@@ -24,8 +24,6 @@
24
24
  /// <reference types="mongoose" />
25
25
  /// <reference types="mongoose/types/inferschematype" />
26
26
  /// <reference types="mongoose/types/inferrawdoctype" />
27
- /// <reference types="src/types" />
28
- import { IUserSubscribeNotifier } from "notihub";
29
27
  declare const SubscriptionType: import("mongoose").Model<IUserSubscribeNotifier, {}, {}, {}, import("mongoose").Document<unknown, {}, IUserSubscribeNotifier> & IUserSubscribeNotifier & {
30
28
  _id: import("mongoose").Types.ObjectId;
31
29
  } & {
@@ -24,8 +24,6 @@
24
24
  /// <reference types="mongoose" />
25
25
  /// <reference types="mongoose/types/inferschematype" />
26
26
  /// <reference types="mongoose/types/inferrawdoctype" />
27
- /// <reference types="src/types" />
28
- import { INotiHubUser } from "notihub";
29
27
  declare const UserModel: import("mongoose").Model<INotiHubUser, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiHubUser> & INotiHubUser & Required<{
30
28
  _id: string;
31
29
  }> & {
@@ -1,4 +1,3 @@
1
- /// <reference types="src/types" />
2
1
  /// <reference types="mongoose/types/aggregate" />
3
2
  /// <reference types="mongoose/types/callback" />
4
3
  /// <reference types="mongoose/types/collection" />
@@ -26,47 +25,47 @@
26
25
  /// <reference types="mongoose/types/inferschematype" />
27
26
  /// <reference types="mongoose/types/inferrawdoctype" />
28
27
  declare const _default: {
29
- UserModel: import("mongoose").Model<import("notihub").INotiHubUser, {}, {}, {}, import("mongoose").Document<unknown, {}, import("notihub").INotiHubUser> & import("notihub").INotiHubUser & Required<{
28
+ UserModel: import("mongoose").Model<INotiHubUser, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiHubUser> & INotiHubUser & Required<{
30
29
  _id: string;
31
30
  }> & {
32
31
  __v?: number;
33
32
  }, any>;
34
- Subscription: import("mongoose").Model<import("notihub").INotiHubSubscription, {}, {}, {}, import("mongoose").Document<unknown, {}, import("notihub").INotiHubSubscription> & import("notihub").INotiHubSubscription & Required<{
33
+ Subscription: import("mongoose").Model<INotiHubSubscription, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiHubSubscription> & INotiHubSubscription & Required<{
35
34
  _id: string;
36
35
  }> & {
37
36
  __v?: number;
38
37
  }, any>;
39
- SubscriptionType: import("mongoose").Model<import("notihub").IUserSubscribeNotifier, {}, {}, {}, import("mongoose").Document<unknown, {}, import("notihub").IUserSubscribeNotifier> & import("notihub").IUserSubscribeNotifier & {
38
+ SubscriptionType: import("mongoose").Model<IUserSubscribeNotifier, {}, {}, {}, import("mongoose").Document<unknown, {}, IUserSubscribeNotifier> & IUserSubscribeNotifier & {
40
39
  _id: import("mongoose").Types.ObjectId;
41
40
  } & {
42
41
  __v?: number;
43
42
  }, any>;
44
- NotiTypeModel: import("mongoose").Model<import("notihub").INotiType, {}, {}, {}, import("mongoose").Document<unknown, {}, import("notihub").INotiType> & import("notihub").INotiType & Required<{
43
+ NotiTypeModel: import("mongoose").Model<INotiType, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiType> & INotiType & Required<{
45
44
  _id: string;
46
45
  }> & {
47
46
  __v?: number;
48
47
  }, any>;
49
- NotificationStatsModel: import("mongoose").Model<import("notihub").INotiHubNotificationStats, {}, {}, {}, import("mongoose").Document<unknown, {}, import("notihub").INotiHubNotificationStats> & import("notihub").INotiHubNotificationStats & Required<{
48
+ NotificationStatsModel: import("mongoose").Model<INotiHubNotificationStats, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiHubNotificationStats> & INotiHubNotificationStats & Required<{
50
49
  _id: string;
51
50
  }> & {
52
51
  __v?: number;
53
52
  }, any>;
54
- NotiHubStatsHistory: import("mongoose").Model<import("notihub").INotiHubStatsHistory, {}, {}, {}, import("mongoose").Document<unknown, {}, import("notihub").INotiHubStatsHistory> & import("notihub").INotiHubStatsHistory & {
53
+ NotiHubStatsHistory: import("mongoose").Model<INotiHubStatsHistory, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiHubStatsHistory> & INotiHubStatsHistory & {
55
54
  _id: import("mongoose").Types.ObjectId;
56
55
  } & {
57
56
  __v?: number;
58
57
  }, any>;
59
- NotificationModel: import("mongoose").Model<import("notihub").INotiHubNotification, {}, {}, {}, import("mongoose").Document<unknown, {}, import("notihub").INotiHubNotification> & import("notihub").INotiHubNotification & Required<{
58
+ NotificationModel: import("mongoose").Model<INotiHubNotification, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiHubNotification> & INotiHubNotification & Required<{
60
59
  _id: string;
61
60
  }> & {
62
61
  __v?: number;
63
62
  }, any>;
64
- Customer: import("mongoose").Model<import("notihub").INotiHubCustomer, {}, {}, {}, import("mongoose").Document<unknown, {}, import("notihub").INotiHubCustomer> & import("notihub").INotiHubCustomer & Required<{
63
+ Customer: import("mongoose").Model<INotiHubCustomer, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiHubCustomer> & INotiHubCustomer & Required<{
65
64
  _id: string;
66
65
  }> & {
67
66
  __v?: number;
68
67
  }, any>;
69
- CustomerMinified: import("mongoose").Model<import("notihub").INotiHubCustomerMinified, {}, {}, {}, import("mongoose").Document<unknown, {}, import("notihub").INotiHubCustomerMinified> & import("notihub").INotiHubCustomerMinified & Required<{
68
+ CustomerMinified: import("mongoose").Model<INotiHubCustomerMinified, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiHubCustomerMinified> & INotiHubCustomerMinified & Required<{
70
69
  _id: string;
71
70
  }> & {
72
71
  __v?: number;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@amohamud23/notihub",
3
- "version": "1.0.59",
3
+ "version": "1.0.61",
4
4
  "description": "Notihub Package",
5
- "main": "./dist/index.js",
6
- "types": "./dist/index.d.ts",
7
- "module": "./dist/index.mjs",
5
+ "main": "dist/index.js",
6
+ "types": "src/types/index.d.ts",
7
+ "module": "dist/index.mjs",
8
8
  "files": [
9
- "index.ts",
9
+ "dist/index.js",
10
10
  "index.d.ts",
11
11
  "dist"
12
12
  ],
package/index.ts DELETED
@@ -1,5 +0,0 @@
1
- import DateUtil from "./src/util/DateUtil";
2
- import DB from "./src/models/index";
3
-
4
- // ---------NotiHub Utils ---------------------------------------------------------------
5
- export default { DateUtil, DB };