@amohamud23/notihub 1.0.70 → 1.0.71
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.mts +2 -141
- package/dist/index.d.ts +2 -141
- package/dist/index.js +13 -204
- package/dist/index.mjs +6 -203
- package/package.json +1 -5
- package/tsconfig.json +111 -0
- package/src/index.ts +0 -4
- package/src/models/CustomerMinifiedModel.ts +0 -17
- package/src/models/CustomerModel.ts +0 -13
- package/src/models/NotiHubStatsHistoryModel.ts +0 -19
- package/src/models/NotiHubStatsModel.ts +0 -22
- package/src/models/NotiTypeModel.ts +0 -13
- package/src/models/NotificationModel.ts +0 -24
- package/src/models/NotificationStatsModel.ts +0 -20
- package/src/models/SubscriptionModel.ts +0 -20
- package/src/models/SubscriptionTypeModel.ts +0 -20
- package/src/models/UserModel.ts +0 -11
- package/src/models/index.ts +0 -21
- package/src/models/schemas/CustomerMinifiedSchema.ts +0 -14
- package/src/models/schemas/CustomerSchema.ts +0 -14
- package/src/models/schemas/NotiTypeSchema.ts +0 -11
- package/src/models/schemas/NotificationSchema.ts +0 -15
- package/src/models/schemas/NotificationStatsHistorySchema.ts +0 -12
- package/src/models/schemas/NotificationStatsSchema.ts +0 -9
- package/src/models/schemas/SubscriptionSchema.ts +0 -13
- package/src/models/schemas/SubscriptionTypeSchema.ts +0 -7
- package/src/models/schemas/UserSchema.ts +0 -11
- package/src/types.ts +0 -161
- package/src/util/DateUtil.ts +0 -60
package/dist/index.d.mts
CHANGED
|
@@ -1,142 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
subscriptionId: string;
|
|
3
|
-
userId: string;
|
|
4
|
-
title: string;
|
|
5
|
-
message: string;
|
|
6
|
-
type: string;
|
|
7
|
-
};
|
|
8
|
-
type CreateSubscriptionRequestBody = {
|
|
9
|
-
subscriptionId: string;
|
|
10
|
-
type: string;
|
|
11
|
-
};
|
|
12
|
-
type CreateUserRequestBody = {
|
|
13
|
-
name: string;
|
|
14
|
-
email: string;
|
|
15
|
-
token: string;
|
|
16
|
-
};
|
|
17
|
-
type ICreateCustomerRequestBody = {
|
|
18
|
-
email: string;
|
|
19
|
-
username: string;
|
|
20
|
-
name: string;
|
|
21
|
-
};
|
|
22
|
-
type ICreateNotiRequestBody = {};
|
|
23
|
-
type INotiHubCustomerMinified = {
|
|
24
|
-
_id: string;
|
|
25
|
-
name: string;
|
|
26
|
-
img: INotiHubImage;
|
|
27
|
-
username: string;
|
|
28
|
-
createdAt: string;
|
|
29
|
-
updatedAt: string;
|
|
30
|
-
};
|
|
31
|
-
type INotiHubCustomer = {
|
|
32
|
-
_id: string;
|
|
33
|
-
name: string;
|
|
34
|
-
email: string;
|
|
35
|
-
minified: INotiHubCustomerMinified;
|
|
36
|
-
verified: boolean;
|
|
37
|
-
paid: boolean;
|
|
38
|
-
confirmed: boolean;
|
|
39
|
-
createdAt: string;
|
|
40
|
-
updatedAt: string;
|
|
41
|
-
};
|
|
42
|
-
type INotiHubNotification = {
|
|
43
|
-
_id?: string;
|
|
44
|
-
title: string;
|
|
45
|
-
message: string;
|
|
46
|
-
type: string;
|
|
47
|
-
entityId: string;
|
|
48
|
-
entityMinified: INotiHubCustomerMinified;
|
|
49
|
-
body: string;
|
|
50
|
-
createdAt: string;
|
|
51
|
-
updatedAt: string;
|
|
52
|
-
};
|
|
53
|
-
type INotiHubNotificationStats = {
|
|
54
|
-
_id?: string;
|
|
55
|
-
notification: INotiHubNotification;
|
|
56
|
-
views: number;
|
|
57
|
-
};
|
|
58
|
-
type INotiHubUser = {
|
|
59
|
-
_id?: string;
|
|
60
|
-
pushToken: string;
|
|
61
|
-
name: string;
|
|
62
|
-
email: string;
|
|
63
|
-
subscriptions: number;
|
|
64
|
-
events: number;
|
|
65
|
-
};
|
|
66
|
-
type INotiHubImage = {
|
|
67
|
-
bucket: string;
|
|
68
|
-
key: string;
|
|
69
|
-
};
|
|
70
|
-
type INotiHubStats = {
|
|
71
|
-
entityRef: string;
|
|
72
|
-
entity: INotiHubCustomer;
|
|
73
|
-
subscription: number;
|
|
74
|
-
notifications: number;
|
|
75
|
-
views: number;
|
|
76
|
-
};
|
|
77
|
-
type INotiHubStatsHistory = {
|
|
78
|
-
entityId: string;
|
|
79
|
-
type: "MONTH" | "YEAR";
|
|
80
|
-
subscription: number;
|
|
81
|
-
notifications: number;
|
|
82
|
-
views: number;
|
|
83
|
-
};
|
|
84
|
-
type INotiType = {
|
|
85
|
-
_id?: string;
|
|
86
|
-
type: string;
|
|
87
|
-
entity: string;
|
|
88
|
-
createdAt: string;
|
|
89
|
-
updatedAt: string;
|
|
90
|
-
};
|
|
91
|
-
type INotiTypeStats = {
|
|
92
|
-
_id?: string;
|
|
93
|
-
notiTypeId: string;
|
|
94
|
-
subscribed: number;
|
|
95
|
-
createdAt: string;
|
|
96
|
-
};
|
|
97
|
-
type IUserSubscription = {
|
|
98
|
-
user: INotiHubUser;
|
|
99
|
-
entity: INotiHubCustomer;
|
|
100
|
-
subscriptionId: string;
|
|
101
|
-
type: "SUBSCRIBED" | "UNSUBSCRIBED";
|
|
102
|
-
createdAt: string;
|
|
103
|
-
updatedAt: string;
|
|
104
|
-
};
|
|
105
|
-
type IUserSubscribeNotifier = {
|
|
106
|
-
userId: string;
|
|
107
|
-
entityId: string;
|
|
108
|
-
notiTypeId: string;
|
|
109
|
-
createdAt: string;
|
|
110
|
-
updatedAt: string;
|
|
111
|
-
};
|
|
112
|
-
type INotiHubUserView = {
|
|
113
|
-
userId: string;
|
|
114
|
-
entityId: string;
|
|
115
|
-
notificationId: string;
|
|
116
|
-
createdAt: string;
|
|
117
|
-
};
|
|
118
|
-
type INotiHubSubscription = {
|
|
119
|
-
_id?: string;
|
|
120
|
-
subscriptionId: string;
|
|
121
|
-
entity: INotiHubCustomer;
|
|
122
|
-
user: INotiHubUser;
|
|
123
|
-
type: "SUBSCRIBED" | "UNSUBSCRIBED";
|
|
124
|
-
createdAt: string;
|
|
125
|
-
updatedAt: string;
|
|
126
|
-
};
|
|
127
|
-
type NotiHubTypes = {
|
|
128
|
-
INotiHubUserView: INotiHubUserView;
|
|
129
|
-
IUserSubscribeNotifier: IUserSubscribeNotifier;
|
|
130
|
-
IUserSubscription: IUserSubscription;
|
|
131
|
-
INotiHubUser: INotiHubUser;
|
|
132
|
-
INotiTypeStats: INotiTypeStats;
|
|
133
|
-
INotiHubImage: INotiHubImage;
|
|
134
|
-
INotiHubSubscription: INotiHubSubscription;
|
|
135
|
-
INotiHubNotificationStats: INotiHubNotificationStats;
|
|
136
|
-
INotiHubNotification: INotiHubNotification;
|
|
137
|
-
INotiHubCustomer: INotiHubCustomer;
|
|
138
|
-
INotiHubCustomerMinified: INotiHubCustomerMinified;
|
|
139
|
-
INotiHubStatsHistory: INotiHubStatsHistory;
|
|
140
|
-
};
|
|
1
|
+
declare function testFunction(): string;
|
|
141
2
|
|
|
142
|
-
export
|
|
3
|
+
export { testFunction };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,142 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
subscriptionId: string;
|
|
3
|
-
userId: string;
|
|
4
|
-
title: string;
|
|
5
|
-
message: string;
|
|
6
|
-
type: string;
|
|
7
|
-
};
|
|
8
|
-
type CreateSubscriptionRequestBody = {
|
|
9
|
-
subscriptionId: string;
|
|
10
|
-
type: string;
|
|
11
|
-
};
|
|
12
|
-
type CreateUserRequestBody = {
|
|
13
|
-
name: string;
|
|
14
|
-
email: string;
|
|
15
|
-
token: string;
|
|
16
|
-
};
|
|
17
|
-
type ICreateCustomerRequestBody = {
|
|
18
|
-
email: string;
|
|
19
|
-
username: string;
|
|
20
|
-
name: string;
|
|
21
|
-
};
|
|
22
|
-
type ICreateNotiRequestBody = {};
|
|
23
|
-
type INotiHubCustomerMinified = {
|
|
24
|
-
_id: string;
|
|
25
|
-
name: string;
|
|
26
|
-
img: INotiHubImage;
|
|
27
|
-
username: string;
|
|
28
|
-
createdAt: string;
|
|
29
|
-
updatedAt: string;
|
|
30
|
-
};
|
|
31
|
-
type INotiHubCustomer = {
|
|
32
|
-
_id: string;
|
|
33
|
-
name: string;
|
|
34
|
-
email: string;
|
|
35
|
-
minified: INotiHubCustomerMinified;
|
|
36
|
-
verified: boolean;
|
|
37
|
-
paid: boolean;
|
|
38
|
-
confirmed: boolean;
|
|
39
|
-
createdAt: string;
|
|
40
|
-
updatedAt: string;
|
|
41
|
-
};
|
|
42
|
-
type INotiHubNotification = {
|
|
43
|
-
_id?: string;
|
|
44
|
-
title: string;
|
|
45
|
-
message: string;
|
|
46
|
-
type: string;
|
|
47
|
-
entityId: string;
|
|
48
|
-
entityMinified: INotiHubCustomerMinified;
|
|
49
|
-
body: string;
|
|
50
|
-
createdAt: string;
|
|
51
|
-
updatedAt: string;
|
|
52
|
-
};
|
|
53
|
-
type INotiHubNotificationStats = {
|
|
54
|
-
_id?: string;
|
|
55
|
-
notification: INotiHubNotification;
|
|
56
|
-
views: number;
|
|
57
|
-
};
|
|
58
|
-
type INotiHubUser = {
|
|
59
|
-
_id?: string;
|
|
60
|
-
pushToken: string;
|
|
61
|
-
name: string;
|
|
62
|
-
email: string;
|
|
63
|
-
subscriptions: number;
|
|
64
|
-
events: number;
|
|
65
|
-
};
|
|
66
|
-
type INotiHubImage = {
|
|
67
|
-
bucket: string;
|
|
68
|
-
key: string;
|
|
69
|
-
};
|
|
70
|
-
type INotiHubStats = {
|
|
71
|
-
entityRef: string;
|
|
72
|
-
entity: INotiHubCustomer;
|
|
73
|
-
subscription: number;
|
|
74
|
-
notifications: number;
|
|
75
|
-
views: number;
|
|
76
|
-
};
|
|
77
|
-
type INotiHubStatsHistory = {
|
|
78
|
-
entityId: string;
|
|
79
|
-
type: "MONTH" | "YEAR";
|
|
80
|
-
subscription: number;
|
|
81
|
-
notifications: number;
|
|
82
|
-
views: number;
|
|
83
|
-
};
|
|
84
|
-
type INotiType = {
|
|
85
|
-
_id?: string;
|
|
86
|
-
type: string;
|
|
87
|
-
entity: string;
|
|
88
|
-
createdAt: string;
|
|
89
|
-
updatedAt: string;
|
|
90
|
-
};
|
|
91
|
-
type INotiTypeStats = {
|
|
92
|
-
_id?: string;
|
|
93
|
-
notiTypeId: string;
|
|
94
|
-
subscribed: number;
|
|
95
|
-
createdAt: string;
|
|
96
|
-
};
|
|
97
|
-
type IUserSubscription = {
|
|
98
|
-
user: INotiHubUser;
|
|
99
|
-
entity: INotiHubCustomer;
|
|
100
|
-
subscriptionId: string;
|
|
101
|
-
type: "SUBSCRIBED" | "UNSUBSCRIBED";
|
|
102
|
-
createdAt: string;
|
|
103
|
-
updatedAt: string;
|
|
104
|
-
};
|
|
105
|
-
type IUserSubscribeNotifier = {
|
|
106
|
-
userId: string;
|
|
107
|
-
entityId: string;
|
|
108
|
-
notiTypeId: string;
|
|
109
|
-
createdAt: string;
|
|
110
|
-
updatedAt: string;
|
|
111
|
-
};
|
|
112
|
-
type INotiHubUserView = {
|
|
113
|
-
userId: string;
|
|
114
|
-
entityId: string;
|
|
115
|
-
notificationId: string;
|
|
116
|
-
createdAt: string;
|
|
117
|
-
};
|
|
118
|
-
type INotiHubSubscription = {
|
|
119
|
-
_id?: string;
|
|
120
|
-
subscriptionId: string;
|
|
121
|
-
entity: INotiHubCustomer;
|
|
122
|
-
user: INotiHubUser;
|
|
123
|
-
type: "SUBSCRIBED" | "UNSUBSCRIBED";
|
|
124
|
-
createdAt: string;
|
|
125
|
-
updatedAt: string;
|
|
126
|
-
};
|
|
127
|
-
type NotiHubTypes = {
|
|
128
|
-
INotiHubUserView: INotiHubUserView;
|
|
129
|
-
IUserSubscribeNotifier: IUserSubscribeNotifier;
|
|
130
|
-
IUserSubscription: IUserSubscription;
|
|
131
|
-
INotiHubUser: INotiHubUser;
|
|
132
|
-
INotiTypeStats: INotiTypeStats;
|
|
133
|
-
INotiHubImage: INotiHubImage;
|
|
134
|
-
INotiHubSubscription: INotiHubSubscription;
|
|
135
|
-
INotiHubNotificationStats: INotiHubNotificationStats;
|
|
136
|
-
INotiHubNotification: INotiHubNotification;
|
|
137
|
-
INotiHubCustomer: INotiHubCustomer;
|
|
138
|
-
INotiHubCustomerMinified: INotiHubCustomerMinified;
|
|
139
|
-
INotiHubStatsHistory: INotiHubStatsHistory;
|
|
140
|
-
};
|
|
1
|
+
declare function testFunction(): string;
|
|
141
2
|
|
|
142
|
-
export
|
|
3
|
+
export { testFunction };
|
package/dist/index.js
CHANGED
|
@@ -3,6 +3,10 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
6
10
|
var __copyProps = (to, from, except, desc) => {
|
|
7
11
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
12
|
for (let key of __getOwnPropNames(from))
|
|
@@ -15,209 +19,14 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
15
19
|
|
|
16
20
|
// src/index.ts
|
|
17
21
|
var src_exports = {};
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
// src/models/UserModel.ts
|
|
21
|
-
var import_mongoose2 = require("mongoose");
|
|
22
|
-
|
|
23
|
-
// src/models/schemas/UserSchema.ts
|
|
24
|
-
var import_mongoose = require("mongoose");
|
|
25
|
-
var UserSchema = {
|
|
26
|
-
id: { type: import_mongoose.Schema.Types.UUID, default: true },
|
|
27
|
-
name: { type: String, required: true },
|
|
28
|
-
email: { type: String, required: true },
|
|
29
|
-
pushToken: { type: String, required: true },
|
|
30
|
-
signedIn: { type: Boolean, required: true, default: false }
|
|
31
|
-
};
|
|
32
|
-
var UserSchema_default = UserSchema;
|
|
33
|
-
|
|
34
|
-
// src/models/UserModel.ts
|
|
35
|
-
var userSchema = new import_mongoose2.Schema(UserSchema_default, { timestamps: true });
|
|
36
|
-
var UserModel = (0, import_mongoose2.model)("User", userSchema);
|
|
37
|
-
|
|
38
|
-
// src/models/SubscriptionModel.ts
|
|
39
|
-
var import_mongoose6 = require("mongoose");
|
|
40
|
-
|
|
41
|
-
// src/models/schemas/SubscriptionSchema.ts
|
|
42
|
-
var import_mongoose5 = require("mongoose");
|
|
43
|
-
|
|
44
|
-
// src/models/schemas/CustomerSchema.ts
|
|
45
|
-
var import_mongoose4 = require("mongoose");
|
|
46
|
-
|
|
47
|
-
// src/models/schemas/CustomerMinifiedSchema.ts
|
|
48
|
-
var import_mongoose3 = require("mongoose");
|
|
49
|
-
var CustomerMinifiedSchema = {
|
|
50
|
-
id: { type: import_mongoose3.Schema.Types.UUID, default: true },
|
|
51
|
-
username: { type: String, required: true },
|
|
52
|
-
img: {
|
|
53
|
-
bucket: { type: String, required: true },
|
|
54
|
-
key: { type: String, required: true }
|
|
55
|
-
},
|
|
56
|
-
name: { type: String, required: true }
|
|
57
|
-
};
|
|
58
|
-
var CustomerMinifiedSchema_default = CustomerMinifiedSchema;
|
|
59
|
-
|
|
60
|
-
// src/models/schemas/CustomerSchema.ts
|
|
61
|
-
var CustomerSchema = {
|
|
62
|
-
id: { type: import_mongoose4.Schema.Types.UUID, default: true },
|
|
63
|
-
minified: CustomerMinifiedSchema_default,
|
|
64
|
-
paid: { type: Boolean, default: false },
|
|
65
|
-
email: { type: String, required: true },
|
|
66
|
-
verified: { type: Boolean, default: false },
|
|
67
|
-
confirmed: { type: Boolean, default: false }
|
|
68
|
-
};
|
|
69
|
-
var CustomerSchema_default = CustomerSchema;
|
|
70
|
-
|
|
71
|
-
// src/models/schemas/SubscriptionSchema.ts
|
|
72
|
-
var SubscriptionSchema = {
|
|
73
|
-
id: { type: import_mongoose5.Schema.Types.UUID, default: true },
|
|
74
|
-
subscriptionId: { type: String, required: true },
|
|
75
|
-
user: UserSchema_default,
|
|
76
|
-
entity: CustomerSchema_default
|
|
77
|
-
};
|
|
78
|
-
var SubscriptionSchema_default = SubscriptionSchema;
|
|
79
|
-
|
|
80
|
-
// src/models/SubscriptionModel.ts
|
|
81
|
-
var subscriptionSchema = new import_mongoose6.Schema(
|
|
82
|
-
SubscriptionSchema_default,
|
|
83
|
-
{
|
|
84
|
-
timestamps: true
|
|
85
|
-
}
|
|
86
|
-
);
|
|
87
|
-
var Subscription = (0, import_mongoose6.model)(
|
|
88
|
-
"Subscriptions",
|
|
89
|
-
subscriptionSchema
|
|
90
|
-
);
|
|
91
|
-
|
|
92
|
-
// src/models/NotiTypeModel.ts
|
|
93
|
-
var import_mongoose8 = require("mongoose");
|
|
94
|
-
|
|
95
|
-
// src/models/schemas/NotiTypeSchema.ts
|
|
96
|
-
var import_mongoose7 = require("mongoose");
|
|
97
|
-
var NotiTypeSchema = {
|
|
98
|
-
id: { type: import_mongoose7.Schema.Types.UUID, default: true },
|
|
99
|
-
entity: CustomerSchema_default,
|
|
100
|
-
type: { type: String, required: true }
|
|
101
|
-
};
|
|
102
|
-
var NotiTypeSchema_default = NotiTypeSchema;
|
|
103
|
-
|
|
104
|
-
// src/models/NotiTypeModel.ts
|
|
105
|
-
var notiTypeSchema = new import_mongoose8.Schema(NotiTypeSchema_default, {
|
|
106
|
-
timestamps: true
|
|
22
|
+
__export(src_exports, {
|
|
23
|
+
testFunction: () => testFunction
|
|
107
24
|
});
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
var NotihubStatsHistorySchema = {
|
|
116
|
-
id: { type: import_mongoose9.Schema.Types.UUID, default: true },
|
|
117
|
-
entityId: { type: String, required: true },
|
|
118
|
-
notifications: { type: Number, required: true },
|
|
119
|
-
subscription: { type: Number, required: true },
|
|
120
|
-
views: { type: Number, required: true },
|
|
121
|
-
type: { type: String, required: true }
|
|
122
|
-
};
|
|
123
|
-
var NotificationStatsHistorySchema_default = NotihubStatsHistorySchema;
|
|
124
|
-
|
|
125
|
-
// src/models/NotiHubStatsHistoryModel.ts
|
|
126
|
-
var notihubStatsHistorySchema = new import_mongoose10.Schema(
|
|
127
|
-
NotificationStatsHistorySchema_default,
|
|
128
|
-
{
|
|
129
|
-
timestamps: true
|
|
130
|
-
}
|
|
131
|
-
);
|
|
132
|
-
var NotiHubStatsHistory = (0, import_mongoose10.model)(
|
|
133
|
-
"INotiHubStatsHistories",
|
|
134
|
-
notihubStatsHistorySchema
|
|
135
|
-
);
|
|
136
|
-
|
|
137
|
-
// src/models/NotificationStatsModel.ts
|
|
138
|
-
var import_mongoose12 = require("mongoose");
|
|
139
|
-
|
|
140
|
-
// src/models/schemas/NotificationSchema.ts
|
|
141
|
-
var import_mongoose11 = require("mongoose");
|
|
142
|
-
var NotificationSchema = {
|
|
143
|
-
id: { type: import_mongoose11.Schema.Types.UUID, default: true },
|
|
144
|
-
title: { type: String, required: true },
|
|
145
|
-
message: { type: String, required: true },
|
|
146
|
-
type: { type: String, required: true },
|
|
147
|
-
body: { type: String },
|
|
148
|
-
entityId: { type: String, required: true },
|
|
149
|
-
entityMinified: CustomerMinifiedSchema_default
|
|
150
|
-
};
|
|
151
|
-
var NotificationSchema_default = NotificationSchema;
|
|
152
|
-
|
|
153
|
-
// src/models/NotificationStatsModel.ts
|
|
154
|
-
var notificationSchema = new import_mongoose12.Schema(
|
|
155
|
-
{
|
|
156
|
-
notification: NotificationSchema_default,
|
|
157
|
-
views: { type: Number, default: 0 }
|
|
158
|
-
},
|
|
159
|
-
{ timestamps: true }
|
|
160
|
-
);
|
|
161
|
-
var NotificationStatsModel = (0, import_mongoose12.model)(
|
|
162
|
-
"NotificationStats",
|
|
163
|
-
notificationSchema
|
|
164
|
-
);
|
|
165
|
-
|
|
166
|
-
// src/models/NotificationModel.ts
|
|
167
|
-
var import_mongoose13 = require("mongoose");
|
|
168
|
-
var notificationSchema2 = new import_mongoose13.Schema(
|
|
169
|
-
{
|
|
170
|
-
title: { type: String, required: true },
|
|
171
|
-
message: { type: String, required: true },
|
|
172
|
-
type: { type: String, required: true },
|
|
173
|
-
body: { type: String },
|
|
174
|
-
entityId: { type: String, required: true },
|
|
175
|
-
entityMinified: CustomerSchema_default
|
|
176
|
-
},
|
|
177
|
-
{ timestamps: true }
|
|
178
|
-
);
|
|
179
|
-
var NotificationModel = (0, import_mongoose13.model)(
|
|
180
|
-
"Notification",
|
|
181
|
-
notificationSchema2
|
|
182
|
-
);
|
|
183
|
-
|
|
184
|
-
// src/models/CustomerModel.ts
|
|
185
|
-
var import_mongoose14 = require("mongoose");
|
|
186
|
-
var customerSchema = new import_mongoose14.Schema(CustomerSchema_default, {
|
|
187
|
-
timestamps: true
|
|
25
|
+
module.exports = __toCommonJS(src_exports);
|
|
26
|
+
function testFunction() {
|
|
27
|
+
return "Run Test Function";
|
|
28
|
+
}
|
|
29
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
30
|
+
0 && (module.exports = {
|
|
31
|
+
testFunction
|
|
188
32
|
});
|
|
189
|
-
var Customer = (0, import_mongoose14.model)("Customer", customerSchema);
|
|
190
|
-
|
|
191
|
-
// src/models/CustomerMinifiedModel.ts
|
|
192
|
-
var import_mongoose15 = require("mongoose");
|
|
193
|
-
var customerMinifiedSchema = new import_mongoose15.Schema(
|
|
194
|
-
CustomerMinifiedSchema_default,
|
|
195
|
-
{ timestamps: true }
|
|
196
|
-
);
|
|
197
|
-
var CustomerMinified = (0, import_mongoose15.model)(
|
|
198
|
-
"CustomerMinified",
|
|
199
|
-
customerMinifiedSchema
|
|
200
|
-
);
|
|
201
|
-
|
|
202
|
-
// src/models/SubscriptionTypeModel.ts
|
|
203
|
-
var import_mongoose16 = require("mongoose");
|
|
204
|
-
|
|
205
|
-
// src/models/schemas/SubscriptionTypeSchema.ts
|
|
206
|
-
var SubscriptionSchema2 = {
|
|
207
|
-
userId: { type: String, required: true },
|
|
208
|
-
entityId: { type: String, required: true },
|
|
209
|
-
notiTypeId: { type: String, required: true }
|
|
210
|
-
};
|
|
211
|
-
var SubscriptionTypeSchema_default = SubscriptionSchema2;
|
|
212
|
-
|
|
213
|
-
// src/models/SubscriptionTypeModel.ts
|
|
214
|
-
var subscriptionSchema2 = new import_mongoose16.Schema(
|
|
215
|
-
SubscriptionTypeSchema_default,
|
|
216
|
-
{
|
|
217
|
-
timestamps: true
|
|
218
|
-
}
|
|
219
|
-
);
|
|
220
|
-
var SubscriptionType = (0, import_mongoose16.model)(
|
|
221
|
-
"SubscriptionTypes",
|
|
222
|
-
subscriptionSchema2
|
|
223
|
-
);
|