@amohamud23/notihub 1.0.37 → 1.0.39

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 (56) hide show
  1. package/lib/models/CustomerMinifiedModel.ts +1 -0
  2. package/lib/models/CustomerModel.ts +1 -0
  3. package/lib/models/NotiHubStatsHistoryModel.ts +1 -0
  4. package/lib/models/NotiHubStatsModel.ts +1 -0
  5. package/lib/models/NotiTypeModel.ts +1 -0
  6. package/lib/models/NotificationModel.ts +1 -0
  7. package/lib/models/NotificationStatsModel.ts +1 -0
  8. package/lib/models/SubscriptionModel.ts +1 -0
  9. package/lib/models/SubscriptionTypeModel.ts +1 -0
  10. package/lib/models/UserModel.ts +1 -0
  11. package/package.json +3 -3
  12. package/types/index.d.ts +170 -168
  13. package/dist/index.d.ts +0 -86
  14. package/dist/index.js +0 -12
  15. package/dist/lib/models/CustomerMinifiedModel.d.ts +0 -40
  16. package/dist/lib/models/CustomerMinifiedModel.js +0 -12
  17. package/dist/lib/models/CustomerModel.d.ts +0 -32
  18. package/dist/lib/models/CustomerModel.js +0 -14
  19. package/dist/lib/models/NotiHubStatsHistoryModel.d.ts +0 -32
  20. package/dist/lib/models/NotiHubStatsHistoryModel.js +0 -14
  21. package/dist/lib/models/NotiHubStatsModel.d.ts +0 -32
  22. package/dist/lib/models/NotiHubStatsModel.js +0 -17
  23. package/dist/lib/models/NotiTypeModel.d.ts +0 -32
  24. package/dist/lib/models/NotiTypeModel.js +0 -14
  25. package/dist/lib/models/NotificationModel.d.ts +0 -32
  26. package/dist/lib/models/NotificationModel.js +0 -19
  27. package/dist/lib/models/NotificationStatsModel.d.ts +0 -32
  28. package/dist/lib/models/NotificationStatsModel.js +0 -15
  29. package/dist/lib/models/SubscriptionModel.d.ts +0 -32
  30. package/dist/lib/models/SubscriptionModel.js +0 -14
  31. package/dist/lib/models/SubscriptionTypeModel.d.ts +0 -32
  32. package/dist/lib/models/SubscriptionTypeModel.js +0 -14
  33. package/dist/lib/models/UserModel.d.ts +0 -32
  34. package/dist/lib/models/UserModel.js +0 -12
  35. package/dist/lib/models/index.d.ts +0 -82
  36. package/dist/lib/models/index.js +0 -25
  37. package/dist/lib/models/schemas/CustomerMinifiedSchema.d.ts +0 -51
  38. package/dist/lib/models/schemas/CustomerMinifiedSchema.js +0 -14
  39. package/dist/lib/models/schemas/CustomerSchema.d.ts +0 -73
  40. package/dist/lib/models/schemas/CustomerSchema.js +0 -17
  41. package/dist/lib/models/schemas/NotiTypeSchema.d.ts +0 -83
  42. package/dist/lib/models/schemas/NotiTypeSchema.js +0 -14
  43. package/dist/lib/models/schemas/NotificationSchema.d.ts +0 -76
  44. package/dist/lib/models/schemas/NotificationSchema.js +0 -18
  45. package/dist/lib/models/schemas/NotificationStatsHistorySchema.d.ts +0 -53
  46. package/dist/lib/models/schemas/NotificationStatsHistorySchema.js +0 -12
  47. package/dist/lib/models/schemas/NotificationStatsSchema.d.ts +0 -13
  48. package/dist/lib/models/schemas/NotificationStatsSchema.js +0 -8
  49. package/dist/lib/models/schemas/SubscriptionSchema.d.ts +0 -106
  50. package/dist/lib/models/schemas/SubscriptionSchema.js +0 -16
  51. package/dist/lib/models/schemas/SubscriptionTypeSchema.d.ts +0 -15
  52. package/dist/lib/models/schemas/SubscriptionTypeSchema.js +0 -8
  53. package/dist/lib/models/schemas/UserSchema.d.ts +0 -50
  54. package/dist/lib/models/schemas/UserSchema.js +0 -11
  55. package/dist/lib/util/DateUtil.d.ts +0 -7
  56. package/dist/lib/util/DateUtil.js +0 -56
@@ -1,5 +1,6 @@
1
1
  import { Schema, model } from "mongoose";
2
2
  import CustomerMinifiedSchema from "./schemas/CustomerMinifiedSchema";
3
+ import { INotiHubCustomerMinified } from "@amohamud23/notihub";
3
4
 
4
5
  // 2. Create a Schema corresponding to the document interface.
5
6
  const customerMinifiedSchema = new Schema<INotiHubCustomerMinified>(
@@ -1,6 +1,7 @@
1
1
  import { Schema, model } from "mongoose";
2
2
  import CustomerMinifiedSchema from "./schemas/CustomerMinifiedSchema";
3
3
  import CustomerSchema from "./schemas/CustomerSchema";
4
+ import { INotiHubCustomer } from "@amohamud23/notihub";
4
5
 
5
6
  // 2. Create a Schema corresponding to the document interface.
6
7
  const customerSchema = new Schema<INotiHubCustomer>(CustomerSchema, {
@@ -1,5 +1,6 @@
1
1
  import { Schema, model } from "mongoose";
2
2
  import NotihubStatsHistorySchema from "./schemas/NotificationStatsHistorySchema";
3
+ import { INotiHubStatsHistory } from "@amohamud23/notihub";
3
4
 
4
5
  // 2. Create a Schema corresponding to the document interface.
5
6
  const notihubStatsHistorySchema = new Schema<INotiHubStatsHistory>(
@@ -1,5 +1,6 @@
1
1
  import { Schema, model } from "mongoose";
2
2
  import CustomerSchema from "./schemas/CustomerSchema";
3
+ import { INotiHubStats } from "@amohamud23/notihub";
3
4
 
4
5
  // 2. Create a Schema corresponding to the document interface.
5
6
  const entityNotiHubStatsSchema = new Schema<INotiHubStats>(
@@ -1,5 +1,6 @@
1
1
  import { Schema, model } from "mongoose";
2
2
  import NotiTypeSchema from "./schemas/NotiTypeSchema";
3
+ import { INotiType } from "@amohamud23/notihub";
3
4
 
4
5
  // 2. Create a Schema corresponding to the document interface.
5
6
  const notiTypeSchema = new Schema<INotiType>(NotiTypeSchema, {
@@ -1,5 +1,6 @@
1
1
  import { Schema, model, ObjectId } from "mongoose";
2
2
  import CustomerSchema from "./schemas/CustomerSchema";
3
+ import { INotiHubNotification } from "@amohamud23/notihub";
3
4
 
4
5
  // 2. Create a Schema corresponding to the document interface.
5
6
  const notificationSchema = new Schema<INotiHubNotification>(
@@ -1,5 +1,6 @@
1
1
  import { Schema, model } from "mongoose";
2
2
  import NotificationSchema from "./schemas/NotificationSchema";
3
+ import { INotiHubNotificationStats } from "@amohamud23/notihub";
3
4
 
4
5
  // 2. Create a Schema corresponding to the document interface.
5
6
  const notificationSchema = new Schema<INotiHubNotificationStats>(
@@ -1,6 +1,7 @@
1
1
  import mongoose, { Document, Schema, Types, model } from "mongoose";
2
2
 
3
3
  import SubscriptionSchema from "./schemas/SubscriptionSchema";
4
+ import { INotiHubSubscription } from "@amohamud23/notihub";
4
5
 
5
6
  // 2. Create a Schema corresponding to the document interface.
6
7
  const subscriptionSchema = new Schema<INotiHubSubscription>(
@@ -1,6 +1,7 @@
1
1
  import { ObjectId } from "mongodb";
2
2
  import { Schema, model } from "mongoose";
3
3
  import SubscriptionSchema from "./schemas/SubscriptionTypeSchema";
4
+ import { IUserSubscribeNotifier } from "@amohamud23/notihub";
4
5
 
5
6
  // 2. Create a Schema corresponding to the document interface.
6
7
  const subscriptionSchema = new Schema<IUserSubscribeNotifier>(
@@ -1,5 +1,6 @@
1
1
  import { Schema, model } from "mongoose";
2
2
  import UserSchema from "./schemas/UserSchema";
3
+ import { INotiHubUser } from "@amohamud23/notihub";
3
4
 
4
5
  // 2. Create a Schema corresponding to the document interface.
5
6
  const userSchema = new Schema<INotiHubUser>(UserSchema, { timestamps: true });
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@amohamud23/notihub",
3
- "version": "1.0.37",
3
+ "version": "1.0.39",
4
4
  "description": "Notihub Package",
5
- "main": "dist/index.js",
6
- "types": "types/index.d.ts",
5
+ "main": "./index.ts",
6
+ "types": "./types/index.d.ts",
7
7
  "scripts": {
8
8
  "build": "npx tsc",
9
9
  "test": "echo \"Error: no test specified\" && exit 1"
package/types/index.d.ts CHANGED
@@ -1,169 +1,171 @@
1
- // ----------------- Request Types ---------------------
2
- interface CreateNotiRequestBody {
3
- subscriptionId: string;
4
- userId: string;
5
- title: string;
6
- message: string;
7
- type: string;
8
- }
9
-
10
- interface CreateSubscriptionRequestBody {
11
- subscriptionId: string;
12
- type: string;
13
- }
14
-
15
- interface CreateUserRequestBody {
16
- name: string;
17
- email: string;
18
- token: string;
19
- }
20
-
21
- interface ICreateCustomerRequestBody {
22
- email: string;
23
- username: string;
24
- name: string;
25
- }
26
-
27
- interface ICreateNotiRequestBody {}
28
-
29
- // ----------------- NotiHub Types ---------------------
30
-
31
- interface INotiHubCustomerMinified {
32
- _id: string;
33
- name: string;
34
- img: INotiHubImage;
35
- username: string;
36
- createdAt: string;
37
- updatedAt: string;
38
- }
39
- interface 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
- interface 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
- interface INotiHubNotificationStats {
63
- _id?: string;
64
- notification: INotiHubNotification;
65
- views: number;
66
- }
67
-
68
- interface INotiHubSubscription {
69
- _id?: string;
70
- subscriptionId: string;
71
- entity: INotiHubCustomer;
72
- user: INotiHubUser;
73
- type: "SUBSCRIBED" | "UNSUBSCRIBED";
74
- createdAt: string;
75
- updatedAt: string;
76
- }
77
-
78
- interface INotiHubUser {
79
- _id?: string;
80
- pushToken: string;
81
- name: string;
82
- email: string;
83
- subscriptions: number;
84
- events: number;
85
- }
86
-
87
- interface INotiHubImage {
88
- bucket: string;
89
- key: string;
90
- }
91
-
92
- interface INotiHubStats {
93
- entityRef: string;
94
- entity: INotiHubCustomer;
95
- subscription: number;
96
- notifications: number;
97
- views: number;
98
- }
99
-
100
- interface INotiHubStatsHistory {
101
- entityId: string;
102
- type: "MONTH" | "YEAR";
103
- subscription: number;
104
- notifications: number;
105
- views: number;
106
- }
107
-
108
- interface INotiType {
109
- _id?: string;
110
- type: string;
111
- entity: string;
112
- createdAt: string;
113
- updatedAt: string;
114
- }
115
-
116
- interface INotiTypeStats {
117
- _id?: string;
118
- notiTypeId: string;
119
- subscribed: number;
120
- createdAt: string;
121
- }
122
-
123
- interface INotiHubUser {
124
- _id?: string;
125
- pushToken: string;
126
- name: string;
127
- email: string;
128
- subscriptions: number;
129
- events: number;
130
- }
131
-
132
- interface IUserSubscription {
133
- user: INotiHubUser;
134
- entity: INotiHubCustomer;
135
- subscriptionId: string;
136
- type: "SUBSCRIBED" | "UNSUBSCRIBED";
137
- createdAt: string;
138
- updatedAt: string;
139
- }
140
-
141
- interface IUserSubscribeNotifier {
142
- userId: string;
143
- entityId: string;
144
- notiTypeId: string;
145
- createdAt: string;
146
- updatedAt: string;
147
- }
148
-
149
- interface INotiHubUserView {
150
- userId: string;
151
- entityId: string;
152
- notificationId;
153
- createdAt: string;
154
- }
155
-
156
- interface NotiHubTypes {
157
- INotiHubUserView: INotiHubUserView;
158
- IUserSubscribeNotifier: IUserSubscribeNotifier;
159
- IUserSubscription: IUserSubscription;
160
- INotiHubUser: INotiHubUser;
161
- INotiTypeStats: INotiTypeStats;
162
- INotiHubImage: INotiHubImage;
163
- INotiHubSubscription: INotiHubSubscription;
164
- INotiHubNotificationStats: INotiHubNotificationStats;
165
- INotiHubNotification: INotiHubNotification;
166
- INotiHubCustomer: INotiHubCustomer;
167
- INotiHubCustomerMinified: INotiHubCustomerMinified;
168
- INotiHubStatsHistory: INotiHubStatsHistory;
1
+ declare module "@amohamud23/notihub" {
2
+ // ----------------- Request Types ---------------------
3
+ interface CreateNotiRequestBody {
4
+ subscriptionId: string;
5
+ userId: string;
6
+ title: string;
7
+ message: string;
8
+ type: string;
9
+ }
10
+
11
+ interface CreateSubscriptionRequestBody {
12
+ subscriptionId: string;
13
+ type: string;
14
+ }
15
+
16
+ interface CreateUserRequestBody {
17
+ name: string;
18
+ email: string;
19
+ token: string;
20
+ }
21
+
22
+ interface ICreateCustomerRequestBody {
23
+ email: string;
24
+ username: string;
25
+ name: string;
26
+ }
27
+
28
+ interface ICreateNotiRequestBody {}
29
+
30
+ // ----------------- NotiHub Types ---------------------
31
+
32
+ interface INotiHubCustomerMinified {
33
+ _id: string;
34
+ name: string;
35
+ img: INotiHubImage;
36
+ username: string;
37
+ createdAt: string;
38
+ updatedAt: string;
39
+ }
40
+ interface INotiHubCustomer {
41
+ _id: string;
42
+ name: string;
43
+ email: string;
44
+ minified: INotiHubCustomerMinified;
45
+ verified: boolean;
46
+ paid: boolean;
47
+ confirmed: boolean;
48
+ createdAt: string;
49
+ updatedAt: string;
50
+ }
51
+
52
+ interface INotiHubNotification {
53
+ _id?: string;
54
+ title: string;
55
+ message: string;
56
+ type: string;
57
+ entityId: string;
58
+ entityMinified: INotiHubCustomerMinified;
59
+ body: string;
60
+ createdAt: string;
61
+ updatedAt: string;
62
+ }
63
+ interface INotiHubNotificationStats {
64
+ _id?: string;
65
+ notification: INotiHubNotification;
66
+ views: number;
67
+ }
68
+
69
+ interface INotiHubUser {
70
+ _id?: string;
71
+ pushToken: string;
72
+ name: string;
73
+ email: string;
74
+ subscriptions: number;
75
+ events: number;
76
+ }
77
+
78
+ interface INotiHubImage {
79
+ bucket: string;
80
+ key: string;
81
+ }
82
+
83
+ interface INotiHubStats {
84
+ entityRef: string;
85
+ entity: INotiHubCustomer;
86
+ subscription: number;
87
+ notifications: number;
88
+ views: number;
89
+ }
90
+
91
+ interface INotiHubStatsHistory {
92
+ entityId: string;
93
+ type: "MONTH" | "YEAR";
94
+ subscription: number;
95
+ notifications: number;
96
+ views: number;
97
+ }
98
+
99
+ interface INotiType {
100
+ _id?: string;
101
+ type: string;
102
+ entity: string;
103
+ createdAt: string;
104
+ updatedAt: string;
105
+ }
106
+
107
+ interface INotiTypeStats {
108
+ _id?: string;
109
+ notiTypeId: string;
110
+ subscribed: number;
111
+ createdAt: string;
112
+ }
113
+
114
+ interface INotiHubUser {
115
+ _id?: string;
116
+ pushToken: string;
117
+ name: string;
118
+ email: string;
119
+ subscriptions: number;
120
+ events: number;
121
+ }
122
+
123
+ interface IUserSubscription {
124
+ user: INotiHubUser;
125
+ entity: INotiHubCustomer;
126
+ subscriptionId: string;
127
+ type: "SUBSCRIBED" | "UNSUBSCRIBED";
128
+ createdAt: string;
129
+ updatedAt: string;
130
+ }
131
+
132
+ interface IUserSubscribeNotifier {
133
+ userId: string;
134
+ entityId: string;
135
+ notiTypeId: string;
136
+ createdAt: string;
137
+ updatedAt: string;
138
+ }
139
+
140
+ interface INotiHubUserView {
141
+ userId: string;
142
+ entityId: string;
143
+ notificationId;
144
+ createdAt: string;
145
+ }
146
+
147
+ interface INotiHubSubscription {
148
+ _id?: string;
149
+ subscriptionId: string;
150
+ entity: INotiHubCustomer;
151
+ user: INotiHubUser;
152
+ type: "SUBSCRIBED" | "UNSUBSCRIBED";
153
+ createdAt: string;
154
+ updatedAt: string;
155
+ }
156
+
157
+ interface NotiHubTypes {
158
+ INotiHubUserView: INotiHubUserView;
159
+ IUserSubscribeNotifier: IUserSubscribeNotifier;
160
+ IUserSubscription: IUserSubscription;
161
+ INotiHubUser: INotiHubUser;
162
+ INotiTypeStats: INotiTypeStats;
163
+ INotiHubImage: INotiHubImage;
164
+ INotiHubSubscription: INotiHubSubscription;
165
+ INotiHubNotificationStats: INotiHubNotificationStats;
166
+ INotiHubNotification: INotiHubNotification;
167
+ INotiHubCustomer: INotiHubCustomer;
168
+ INotiHubCustomerMinified: INotiHubCustomerMinified;
169
+ INotiHubStatsHistory: INotiHubStatsHistory;
170
+ }
169
171
  }
package/dist/index.d.ts DELETED
@@ -1,86 +0,0 @@
1
- /// <reference types="mongoose/types/aggregate" />
2
- /// <reference types="mongoose/types/callback" />
3
- /// <reference types="mongoose/types/collection" />
4
- /// <reference types="mongoose/types/connection" />
5
- /// <reference types="mongoose/types/cursor" />
6
- /// <reference types="mongoose/types/document" />
7
- /// <reference types="mongoose/types/error" />
8
- /// <reference types="mongoose/types/expressions" />
9
- /// <reference types="mongoose/types/helpers" />
10
- /// <reference types="mongoose/types/middlewares" />
11
- /// <reference types="mongoose/types/indexes" />
12
- /// <reference types="mongoose/types/models" />
13
- /// <reference types="mongoose/types/mongooseoptions" />
14
- /// <reference types="mongoose/types/pipelinestage" />
15
- /// <reference types="mongoose/types/populate" />
16
- /// <reference types="mongoose/types/query" />
17
- /// <reference types="mongoose/types/schemaoptions" />
18
- /// <reference types="mongoose/types/schematypes" />
19
- /// <reference types="mongoose/types/session" />
20
- /// <reference types="mongoose/types/types" />
21
- /// <reference types="mongoose/types/utility" />
22
- /// <reference types="mongoose/types/validation" />
23
- /// <reference types="mongoose/types/virtuals" />
24
- /// <reference types="mongoose" />
25
- /// <reference types="mongoose/types/inferschematype" />
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
- }>>;
86
- };
package/dist/index.js DELETED
@@ -1,12 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.DB = exports.DateUtil = void 0;
7
- const DateUtil_1 = __importDefault(require("./lib/util/DateUtil"));
8
- const index_1 = __importDefault(require("./lib/models/index"));
9
- // ---------NotiHub Utils ---------------------------------------------------------------
10
- exports.DateUtil = DateUtil_1.default;
11
- exports.DB = index_1.default;
12
- // ---------NotiHub Types ---------------------------------------------------------------
@@ -1,40 +0,0 @@
1
- /// <reference types="mongoose/types/aggregate" />
2
- /// <reference types="mongoose/types/callback" />
3
- /// <reference types="mongoose/types/collection" />
4
- /// <reference types="mongoose/types/connection" />
5
- /// <reference types="mongoose/types/cursor" />
6
- /// <reference types="mongoose/types/document" />
7
- /// <reference types="mongoose/types/error" />
8
- /// <reference types="mongoose/types/expressions" />
9
- /// <reference types="mongoose/types/helpers" />
10
- /// <reference types="mongoose/types/middlewares" />
11
- /// <reference types="mongoose/types/indexes" />
12
- /// <reference types="mongoose/types/models" />
13
- /// <reference types="mongoose/types/mongooseoptions" />
14
- /// <reference types="mongoose/types/pipelinestage" />
15
- /// <reference types="mongoose/types/populate" />
16
- /// <reference types="mongoose/types/query" />
17
- /// <reference types="mongoose/types/schemaoptions" />
18
- /// <reference types="mongoose/types/schematypes" />
19
- /// <reference types="mongoose/types/session" />
20
- /// <reference types="mongoose/types/types" />
21
- /// <reference types="mongoose/types/utility" />
22
- /// <reference types="mongoose/types/validation" />
23
- /// <reference types="mongoose/types/virtuals" />
24
- /// <reference types="mongoose/types/inferschematype" />
25
- /// <reference types="mongoose/types/inferrawdoctype" />
26
- import { Schema } from "mongoose";
27
- declare const CustomerMinified: import("mongoose").Model<INotiHubCustomerMinified, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiHubCustomerMinified> & INotiHubCustomerMinified & Required<{
28
- _id: string;
29
- }> & {
30
- __v?: number | undefined;
31
- }, Schema<INotiHubCustomerMinified, import("mongoose").Model<INotiHubCustomerMinified, any, any, any, import("mongoose").Document<unknown, any, INotiHubCustomerMinified> & INotiHubCustomerMinified & Required<{
32
- _id: string;
33
- }> & {
34
- __v?: number | undefined;
35
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, INotiHubCustomerMinified, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<INotiHubCustomerMinified>> & import("mongoose").FlatRecord<INotiHubCustomerMinified> & Required<{
36
- _id: string;
37
- }> & {
38
- __v?: number | undefined;
39
- }>>;
40
- export default CustomerMinified;
@@ -1,12 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const mongoose_1 = require("mongoose");
7
- const CustomerMinifiedSchema_1 = __importDefault(require("./schemas/CustomerMinifiedSchema"));
8
- // 2. Create a Schema corresponding to the document interface.
9
- const customerMinifiedSchema = new mongoose_1.Schema(CustomerMinifiedSchema_1.default, { timestamps: true });
10
- // 3. Create a Model.
11
- const CustomerMinified = (0, mongoose_1.model)("CustomerMinified", customerMinifiedSchema);
12
- exports.default = CustomerMinified;
@@ -1,32 +0,0 @@
1
- /// <reference types="mongoose/types/aggregate" />
2
- /// <reference types="mongoose/types/callback" />
3
- /// <reference types="mongoose/types/collection" />
4
- /// <reference types="mongoose/types/connection" />
5
- /// <reference types="mongoose/types/cursor" />
6
- /// <reference types="mongoose/types/document" />
7
- /// <reference types="mongoose/types/error" />
8
- /// <reference types="mongoose/types/expressions" />
9
- /// <reference types="mongoose/types/helpers" />
10
- /// <reference types="mongoose/types/middlewares" />
11
- /// <reference types="mongoose/types/indexes" />
12
- /// <reference types="mongoose/types/models" />
13
- /// <reference types="mongoose/types/mongooseoptions" />
14
- /// <reference types="mongoose/types/pipelinestage" />
15
- /// <reference types="mongoose/types/populate" />
16
- /// <reference types="mongoose/types/query" />
17
- /// <reference types="mongoose/types/schemaoptions" />
18
- /// <reference types="mongoose/types/schematypes" />
19
- /// <reference types="mongoose/types/session" />
20
- /// <reference types="mongoose/types/types" />
21
- /// <reference types="mongoose/types/utility" />
22
- /// <reference types="mongoose/types/validation" />
23
- /// <reference types="mongoose/types/virtuals" />
24
- /// <reference types="mongoose" />
25
- /// <reference types="mongoose/types/inferschematype" />
26
- /// <reference types="mongoose/types/inferrawdoctype" />
27
- declare const Customer: import("mongoose").Model<INotiHubCustomer, {}, {}, {}, import("mongoose").Document<unknown, {}, INotiHubCustomer> & INotiHubCustomer & Required<{
28
- _id: string;
29
- }> & {
30
- __v?: number | undefined;
31
- }, any>;
32
- export default Customer;
@@ -1,14 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const mongoose_1 = require("mongoose");
7
- const CustomerSchema_1 = __importDefault(require("./schemas/CustomerSchema"));
8
- // 2. Create a Schema corresponding to the document interface.
9
- const customerSchema = new mongoose_1.Schema(CustomerSchema_1.default, {
10
- timestamps: true,
11
- });
12
- // 3. Create a Model.
13
- const Customer = (0, mongoose_1.model)("Customer", customerSchema);
14
- exports.default = Customer;