@mastra/mongodb 0.13.0 → 0.13.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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +31 -0
- package/dist/index.cjs +8 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/scores/index.d.ts +3 -2
- package/dist/storage/domains/scores/index.d.ts.map +1 -1
- package/dist/storage/index.d.ts +3 -2
- package/dist/storage/index.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/storage/domains/scores/index.ts +6 -0
- package/src/storage/index.ts +4 -2
package/dist/index.js
CHANGED
|
@@ -1690,7 +1690,8 @@ var ScoresStorageMongoDB = class extends ScoresStorage {
|
|
|
1690
1690
|
scorerId,
|
|
1691
1691
|
pagination,
|
|
1692
1692
|
entityId,
|
|
1693
|
-
entityType
|
|
1693
|
+
entityType,
|
|
1694
|
+
source
|
|
1694
1695
|
}) {
|
|
1695
1696
|
try {
|
|
1696
1697
|
const query = { scorerId };
|
|
@@ -1700,6 +1701,9 @@ var ScoresStorageMongoDB = class extends ScoresStorage {
|
|
|
1700
1701
|
if (entityType) {
|
|
1701
1702
|
query.entityType = entityType;
|
|
1702
1703
|
}
|
|
1704
|
+
if (source) {
|
|
1705
|
+
query.source = source;
|
|
1706
|
+
}
|
|
1703
1707
|
const collection = await this.operations.getCollection(TABLE_SCORERS);
|
|
1704
1708
|
const total = await collection.countDocuments(query);
|
|
1705
1709
|
const currentOffset = pagination.page * pagination.perPage;
|
|
@@ -2315,9 +2319,10 @@ var MongoDBStore = class extends MastraStorage {
|
|
|
2315
2319
|
scorerId,
|
|
2316
2320
|
pagination,
|
|
2317
2321
|
entityId,
|
|
2318
|
-
entityType
|
|
2322
|
+
entityType,
|
|
2323
|
+
source
|
|
2319
2324
|
}) {
|
|
2320
|
-
return this.stores.scores.getScoresByScorerId({ scorerId, pagination, entityId, entityType });
|
|
2325
|
+
return this.stores.scores.getScoresByScorerId({ scorerId, pagination, entityId, entityType, source });
|
|
2321
2326
|
}
|
|
2322
2327
|
/**
|
|
2323
2328
|
* RESOURCES
|