@amohamud23/notihub 1.0.47 → 1.0.49

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.
Files changed (46) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/index.d.ts.map +1 -0
  3. package/dist/lib/models/CustomerMinifiedModel.d.ts +1 -0
  4. package/dist/lib/models/CustomerMinifiedModel.d.ts.map +1 -0
  5. package/dist/lib/models/CustomerModel.d.ts +1 -0
  6. package/dist/lib/models/CustomerModel.d.ts.map +1 -0
  7. package/dist/lib/models/NotiHubStatsHistoryModel.d.ts +1 -0
  8. package/dist/lib/models/NotiHubStatsHistoryModel.d.ts.map +1 -0
  9. package/dist/lib/models/NotiHubStatsModel.d.ts +1 -0
  10. package/dist/lib/models/NotiHubStatsModel.d.ts.map +1 -0
  11. package/dist/lib/models/NotiTypeModel.d.ts +1 -0
  12. package/dist/lib/models/NotiTypeModel.d.ts.map +1 -0
  13. package/dist/lib/models/NotificationModel.d.ts +1 -0
  14. package/dist/lib/models/NotificationModel.d.ts.map +1 -0
  15. package/dist/lib/models/NotificationStatsModel.d.ts +1 -0
  16. package/dist/lib/models/NotificationStatsModel.d.ts.map +1 -0
  17. package/dist/lib/models/SubscriptionModel.d.ts +1 -0
  18. package/dist/lib/models/SubscriptionModel.d.ts.map +1 -0
  19. package/dist/lib/models/SubscriptionTypeModel.d.ts +1 -0
  20. package/dist/lib/models/SubscriptionTypeModel.d.ts.map +1 -0
  21. package/dist/lib/models/UserModel.d.ts +1 -0
  22. package/dist/lib/models/UserModel.d.ts.map +1 -0
  23. package/dist/lib/models/index.d.ts +1 -0
  24. package/dist/lib/models/index.d.ts.map +1 -0
  25. package/dist/lib/models/schemas/CustomerMinifiedSchema.d.ts +1 -0
  26. package/dist/lib/models/schemas/CustomerMinifiedSchema.d.ts.map +1 -0
  27. package/dist/lib/models/schemas/CustomerSchema.d.ts +1 -0
  28. package/dist/lib/models/schemas/CustomerSchema.d.ts.map +1 -0
  29. package/dist/lib/models/schemas/NotiTypeSchema.d.ts +1 -0
  30. package/dist/lib/models/schemas/NotiTypeSchema.d.ts.map +1 -0
  31. package/dist/lib/models/schemas/NotificationSchema.d.ts +1 -0
  32. package/dist/lib/models/schemas/NotificationSchema.d.ts.map +1 -0
  33. package/dist/lib/models/schemas/NotificationStatsHistorySchema.d.ts +1 -0
  34. package/dist/lib/models/schemas/NotificationStatsHistorySchema.d.ts.map +1 -0
  35. package/dist/lib/models/schemas/NotificationStatsSchema.d.ts +1 -0
  36. package/dist/lib/models/schemas/NotificationStatsSchema.d.ts.map +1 -0
  37. package/dist/lib/models/schemas/SubscriptionSchema.d.ts +1 -0
  38. package/dist/lib/models/schemas/SubscriptionSchema.d.ts.map +1 -0
  39. package/dist/lib/models/schemas/SubscriptionTypeSchema.d.ts +1 -0
  40. package/dist/lib/models/schemas/SubscriptionTypeSchema.d.ts.map +1 -0
  41. package/dist/lib/models/schemas/UserSchema.d.ts +1 -0
  42. package/dist/lib/models/schemas/UserSchema.d.ts.map +1 -0
  43. package/dist/lib/util/DateUtil.d.ts +1 -0
  44. package/dist/lib/util/DateUtil.d.ts.map +1 -0
  45. package/index.d.ts +160 -160
  46. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -87,3 +87,4 @@ declare const _default: {
87
87
  };
88
88
  };
89
89
  export default _default;
90
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,wBAAgC"}
@@ -38,3 +38,4 @@ declare const CustomerMinified: import("mongoose").Model<INotiHubCustomerMinifie
38
38
  __v?: number | undefined;
39
39
  }>>;
40
40
  export default CustomerMinified;
41
+ //# sourceMappingURL=CustomerMinifiedModel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomerMinifiedModel.d.ts","sourceRoot":"","sources":["../../../lib/models/CustomerMinifiedModel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAS,MAAM,UAAU,CAAC;AAUzC,QAAA,MAAM,gBAAgB;;;;;;;;;;;;GAAoD,CAAC;AAE3E,eAAe,gBAAgB,CAAC"}
@@ -30,3 +30,4 @@ declare const Customer: import("mongoose").Model<INotiHubCustomer, {}, {}, {}, i
30
30
  __v?: number | undefined;
31
31
  }, any>;
32
32
  export default Customer;
33
+ //# sourceMappingURL=CustomerModel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomerModel.d.ts","sourceRoot":"","sources":["../../../lib/models/CustomerModel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AASA,QAAA,MAAM,QAAQ;;;;OAAsD,CAAC;AAErE,eAAe,QAAQ,CAAC"}
@@ -30,3 +30,4 @@ declare const NotiHubStatsHistory: import("mongoose").Model<INotiHubStatsHistory
30
30
  __v?: number | undefined;
31
31
  }, any>;
32
32
  export default NotiHubStatsHistory;
33
+ //# sourceMappingURL=NotiHubStatsHistoryModel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotiHubStatsHistoryModel.d.ts","sourceRoot":"","sources":["../../../lib/models/NotiHubStatsHistoryModel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,QAAA,MAAM,mBAAmB;;;;OAGxB,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -30,3 +30,4 @@ declare const EntityNotiHubStats: import("mongoose").Model<INotiHubStats, {}, {}
30
30
  __v?: number | undefined;
31
31
  }, any>;
32
32
  export default EntityNotiHubStats;
33
+ //# sourceMappingURL=NotiHubStatsModel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotiHubStatsModel.d.ts","sourceRoot":"","sources":["../../../lib/models/NotiHubStatsModel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,QAAA,MAAM,kBAAkB;;;;OAGvB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -30,3 +30,4 @@ declare const NotiTypeModel: import("mongoose").Model<INotiType, {}, {}, {}, imp
30
30
  __v?: number | undefined;
31
31
  }, any>;
32
32
  export default NotiTypeModel;
33
+ //# sourceMappingURL=NotiTypeModel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotiTypeModel.d.ts","sourceRoot":"","sources":["../../../lib/models/NotiTypeModel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AASA,QAAA,MAAM,aAAa;;;;OAAgD,CAAC;AAEpE,eAAe,aAAa,CAAC"}
@@ -30,3 +30,4 @@ declare const NotificationModel: import("mongoose").Model<INotiHubNotification,
30
30
  __v?: number | undefined;
31
31
  }, any>;
32
32
  export default NotificationModel;
33
+ //# sourceMappingURL=NotificationModel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotificationModel.d.ts","sourceRoot":"","sources":["../../../lib/models/NotificationModel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAiBA,QAAA,MAAM,iBAAiB;;;;OAGtB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -30,3 +30,4 @@ declare const NotificationStatsModel: import("mongoose").Model<INotiHubNotificat
30
30
  __v?: number | undefined;
31
31
  }, any>;
32
32
  export default NotificationStatsModel;
33
+ //# sourceMappingURL=NotificationStatsModel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotificationStatsModel.d.ts","sourceRoot":"","sources":["../../../lib/models/NotificationStatsModel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,QAAA,MAAM,sBAAsB;;;;OAG3B,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -30,3 +30,4 @@ declare const Subscription: mongoose.Model<INotiHubSubscription, {}, {}, {}, mon
30
30
  __v?: number | undefined;
31
31
  }, any>;
32
32
  export default Subscription;
33
+ //# sourceMappingURL=SubscriptionModel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SubscriptionModel.d.ts","sourceRoot":"","sources":["../../../lib/models/SubscriptionModel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAA4C,MAAM,UAAU,CAAC;AAapE,QAAA,MAAM,YAAY;;;;OAGjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -30,3 +30,4 @@ declare const SubscriptionType: import("mongoose").Model<IUserSubscribeNotifier,
30
30
  __v?: number | undefined;
31
31
  }, any>;
32
32
  export default SubscriptionType;
33
+ //# sourceMappingURL=SubscriptionTypeModel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SubscriptionTypeModel.d.ts","sourceRoot":"","sources":["../../../lib/models/SubscriptionTypeModel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,QAAA,MAAM,gBAAgB;;;;OAGrB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -30,3 +30,4 @@ declare const UserModel: import("mongoose").Model<INotiHubUser, {}, {}, {}, impo
30
30
  __v?: number | undefined;
31
31
  }, any>;
32
32
  export default UserModel;
33
+ //# sourceMappingURL=UserModel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserModel.d.ts","sourceRoot":"","sources":["../../../lib/models/UserModel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,QAAA,MAAM,SAAS;;;;OAA0C,CAAC;AAE1D,eAAe,SAAS,CAAC"}
@@ -80,3 +80,4 @@ declare const _default: {
80
80
  }>>;
81
81
  };
82
82
  export default _default;
83
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,wBAUE"}
@@ -49,3 +49,4 @@ declare const CustomerMinifiedSchema: {
49
49
  };
50
50
  };
51
51
  export default CustomerMinifiedSchema;
52
+ //# sourceMappingURL=CustomerMinifiedSchema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomerMinifiedSchema.d.ts","sourceRoot":"","sources":["../../../../lib/models/schemas/CustomerMinifiedSchema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAS,MAAM,UAAU,CAAC;AAGzC,QAAA,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;CAQ3B,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -71,3 +71,4 @@ declare const CustomerSchema: {
71
71
  };
72
72
  };
73
73
  export default CustomerSchema;
74
+ //# sourceMappingURL=CustomerSchema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomerSchema.d.ts","sourceRoot":"","sources":["../../../../lib/models/schemas/CustomerSchema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIlC,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOnB,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -81,3 +81,4 @@ declare const NotiTypeSchema: {
81
81
  };
82
82
  };
83
83
  export default NotiTypeSchema;
84
+ //# sourceMappingURL=NotiTypeSchema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotiTypeSchema.d.ts","sourceRoot":"","sources":["../../../../lib/models/schemas/NotiTypeSchema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIlC,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAInB,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -74,3 +74,4 @@ declare const NotificationSchema: {
74
74
  };
75
75
  };
76
76
  export default NotificationSchema;
77
+ //# sourceMappingURL=NotificationSchema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotificationSchema.d.ts","sourceRoot":"","sources":["../../../../lib/models/schemas/NotificationSchema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIlC,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQvB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -51,3 +51,4 @@ declare const NotihubStatsHistorySchema: {
51
51
  };
52
52
  };
53
53
  export default NotihubStatsHistorySchema;
54
+ //# sourceMappingURL=NotificationStatsHistorySchema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotificationStatsHistorySchema.d.ts","sourceRoot":"","sources":["../../../../lib/models/schemas/NotificationStatsHistorySchema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,QAAA,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;CAO9B,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
@@ -11,3 +11,4 @@ declare const NotificationSchema: {
11
11
  };
12
12
  };
13
13
  export default NotificationSchema;
14
+ //# sourceMappingURL=NotificationStatsSchema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotificationStatsSchema.d.ts","sourceRoot":"","sources":["../../../../lib/models/schemas/NotificationStatsSchema.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,kBAAkB;;;;;;;;;;;CAGvB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -104,3 +104,4 @@ declare const SubscriptionSchema: {
104
104
  };
105
105
  };
106
106
  export default SubscriptionSchema;
107
+ //# sourceMappingURL=SubscriptionSchema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SubscriptionSchema.d.ts","sourceRoot":"","sources":["../../../../lib/models/schemas/SubscriptionSchema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAiB,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAK5C,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKvB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -13,3 +13,4 @@ declare const SubscriptionSchema: {
13
13
  };
14
14
  };
15
15
  export default SubscriptionSchema;
16
+ //# sourceMappingURL=SubscriptionTypeSchema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SubscriptionTypeSchema.d.ts","sourceRoot":"","sources":["../../../../lib/models/schemas/SubscriptionTypeSchema.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;CAIvB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -48,3 +48,4 @@ declare const UserSchema: {
48
48
  };
49
49
  };
50
50
  export default UserSchema;
51
+ //# sourceMappingURL=UserSchema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserSchema.d.ts","sourceRoot":"","sources":["../../../../lib/models/schemas/UserSchema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;CAMf,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -5,3 +5,4 @@ declare const _default: {
5
5
  getDateFormat: (dateStr: string) => string;
6
6
  };
7
7
  export default _default;
8
+ //# sourceMappingURL=DateUtil.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DateUtil.d.ts","sourceRoot":"","sources":["../../../lib/util/DateUtil.ts"],"names":[],"mappings":"AAsDA,iBAAS,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,QAG5C;;;;;;AAED,wBAAqD"}
package/index.d.ts CHANGED
@@ -1,160 +1,160 @@
1
- // ----------------- Request Types ---------------------
2
- export type CreateNotiRequestBody = {
3
- subscriptionId: string;
4
- userId: string;
5
- title: string;
6
- message: string;
7
- type: string;
8
- };
9
-
10
- export type CreateSubscriptionRequestBody = {
11
- subscriptionId: string;
12
- type: string;
13
- };
14
-
15
- export type CreateUserRequestBody = {
16
- name: string;
17
- email: string;
18
- token: string;
19
- };
20
-
21
- export type ICreateCustomerRequestBody = {
22
- email: string;
23
- username: string;
24
- name: string;
25
- };
26
-
27
- export type ICreateNotiRequestBody = {};
28
-
29
- // ----------------- NotiHub Types ---------------------
30
-
31
- export type INotiHubCustomerMinified = {
32
- _id: string;
33
- name: string;
34
- img: INotiHubImage;
35
- username: string;
36
- createdAt: string;
37
- updatedAt: string;
38
- };
39
- export type INotiHubCustomer = {
40
- _id: string;
41
- name: string;
42
- email: string;
43
- minified: INotiHubCustomerMinified;
44
- verified: boolean;
45
- paid: boolean;
46
- confirmed: boolean;
47
- createdAt: string;
48
- updatedAt: string;
49
- };
50
-
51
- export type INotiHubNotification = {
52
- _id?: string;
53
- title: string;
54
- message: string;
55
- type: string;
56
- entityId: string;
57
- entityMinified: INotiHubCustomerMinified;
58
- body: string;
59
- createdAt: string;
60
- updatedAt: string;
61
- };
62
- export type INotiHubNotificationStats = {
63
- _id?: string;
64
- notification: INotiHubNotification;
65
- views: number;
66
- };
67
-
68
- export type INotiHubUser = {
69
- _id?: string;
70
- pushToken: string;
71
- name: string;
72
- email: string;
73
- subscriptions: number;
74
- events: number;
75
- };
76
-
77
- export type INotiHubImage = {
78
- bucket: string;
79
- key: string;
80
- };
81
-
82
- export type INotiHubStats = {
83
- entityRef: string;
84
- entity: INotiHubCustomer;
85
- subscription: number;
86
- notifications: number;
87
- views: number;
88
- };
89
-
90
- export type INotiHubStatsHistory = {
91
- entityId: string;
92
- type: "MONTH" | "YEAR";
93
- subscription: number;
94
- notifications: number;
95
- views: number;
96
- };
97
-
98
- export type INotiType = {
99
- _id?: string;
100
- type: string;
101
- entity: string;
102
- createdAt: string;
103
- updatedAt: string;
104
- };
105
-
106
- export type INotiTypeStats = {
107
- _id?: string;
108
- notiTypeId: string;
109
- subscribed: number;
110
- createdAt: string;
111
- };
112
-
113
- export type IUserSubscription = {
114
- user: INotiHubUser;
115
- entity: INotiHubCustomer;
116
- subscriptionId: string;
117
- type: "SUBSCRIBED" | "UNSUBSCRIBED";
118
- createdAt: string;
119
- updatedAt: string;
120
- };
121
-
122
- export type IUserSubscribeNotifier = {
123
- userId: string;
124
- entityId: string;
125
- notiTypeId: string;
126
- createdAt: string;
127
- updatedAt: string;
128
- };
129
-
130
- export type INotiHubUserView = {
131
- userId: string;
132
- entityId: string;
133
- notificationId;
134
- createdAt: string;
135
- };
136
-
137
- export type INotiHubSubscription = {
138
- _id?: string;
139
- subscriptionId: string;
140
- entity: INotiHubCustomer;
141
- user: INotiHubUser;
142
- type: "SUBSCRIBED" | "UNSUBSCRIBED";
143
- createdAt: string;
144
- updatedAt: string;
145
- };
146
-
147
- export type NotiHubTypes = {
148
- INotiHubUserView: INotiHubUserView;
149
- IUserSubscribeNotifier: IUserSubscribeNotifier;
150
- IUserSubscription: IUserSubscription;
151
- INotiHubUser: INotiHubUser;
152
- INotiTypeStats: INotiTypeStats;
153
- INotiHubImage: INotiHubImage;
154
- INotiHubSubscription: INotiHubSubscription;
155
- INotiHubNotificationStats: INotiHubNotificationStats;
156
- INotiHubNotification: INotiHubNotification;
157
- INotiHubCustomer: INotiHubCustomer;
158
- INotiHubCustomerMinified: INotiHubCustomerMinified;
159
- INotiHubStatsHistory: INotiHubStatsHistory;
160
- };
1
+ // // ----------------- Request Types ---------------------
2
+ // export type CreateNotiRequestBody = {
3
+ // subscriptionId: string;
4
+ // userId: string;
5
+ // title: string;
6
+ // message: string;
7
+ // type: string;
8
+ // };
9
+
10
+ // export type CreateSubscriptionRequestBody = {
11
+ // subscriptionId: string;
12
+ // type: string;
13
+ // };
14
+
15
+ // export type CreateUserRequestBody = {
16
+ // name: string;
17
+ // email: string;
18
+ // token: string;
19
+ // };
20
+
21
+ // export type ICreateCustomerRequestBody = {
22
+ // email: string;
23
+ // username: string;
24
+ // name: string;
25
+ // };
26
+
27
+ // export type ICreateNotiRequestBody = {};
28
+
29
+ // // ----------------- NotiHub Types ---------------------
30
+
31
+ // export type INotiHubCustomerMinified = {
32
+ // _id: string;
33
+ // name: string;
34
+ // img: INotiHubImage;
35
+ // username: string;
36
+ // createdAt: string;
37
+ // updatedAt: string;
38
+ // };
39
+ // export type INotiHubCustomer = {
40
+ // _id: string;
41
+ // name: string;
42
+ // email: string;
43
+ // minified: INotiHubCustomerMinified;
44
+ // verified: boolean;
45
+ // paid: boolean;
46
+ // confirmed: boolean;
47
+ // createdAt: string;
48
+ // updatedAt: string;
49
+ // };
50
+
51
+ // export type INotiHubNotification = {
52
+ // _id?: string;
53
+ // title: string;
54
+ // message: string;
55
+ // type: string;
56
+ // entityId: string;
57
+ // entityMinified: INotiHubCustomerMinified;
58
+ // body: string;
59
+ // createdAt: string;
60
+ // updatedAt: string;
61
+ // };
62
+ // export type INotiHubNotificationStats = {
63
+ // _id?: string;
64
+ // notification: INotiHubNotification;
65
+ // views: number;
66
+ // };
67
+
68
+ // export type INotiHubUser = {
69
+ // _id?: string;
70
+ // pushToken: string;
71
+ // name: string;
72
+ // email: string;
73
+ // subscriptions: number;
74
+ // events: number;
75
+ // };
76
+
77
+ // export type INotiHubImage = {
78
+ // bucket: string;
79
+ // key: string;
80
+ // };
81
+
82
+ // export type INotiHubStats = {
83
+ // entityRef: string;
84
+ // entity: INotiHubCustomer;
85
+ // subscription: number;
86
+ // notifications: number;
87
+ // views: number;
88
+ // };
89
+
90
+ // export type INotiHubStatsHistory = {
91
+ // entityId: string;
92
+ // type: "MONTH" | "YEAR";
93
+ // subscription: number;
94
+ // notifications: number;
95
+ // views: number;
96
+ // };
97
+
98
+ // export type INotiType = {
99
+ // _id?: string;
100
+ // type: string;
101
+ // entity: string;
102
+ // createdAt: string;
103
+ // updatedAt: string;
104
+ // };
105
+
106
+ // export type INotiTypeStats = {
107
+ // _id?: string;
108
+ // notiTypeId: string;
109
+ // subscribed: number;
110
+ // createdAt: string;
111
+ // };
112
+
113
+ // export type IUserSubscription = {
114
+ // user: INotiHubUser;
115
+ // entity: INotiHubCustomer;
116
+ // subscriptionId: string;
117
+ // type: "SUBSCRIBED" | "UNSUBSCRIBED";
118
+ // createdAt: string;
119
+ // updatedAt: string;
120
+ // };
121
+
122
+ // export type IUserSubscribeNotifier = {
123
+ // userId: string;
124
+ // entityId: string;
125
+ // notiTypeId: string;
126
+ // createdAt: string;
127
+ // updatedAt: string;
128
+ // };
129
+
130
+ // export type INotiHubUserView = {
131
+ // userId: string;
132
+ // entityId: string;
133
+ // notificationId;
134
+ // createdAt: string;
135
+ // };
136
+
137
+ // export type INotiHubSubscription = {
138
+ // _id?: string;
139
+ // subscriptionId: string;
140
+ // entity: INotiHubCustomer;
141
+ // user: INotiHubUser;
142
+ // type: "SUBSCRIBED" | "UNSUBSCRIBED";
143
+ // createdAt: string;
144
+ // updatedAt: string;
145
+ // };
146
+
147
+ // export type NotiHubTypes = {
148
+ // INotiHubUserView: INotiHubUserView;
149
+ // IUserSubscribeNotifier: IUserSubscribeNotifier;
150
+ // IUserSubscription: IUserSubscription;
151
+ // INotiHubUser: INotiHubUser;
152
+ // INotiTypeStats: INotiTypeStats;
153
+ // INotiHubImage: INotiHubImage;
154
+ // INotiHubSubscription: INotiHubSubscription;
155
+ // INotiHubNotificationStats: INotiHubNotificationStats;
156
+ // INotiHubNotification: INotiHubNotification;
157
+ // INotiHubCustomer: INotiHubCustomer;
158
+ // INotiHubCustomerMinified: INotiHubCustomerMinified;
159
+ // INotiHubStatsHistory: INotiHubStatsHistory;
160
+ // };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amohamud23/notihub",
3
- "version": "1.0.47",
3
+ "version": "1.0.49",
4
4
  "description": "Notihub Package",
5
5
  "main": "dist/index.js",
6
6
  "types": "./index.d.ts",