@timardex/cluemart-server-shared 4.0.8 → 4.1.0

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.
@@ -1207,6 +1207,8 @@ var schema8 = new MongooseSchema7(
1207
1207
  missingFields: { required: false, type: [String] },
1208
1208
  name: { required: true, type: String },
1209
1209
  openingHours: { required: false, type: [String] },
1210
+ publicationCityUnknown: { default: false, required: false, type: Boolean },
1211
+ publicationKey: { required: false, type: String },
1210
1212
  rainOrShine: { required: true, type: Boolean },
1211
1213
  rating: { required: false, type: Number },
1212
1214
  region: { required: false, type: String },
@@ -1218,6 +1220,7 @@ var schema8 = new MongooseSchema7(
1218
1220
  required: false,
1219
1221
  type: import_mongoose11.default.Schema.Types.ObjectId
1220
1222
  },
1223
+ reviewerEditedAt: { default: null, required: false, type: Date },
1221
1224
  reviewStatus: {
1222
1225
  default: import_cluemart_shared10.EnumImportedMarketReviewStatus.PENDING,
1223
1226
  enum: Object.values(import_cluemart_shared10.EnumImportedMarketReviewStatus),
@@ -1254,6 +1257,16 @@ schema8.index({
1254
1257
  _id: 1
1255
1258
  });
1256
1259
  schema8.index({ region: 1, searchName: 1 });
1260
+ schema8.index(
1261
+ { publicationKey: 1 },
1262
+ {
1263
+ name: "ai_market_publication_key",
1264
+ partialFilterExpression: {
1265
+ publicationKey: { $exists: true, $type: "string" }
1266
+ },
1267
+ unique: true
1268
+ }
1269
+ );
1257
1270
  schema8.index({ slug: 1 });
1258
1271
  schema8.index({ reviewStatus: 1 });
1259
1272
  schema8.index({ description: "text", name: "text" });
@@ -2180,6 +2193,13 @@ var schema20 = new MongooseSchema21(
2180
2193
  {
2181
2194
  ...baseResourceFields,
2182
2195
  // Importing base resource fields from global.ts
2196
+ // Claim link of the AI-imported market this event was created from, the
2197
+ // counterpart of `googlePlaceId`. Written once by `createEvent`.
2198
+ aiImportedMarketSourceKey: {
2199
+ default: null,
2200
+ required: false,
2201
+ type: String
2202
+ },
2183
2203
  claimed: { default: true, required: false, type: Boolean },
2184
2204
  dateTime: { required: true, type: [dateTimeSchema] },
2185
2205
  eventInfoId: {