mitra-interactions-sdk 1.0.44 → 1.0.45
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 +14 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -256,6 +256,20 @@ const result = await stopServerFunctionExecutionMitra({
|
|
|
256
256
|
// result: { status, result: { executionId, executionStatus: "CANCELLED" | "ALREADY_FINISHED" } }
|
|
257
257
|
```
|
|
258
258
|
|
|
259
|
+
### executeDataLoaderMitra
|
|
260
|
+
|
|
261
|
+
Executa um Data Loader cadastrado no projeto.
|
|
262
|
+
|
|
263
|
+
```typescript
|
|
264
|
+
import { executeDataLoaderMitra } from 'mitra-interactions-sdk';
|
|
265
|
+
|
|
266
|
+
const result = await executeDataLoaderMitra({
|
|
267
|
+
projectId: 123,
|
|
268
|
+
dataLoaderId: 5
|
|
269
|
+
});
|
|
270
|
+
// result: { result: { timestamp, rowCount, query, status, fileSize, duration } }
|
|
271
|
+
```
|
|
272
|
+
|
|
259
273
|
### uploadFilePublicMitra / uploadFileLoadableMitra
|
|
260
274
|
|
|
261
275
|
Faz upload de um arquivo diretamente para a pasta PUBLIC ou LOADABLE do projeto. Usa `multipart/form-data`.
|