@mastra/mongodb 1.6.1-alpha.2 → 1.6.1

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/index.js CHANGED
@@ -12,7 +12,7 @@ import { saveScorePayloadSchema } from '@mastra/core/evals';
12
12
 
13
13
  // package.json
14
14
  var package_default = {
15
- version: "1.6.1-alpha.2"};
15
+ version: "1.6.1"};
16
16
  var MongoDBFilterTranslator = class extends BaseFilterTranslator {
17
17
  getSupportedOperators() {
18
18
  return {
@@ -1795,6 +1795,7 @@ var MongoDBDatasetsStorage = class extends DatasetsStorage {
1795
1795
  tags: typeof row.tags === "string" ? safelyParseJSON(row.tags) : row.tags ?? void 0,
1796
1796
  targetType: row.targetType ?? void 0,
1797
1797
  targetIds: typeof row.targetIds === "string" ? safelyParseJSON(row.targetIds) : row.targetIds ?? void 0,
1798
+ scorerIds: typeof row.scorerIds === "string" ? safelyParseJSON(row.scorerIds) : row.scorerIds ?? void 0,
1798
1799
  version: row.version ?? 0,
1799
1800
  createdAt: ensureDate(row.createdAt),
1800
1801
  updatedAt: ensureDate(row.updatedAt)
@@ -1845,6 +1846,7 @@ var MongoDBDatasetsStorage = class extends DatasetsStorage {
1845
1846
  requestContextSchema: input.requestContextSchema ?? null,
1846
1847
  targetType: input.targetType ?? null,
1847
1848
  targetIds: input.targetIds ?? null,
1849
+ scorerIds: input.scorerIds ?? null,
1848
1850
  version: 0,
1849
1851
  createdAt: now,
1850
1852
  updatedAt: now
@@ -1902,6 +1904,7 @@ var MongoDBDatasetsStorage = class extends DatasetsStorage {
1902
1904
  if (args.tags !== void 0) updateDoc.tags = args.tags;
1903
1905
  if (args.targetType !== void 0) updateDoc.targetType = args.targetType;
1904
1906
  if (args.targetIds !== void 0) updateDoc.targetIds = args.targetIds;
1907
+ if (args.scorerIds !== void 0) updateDoc.scorerIds = args.scorerIds;
1905
1908
  await collection.updateOne({ id: args.id }, { $set: updateDoc });
1906
1909
  const updated = await this.getDatasetById({ id: args.id });
1907
1910
  return updated;