mitra-interactions-sdk 1.0.23 → 1.0.24

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/README.md CHANGED
@@ -108,7 +108,7 @@ const result = await runQueryMitra({
108
108
  sql: 'SELECT * FROM usuarios LIMIT 10',
109
109
  jdbcId: 1 // Opcional, usa autoConnect se não informado
110
110
  });
111
- // result: { status, result: { headers: string[], data: any[][], rowCount: number } }
111
+ // result: { status, result: { rows: Record<string, any>[], rowCount: number } }
112
112
  ```
113
113
 
114
114
  ### executeDbActionMitra
@@ -189,7 +189,7 @@ Lista as integrações configuradas no projeto.
189
189
  import { listIntegrationsMitra } from 'mitra-interactions-sdk';
190
190
 
191
191
  const integrations = await listIntegrationsMitra({ projectId: 123 });
192
- // result: IntegrationRecord[] — [{ id, projectId, name, slug, blueprintId, blueprintType, authType, credentials, status, lastCheckedAt, createdAt, updatedAt }]
192
+ // result: IntegrationResponse[] — [{ id (UUID), projectId, name, slug, blueprintId, blueprintType, authType, credentials, status, lastCheckedAt, createdAt, updatedAt }]
193
193
  ```
194
194
 
195
195
  #### callIntegrationMitra
@@ -347,7 +347,7 @@ import type {
347
347
  SetVariableResponse,
348
348
  ExecuteServerFunctionResponse,
349
349
  ExecuteServerFunctionAsyncResponse,
350
- IntegrationRecord,
350
+ IntegrationResponse,
351
351
  CallIntegrationResponse,
352
352
  StopServerFunctionExecutionResponse,
353
353
  ListRecordsResponse
package/dist/index.d.mts CHANGED
@@ -63,8 +63,7 @@ interface RunQueryOptions {
63
63
  interface RunQueryResponse {
64
64
  status: string;
65
65
  result: {
66
- headers: string[];
67
- data: any[][];
66
+ rows: Record<string, any>[];
68
67
  rowCount: number;
69
68
  };
70
69
  }
package/dist/index.d.ts CHANGED
@@ -63,8 +63,7 @@ interface RunQueryOptions {
63
63
  interface RunQueryResponse {
64
64
  status: string;
65
65
  result: {
66
- headers: string[];
67
- data: any[][];
66
+ rows: Record<string, any>[];
68
67
  rowCount: number;
69
68
  };
70
69
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mitra-interactions-sdk",
3
- "version": "1.0.23",
3
+ "version": "1.0.24",
4
4
  "description": "SDK agnóstico para interações com a plataforma Mitra",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",