@timardex/cluemart-server-shared 4.0.4 → 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-AHC434D4.mjs → chunk-BT5MO7SZ.mjs} +17 -4
- package/dist/chunk-BT5MO7SZ.mjs.map +1 -0
- package/dist/index.cjs +16 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.mjs +16 -3
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +16 -3
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.d.mts +8 -0
- package/dist/mongoose/index.d.ts +8 -0
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +16 -3
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-AHC434D4.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
|
}> & {
|
|
@@ -559,6 +563,10 @@ type AiImportSiteResult = {
|
|
|
559
563
|
imported: number;
|
|
560
564
|
name: string;
|
|
561
565
|
skipped: number;
|
|
566
|
+
skipReasons?: Array<{
|
|
567
|
+
count: number;
|
|
568
|
+
reason: string;
|
|
569
|
+
}>;
|
|
562
570
|
status: EnumAiImportRunStatus.SUCCESS | EnumAiImportRunStatus.ERROR;
|
|
563
571
|
usage: AiImportUsage;
|
|
564
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
|
}> & {
|
|
@@ -559,6 +563,10 @@ type AiImportSiteResult = {
|
|
|
559
563
|
imported: number;
|
|
560
564
|
name: string;
|
|
561
565
|
skipped: number;
|
|
566
|
+
skipReasons?: Array<{
|
|
567
|
+
count: number;
|
|
568
|
+
reason: string;
|
|
569
|
+
}>;
|
|
562
570
|
status: EnumAiImportRunStatus.SUCCESS | EnumAiImportRunStatus.ERROR;
|
|
563
571
|
usage: AiImportUsage;
|
|
564
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 },
|
|
@@ -1225,6 +1226,19 @@ var siteResultSchema = new MongooseSchema8(
|
|
|
1225
1226
|
imported: { default: 0, required: true, type: Number },
|
|
1226
1227
|
name: { required: true, type: String },
|
|
1227
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
|
+
},
|
|
1228
1242
|
status: {
|
|
1229
1243
|
enum: [EnumAiImportRunStatus.SUCCESS, EnumAiImportRunStatus.ERROR],
|
|
1230
1244
|
required: true,
|
|
@@ -1807,7 +1821,6 @@ var schema15 = new MongooseSchema16(
|
|
|
1807
1821
|
required: false,
|
|
1808
1822
|
type: [String]
|
|
1809
1823
|
},
|
|
1810
|
-
isTester: { default: false, required: true, type: Boolean },
|
|
1811
1824
|
lastName: { required: true, type: String },
|
|
1812
1825
|
licences: {
|
|
1813
1826
|
required: false,
|