@mastra/mssql 1.4.0 → 1.4.1-alpha.0
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/CHANGELOG.md +37 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/reference-storage-mssql.md +2 -0
- package/dist/index.cjs +43 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +43 -11
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/scores/index.d.ts +9 -5
- package/dist/storage/domains/scores/index.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ListScoresResponse, SaveScorePayload, ScoreRowData, ScoringSource } from '@mastra/core/evals';
|
|
2
|
-
import type { StoragePagination, CreateIndexOptions } from '@mastra/core/storage';
|
|
2
|
+
import type { StoragePagination, CreateIndexOptions, ScoreTenancyFilters } from '@mastra/core/storage';
|
|
3
3
|
import { ScoresStorage } from '@mastra/core/storage';
|
|
4
4
|
import type { ConnectionPool } from 'mssql';
|
|
5
5
|
import type { MssqlDomainConfig } from '../../db/index.js';
|
|
@@ -34,26 +34,30 @@ export declare class ScoresMSSQL extends ScoresStorage {
|
|
|
34
34
|
saveScore(score: SaveScorePayload): Promise<{
|
|
35
35
|
score: ScoreRowData;
|
|
36
36
|
}>;
|
|
37
|
-
listScoresByScorerId({ scorerId, pagination, entityId, entityType, source, }: {
|
|
37
|
+
listScoresByScorerId({ scorerId, pagination, entityId, entityType, source, filters, }: {
|
|
38
38
|
scorerId: string;
|
|
39
39
|
pagination: StoragePagination;
|
|
40
40
|
entityId?: string;
|
|
41
41
|
entityType?: string;
|
|
42
42
|
source?: ScoringSource;
|
|
43
|
+
filters?: ScoreTenancyFilters;
|
|
43
44
|
}): Promise<ListScoresResponse>;
|
|
44
|
-
listScoresByRunId({ runId, pagination, }: {
|
|
45
|
+
listScoresByRunId({ runId, pagination, filters, }: {
|
|
45
46
|
runId: string;
|
|
46
47
|
pagination: StoragePagination;
|
|
48
|
+
filters?: ScoreTenancyFilters;
|
|
47
49
|
}): Promise<ListScoresResponse>;
|
|
48
|
-
listScoresByEntityId({ entityId, entityType, pagination, }: {
|
|
50
|
+
listScoresByEntityId({ entityId, entityType, pagination, filters, }: {
|
|
49
51
|
pagination: StoragePagination;
|
|
50
52
|
entityId: string;
|
|
51
53
|
entityType: string;
|
|
54
|
+
filters?: ScoreTenancyFilters;
|
|
52
55
|
}): Promise<ListScoresResponse>;
|
|
53
|
-
listScoresBySpan({ traceId, spanId, pagination, }: {
|
|
56
|
+
listScoresBySpan({ traceId, spanId, pagination, filters, }: {
|
|
54
57
|
traceId: string;
|
|
55
58
|
spanId: string;
|
|
56
59
|
pagination: StoragePagination;
|
|
60
|
+
filters?: ScoreTenancyFilters;
|
|
57
61
|
}): Promise<ListScoresResponse>;
|
|
58
62
|
}
|
|
59
63
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/scores/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAE5G,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/scores/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAE5G,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AACvG,OAAO,EAEL,aAAa,EAMd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK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CAAC,kBAAkB,CAAC;IA4FzB,iBAAiB,CAAC,EACtB,KAAK,EACL,UAAU,EACV,OAAO,GACR,EAAE;QACD,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,EAAE,iBAAiB,CAAC;QAC9B,OAAO,CAAC,EAAE,mBAAmB,CAAC;KAC/B,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAgEzB,oBAAoB,CAAC,EACzB,QAAQ,EACR,UAAU,EACV,UAAU,EACV,OAAO,GACR,EAAE;QACD,UAAU,EAAE,iBAAiB,CAAC;QAC9B,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,mBAAmB,CAAC;KAC/B,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAkEzB,gBAAgB,CAAC,EACrB,OAAO,EACP,MAAM,EACN,UAAU,EACV,OAAO,GACR,EAAE;QACD,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC;QACf,UAAU,EAAE,iBAAiB,CAAC;QAC9B,OAAO,CAAC,EAAE,mBAAmB,CAAC;KAC/B,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAkEhC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mssql",
|
|
3
|
-
"version": "1.4.0",
|
|
3
|
+
"version": "1.4.1-alpha.0",
|
|
4
4
|
"description": "MSSQL provider for Mastra - db storage capabilities",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"tsx": "^4.22.4",
|
|
33
33
|
"typescript": "^6.0.3",
|
|
34
34
|
"vitest": "4.1.8",
|
|
35
|
-
"@internal/
|
|
36
|
-
"@
|
|
37
|
-
"@internal/
|
|
38
|
-
"@
|
|
35
|
+
"@internal/storage-test-utils": "0.0.106",
|
|
36
|
+
"@mastra/core": "1.49.0-alpha.5",
|
|
37
|
+
"@internal/types-builder": "0.0.85",
|
|
38
|
+
"@internal/lint": "0.0.110"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@mastra/core": ">=1.0.0-0 <2.0.0-0"
|