@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.
- package/dist/{chunk-AHC434D4.mjs → chunk-TSKI3WB2.mjs} +19 -4
- package/dist/chunk-TSKI3WB2.mjs.map +1 -0
- package/dist/index.cjs +18 -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 +18 -3
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +18 -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 +18 -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
|
@@ -1030,6 +1030,7 @@ var schema7 = new MongooseSchema6(
|
|
|
1030
1030
|
required: false,
|
|
1031
1031
|
type: mongoose10.Schema.Types.ObjectId
|
|
1032
1032
|
},
|
|
1033
|
+
contactDetails: { required: false, type: ContactDetailsSchema },
|
|
1033
1034
|
cover: {
|
|
1034
1035
|
required: false,
|
|
1035
1036
|
type: ResourceImageTypeSchema
|
|
@@ -1105,7 +1106,7 @@ var addressComponentSchema2 = new MongooseSchema7(
|
|
|
1105
1106
|
var schema8 = new MongooseSchema7(
|
|
1106
1107
|
{
|
|
1107
1108
|
active: { default: false, required: true, type: Boolean },
|
|
1108
|
-
address: { required:
|
|
1109
|
+
address: { required: false, type: String },
|
|
1109
1110
|
addressComponents: { required: false, type: [addressComponentSchema2] },
|
|
1110
1111
|
approvedAt: { default: null, required: false, type: Date },
|
|
1111
1112
|
claimed: { default: false, required: true, type: Boolean },
|
|
@@ -1115,6 +1116,7 @@ var schema8 = new MongooseSchema7(
|
|
|
1115
1116
|
required: false,
|
|
1116
1117
|
type: mongoose11.Schema.Types.ObjectId
|
|
1117
1118
|
},
|
|
1119
|
+
contactDetails: { required: false, type: ContactDetailsSchema },
|
|
1118
1120
|
cover: {
|
|
1119
1121
|
required: false,
|
|
1120
1122
|
type: ResourceImageTypeSchema
|
|
@@ -1143,11 +1145,12 @@ var schema8 = new MongooseSchema7(
|
|
|
1143
1145
|
images: { required: false, type: [ResourceImageTypeSchema] },
|
|
1144
1146
|
lastSeenAt: { default: null, required: false, type: Date },
|
|
1145
1147
|
location: {
|
|
1146
|
-
required:
|
|
1148
|
+
required: false,
|
|
1147
1149
|
type: locationsSchema
|
|
1148
1150
|
},
|
|
1149
1151
|
logo: { required: false, type: ResourceImageTypeSchema },
|
|
1150
1152
|
missedRuns: { default: 0, required: true, type: Number },
|
|
1153
|
+
missingFields: { required: false, type: [String] },
|
|
1151
1154
|
name: { required: true, type: String },
|
|
1152
1155
|
openingHours: { required: false, type: [String] },
|
|
1153
1156
|
rainOrShine: { required: true, type: Boolean },
|
|
@@ -1225,6 +1228,19 @@ var siteResultSchema = new MongooseSchema8(
|
|
|
1225
1228
|
imported: { default: 0, required: true, type: Number },
|
|
1226
1229
|
name: { required: true, type: String },
|
|
1227
1230
|
skipped: { default: 0, required: true, type: Number },
|
|
1231
|
+
skipReasons: {
|
|
1232
|
+
default: void 0,
|
|
1233
|
+
required: false,
|
|
1234
|
+
type: [
|
|
1235
|
+
new MongooseSchema8(
|
|
1236
|
+
{
|
|
1237
|
+
count: { required: true, type: Number },
|
|
1238
|
+
reason: { required: true, type: String }
|
|
1239
|
+
},
|
|
1240
|
+
{ _id: false }
|
|
1241
|
+
)
|
|
1242
|
+
]
|
|
1243
|
+
},
|
|
1228
1244
|
status: {
|
|
1229
1245
|
enum: [EnumAiImportRunStatus.SUCCESS, EnumAiImportRunStatus.ERROR],
|
|
1230
1246
|
required: true,
|
|
@@ -1807,7 +1823,6 @@ var schema15 = new MongooseSchema16(
|
|
|
1807
1823
|
required: false,
|
|
1808
1824
|
type: [String]
|
|
1809
1825
|
},
|
|
1810
|
-
isTester: { default: false, required: true, type: Boolean },
|
|
1811
1826
|
lastName: { required: true, type: String },
|
|
1812
1827
|
licences: {
|
|
1813
1828
|
required: false,
|