@amohamud23/notihub 1.0.100 → 1.0.102
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 +7 -4
- package/dist/index.js +7 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -371,18 +371,21 @@ var import_mongoose19 = require("mongoose");
|
|
|
371
371
|
|
|
372
372
|
// src/models/schemas/NotiTypeStatsSchema.ts
|
|
373
373
|
var import_mongoose18 = require("mongoose");
|
|
374
|
-
var
|
|
374
|
+
var NotiTypeStatsSchema = {
|
|
375
375
|
notiType: { type: import_mongoose18.Schema.Types.ObjectId, ref: "NotiTypes", required: true },
|
|
376
376
|
subscribed: { type: Number, default: 0, required: true },
|
|
377
377
|
views: { type: Number, default: 0, required: true }
|
|
378
378
|
};
|
|
379
|
-
var NotiTypeStatsSchema_default =
|
|
379
|
+
var NotiTypeStatsSchema_default = NotiTypeStatsSchema;
|
|
380
380
|
|
|
381
381
|
// src/models/NotiTypeStatsModel.ts
|
|
382
|
-
var
|
|
382
|
+
var notiTypeStatsSchema = new import_mongoose19.Schema(NotiTypeStatsSchema_default, {
|
|
383
383
|
timestamps: true
|
|
384
384
|
});
|
|
385
|
-
var NotiTypeStatsModel = (0, import_mongoose19.model)(
|
|
385
|
+
var NotiTypeStatsModel = (0, import_mongoose19.model)(
|
|
386
|
+
"NotiTypes",
|
|
387
|
+
notiTypeStatsSchema
|
|
388
|
+
);
|
|
386
389
|
var NotiTypeStatsModel_default = NotiTypeStatsModel;
|
|
387
390
|
|
|
388
391
|
// src/client/MongooseClient.ts
|
package/dist/index.js
CHANGED
|
@@ -319,18 +319,21 @@ import { Schema as Schema19, model as model12 } from "mongoose";
|
|
|
319
319
|
|
|
320
320
|
// src/models/schemas/NotiTypeStatsSchema.ts
|
|
321
321
|
import { Schema as Schema18 } from "mongoose";
|
|
322
|
-
var
|
|
322
|
+
var NotiTypeStatsSchema = {
|
|
323
323
|
notiType: { type: Schema18.Types.ObjectId, ref: "NotiTypes", required: true },
|
|
324
324
|
subscribed: { type: Number, default: 0, required: true },
|
|
325
325
|
views: { type: Number, default: 0, required: true }
|
|
326
326
|
};
|
|
327
|
-
var NotiTypeStatsSchema_default =
|
|
327
|
+
var NotiTypeStatsSchema_default = NotiTypeStatsSchema;
|
|
328
328
|
|
|
329
329
|
// src/models/NotiTypeStatsModel.ts
|
|
330
|
-
var
|
|
330
|
+
var notiTypeStatsSchema = new Schema19(NotiTypeStatsSchema_default, {
|
|
331
331
|
timestamps: true
|
|
332
332
|
});
|
|
333
|
-
var NotiTypeStatsModel = model12(
|
|
333
|
+
var NotiTypeStatsModel = model12(
|
|
334
|
+
"NotiTypes",
|
|
335
|
+
notiTypeStatsSchema
|
|
336
|
+
);
|
|
334
337
|
var NotiTypeStatsModel_default = NotiTypeStatsModel;
|
|
335
338
|
|
|
336
339
|
// src/client/MongooseClient.ts
|