@amohamud23/notihub 1.0.30 → 1.0.31

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
@@ -31,430 +31,54 @@ export declare const dateUtil: {
31
31
  getDateFormat: (dateStr: string) => string;
32
32
  };
33
33
  export declare const schemas: {
34
- UserModel: import("mongoose").Model<{
35
- createdAt: NativeDate;
36
- updatedAt: NativeDate;
37
- } & {
38
- id: Buffer;
39
- name: string;
40
- email: string;
41
- pushToken: string;
42
- signedIn: Buffer;
43
- }, {}, {}, {}, import("mongoose").Document<unknown, {}, {
44
- createdAt: NativeDate;
45
- updatedAt: NativeDate;
46
- } & {
47
- id: Buffer;
48
- name: string;
49
- email: string;
50
- pushToken: string;
51
- signedIn: Buffer;
34
+ UserModel: import("mongoose").Model<INotiHubUser, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiHubUser> & INotiHubUser & Required<{
35
+ _id: string;
52
36
  }> & {
53
- createdAt: NativeDate;
54
- updatedAt: NativeDate;
55
- } & {
56
- id: Buffer;
57
- name: string;
58
- email: string;
59
- pushToken: string;
60
- signedIn: Buffer;
61
- } & {
62
- _id: import("mongoose").Types.ObjectId;
63
- } & {
64
37
  __v?: number | undefined;
65
- }, import("mongoose").Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
66
- timestamps: true;
67
- }, {
68
- createdAt: NativeDate;
69
- updatedAt: NativeDate;
70
- } & {
71
- id: Buffer;
72
- name: string;
73
- email: string;
74
- pushToken: string;
75
- signedIn: Buffer;
76
- }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
77
- createdAt: NativeDate;
78
- updatedAt: NativeDate;
79
- } & {
80
- id: Buffer;
81
- name: string;
82
- email: string;
83
- pushToken: string;
84
- signedIn: Buffer;
85
- }>> & import("mongoose").FlatRecord<{
86
- createdAt: NativeDate;
87
- updatedAt: NativeDate;
88
- } & {
89
- id: Buffer;
90
- name: string;
91
- email: string;
92
- pushToken: string;
93
- signedIn: Buffer;
38
+ }, any>;
39
+ Subscription: import("mongoose").Model<INotiHubSubscription, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiHubSubscription> & INotiHubSubscription & Required<{
40
+ _id: string;
94
41
  }> & {
95
- _id: import("mongoose").Types.ObjectId;
96
- } & {
97
42
  __v?: number | undefined;
98
- }>>;
99
- Subscription: import("mongoose").Model<{
100
- createdAt: NativeDate;
101
- updatedAt: NativeDate;
102
- } & {
103
- id: Buffer;
104
- subscriptionId: string;
105
- user?: any;
106
- entity?: any;
107
- }, {}, {}, {}, import("mongoose").Document<unknown, {}, {
108
- createdAt: NativeDate;
109
- updatedAt: NativeDate;
110
- } & {
111
- id: Buffer;
112
- subscriptionId: string;
113
- user?: any;
114
- entity?: any;
43
+ }, any>;
44
+ NotiTypeModel: import("mongoose").Model<INotiType, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiType> & INotiType & Required<{
45
+ _id: string;
115
46
  }> & {
116
- createdAt: NativeDate;
117
- updatedAt: NativeDate;
118
- } & {
119
- id: Buffer;
120
- subscriptionId: string;
121
- user?: any;
122
- entity?: any;
123
- } & {
124
- _id: import("mongoose").Types.ObjectId;
125
- } & {
126
47
  __v?: number | undefined;
127
- }, import("mongoose").Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
128
- timestamps: true;
129
- }, {
130
- createdAt: NativeDate;
131
- updatedAt: NativeDate;
132
- } & {
133
- id: Buffer;
134
- subscriptionId: string;
135
- user?: any;
136
- entity?: any;
137
- }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
138
- createdAt: NativeDate;
139
- updatedAt: NativeDate;
140
- } & {
141
- id: Buffer;
142
- subscriptionId: string;
143
- user?: any;
144
- entity?: any;
145
- }>> & import("mongoose").FlatRecord<{
146
- createdAt: NativeDate;
147
- updatedAt: NativeDate;
148
- } & {
149
- id: Buffer;
150
- subscriptionId: string;
151
- user?: any;
152
- entity?: any;
48
+ }, any>;
49
+ NotificationStatsModel: import("mongoose").Model<INotiHubNotificationStats, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiHubNotificationStats> & INotiHubNotificationStats & Required<{
50
+ _id: string;
153
51
  }> & {
154
- _id: import("mongoose").Types.ObjectId;
155
- } & {
156
52
  __v?: number | undefined;
157
- }>>;
158
- NotiTypeModel: import("mongoose").Model<{
159
- createdAt: NativeDate;
160
- updatedAt: NativeDate;
161
- } & {
162
- id: Buffer;
163
- type: string;
164
- entity?: any;
165
- }, {}, {}, {}, import("mongoose").Document<unknown, {}, {
166
- createdAt: NativeDate;
167
- updatedAt: NativeDate;
168
- } & {
169
- id: Buffer;
170
- type: string;
171
- entity?: any;
172
- }> & {
173
- createdAt: NativeDate;
174
- updatedAt: NativeDate;
175
- } & {
176
- id: Buffer;
177
- type: string;
178
- entity?: any;
179
- } & {
53
+ }, any>;
54
+ NotiHubStatsHistory: import("mongoose").Model<INotiHubStatsHistory, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiHubStatsHistory> & INotiHubStatsHistory & {
180
55
  _id: import("mongoose").Types.ObjectId;
181
56
  } & {
182
57
  __v?: number | undefined;
183
- }, import("mongoose").Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
184
- timestamps: true;
185
- }, {
186
- createdAt: NativeDate;
187
- updatedAt: NativeDate;
188
- } & {
189
- id: Buffer;
190
- type: string;
191
- entity?: any;
192
- }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
193
- createdAt: NativeDate;
194
- updatedAt: NativeDate;
195
- } & {
196
- id: Buffer;
197
- type: string;
198
- entity?: any;
199
- }>> & import("mongoose").FlatRecord<{
200
- createdAt: NativeDate;
201
- updatedAt: NativeDate;
202
- } & {
203
- id: Buffer;
204
- type: string;
205
- entity?: any;
58
+ }, any>;
59
+ NotificationModel: import("mongoose").Model<INotiHubNotification, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiHubNotification> & INotiHubNotification & Required<{
60
+ _id: string;
206
61
  }> & {
207
- _id: import("mongoose").Types.ObjectId;
208
- } & {
209
62
  __v?: number | undefined;
210
- }>>;
211
- NotificationStatsModel: import("mongoose").Model<{
212
- createdAt: NativeDate;
213
- updatedAt: NativeDate;
214
- } & {
215
- views: number;
216
- notification?: any;
217
- }, {}, {}, {}, import("mongoose").Document<unknown, {}, {
218
- createdAt: NativeDate;
219
- updatedAt: NativeDate;
220
- } & {
221
- views: number;
222
- notification?: any;
63
+ }, any>;
64
+ Customer: import("mongoose").Model<INotiHubCustomer, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiHubCustomer> & INotiHubCustomer & Required<{
65
+ _id: string;
223
66
  }> & {
224
- createdAt: NativeDate;
225
- updatedAt: NativeDate;
226
- } & {
227
- views: number;
228
- notification?: any;
229
- } & {
230
- _id: import("mongoose").Types.ObjectId;
231
- } & {
232
67
  __v?: number | undefined;
233
- }, import("mongoose").Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
234
- timestamps: true;
235
- }, {
236
- createdAt: NativeDate;
237
- updatedAt: NativeDate;
238
- } & {
239
- views: number;
240
- notification?: any;
241
- }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
242
- createdAt: NativeDate;
243
- updatedAt: NativeDate;
244
- } & {
245
- views: number;
246
- notification?: any;
247
- }>> & import("mongoose").FlatRecord<{
248
- createdAt: NativeDate;
249
- updatedAt: NativeDate;
250
- } & {
251
- views: number;
252
- notification?: any;
253
- }> & {
254
- _id: import("mongoose").Types.ObjectId;
255
- } & {
256
- __v?: number | undefined;
257
- }>>;
258
- NotiHubStatsHistory: import("mongoose").Model<{
259
- createdAt: NativeDate;
260
- updatedAt: NativeDate;
261
- } & {
262
- id: Buffer;
263
- type: string;
264
- entityId: string;
265
- notifications: number;
266
- subscription: number;
267
- views: number;
268
- }, {}, {}, {}, import("mongoose").Document<unknown, {}, {
269
- createdAt: NativeDate;
270
- updatedAt: NativeDate;
271
- } & {
272
- id: Buffer;
273
- type: string;
274
- entityId: string;
275
- notifications: number;
276
- subscription: number;
277
- views: number;
278
- }> & {
279
- createdAt: NativeDate;
280
- updatedAt: NativeDate;
281
- } & {
282
- id: Buffer;
283
- type: string;
284
- entityId: string;
285
- notifications: number;
286
- subscription: number;
287
- views: number;
288
- } & {
289
- _id: import("mongoose").Types.ObjectId;
290
- } & {
291
- __v?: number | undefined;
292
- }, import("mongoose").Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
293
- timestamps: true;
294
- }, {
295
- createdAt: NativeDate;
296
- updatedAt: NativeDate;
297
- } & {
298
- id: Buffer;
299
- type: string;
300
- entityId: string;
301
- notifications: number;
302
- subscription: number;
303
- views: number;
304
- }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
305
- createdAt: NativeDate;
306
- updatedAt: NativeDate;
307
- } & {
308
- id: Buffer;
309
- type: string;
310
- entityId: string;
311
- notifications: number;
312
- subscription: number;
313
- views: number;
314
- }>> & import("mongoose").FlatRecord<{
315
- createdAt: NativeDate;
316
- updatedAt: NativeDate;
317
- } & {
318
- id: Buffer;
319
- type: string;
320
- entityId: string;
321
- notifications: number;
322
- subscription: number;
323
- views: number;
324
- }> & {
325
- _id: import("mongoose").Types.ObjectId;
326
- } & {
327
- __v?: number | undefined;
328
- }>>;
329
- NotificationModel: import("mongoose").Model<{
330
- createdAt: NativeDate;
331
- updatedAt: NativeDate;
332
- } & {
333
- type: string;
334
- message: string;
335
- title: string;
336
- body?: string | null | undefined;
337
- entityMinified?: any;
338
- }, {}, {}, {}, import("mongoose").Document<unknown, {}, {
339
- createdAt: NativeDate;
340
- updatedAt: NativeDate;
341
- } & {
342
- type: string;
343
- message: string;
344
- title: string;
345
- body?: string | null | undefined;
346
- entityMinified?: any;
347
- }> & {
348
- createdAt: NativeDate;
349
- updatedAt: NativeDate;
350
- } & {
351
- type: string;
352
- message: string;
353
- title: string;
354
- body?: string | null | undefined;
355
- entityMinified?: any;
356
- } & {
357
- _id: import("mongoose").Types.ObjectId;
358
- } & {
359
- __v?: number | undefined;
360
- }, import("mongoose").Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
361
- timestamps: true;
362
- }, {
363
- createdAt: NativeDate;
364
- updatedAt: NativeDate;
365
- } & {
366
- type: string;
367
- message: string;
368
- title: string;
369
- body?: string | null | undefined;
370
- entityMinified?: any;
371
- }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
372
- createdAt: NativeDate;
373
- updatedAt: NativeDate;
374
- } & {
375
- type: string;
376
- message: string;
377
- title: string;
378
- body?: string | null | undefined;
379
- entityMinified?: any;
380
- }>> & import("mongoose").FlatRecord<{
381
- createdAt: NativeDate;
382
- updatedAt: NativeDate;
383
- } & {
384
- type: string;
385
- message: string;
386
- title: string;
387
- body?: string | null | undefined;
388
- entityMinified?: any;
389
- }> & {
390
- _id: import("mongoose").Types.ObjectId;
391
- } & {
392
- __v?: number | undefined;
393
- }>>;
394
- Customer: import("mongoose").Model<{
395
- id: Buffer;
396
- email: string;
397
- paid: Buffer;
398
- verified: Buffer;
399
- confirmed: Buffer;
400
- minified?: any;
401
- }, {}, {}, {}, import("mongoose").Document<unknown, {}, {
402
- id: Buffer;
403
- email: string;
404
- paid: Buffer;
405
- verified: Buffer;
406
- confirmed: Buffer;
407
- minified?: any;
408
- }> & {
409
- id: Buffer;
410
- email: string;
411
- paid: Buffer;
412
- verified: Buffer;
413
- confirmed: Buffer;
414
- minified?: any;
415
- } & {
416
- _id: import("mongoose").Types.ObjectId;
417
- } & {
418
- __v?: number | undefined;
419
- }, import("mongoose").Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
420
- id: Buffer;
421
- email: string;
422
- paid: Buffer;
423
- verified: Buffer;
424
- confirmed: Buffer;
425
- minified?: any;
426
- }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
427
- id: Buffer;
428
- email: string;
429
- paid: Buffer;
430
- verified: Buffer;
431
- confirmed: Buffer;
432
- minified?: any;
433
- }>> & import("mongoose").FlatRecord<{
434
- id: Buffer;
435
- email: string;
436
- paid: Buffer;
437
- verified: Buffer;
438
- confirmed: Buffer;
439
- minified?: any;
440
- }> & {
441
- _id: import("mongoose").Types.ObjectId;
442
- } & {
443
- __v?: number | undefined;
444
- }>>;
68
+ }, any>;
445
69
  CustomerMinified: import("mongoose").Model<{
446
- id: Buffer;
447
70
  name: string;
71
+ id: Buffer;
448
72
  username: string;
449
73
  img?: any;
450
74
  }, {}, {}, {}, import("mongoose").Document<unknown, {}, {
451
- id: Buffer;
452
75
  name: string;
76
+ id: Buffer;
453
77
  username: string;
454
78
  img?: any;
455
79
  }> & {
456
- id: Buffer;
457
80
  name: string;
81
+ id: Buffer;
458
82
  username: string;
459
83
  img?: any;
460
84
  } & {
@@ -462,18 +86,18 @@ export declare const schemas: {
462
86
  } & {
463
87
  __v?: number | undefined;
464
88
  }, import("mongoose").Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
465
- id: Buffer;
466
89
  name: string;
90
+ id: Buffer;
467
91
  username: string;
468
92
  img?: any;
469
93
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
470
- id: Buffer;
471
94
  name: string;
95
+ id: Buffer;
472
96
  username: string;
473
97
  img?: any;
474
98
  }>> & import("mongoose").FlatRecord<{
475
- id: Buffer;
476
99
  name: string;
100
+ id: Buffer;
477
101
  username: string;
478
102
  img?: any;
479
103
  }> & {
@@ -25,18 +25,18 @@
25
25
  /// <reference types="mongoose/types/inferrawdoctype" />
26
26
  import { Schema } from "mongoose";
27
27
  declare const CustomerMinified: import("mongoose").Model<{
28
- id: Buffer;
29
28
  name: string;
29
+ id: Buffer;
30
30
  username: string;
31
31
  img?: any;
32
32
  }, {}, {}, {}, import("mongoose").Document<unknown, {}, {
33
- id: Buffer;
34
33
  name: string;
34
+ id: Buffer;
35
35
  username: string;
36
36
  img?: any;
37
37
  }> & {
38
- id: Buffer;
39
38
  name: string;
39
+ id: Buffer;
40
40
  username: string;
41
41
  img?: any;
42
42
  } & {
@@ -44,18 +44,18 @@ declare const CustomerMinified: import("mongoose").Model<{
44
44
  } & {
45
45
  __v?: number | undefined;
46
46
  }, Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
47
- id: Buffer;
48
47
  name: string;
48
+ id: Buffer;
49
49
  username: string;
50
50
  img?: any;
51
51
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
52
- id: Buffer;
53
52
  name: string;
53
+ id: Buffer;
54
54
  username: string;
55
55
  img?: any;
56
56
  }>> & import("mongoose").FlatRecord<{
57
- id: Buffer;
58
57
  name: string;
58
+ id: Buffer;
59
59
  username: string;
60
60
  img?: any;
61
61
  }> & {
@@ -21,58 +21,13 @@
21
21
  /// <reference types="mongoose/types/utility" />
22
22
  /// <reference types="mongoose/types/validation" />
23
23
  /// <reference types="mongoose/types/virtuals" />
24
+ /// <reference types="mongoose" />
24
25
  /// <reference types="mongoose/types/inferschematype" />
25
26
  /// <reference types="mongoose/types/inferrawdoctype" />
26
- import { Schema } from "mongoose";
27
- declare const Customer: import("mongoose").Model<{
28
- id: Buffer;
29
- email: string;
30
- paid: Buffer;
31
- verified: Buffer;
32
- confirmed: Buffer;
33
- minified?: any;
34
- }, {}, {}, {}, import("mongoose").Document<unknown, {}, {
35
- id: Buffer;
36
- email: string;
37
- paid: Buffer;
38
- verified: Buffer;
39
- confirmed: Buffer;
40
- minified?: any;
27
+ import { INotiHubCustomer } from "../../types";
28
+ declare const Customer: import("mongoose").Model<INotiHubCustomer, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiHubCustomer> & INotiHubCustomer & Required<{
29
+ _id: string;
41
30
  }> & {
42
- id: Buffer;
43
- email: string;
44
- paid: Buffer;
45
- verified: Buffer;
46
- confirmed: Buffer;
47
- minified?: any;
48
- } & {
49
- _id: import("mongoose").Types.ObjectId;
50
- } & {
51
31
  __v?: number | undefined;
52
- }, Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
53
- id: Buffer;
54
- email: string;
55
- paid: Buffer;
56
- verified: Buffer;
57
- confirmed: Buffer;
58
- minified?: any;
59
- }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
60
- id: Buffer;
61
- email: string;
62
- paid: Buffer;
63
- verified: Buffer;
64
- confirmed: Buffer;
65
- minified?: any;
66
- }>> & import("mongoose").FlatRecord<{
67
- id: Buffer;
68
- email: string;
69
- paid: Buffer;
70
- verified: Buffer;
71
- confirmed: Buffer;
72
- minified?: any;
73
- }> & {
74
- _id: import("mongoose").Types.ObjectId;
75
- } & {
76
- __v?: number | undefined;
77
- }>>;
32
+ }, any>;
78
33
  export default Customer;
@@ -21,78 +21,13 @@
21
21
  /// <reference types="mongoose/types/utility" />
22
22
  /// <reference types="mongoose/types/validation" />
23
23
  /// <reference types="mongoose/types/virtuals" />
24
+ /// <reference types="mongoose" />
24
25
  /// <reference types="mongoose/types/inferschematype" />
25
26
  /// <reference types="mongoose/types/inferrawdoctype" />
26
- import { Schema } from "mongoose";
27
- declare const NotiHubStatsHistory: import("mongoose").Model<{
28
- createdAt: NativeDate;
29
- updatedAt: NativeDate;
30
- } & {
31
- id: Buffer;
32
- type: string;
33
- entityId: string;
34
- notifications: number;
35
- subscription: number;
36
- views: number;
37
- }, {}, {}, {}, import("mongoose").Document<unknown, {}, {
38
- createdAt: NativeDate;
39
- updatedAt: NativeDate;
40
- } & {
41
- id: Buffer;
42
- type: string;
43
- entityId: string;
44
- notifications: number;
45
- subscription: number;
46
- views: number;
47
- }> & {
48
- createdAt: NativeDate;
49
- updatedAt: NativeDate;
50
- } & {
51
- id: Buffer;
52
- type: string;
53
- entityId: string;
54
- notifications: number;
55
- subscription: number;
56
- views: number;
57
- } & {
58
- _id: import("mongoose").Types.ObjectId;
59
- } & {
60
- __v?: number | undefined;
61
- }, Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
62
- timestamps: true;
63
- }, {
64
- createdAt: NativeDate;
65
- updatedAt: NativeDate;
66
- } & {
67
- id: Buffer;
68
- type: string;
69
- entityId: string;
70
- notifications: number;
71
- subscription: number;
72
- views: number;
73
- }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
74
- createdAt: NativeDate;
75
- updatedAt: NativeDate;
76
- } & {
77
- id: Buffer;
78
- type: string;
79
- entityId: string;
80
- notifications: number;
81
- subscription: number;
82
- views: number;
83
- }>> & import("mongoose").FlatRecord<{
84
- createdAt: NativeDate;
85
- updatedAt: NativeDate;
86
- } & {
87
- id: Buffer;
88
- type: string;
89
- entityId: string;
90
- notifications: number;
91
- subscription: number;
92
- views: number;
93
- }> & {
27
+ import { INotiHubStatsHistory } from "../../types";
28
+ declare const NotiHubStatsHistory: import("mongoose").Model<INotiHubStatsHistory, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiHubStatsHistory> & INotiHubStatsHistory & {
94
29
  _id: import("mongoose").Types.ObjectId;
95
30
  } & {
96
31
  __v?: number | undefined;
97
- }>>;
32
+ }, any>;
98
33
  export default NotiHubStatsHistory;