@amohamud23/notihub 1.0.83 → 1.0.84

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.cjs CHANGED
@@ -109,12 +109,9 @@ var UserModel = (0, import_mongoose2.model)("User", userSchema);
109
109
  var UserModel_default = UserModel;
110
110
 
111
111
  // src/models/SubscriptionModel.ts
112
- var import_mongoose6 = require("mongoose");
113
-
114
- // src/models/schemas/SubscriptionSchema.ts
115
112
  var import_mongoose5 = require("mongoose");
116
113
 
117
- // src/models/schemas/CustomerSchema.ts
114
+ // src/models/schemas/SubscriptionSchema.ts
118
115
  var import_mongoose4 = require("mongoose");
119
116
 
120
117
  // src/models/schemas/CustomerMinifiedSchema.ts
@@ -132,7 +129,7 @@ var CustomerMinifiedSchema_default = CustomerMinifiedSchema;
132
129
 
133
130
  // src/models/schemas/CustomerSchema.ts
134
131
  var CustomerSchema = {
135
- id: { type: import_mongoose4.Schema.Types.UUID, default: true },
132
+ // id: { type: Schema.Types.UUID, default: true },
136
133
  minified: CustomerMinifiedSchema_default,
137
134
  paid: { type: Boolean, default: false },
138
135
  email: { type: String, required: true },
@@ -143,7 +140,7 @@ var CustomerSchema_default = CustomerSchema;
143
140
 
144
141
  // src/models/schemas/SubscriptionSchema.ts
145
142
  var SubscriptionSchema = {
146
- id: { type: import_mongoose5.Schema.Types.UUID, default: true },
143
+ id: { type: import_mongoose4.Schema.Types.UUID, default: true },
147
144
  subscriptionId: { type: String, required: true },
148
145
  user: UserSchema_default,
149
146
  entity: CustomerSchema_default
@@ -151,44 +148,44 @@ var SubscriptionSchema = {
151
148
  var SubscriptionSchema_default = SubscriptionSchema;
152
149
 
153
150
  // src/models/SubscriptionModel.ts
154
- var subscriptionSchema = new import_mongoose6.Schema(
151
+ var subscriptionSchema = new import_mongoose5.Schema(
155
152
  SubscriptionSchema_default,
156
153
  {
157
154
  timestamps: true
158
155
  }
159
156
  );
160
- var Subscription = (0, import_mongoose6.model)(
157
+ var Subscription = (0, import_mongoose5.model)(
161
158
  "Subscriptions",
162
159
  subscriptionSchema
163
160
  );
164
161
  var SubscriptionModel_default = Subscription;
165
162
 
166
163
  // src/models/NotiTypeModel.ts
167
- var import_mongoose8 = require("mongoose");
164
+ var import_mongoose7 = require("mongoose");
168
165
 
169
166
  // src/models/schemas/NotiTypeSchema.ts
170
- var import_mongoose7 = require("mongoose");
167
+ var import_mongoose6 = require("mongoose");
171
168
  var NotiTypeSchema = {
172
- id: { type: import_mongoose7.Schema.Types.UUID, default: true },
169
+ id: { type: import_mongoose6.Schema.Types.UUID, default: true },
173
170
  entity: CustomerSchema_default,
174
171
  type: { type: String, required: true }
175
172
  };
176
173
  var NotiTypeSchema_default = NotiTypeSchema;
177
174
 
178
175
  // src/models/NotiTypeModel.ts
179
- var notiTypeSchema = new import_mongoose8.Schema(NotiTypeSchema_default, {
176
+ var notiTypeSchema = new import_mongoose7.Schema(NotiTypeSchema_default, {
180
177
  timestamps: true
181
178
  });
182
- var NotiTypeModel = (0, import_mongoose8.model)("NotiTypes", notiTypeSchema);
179
+ var NotiTypeModel = (0, import_mongoose7.model)("NotiTypes", notiTypeSchema);
183
180
  var NotiTypeModel_default = NotiTypeModel;
184
181
 
185
182
  // src/models/NotiHubStatsHistoryModel.ts
186
- var import_mongoose10 = require("mongoose");
183
+ var import_mongoose9 = require("mongoose");
187
184
 
188
185
  // src/models/schemas/NotificationStatsHistorySchema.ts
189
- var import_mongoose9 = require("mongoose");
186
+ var import_mongoose8 = require("mongoose");
190
187
  var NotihubStatsHistorySchema = {
191
- id: { type: import_mongoose9.Schema.Types.UUID, default: true },
188
+ id: { type: import_mongoose8.Schema.Types.UUID, default: true },
192
189
  entityId: { type: String, required: true },
193
190
  notifications: { type: Number, required: true },
194
191
  subscription: { type: Number, required: true },
@@ -198,25 +195,25 @@ var NotihubStatsHistorySchema = {
198
195
  var NotificationStatsHistorySchema_default = NotihubStatsHistorySchema;
199
196
 
200
197
  // src/models/NotiHubStatsHistoryModel.ts
201
- var notihubStatsHistorySchema = new import_mongoose10.Schema(
198
+ var notihubStatsHistorySchema = new import_mongoose9.Schema(
202
199
  NotificationStatsHistorySchema_default,
203
200
  {
204
201
  timestamps: true
205
202
  }
206
203
  );
207
- var NotiHubStatsHistory = (0, import_mongoose10.model)(
204
+ var NotiHubStatsHistory = (0, import_mongoose9.model)(
208
205
  "INotiHubStatsHistories",
209
206
  notihubStatsHistorySchema
210
207
  );
211
208
  var NotiHubStatsHistoryModel_default = NotiHubStatsHistory;
212
209
 
213
210
  // src/models/NotificationStatsModel.ts
214
- var import_mongoose12 = require("mongoose");
211
+ var import_mongoose11 = require("mongoose");
215
212
 
216
213
  // src/models/schemas/NotificationSchema.ts
217
- var import_mongoose11 = require("mongoose");
214
+ var import_mongoose10 = require("mongoose");
218
215
  var NotificationSchema = {
219
- id: { type: import_mongoose11.Schema.Types.UUID, default: true },
216
+ id: { type: import_mongoose10.Schema.Types.UUID, default: true },
220
217
  title: { type: String, required: true },
221
218
  message: { type: String, required: true },
222
219
  type: { type: String, required: true },
@@ -227,22 +224,22 @@ var NotificationSchema = {
227
224
  var NotificationSchema_default = NotificationSchema;
228
225
 
229
226
  // src/models/NotificationStatsModel.ts
230
- var notificationSchema = new import_mongoose12.Schema(
227
+ var notificationSchema = new import_mongoose11.Schema(
231
228
  {
232
229
  notification: NotificationSchema_default,
233
230
  views: { type: Number, default: 0 }
234
231
  },
235
232
  { timestamps: true }
236
233
  );
237
- var NotificationStatsModel = (0, import_mongoose12.model)(
234
+ var NotificationStatsModel = (0, import_mongoose11.model)(
238
235
  "NotificationStats",
239
236
  notificationSchema
240
237
  );
241
238
  var NotificationStatsModel_default = NotificationStatsModel;
242
239
 
243
240
  // src/models/NotificationModel.ts
244
- var import_mongoose13 = require("mongoose");
245
- var notificationSchema2 = new import_mongoose13.Schema(
241
+ var import_mongoose12 = require("mongoose");
242
+ var notificationSchema2 = new import_mongoose12.Schema(
246
243
  {
247
244
  title: { type: String, required: true },
248
245
  message: { type: String, required: true },
@@ -253,34 +250,34 @@ var notificationSchema2 = new import_mongoose13.Schema(
253
250
  },
254
251
  { timestamps: true }
255
252
  );
256
- var NotificationModel = (0, import_mongoose13.model)(
253
+ var NotificationModel = (0, import_mongoose12.model)(
257
254
  "Notification",
258
255
  notificationSchema2
259
256
  );
260
257
  var NotificationModel_default = NotificationModel;
261
258
 
262
259
  // src/models/CustomerModel.ts
263
- var import_mongoose14 = require("mongoose");
264
- var customerSchema = new import_mongoose14.Schema(CustomerSchema_default, {
260
+ var import_mongoose13 = require("mongoose");
261
+ var customerSchema = new import_mongoose13.Schema(CustomerSchema_default, {
265
262
  timestamps: true
266
263
  });
267
- var Customer = (0, import_mongoose14.model)("Customer", customerSchema);
264
+ var Customer = (0, import_mongoose13.model)("Customer", customerSchema);
268
265
  var CustomerModel_default = Customer;
269
266
 
270
267
  // src/models/CustomerMinifiedModel.ts
271
- var import_mongoose15 = require("mongoose");
272
- var customerMinifiedSchema = new import_mongoose15.Schema(
268
+ var import_mongoose14 = require("mongoose");
269
+ var customerMinifiedSchema = new import_mongoose14.Schema(
273
270
  CustomerMinifiedSchema_default,
274
271
  { timestamps: true }
275
272
  );
276
- var CustomerMinified = (0, import_mongoose15.model)(
273
+ var CustomerMinified = (0, import_mongoose14.model)(
277
274
  "CustomerMinified",
278
275
  customerMinifiedSchema
279
276
  );
280
277
  var CustomerMinifiedModel_default = CustomerMinified;
281
278
 
282
279
  // src/models/SubscriptionTypeModel.ts
283
- var import_mongoose16 = require("mongoose");
280
+ var import_mongoose15 = require("mongoose");
284
281
 
285
282
  // src/models/schemas/SubscriptionTypeSchema.ts
286
283
  var SubscriptionSchema2 = {
@@ -291,13 +288,13 @@ var SubscriptionSchema2 = {
291
288
  var SubscriptionTypeSchema_default = SubscriptionSchema2;
292
289
 
293
290
  // src/models/SubscriptionTypeModel.ts
294
- var subscriptionSchema2 = new import_mongoose16.Schema(
291
+ var subscriptionSchema2 = new import_mongoose15.Schema(
295
292
  SubscriptionTypeSchema_default,
296
293
  {
297
294
  timestamps: true
298
295
  }
299
296
  );
300
- var SubscriptionType = (0, import_mongoose16.model)(
297
+ var SubscriptionType = (0, import_mongoose15.model)(
301
298
  "SubscriptionTypes",
302
299
  subscriptionSchema2
303
300
  );
package/dist/index.js CHANGED
@@ -72,12 +72,9 @@ var UserModel = model("User", userSchema);
72
72
  var UserModel_default = UserModel;
73
73
 
74
74
  // src/models/SubscriptionModel.ts
75
- import { Schema as Schema6, model as model3 } from "mongoose";
75
+ import { Schema as Schema5, model as model3 } from "mongoose";
76
76
 
77
77
  // src/models/schemas/SubscriptionSchema.ts
78
- import { Schema as Schema5 } from "mongoose";
79
-
80
- // src/models/schemas/CustomerSchema.ts
81
78
  import { Schema as Schema4 } from "mongoose";
82
79
 
83
80
  // src/models/schemas/CustomerMinifiedSchema.ts
@@ -95,7 +92,7 @@ var CustomerMinifiedSchema_default = CustomerMinifiedSchema;
95
92
 
96
93
  // src/models/schemas/CustomerSchema.ts
97
94
  var CustomerSchema = {
98
- id: { type: Schema4.Types.UUID, default: true },
95
+ // id: { type: Schema.Types.UUID, default: true },
99
96
  minified: CustomerMinifiedSchema_default,
100
97
  paid: { type: Boolean, default: false },
101
98
  email: { type: String, required: true },
@@ -106,7 +103,7 @@ var CustomerSchema_default = CustomerSchema;
106
103
 
107
104
  // src/models/schemas/SubscriptionSchema.ts
108
105
  var SubscriptionSchema = {
109
- id: { type: Schema5.Types.UUID, default: true },
106
+ id: { type: Schema4.Types.UUID, default: true },
110
107
  subscriptionId: { type: String, required: true },
111
108
  user: UserSchema_default,
112
109
  entity: CustomerSchema_default
@@ -114,7 +111,7 @@ var SubscriptionSchema = {
114
111
  var SubscriptionSchema_default = SubscriptionSchema;
115
112
 
116
113
  // src/models/SubscriptionModel.ts
117
- var subscriptionSchema = new Schema6(
114
+ var subscriptionSchema = new Schema5(
118
115
  SubscriptionSchema_default,
119
116
  {
120
117
  timestamps: true
@@ -127,31 +124,31 @@ var Subscription = model3(
127
124
  var SubscriptionModel_default = Subscription;
128
125
 
129
126
  // src/models/NotiTypeModel.ts
130
- import { Schema as Schema8, model as model4 } from "mongoose";
127
+ import { Schema as Schema7, model as model4 } from "mongoose";
131
128
 
132
129
  // src/models/schemas/NotiTypeSchema.ts
133
- import { Schema as Schema7 } from "mongoose";
130
+ import { Schema as Schema6 } from "mongoose";
134
131
  var NotiTypeSchema = {
135
- id: { type: Schema7.Types.UUID, default: true },
132
+ id: { type: Schema6.Types.UUID, default: true },
136
133
  entity: CustomerSchema_default,
137
134
  type: { type: String, required: true }
138
135
  };
139
136
  var NotiTypeSchema_default = NotiTypeSchema;
140
137
 
141
138
  // src/models/NotiTypeModel.ts
142
- var notiTypeSchema = new Schema8(NotiTypeSchema_default, {
139
+ var notiTypeSchema = new Schema7(NotiTypeSchema_default, {
143
140
  timestamps: true
144
141
  });
145
142
  var NotiTypeModel = model4("NotiTypes", notiTypeSchema);
146
143
  var NotiTypeModel_default = NotiTypeModel;
147
144
 
148
145
  // src/models/NotiHubStatsHistoryModel.ts
149
- import { Schema as Schema10, model as model5 } from "mongoose";
146
+ import { Schema as Schema9, model as model5 } from "mongoose";
150
147
 
151
148
  // src/models/schemas/NotificationStatsHistorySchema.ts
152
- import { Schema as Schema9 } from "mongoose";
149
+ import { Schema as Schema8 } from "mongoose";
153
150
  var NotihubStatsHistorySchema = {
154
- id: { type: Schema9.Types.UUID, default: true },
151
+ id: { type: Schema8.Types.UUID, default: true },
155
152
  entityId: { type: String, required: true },
156
153
  notifications: { type: Number, required: true },
157
154
  subscription: { type: Number, required: true },
@@ -161,7 +158,7 @@ var NotihubStatsHistorySchema = {
161
158
  var NotificationStatsHistorySchema_default = NotihubStatsHistorySchema;
162
159
 
163
160
  // src/models/NotiHubStatsHistoryModel.ts
164
- var notihubStatsHistorySchema = new Schema10(
161
+ var notihubStatsHistorySchema = new Schema9(
165
162
  NotificationStatsHistorySchema_default,
166
163
  {
167
164
  timestamps: true
@@ -174,12 +171,12 @@ var NotiHubStatsHistory = model5(
174
171
  var NotiHubStatsHistoryModel_default = NotiHubStatsHistory;
175
172
 
176
173
  // src/models/NotificationStatsModel.ts
177
- import { Schema as Schema12, model as model6 } from "mongoose";
174
+ import { Schema as Schema11, model as model6 } from "mongoose";
178
175
 
179
176
  // src/models/schemas/NotificationSchema.ts
180
- import { Schema as Schema11 } from "mongoose";
177
+ import { Schema as Schema10 } from "mongoose";
181
178
  var NotificationSchema = {
182
- id: { type: Schema11.Types.UUID, default: true },
179
+ id: { type: Schema10.Types.UUID, default: true },
183
180
  title: { type: String, required: true },
184
181
  message: { type: String, required: true },
185
182
  type: { type: String, required: true },
@@ -190,7 +187,7 @@ var NotificationSchema = {
190
187
  var NotificationSchema_default = NotificationSchema;
191
188
 
192
189
  // src/models/NotificationStatsModel.ts
193
- var notificationSchema = new Schema12(
190
+ var notificationSchema = new Schema11(
194
191
  {
195
192
  notification: NotificationSchema_default,
196
193
  views: { type: Number, default: 0 }
@@ -204,8 +201,8 @@ var NotificationStatsModel = model6(
204
201
  var NotificationStatsModel_default = NotificationStatsModel;
205
202
 
206
203
  // src/models/NotificationModel.ts
207
- import { Schema as Schema13, model as model7 } from "mongoose";
208
- var notificationSchema2 = new Schema13(
204
+ import { Schema as Schema12, model as model7 } from "mongoose";
205
+ var notificationSchema2 = new Schema12(
209
206
  {
210
207
  title: { type: String, required: true },
211
208
  message: { type: String, required: true },
@@ -223,16 +220,16 @@ var NotificationModel = model7(
223
220
  var NotificationModel_default = NotificationModel;
224
221
 
225
222
  // src/models/CustomerModel.ts
226
- import { Schema as Schema14, model as model8 } from "mongoose";
227
- var customerSchema = new Schema14(CustomerSchema_default, {
223
+ import { Schema as Schema13, model as model8 } from "mongoose";
224
+ var customerSchema = new Schema13(CustomerSchema_default, {
228
225
  timestamps: true
229
226
  });
230
227
  var Customer = model8("Customer", customerSchema);
231
228
  var CustomerModel_default = Customer;
232
229
 
233
230
  // src/models/CustomerMinifiedModel.ts
234
- import { Schema as Schema15, model as model9 } from "mongoose";
235
- var customerMinifiedSchema = new Schema15(
231
+ import { Schema as Schema14, model as model9 } from "mongoose";
232
+ var customerMinifiedSchema = new Schema14(
236
233
  CustomerMinifiedSchema_default,
237
234
  { timestamps: true }
238
235
  );
@@ -243,7 +240,7 @@ var CustomerMinified = model9(
243
240
  var CustomerMinifiedModel_default = CustomerMinified;
244
241
 
245
242
  // src/models/SubscriptionTypeModel.ts
246
- import { Schema as Schema16, model as model10 } from "mongoose";
243
+ import { Schema as Schema15, model as model10 } from "mongoose";
247
244
 
248
245
  // src/models/schemas/SubscriptionTypeSchema.ts
249
246
  var SubscriptionSchema2 = {
@@ -254,7 +251,7 @@ var SubscriptionSchema2 = {
254
251
  var SubscriptionTypeSchema_default = SubscriptionSchema2;
255
252
 
256
253
  // src/models/SubscriptionTypeModel.ts
257
- var subscriptionSchema2 = new Schema16(
254
+ var subscriptionSchema2 = new Schema15(
258
255
  SubscriptionTypeSchema_default,
259
256
  {
260
257
  timestamps: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amohamud23/notihub",
3
- "version": "1.0.83",
3
+ "version": "1.0.84",
4
4
  "description": "Notihub Package",
5
5
  "main": "./dist/index.cjs",
6
6
  "types": "./dist/index.d.cts",