21 lines
425 B
TypeScript
21 lines
425 B
TypeScript
import { client } from './common';
|
|
import util from 'node:util';
|
|
|
|
const getIndex = async () => {
|
|
const index = await client.getIndexes({ limit: 3 });
|
|
return index;
|
|
};
|
|
|
|
// getIndex().then((result) => {
|
|
// console.log(result);
|
|
// });
|
|
const getTasks = async () => {
|
|
const tasks = await client.tasks.getTasks();
|
|
|
|
return tasks;
|
|
};
|
|
|
|
getTasks().then((result) => {
|
|
console.log(util.inspect(result, { depth: null }));
|
|
});
|