@timardex/cluemart-server-shared 2.1.11 → 2.2.1

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.
@@ -1135,16 +1135,24 @@ var GoogleImportedMarketModel = import_mongoose10.default.models.GoogleImportedM
1135
1135
  var import_cluemart_shared9 = require("@timardex/cluemart-shared");
1136
1136
  var import_mongoose11 = __toESM(require("mongoose"));
1137
1137
  var MongooseSchema7 = import_mongoose11.default.Schema;
1138
+ var notificationDataSchema = new MongooseSchema7(
1139
+ {
1140
+ resourceId: { required: true, type: String },
1141
+ resourceName: { required: true, type: String },
1142
+ resourceType: {
1143
+ enum: Object.values(import_cluemart_shared9.EnumNotificationResourceType),
1144
+ required: true,
1145
+ type: String
1146
+ }
1147
+ },
1148
+ { _id: false }
1149
+ );
1138
1150
  var schema8 = new MongooseSchema7(
1139
1151
  {
1140
1152
  data: {
1141
- resourceId: { required: true, type: String },
1142
- resourceName: { required: true, type: String },
1143
- resourceType: {
1144
- enum: Object.values(import_cluemart_shared9.EnumNotificationResourceType),
1145
- required: true,
1146
- type: String
1147
- }
1153
+ default: null,
1154
+ required: false,
1155
+ type: notificationDataSchema
1148
1156
  },
1149
1157
  isRead: { default: false, index: true, required: true, type: Boolean },
1150
1158
  message: { required: true, type: String },