@mastra/mssql 0.5.1 → 1.0.0-beta.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.
@@ -1,20 +0,0 @@
1
- import { LegacyEvalsStorage } from '@mastra/core/storage';
2
- import type { PaginationArgs, PaginationInfo, EvalRow } from '@mastra/core/storage';
3
- import sql from 'mssql';
4
- export declare class LegacyEvalsMSSQL extends LegacyEvalsStorage {
5
- private pool;
6
- private schema;
7
- constructor({ pool, schema }: {
8
- pool: sql.ConnectionPool;
9
- schema: string;
10
- });
11
- /** @deprecated use getEvals instead */
12
- getEvalsByAgentName(agentName: string, type?: 'test' | 'live'): Promise<EvalRow[]>;
13
- getEvals(options?: {
14
- agentName?: string;
15
- type?: 'test' | 'live';
16
- } & PaginationArgs): Promise<PaginationInfo & {
17
- evals: EvalRow[];
18
- }>;
19
- }
20
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/legacy-evals/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAe,MAAM,sBAAsB,CAAC;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACpF,OAAO,GAAG,MAAM,OAAO,CAAC;AA8BxB,qBAAa,gBAAiB,SAAQ,kBAAkB;IACtD,OAAO,CAAC,IAAI,CAAqB;IACjC,OAAO,CAAC,MAAM,CAAS;gBACX,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;QAAE,IAAI,EAAE,GAAG,CAAC,cAAc,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE;IAM1E,uCAAuC;IACjC,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IA0BlF,QAAQ,CACZ,OAAO,GAAE;QACP,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;KACxB,GAAG,cAAmB,GACtB,OAAO,CAAC,cAAc,GAAG;QAAE,KAAK,EAAE,OAAO,EAAE,CAAA;KAAE,CAAC;CAmGlD"}
@@ -1,37 +0,0 @@
1
- import type { PaginationInfo, PaginationArgs } from '@mastra/core/storage';
2
- import { TracesStorage } from '@mastra/core/storage';
3
- import sql from 'mssql';
4
- import type { StoreOperationsMSSQL } from '../operations/index.js';
5
- export declare class TracesMSSQL extends TracesStorage {
6
- pool: sql.ConnectionPool;
7
- private operations;
8
- private schema?;
9
- constructor({ pool, operations, schema, }: {
10
- pool: sql.ConnectionPool;
11
- operations: StoreOperationsMSSQL;
12
- schema?: string;
13
- });
14
- /** @deprecated use getTracesPaginated instead*/
15
- getTraces(args: {
16
- name?: string;
17
- scope?: string;
18
- attributes?: Record<string, string>;
19
- filters?: Record<string, any>;
20
- page: number;
21
- perPage?: number;
22
- fromDate?: Date;
23
- toDate?: Date;
24
- }): Promise<any[]>;
25
- getTracesPaginated(args: {
26
- name?: string;
27
- scope?: string;
28
- attributes?: Record<string, string>;
29
- filters?: Record<string, any>;
30
- } & PaginationArgs): Promise<PaginationInfo & {
31
- traces: any[];
32
- }>;
33
- batchTraceInsert({ records }: {
34
- records: Record<string, any>[];
35
- }): Promise<void>;
36
- }
37
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/traces/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAgB,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAEnE,OAAO,GAAG,MAAM,OAAO,CAAC;AACxB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAG1D,qBAAa,WAAY,SA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