@amohamud23/notihub 1.0.119 → 1.0.121
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 +0 -4
- package/dist/index.js +0 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -110,7 +110,6 @@ var import_mongoose = require("mongoose");
|
|
|
110
110
|
|
|
111
111
|
// src/models/schemas/UserSchema.ts
|
|
112
112
|
var UserSchema = {
|
|
113
|
-
_id: { type: String, required: true },
|
|
114
113
|
name: { type: String, required: true },
|
|
115
114
|
email: { type: String, required: true },
|
|
116
115
|
pushToken: { type: String, required: true },
|
|
@@ -308,11 +307,8 @@ var import_mongoose14 = require("mongoose");
|
|
|
308
307
|
// src/models/schemas/SubscriptionTypeSchema.ts
|
|
309
308
|
var import_mongoose13 = require("mongoose");
|
|
310
309
|
var SubscriptionTypeSchema = {
|
|
311
|
-
userId: { type: String, required: true },
|
|
312
310
|
userRef: { type: import_mongoose13.Schema.Types.ObjectId, ref: "User", required: true },
|
|
313
|
-
entityId: { type: String, required: true },
|
|
314
311
|
entityRef: { type: import_mongoose13.Schema.Types.ObjectId, ref: "Customer", required: true },
|
|
315
|
-
notiTypeId: { type: String, required: true },
|
|
316
312
|
notiTypeRef: {
|
|
317
313
|
type: import_mongoose13.Schema.Types.ObjectId,
|
|
318
314
|
ref: "NotificationType",
|
package/dist/index.js
CHANGED
|
@@ -63,7 +63,6 @@ import { Schema, model } from "mongoose";
|
|
|
63
63
|
|
|
64
64
|
// src/models/schemas/UserSchema.ts
|
|
65
65
|
var UserSchema = {
|
|
66
|
-
_id: { type: String, required: true },
|
|
67
66
|
name: { type: String, required: true },
|
|
68
67
|
email: { type: String, required: true },
|
|
69
68
|
pushToken: { type: String, required: true },
|
|
@@ -261,11 +260,8 @@ import { Schema as Schema14, model as model9 } from "mongoose";
|
|
|
261
260
|
// src/models/schemas/SubscriptionTypeSchema.ts
|
|
262
261
|
import { Schema as Schema13 } from "mongoose";
|
|
263
262
|
var SubscriptionTypeSchema = {
|
|
264
|
-
userId: { type: String, required: true },
|
|
265
263
|
userRef: { type: Schema13.Types.ObjectId, ref: "User", required: true },
|
|
266
|
-
entityId: { type: String, required: true },
|
|
267
264
|
entityRef: { type: Schema13.Types.ObjectId, ref: "Customer", required: true },
|
|
268
|
-
notiTypeId: { type: String, required: true },
|
|
269
265
|
notiTypeRef: {
|
|
270
266
|
type: Schema13.Types.ObjectId,
|
|
271
267
|
ref: "NotificationType",
|