@timardex/cluemart-server-shared 4.0.4 → 4.0.6

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.
@@ -138,6 +138,8 @@ type SchemaAiImportedMarket = Omit<AiImportedMarket, "eventId" | "claimedByUserI
138
138
  deactivatedReason?: EnumImportedMarketDeactivationReason | null;
139
139
  /** sourceKey of an existing AI market this one may duplicate (soft flag). */
140
140
  duplicateHint?: string | null;
141
+ /** Fields still missing before the market can be approved. */
142
+ missingFields?: string[];
141
143
  };
142
144
  declare const AiImportedMarketModel: mongoose__default.Model<SchemaAiImportedMarket, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaAiImportedMarket, {}, {}> & Omit<AiImportedMarket, "eventId" | "claimedByUserId" | "reviewedByUserId"> & {
143
145
  eventId?: mongoose__default.Types.ObjectId;
@@ -157,6 +159,8 @@ declare const AiImportedMarketModel: mongoose__default.Model<SchemaAiImportedMar
157
159
  deactivatedReason?: EnumImportedMarketDeactivationReason | null;
158
160
  /** sourceKey of an existing AI market this one may duplicate (soft flag). */
159
161
  duplicateHint?: string | null;
162
+ /** Fields still missing before the market can be approved. */
163
+ missingFields?: string[];
160
164
  } & Required<{
161
165
  _id: string;
162
166
  }> & {
@@ -171,6 +175,10 @@ type AiImportSiteResult = {
171
175
  imported: number;
172
176
  name: string;
173
177
  skipped: number;
178
+ skipReasons?: Array<{
179
+ count: number;
180
+ reason: string;
181
+ }>;
174
182
  status: EnumAiImportRunStatus.SUCCESS | EnumAiImportRunStatus.ERROR;
175
183
  usage: AiImportUsage;
176
184
  url: string;
@@ -138,6 +138,8 @@ type SchemaAiImportedMarket = Omit<AiImportedMarket, "eventId" | "claimedByUserI
138
138
  deactivatedReason?: EnumImportedMarketDeactivationReason | null;
139
139
  /** sourceKey of an existing AI market this one may duplicate (soft flag). */
140
140
  duplicateHint?: string | null;
141
+ /** Fields still missing before the market can be approved. */
142
+ missingFields?: string[];
141
143
  };
142
144
  declare const AiImportedMarketModel: mongoose__default.Model<SchemaAiImportedMarket, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaAiImportedMarket, {}, {}> & Omit<AiImportedMarket, "eventId" | "claimedByUserId" | "reviewedByUserId"> & {
143
145
  eventId?: mongoose__default.Types.ObjectId;
@@ -157,6 +159,8 @@ declare const AiImportedMarketModel: mongoose__default.Model<SchemaAiImportedMar
157
159
  deactivatedReason?: EnumImportedMarketDeactivationReason | null;
158
160
  /** sourceKey of an existing AI market this one may duplicate (soft flag). */
159
161
  duplicateHint?: string | null;
162
+ /** Fields still missing before the market can be approved. */
163
+ missingFields?: string[];
160
164
  } & Required<{
161
165
  _id: string;
162
166
  }> & {
@@ -171,6 +175,10 @@ type AiImportSiteResult = {
171
175
  imported: number;
172
176
  name: string;
173
177
  skipped: number;
178
+ skipReasons?: Array<{
179
+ count: number;
180
+ reason: string;
181
+ }>;
174
182
  status: EnumAiImportRunStatus.SUCCESS | EnumAiImportRunStatus.ERROR;
175
183
  usage: AiImportUsage;
176
184
  url: string;
@@ -60,7 +60,7 @@ import {
60
60
  termsAgreementSchema,
61
61
  userLicenseSchema,
62
62
  vendorProductTypeSchema
63
- } from "../chunk-AHC434D4.mjs";
63
+ } from "../chunk-TSKI3WB2.mjs";
64
64
  export {
65
65
  AD_BILLING_CATALOG_COLLECTION_NAME,
66
66
  AI_IMPORT_RUN_LOCK_KEY,
@@ -1077,6 +1077,7 @@ var schema7 = new MongooseSchema6(
1077
1077
  required: false,
1078
1078
  type: import_mongoose10.default.Schema.Types.ObjectId
1079
1079
  },
1080
+ contactDetails: { required: false, type: ContactDetailsSchema },
1080
1081
  cover: {
1081
1082
  required: false,
1082
1083
  type: ResourceImageTypeSchema
@@ -1148,7 +1149,7 @@ var addressComponentSchema2 = new MongooseSchema7(
1148
1149
  var schema8 = new MongooseSchema7(
1149
1150
  {
1150
1151
  active: { default: false, required: true, type: Boolean },
1151
- address: { required: true, type: String },
1152
+ address: { required: false, type: String },
1152
1153
  addressComponents: { required: false, type: [addressComponentSchema2] },
1153
1154
  approvedAt: { default: null, required: false, type: Date },
1154
1155
  claimed: { default: false, required: true, type: Boolean },
@@ -1158,6 +1159,7 @@ var schema8 = new MongooseSchema7(
1158
1159
  required: false,
1159
1160
  type: import_mongoose11.default.Schema.Types.ObjectId
1160
1161
  },
1162
+ contactDetails: { required: false, type: ContactDetailsSchema },
1161
1163
  cover: {
1162
1164
  required: false,
1163
1165
  type: ResourceImageTypeSchema
@@ -1186,11 +1188,12 @@ var schema8 = new MongooseSchema7(
1186
1188
  images: { required: false, type: [ResourceImageTypeSchema] },
1187
1189
  lastSeenAt: { default: null, required: false, type: Date },
1188
1190
  location: {
1189
- required: true,
1191
+ required: false,
1190
1192
  type: locationsSchema
1191
1193
  },
1192
1194
  logo: { required: false, type: ResourceImageTypeSchema },
1193
1195
  missedRuns: { default: 0, required: true, type: Number },
1196
+ missingFields: { required: false, type: [String] },
1194
1197
  name: { required: true, type: String },
1195
1198
  openingHours: { required: false, type: [String] },
1196
1199
  rainOrShine: { required: true, type: Boolean },
@@ -1266,6 +1269,19 @@ var siteResultSchema = new MongooseSchema8(
1266
1269
  imported: { default: 0, required: true, type: Number },
1267
1270
  name: { required: true, type: String },
1268
1271
  skipped: { default: 0, required: true, type: Number },
1272
+ skipReasons: {
1273
+ default: void 0,
1274
+ required: false,
1275
+ type: [
1276
+ new MongooseSchema8(
1277
+ {
1278
+ count: { required: true, type: Number },
1279
+ reason: { required: true, type: String }
1280
+ },
1281
+ { _id: false }
1282
+ )
1283
+ ]
1284
+ },
1269
1285
  status: {
1270
1286
  enum: [import_cluemart_shared11.EnumAiImportRunStatus.SUCCESS, import_cluemart_shared11.EnumAiImportRunStatus.ERROR],
1271
1287
  required: true,
@@ -1820,7 +1836,6 @@ var schema15 = new MongooseSchema16(
1820
1836
  required: false,
1821
1837
  type: [String]
1822
1838
  },
1823
- isTester: { default: false, required: true, type: Boolean },
1824
1839
  lastName: { required: true, type: String },
1825
1840
  licences: {
1826
1841
  required: false,