@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
|
@@ -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;
|
package/dist/mongoose/index.d.ts
CHANGED
|
@@ -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;
|
package/dist/mongoose/index.mjs
CHANGED
package/dist/service/index.cjs
CHANGED
|
@@ -1148,7 +1148,7 @@ var addressComponentSchema2 = new MongooseSchema7(
|
|
|
1148
1148
|
var schema8 = new MongooseSchema7(
|
|
1149
1149
|
{
|
|
1150
1150
|
active: { default: false, required: true, type: Boolean },
|
|
1151
|
-
address: { required:
|
|
1151
|
+
address: { required: false, type: String },
|
|
1152
1152
|
addressComponents: { required: false, type: [addressComponentSchema2] },
|
|
1153
1153
|
approvedAt: { default: null, required: false, type: Date },
|
|
1154
1154
|
claimed: { default: false, required: true, type: Boolean },
|
|
@@ -1186,11 +1186,12 @@ var schema8 = new MongooseSchema7(
|
|
|
1186
1186
|
images: { required: false, type: [ResourceImageTypeSchema] },
|
|
1187
1187
|
lastSeenAt: { default: null, required: false, type: Date },
|
|
1188
1188
|
location: {
|
|
1189
|
-
required:
|
|
1189
|
+
required: false,
|
|
1190
1190
|
type: locationsSchema
|
|
1191
1191
|
},
|
|
1192
1192
|
logo: { required: false, type: ResourceImageTypeSchema },
|
|
1193
1193
|
missedRuns: { default: 0, required: true, type: Number },
|
|
1194
|
+
missingFields: { required: false, type: [String] },
|
|
1194
1195
|
name: { required: true, type: String },
|
|
1195
1196
|
openingHours: { required: false, type: [String] },
|
|
1196
1197
|
rainOrShine: { required: true, type: Boolean },
|
|
@@ -1266,6 +1267,19 @@ var siteResultSchema = new MongooseSchema8(
|
|
|
1266
1267
|
imported: { default: 0, required: true, type: Number },
|
|
1267
1268
|
name: { required: true, type: String },
|
|
1268
1269
|
skipped: { default: 0, required: true, type: Number },
|
|
1270
|
+
skipReasons: {
|
|
1271
|
+
default: void 0,
|
|
1272
|
+
required: false,
|
|
1273
|
+
type: [
|
|
1274
|
+
new MongooseSchema8(
|
|
1275
|
+
{
|
|
1276
|
+
count: { required: true, type: Number },
|
|
1277
|
+
reason: { required: true, type: String }
|
|
1278
|
+
},
|
|
1279
|
+
{ _id: false }
|
|
1280
|
+
)
|
|
1281
|
+
]
|
|
1282
|
+
},
|
|
1269
1283
|
status: {
|
|
1270
1284
|
enum: [import_cluemart_shared11.EnumAiImportRunStatus.SUCCESS, import_cluemart_shared11.EnumAiImportRunStatus.ERROR],
|
|
1271
1285
|
required: true,
|
|
@@ -1820,7 +1834,6 @@ var schema15 = new MongooseSchema16(
|
|
|
1820
1834
|
required: false,
|
|
1821
1835
|
type: [String]
|
|
1822
1836
|
},
|
|
1823
|
-
isTester: { default: false, required: true, type: Boolean },
|
|
1824
1837
|
lastName: { required: true, type: String },
|
|
1825
1838
|
licences: {
|
|
1826
1839
|
required: false,
|