@timardex/cluemart-server-shared 4.0.3 → 4.0.5
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/{chunk-3ICI65FJ.mjs → chunk-BT5MO7SZ.mjs} +18 -4
- package/dist/chunk-BT5MO7SZ.mjs.map +1 -0
- package/dist/index.cjs +17 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.mjs +17 -3
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +17 -3
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.d.mts +9 -0
- package/dist/mongoose/index.d.ts +9 -0
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +17 -3
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-3ICI65FJ.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -526,6 +526,8 @@ type SchemaAiImportedMarket = Omit<AiImportedMarket, "eventId" | "claimedByUserI
|
|
|
526
526
|
deactivatedReason?: EnumImportedMarketDeactivationReason | null;
|
|
527
527
|
/** sourceKey of an existing AI market this one may duplicate (soft flag). */
|
|
528
528
|
duplicateHint?: string | null;
|
|
529
|
+
/** Fields still missing before the market can be approved. */
|
|
530
|
+
missingFields?: string[];
|
|
529
531
|
};
|
|
530
532
|
declare const AiImportedMarketModel: mongoose__default.Model<SchemaAiImportedMarket, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaAiImportedMarket, {}, {}> & Omit<AiImportedMarket, "eventId" | "claimedByUserId" | "reviewedByUserId"> & {
|
|
531
533
|
eventId?: mongoose__default.Types.ObjectId;
|
|
@@ -545,6 +547,8 @@ declare const AiImportedMarketModel: mongoose__default.Model<SchemaAiImportedMar
|
|
|
545
547
|
deactivatedReason?: EnumImportedMarketDeactivationReason | null;
|
|
546
548
|
/** sourceKey of an existing AI market this one may duplicate (soft flag). */
|
|
547
549
|
duplicateHint?: string | null;
|
|
550
|
+
/** Fields still missing before the market can be approved. */
|
|
551
|
+
missingFields?: string[];
|
|
548
552
|
} & Required<{
|
|
549
553
|
_id: string;
|
|
550
554
|
}> & {
|
|
@@ -553,11 +557,16 @@ declare const AiImportedMarketModel: mongoose__default.Model<SchemaAiImportedMar
|
|
|
553
557
|
|
|
554
558
|
type AiImportRunStatus = EnumAiImportRunStatus;
|
|
555
559
|
type AiImportSiteResult = {
|
|
560
|
+
error?: string | null;
|
|
556
561
|
errors: number;
|
|
557
562
|
found: number;
|
|
558
563
|
imported: number;
|
|
559
564
|
name: string;
|
|
560
565
|
skipped: number;
|
|
566
|
+
skipReasons?: Array<{
|
|
567
|
+
count: number;
|
|
568
|
+
reason: string;
|
|
569
|
+
}>;
|
|
561
570
|
status: EnumAiImportRunStatus.SUCCESS | EnumAiImportRunStatus.ERROR;
|
|
562
571
|
usage: AiImportUsage;
|
|
563
572
|
url: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -526,6 +526,8 @@ type SchemaAiImportedMarket = Omit<AiImportedMarket, "eventId" | "claimedByUserI
|
|
|
526
526
|
deactivatedReason?: EnumImportedMarketDeactivationReason | null;
|
|
527
527
|
/** sourceKey of an existing AI market this one may duplicate (soft flag). */
|
|
528
528
|
duplicateHint?: string | null;
|
|
529
|
+
/** Fields still missing before the market can be approved. */
|
|
530
|
+
missingFields?: string[];
|
|
529
531
|
};
|
|
530
532
|
declare const AiImportedMarketModel: mongoose__default.Model<SchemaAiImportedMarket, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaAiImportedMarket, {}, {}> & Omit<AiImportedMarket, "eventId" | "claimedByUserId" | "reviewedByUserId"> & {
|
|
531
533
|
eventId?: mongoose__default.Types.ObjectId;
|
|
@@ -545,6 +547,8 @@ declare const AiImportedMarketModel: mongoose__default.Model<SchemaAiImportedMar
|
|
|
545
547
|
deactivatedReason?: EnumImportedMarketDeactivationReason | null;
|
|
546
548
|
/** sourceKey of an existing AI market this one may duplicate (soft flag). */
|
|
547
549
|
duplicateHint?: string | null;
|
|
550
|
+
/** Fields still missing before the market can be approved. */
|
|
551
|
+
missingFields?: string[];
|
|
548
552
|
} & Required<{
|
|
549
553
|
_id: string;
|
|
550
554
|
}> & {
|
|
@@ -553,11 +557,16 @@ declare const AiImportedMarketModel: mongoose__default.Model<SchemaAiImportedMar
|
|
|
553
557
|
|
|
554
558
|
type AiImportRunStatus = EnumAiImportRunStatus;
|
|
555
559
|
type AiImportSiteResult = {
|
|
560
|
+
error?: string | null;
|
|
556
561
|
errors: number;
|
|
557
562
|
found: number;
|
|
558
563
|
imported: number;
|
|
559
564
|
name: string;
|
|
560
565
|
skipped: number;
|
|
566
|
+
skipReasons?: Array<{
|
|
567
|
+
count: number;
|
|
568
|
+
reason: string;
|
|
569
|
+
}>;
|
|
561
570
|
status: EnumAiImportRunStatus.SUCCESS | EnumAiImportRunStatus.ERROR;
|
|
562
571
|
usage: AiImportUsage;
|
|
563
572
|
url: string;
|
package/dist/index.mjs
CHANGED
|
@@ -1105,7 +1105,7 @@ var addressComponentSchema2 = new MongooseSchema7(
|
|
|
1105
1105
|
var schema8 = new MongooseSchema7(
|
|
1106
1106
|
{
|
|
1107
1107
|
active: { default: false, required: true, type: Boolean },
|
|
1108
|
-
address: { required:
|
|
1108
|
+
address: { required: false, type: String },
|
|
1109
1109
|
addressComponents: { required: false, type: [addressComponentSchema2] },
|
|
1110
1110
|
approvedAt: { default: null, required: false, type: Date },
|
|
1111
1111
|
claimed: { default: false, required: true, type: Boolean },
|
|
@@ -1143,11 +1143,12 @@ var schema8 = new MongooseSchema7(
|
|
|
1143
1143
|
images: { required: false, type: [ResourceImageTypeSchema] },
|
|
1144
1144
|
lastSeenAt: { default: null, required: false, type: Date },
|
|
1145
1145
|
location: {
|
|
1146
|
-
required:
|
|
1146
|
+
required: false,
|
|
1147
1147
|
type: locationsSchema
|
|
1148
1148
|
},
|
|
1149
1149
|
logo: { required: false, type: ResourceImageTypeSchema },
|
|
1150
1150
|
missedRuns: { default: 0, required: true, type: Number },
|
|
1151
|
+
missingFields: { required: false, type: [String] },
|
|
1151
1152
|
name: { required: true, type: String },
|
|
1152
1153
|
openingHours: { required: false, type: [String] },
|
|
1153
1154
|
rainOrShine: { required: true, type: Boolean },
|
|
@@ -1219,11 +1220,25 @@ var usageSchema = new MongooseSchema8(
|
|
|
1219
1220
|
);
|
|
1220
1221
|
var siteResultSchema = new MongooseSchema8(
|
|
1221
1222
|
{
|
|
1223
|
+
error: { required: false, type: String },
|
|
1222
1224
|
errors: { default: 0, required: true, type: Number },
|
|
1223
1225
|
found: { default: 0, required: true, type: Number },
|
|
1224
1226
|
imported: { default: 0, required: true, type: Number },
|
|
1225
1227
|
name: { required: true, type: String },
|
|
1226
1228
|
skipped: { default: 0, required: true, type: Number },
|
|
1229
|
+
skipReasons: {
|
|
1230
|
+
default: void 0,
|
|
1231
|
+
required: false,
|
|
1232
|
+
type: [
|
|
1233
|
+
new MongooseSchema8(
|
|
1234
|
+
{
|
|
1235
|
+
count: { required: true, type: Number },
|
|
1236
|
+
reason: { required: true, type: String }
|
|
1237
|
+
},
|
|
1238
|
+
{ _id: false }
|
|
1239
|
+
)
|
|
1240
|
+
]
|
|
1241
|
+
},
|
|
1227
1242
|
status: {
|
|
1228
1243
|
enum: [EnumAiImportRunStatus.SUCCESS, EnumAiImportRunStatus.ERROR],
|
|
1229
1244
|
required: true,
|
|
@@ -1806,7 +1821,6 @@ var schema15 = new MongooseSchema16(
|
|
|
1806
1821
|
required: false,
|
|
1807
1822
|
type: [String]
|
|
1808
1823
|
},
|
|
1809
|
-
isTester: { default: false, required: true, type: Boolean },
|
|
1810
1824
|
lastName: { required: true, type: String },
|
|
1811
1825
|
licences: {
|
|
1812
1826
|
required: false,
|